path
stringlengths
8
399
content_id
stringlengths
40
40
detected_licenses
sequence
license_type
stringclasses
2 values
repo_name
stringlengths
6
109
repo_url
stringlengths
25
128
star_events_count
int64
0
52.9k
fork_events_count
int64
0
7.07k
gha_license_id
stringclasses
9 values
gha_event_created_at
timestamp[us]
gha_updated_at
timestamp[us]
gha_language
stringclasses
28 values
language
stringclasses
1 value
is_generated
bool
1 class
is_vendor
bool
1 class
conversion_extension
stringclasses
17 values
size
int64
317
10.5M
script
stringlengths
245
9.7M
script_size
int64
245
9.7M
/robert_johnson_unit1_project.ipynb
f8e2e7d8c9d68f6a8996da501cd657dc2452b070
[]
no_license
rejohnsonjr/General-Assembly-Projects
https://github.com/rejohnsonjr/General-Assembly-Projects
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
13,597
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <img src="http://imgur.com/1ZcRyrc.png" style="float: left; margin: 20px; height: 55px"> # # # Project 1: Python Coding Exercises # # _Authors: Joseph Nelson (DC)_ # # --- # The following code challenges are drawn from common exercises used in technical interviews. This project is more about turning ideas into Python code than it is about developing algorithms, so we have provided "pseudocode" for the more challenging problems. # ### Challenge 1: Largest Palindrome # A palindromic number reads the same both ways. For example, 1234321 is a palindrome. The largest palindrome made from the product of two two-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two three-digit numbers. # # Suggested algorithm: # # ``` # - Initialize a variable `result` to 0. # - For each number A 100 through 999: # - For each number B 100 through 999: # - Multiply A and B. # - Turn that product into a string (use `str` as a function). # - Reverse the string (use `my_string[::-1]`). # - If the string and its reverse are the same and the product is # greater than `result`, set `result` to that new value. # ``` # + result = 0 product_list =[] palindrome_list = [] A_range = range(100, 1000) # first range 100 to 999 B_range = range(100, 1000) # second range 100 to 999 for a in A_range: for b in B_range: product = (a*b) # this will cycle thru the numbers and find the product of both numbers my_string = str(product) # this turns the product to a string product_list.append(my_string) # adds the string to the product list for my_string in product_list: if (my_string) == (my_string[::-1]): # this checks if the product is a palindrome palindrome = my_string # if product is a palindrome it is labled as palindrome palindrome_list.append(palindrome) # palindrome is added to the palindrome list for palindrome in palindrome_list: if int(palindrome) >int(result): # this compares palindromes to decided which one is largest result = palindrome # this assings the largest number to result print(result) # the result is the largest palindrome # - # ### Challenge 2: Summation of Primes # The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below 2,000. # # Suggested algorithm: # # ``` # - Initialize an empty list of primes. # # - For every number A from 2 to 2,000: # - Set a variable `is_prime` to true. # - For every number B in our list of primes: # - If A divided by B gives no remainder, set `is_prime` to false. # - Optional: Use the command `break` to end the loop over primes at this point. # - If `is_prime` is still true, append A to our list of primes. # # - Add up the primes. # ``` # + list_of_primes = [] # where primes are stored for A in range(2,2000): # first range from 2 to 1999 is_prime == True # looking for primes in first range for B in range(2,2000): # second range from 2 1999 if A%B == 0: # look for 0 remainder of A/B is_prime == False # sets prime to remander to zero if is_prime == True: list_of_primes.append(A) # add prime to list of primes prime_total = sum(list_of_primes) # sums list of primes print(prime_total) # final answer # - # ### Challenge 3: Multiples of 3 and 5 # If we list all of 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 and 5 below 1,000. # + natural_three = range(0,1000,3) # multiples of 3 below 1000 natural_five = range(0,1000,5) # multiples of 5 belwo 1000 sum_nat_five = sum(natural_five) # sum of multiples of 5 below 1000 sum_nat_three = sum(natural_three) # sum of multiples of 3 below 1000 challenge_three_ans = sum_nat_three + sum_nat_five # sum of the two sum of multiples print(challenge_three_ans) # final answer # - # ### Challenge 4: String Compressor # Write a function to perform basic string compression using the counts of repeated characters. (This is called run-length encoding.) For example, the string "aabcccccaaa" would become a2b1c5a3. If the “compressed” string would not become smaller than the original string, your method should return the original string. You can assume the string has only uppercase and lowercase letters (a–z). Specify whether your solution is case sensitive or case insensitive and what you would need to change to make it the other. # # Suggested algorithm: # # ``` # - Initialize an empty string to hold the compressed version of the input string # - Initialize an empty string to hold the character we are currently tallying up # - Initialize a counter variable to 0 # # - For each letter in the input string: # - If that letter matches the letter we are counting, increment the counter by 1 # - Otherwise: # - If the counter value is greater than 0, add the letter we have been counting # and its count to our compressed string # - Update the letter we are counting # - Set the counter to 1 # # - Append the last letter we were counting and its count to our compressed string # ``` # # **Suggestion:** Test your function on a few sample inputs. Try to come up with "edge cases" that might make it fail (e.g. empty strings, strings with all the same character, strings containing non-alphabetic characters, etc.) # + rest_letters = '' #string for non-compressed leters compressed_string = '' #string for counted leters tallying_string = '' #string for total leters count_var_a = 0 # count for first letter count_var_o = 0 # count for second letter count_var_c = 0 # count for thrid letter your_statement = input(((str("Enter your statement of upper and lowercase letters only here: ")).strip()).lower()) # input string with spaces striped and made lower case for i in your_statement: if i == 'a' or i == 'A': # looks for a compressed_string = compressed_string + i # adds a to compressed string count_var_a = count_var_a + 1 # moves a counter tallying_string = tallying_string + i # adds a to tallying string elif i == 'o' or i == 'O': # looks for o compressed_string = compressed_string + i # adds o to compressed string count_var_o = count_var_o + 1 # moves o counter tallying_string = tallying_string + i # adds o to tallying string elif i == 'c'or i == 'C': # looks for c compressed_string = compressed_string + i # adds c to compressed string count_var_c = count_var_c + 1 # moves c counter tallying_string = tallying_string + i # adds c to tallying string else: rest_letters = rest_letters + i # add letters to non-compresssed string string_out = f"a{count_var_a} o{count_var_o} c{count_var_c} {rest_letters}" # final compressed sting if len(your_statement.strip()) == 0: # will not let input string be empty print("Please enter atleast one letter or number as your input") elif len(your_statement.strip()) > len(string_out.strip()): # compares stings print final string if shorter print (string_out.strip()) elif len(your_statement.strip()) < len(string_out.strip()): # compares strings print input sting if shorter print(your_statement.strip()) # - # ### Challenge 5: FizzBuzz # Write a program that prints all of the numbers from 1 to 100. For multiples of 3, instead of the number, print "Fizz;" for multiples of 5, print "Buzz." For numbers that are multiples of both 3 and 5, print "FizzBuzz." # + fizz_buzz_list = [] # emptly list whole_range = range(1, 101) # numbers 1 to 100 for i in whole_range: if i%3 == 0 and i%5 == 0: # is number factor of 3 and 5 i = "FizzBuzz" # return FizzBuzz fizz_buzz_list.append(i) # add FizzBuzz to list elif i%5 == 0: # is number factor of 5 i = 'Buzz' # return Buzz fizz_buzz_list.append(i) # add Buzz to list elif i%3 == 0: # is number factor of 3 i = 'Fizz' # return Fizz fizz_buzz_list.append(i) # add Fizz to list else: fizz_buzz_list.append(i) # add number to list print(fizz_buzz_list) # final list # -
9,345
/MLudemy/AdvancedSupervision.ipynb
ddd47391e8bd9340945eab8b4b971c369684ab0f
[]
no_license
phaneendhra-ch/Machine_Learning_ZTM
https://github.com/phaneendhra-ch/Machine_Learning_ZTM
0
1
null
null
null
null
Jupyter Notebook
false
false
.py
90,392
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="XLXIojCUxnYp" # # Qiskit Tutorialを触る # Ref. -> [Tutorial](https://qiskit.org/documentation/intro_tutorial1.html) # --- # + [markdown] id="9nvQ2lneGqdR" # ## install qiskit to Colaboratory # --- # + id="BHlArx43v1Oc" # Ready to use Qiskit (for Google Colab) # !pip install qiskit pylatexenc # + [markdown] id="HoiPoZPiGmvG" # ## import package # --- # + id="GKVGKhMdwp7k" import numpy as np from qiskit import QuantumCircuit, transpile from qiskit.providers.aer import QasmSimulator from qiskit.visualization import plot_histogram # + [markdown] id="qfEgipwsHPJG" # ## initialize variables # --- # define two Qubits and two ClassicalBits # # Qbits : $|00\rangle$ # # + id="JUVWPEAMHOgB" circuit = QuantumCircuit(2, 2) # + [markdown] id="OdJ8Ab6tIWly" # ## add gates # --- # make Bell circuit. # $B(|00\rangle) = (|00\rangle + |11\rangle)\frac{1}{\sqrt{2}}$ # # 1. add Hadamard gate to q0. # $H(|0\rangle)|0\rangle = \displaystyle \left((|0\rangle + |1\rangle)\frac{1}{\sqrt{2}}\right)|0\rangle$ # 2. add CNOT gate q0, q1. # $\mathrm{CNOT}( H(|0\rangle) + |0\rangle)$ # $\displaystyle = \left((|0\rangle + |1)\rangle\frac{1}{\sqrt{2}}\right)|0\rangle$ # $\displaystyle = (|00\rangle + |11\rangle)\frac{1}{\sqrt{2}}$ # # 3. measure qbit to classical bit. # + id="4MkpFD0kIYxK" circuit.h(0) circuit.cx(0, 1) circuit.measure([0, 1], [0, 1]) # + [markdown] id="Uns-H6tEI_qv" # ## visualize the circuit # --- # + colab={"base_uri": "https://localhost:8080/", "height": 185} id="TGRfmh0fJCoX" outputId="1311b5fd-a8a2-42e6-bb89-678783bff7d1" # change output for mpl (need pylatexenc) circuit.draw(output='mpl') # + [markdown] id="F9M_UbZFNkwg" # ## simulation # --- # + colab={"base_uri": "https://localhost:8080/"} id="kJPyhRigNmZQ" outputId="4ddc6547-225c-4015-ec18-13f69c079182" simulator = QasmSimulator() compiled_circuit = transpile(circuit, simulator) job = simulator.run(compiled_circuit, shots=1000) result = job.result() counts = result.get_counts(circuit) print(f"Total count for 00 and 11: {counts}") # + [markdown] id="coHNHWE2OhIR" # ## visualize result # --- # + colab={"base_uri": "https://localhost:8080/", "height": 332} id="JBMiebP5OnAy" outputId="2a1139d5-547f-46ed-f94f-09e3c64141a4" plot_histogram(counts) ]) from sklearn import metrics metrics.r2_score(test['traveltime'],preds) sns.distplot(test['traveltime']) sns.distplot(preds) sns.plt.show() # # Ok - so we ** can** get 0.2 on just linear regression from sklearn.neural_network import MLPRegressor as NN rgr = NN(activation='relu',learning_rate_init=0.00001,batch_size=100, solver='adam',\ hidden_layer_sizes=(80,80,80,80)).fit(train[features],train['traveltime']) rgr features = ['hour_7', 'hour_8', 'hour_9', 'hour_10', 'hour_11', 'hour_12', 'hour_13', 'hour_14', 'hour_15', 'hour_16', 'hour_17', 'hour_18', 'hour_19', 'hour_20', 'hour_21', 'hour_22', 'hour_23', 'day_0', 'day_1', 'day_2', 'day_3', 'day_4', 'day_5', 'day_6', 'month_1', 'month_2', 'month_3', 'month_4', 'month_5', 'month_6'] preds=rgr.predict(test[features]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) # + # actually - this is kind of ok! # - sns.distplot(preds,color='green') sns.distplot(test['traveltime'],color='red') sns.distplot.show() rgr = NN(activation='relu',learning_rate_init=0.00001,batch_size=100, solver='adam',\ hidden_layer_sizes=(80,80,80,80,80)).fit(train[features],train['traveltime']) preds=rgr.predict(test[features]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) rgr = NN(activation='relu',learning_rate_init=0.00001,batch_size=100, solver='adam',\ hidden_layer_sizes=(80,80,80,80,80),\ max_iter=400).fit(train[features],train['traveltime']) preds=rgr.predict(test[features]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) # + # so doubling the number of iteration, only upped our r2_score by 0.1... And we still haven't matched # the model that just predicts the average travel time # - rgr = NN(activation='relu',learning_rate_init=0.00001,batch_size=100, solver='adam',\ hidden_layer_sizes=(80,80,80,80,80,80),\ max_iter=400).fit(train[features],train['traveltime']) preds=rgr.predict(test[features]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) # + #worse with the extra layer! # - rgr = NN(activation='relu',learning_rate_init=0.00001,batch_size=100, solver='adam',\ hidden_layer_sizes=(80,80,80,80,80),\ max_iter=500).fit(train[features+['rain','temp','dewpt']],train['traveltime']) preds=rgr.predict(test[features+['rain','temp','dewpt']]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) preds=rgr.predict(test[features+['rain']]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) # + # these 6 or so cells aren't representative of the 2 hours I waited for various models to build. # it seems quite difficult to push past the 0.2 r2 score mark. And that is that. C'est le science lugubre # - # # simple forest model - beat this etc from sklearn.ensemble import RandomForestRegressor as rf test['traveltime'].mean() rgr = rf().fit(train[features],train['traveltime']) preds=rgr.predict(test[features]) print(metrics.r2_score(test['traveltime'],preds)) print(((abs(test['traveltime']-preds)/test['traveltime'])*100).mean()) import seaborn as sns sns.distplot(test['traveltime']) sns.distplot(preds) sns.show() import seaborn as sns sns.distplot(preds).show() len(train) features3=['actualtime_arr_from','rain','temp','hour_5', 'hour_6', 'hour_7', 'hour_8', 'hour_9', 'hour_10', 'hour_11', 'hour_12', 'hour_13', 'hour_14', 'hour_15', 'hour_16', 'hour_17', 'hour_18', 'hour_19', 'hour_20', 'hour_21', 'hour_22', 'hour_23', 'day_0', 'day_1', 'day_2', 'day_3', 'day_4', 'day_5', 'day_6'] print('hello') df=stop_tools.random_stop_data() to_concat = [] for day in df['day'].unique(): tf = df[df['day']==day] for hour in tf['hour'].unique(): rf=tf[tf['hour']==hour] rf['mean']=rf['traveltime'].mean() to_concat.append(rf) df=pd.concat(to_concat,axis=0) preds=df['mean']; reals=df['traveltime'] metrics.r2_score(reals,preds) ((abs(reals - preds)/reals)*100).mean() rain_split] X_valid, y_valid = X[train_split:valid_split], y[train_split:valid_split] X_test, y_test = X[valid_split:], y[valid_split:] clf = RandomForestClassifier() clf.fit(X_train, y_train) # Make predictions y_preds = clf.predict(X_valid) # Evaluate the classifier baseline_metrics = evaluate_preds(y_valid, y_preds) baseline_metrics # + np.random.seed(42) # Create a second classifier clf_2 = RandomForestClassifier(n_estimators=100) clf_2.fit(X_train, y_train) # Make predictions y_preds_2 = clf_2.predict(X_valid) # Evaluate the 2nd classifier clf_2_metrics = evaluate_preds(y_valid, y_preds_2) # - # **HyperParameter Tuning using RandomizedSearchCV** grid = {"n_estimators": [10, 100, 200, 500, 1000, 1200], "max_depth": [None, 5, 10, 20, 30], "max_features": ["auto", "sqrt"], "min_samples_split": [2, 4, 6], "min_samples_leaf": [1, 2, 4]} # + from sklearn.model_selection import RandomizedSearchCV, train_test_split np.random.seed(42) # Split into X & y X = heart_disease_shuffled.drop("target", axis=1) y = heart_disease_shuffled["target"] # Split into train and test sets X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2) # Set n_jobs to -1 to use all cores (NOTE: n_jobs=-1 is broken as of 8 Dec 2019, using n_jobs=1 works) clf = RandomForestClassifier(n_jobs=1) # Setup RandomizedSearchCV rs_clf = RandomizedSearchCV(estimator=clf, param_distributions=grid, n_iter=20, # try 20 models total cv=5, # 5-fold cross-validation verbose=2) # print out results # Fit the RandomizedSearchCV version of clf rs_clf.fit(X_train, y_train); # - rs_clf.best_params_ # + rs_y_preds = rs_clf.predict(X_test) # Evaluate the predictions rs_metrics = evaluate_preds(y_test, rs_y_preds) # -
8,736
/Feature Extraction/Audio_Feature_Extraction.ipynb
6af56d9437db59ae8d7bdb614d8f293eab0c2f5d
[]
no_license
pushpanshu0501/Speech-Emotion-Recognition--1
https://github.com/pushpanshu0501/Speech-Emotion-Recognition--1
3
5
null
2021-07-25T19:03:22
2021-07-23T08:58:51
Jupyter Notebook
Jupyter Notebook
false
false
.py
1,320,163
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Pipeline # # Data Collection # | # | # CountVectorizer # | # | # TfidfTransformer # | # | # SGDClassifier and MultinomialNB # | # | # GridSearchCV # | # | # Model Performance # # ## 1. Data Collection from sklearn.datasets import fetch_20newsgroups twenty_train = fetch_20newsgroups(subset = 'train', shuffle = True) twenty_train.target_names #prints all the categories print("\n".join(twenty_train.data[0].split("\n")[:3])) #prints first line of the first data file # ## 2. Data Preprocessing # ### 2.1 CountVectorizer # # # Convert a collection of text documents to a matrix of token counts. # + from sklearn.feature_extraction.text import CountVectorizer count_vect = CountVectorizer() X_train_counts = count_vect.fit_transform(twenty_train.data) X_train_counts.shape # - count_vect.get_feature_names() iter(X_train_counts) print(X_train_counts.toarray()) # ### 2.2 TfidfTransformer # # Transform a count matrix to a normalized tf or tf-idf representation # + from sklearn.feature_extraction.text import TfidfTransformer tfidf_transformer = TfidfTransformer() X_train_tfidf = tfidf_transformer.fit_transform(X_train_counts) X_train_tfidf.shape # - # ## 3. Text Classification # # ### 3.1 MultinomialNB from sklearn.naive_bayes import MultinomialNB clf = MultinomialNB().fit(X_train_tfidf, twenty_train.target) # + from sklearn.pipeline import Pipeline text_clf = Pipeline([('vect',CountVectorizer()), ('tfidf',TfidfTransformer()), ('clf',MultinomialNB())]) text_clf = text_clf.fit(twenty_train.data, twenty_train.target) # + import numpy as np twenty_test = fetch_20newsgroups(subset = 'test', shuffle = True) predicted = text_clf.predict(twenty_test.data) np.mean(predicted == twenty_test.target) # - # ### 3.2 SGDClassifier # + from sklearn.linear_model import SGDClassifier text_clf_svm = Pipeline([('vect', CountVectorizer()),('tfidf',TfidfTransformer()), ('clf-svm',SGDClassifier(loss = 'hinge', penalty = 'l2', alpha = 1e-3,max_iter = 5, random_state = 42))]) text_clf_svm = text_clf_svm.fit(twenty_train.data, twenty_train.target) predicted_svm = text_clf_svm.predict(twenty_test.data) np.mean(predicted_svm == twenty_test.target) # - # ## 4. GridSearch # # Find the best parameters # ### 4.1 GridSearch for MultinomialNB # + # Grid Search # Here, we are creating a list of parameters for which we would like to do performance tuning. # All the parameters name start with the classifier name (remember the arbitrary name we gave). # E.g. vect__ngram_range; here we are telling to use unigram and bigrams and choose the one which is optimal. from sklearn.model_selection import GridSearchCV parameters = {'vect__ngram_range':[(1,1),(1,2)], 'tfidf__use_idf':(True,False), 'clf__alpha':(1e-2,1e-3)} # + gs_clf = GridSearchCV(text_clf, parameters, n_jobs = -1) gs_clf = gs_clf.fit(twenty_train.data, twenty_train.target) # - print(gs_clf.best_score_) print(gs_clf.best_params_) # Output for above should be: The accuracy has now increased to ~90.6% for the NB classifier (not so naive anymore! 😄) # and the corresponding parameters are {‘clf__alpha’: 0.01, ‘tfidf__use_idf’: True, ‘vect__ngram_range’: (1, 2)}. # ### 4.2 GridSearch for MultinomialNB # + from sklearn.model_selection import GridSearchCV parameters_svm = {'vect__ngram_range':[(1,1),(1,2)], 'tfidf__use_idf':(True,False), 'clf-svm__alpha':(1e-2,1e-3)} gs_clf_svm = GridSearchCV(text_clf_svm, parameters_svm, n_jobs = -1) gs_clf_svm = gs_clf_svm.fit(twenty_train.data, twenty_train.target) print(gs_clf_svm.best_score_) print(gs_clf_svm.best_params_) # + from sklearn.pipeline import Pipeline text_clf = Pipeline([('vect',CountVectorizer(stop_words = 'english')), ('tfidf', TfidfTransformer()), ('clf',MultinomialNB())]) # + # Try NLTK import nltk nltk.download() # Removing stop words from nltk.stem.snowball import SnowballStemmer stemmer = SnowballStemmer("english", ignore_stopwords = True) class StemmedCountVectorizer(CountVectorizer): def build_analyzer(self): analyzer = super(StemmedCountVectorizer, self).build_analyzer() return lambda doc:([stemmer.stem(w) for w in analyzer(doc)]) stemmed_count_vect = StemmedCountVectorizer(stop_words = 'english') text_mnb_stemmed = Pipeline([('vect', stemmed_count_vect), ('tfidf',TfidfTransformer()), ('mnb',MultinomialNB(fit_prior = False))]) text_mnb_stemmed = text_mnb_stemmed.fit(twenty_train.data, twenty_train.target) predicted_mnb_stemmed = text_mnb_stemmed.predict(twenty_test.data) np.mean(predicted_mnb_stemmed == twenty_test.target) # - # ## 5 Model Performance # ### 5.1 Cross Validation # + from sklearn.model_selection import cross_val_score cross_val_score(gs_clf,twenty_train.data, twenty_train.target, cv=3, scoring = "accuracy" ) # - # All accuracy larger than 90%. # ### 5.2 Confusion Matrix # + from sklearn.model_selection import cross_val_predict from sklearn.metrics import confusion_matrix y_train_pred = cross_val_predict(gs_clf,twenty_train.data, twenty_train.target, cv=3) confusion_matrix(twenty_train.target, y_train_pred) # - # * row represents the actual category # * col represents the predicted category # processing, it is a representation of the short term power spectrum of a sound based on a linear cosine transform of a log power spectrum on a non-linear mel scale of frequency.* # # *It provides us enough frequency channels to analyze the audio.* # + colab={"base_uri": "https://localhost:8080/", "height": 349} id="yAz879O1duuK" outputId="eb33f92f-7bae-44b7-916d-e27ffbaeb4ac" plt.figure(figsize=(20,5)) x, sr = librosa.load(audio_path) librosa.display.waveplot(x, sr=sr) # + colab={"base_uri": "https://localhost:8080/", "height": 369} id="-x-XAx8teCBx" outputId="dfd8a5d4-c065-4de0-9ee7-31a61f2ae756" # MFCC plt.figure(figsize=(20,5)) mfccs = librosa.feature.mfcc(x, sr=sr) print(mfccs.shape) librosa.display.specshow(mfccs, sr=sr, x_axis='time') # + colab={"base_uri": "https://localhost:8080/", "height": 351} id="9SqnpA-WeetC" outputId="aab7c41a-088b-4a58-8e46-ad4cea03af44" plt.figure(figsize=(20,5)) librosa.display.specshow(mfccs, sr=sr, x_axis='log') # + [markdown] id="DbJSx92JfkCn" # ## ***Feature Scaling*** # *- Scaling the MFCCs such that each coefficient dimension has zero mean and unit variance.* # + colab={"base_uri": "https://localhost:8080/"} id="7suHMyzyf0aM" outputId="f79e46db-b183-42ee-ea9d-d2e636ba9f0a" mfccs = sklearn.preprocessing.scale(mfccs, axis=1) print(mfccs.mean(axis=1)) print(mfccs.var(axis=1)) # + colab={"base_uri": "https://localhost:8080/", "height": 515} id="iTHqQs6QgFM0" outputId="0d24eb21-a5f9-477e-f906-367fe6607d42" plt.figure(figsize=(20,8)) librosa.display.specshow(mfccs, sr=sr, x_axis='time') # + colab={"base_uri": "https://localhost:8080/", "height": 515} id="-TK8UAITgSRy" outputId="4b544e0e-d232-4fe6-bc27-ee93edd3d603" plt.figure(figsize=(20,8)) librosa.display.specshow(mfccs, sr=sr, x_axis='log') # + [markdown] id="3ppalssajln1" # ## ***Chroma Frequencies*** # *- Chroma features are an interesting and powerful representation for music audio in which the entire spectrum is projected onto 12 bins representing the 12 distinct semitones (or chroma) of the musical octave.* # + colab={"base_uri": "https://localhost:8080/", "height": 75} id="4SH9UTAWj93-" outputId="46808a54-5810-417a-fbbd-ba2e04145095" # Loading the file x, sr = librosa.load(audio_path) ipd.Audio(x, rate=sr) # + colab={"base_uri": "https://localhost:8080/", "height": 369} id="2KzCTJMlkITg" outputId="313cec0e-14d5-4b46-8e1f-5314f831f2f4" hop_length = 512 chromagram = librosa.feature.chroma_stft(x, sr=sr, hop_length=hop_length) plt.figure(figsize=(15,5)) librosa.display.specshow(chromagram, x_axis='time', y_axis='chroma', hop_length=hop_length, cmap='coolwarm') plt.colorbar() plt.tight_layout() plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 369} id="I1jsW6tbkzGU" outputId="a066f3d3-3ff9-4da0-9362-4afd181f3b3b" # Using chroma energy distribution normalized statistics (CENS), # typically used to identify similarity between different interpretations of the music given. hop_length = 512 chromagram = librosa.feature.chroma_cens(x, sr=sr, hop_length=hop_length) plt.figure(figsize=(15,5)) librosa.display.specshow(chromagram, x_axis='time', y_axis='chroma', hop_length=hop_length, cmap='coolwarm') plt.colorbar() plt.tight_layout() plt.show()
9,604
/week3/week3_task2_fine_tuning_clean.ipynb
86c258591c0e5601cec01d6ba348f1c1eac13fac
[]
no_license
DieMyst/intro-to-dl
https://github.com/DieMyst/intro-to-dl
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
19,162
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="https://cocl.us/topNotebooksPython101Coursera"> # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Ad/TopAd.png" width="750" align="center"> # </a> # </div> # <a href="https://cognitiveclass.ai/"> # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Ad/CCLog.png" width="200" align="center"> # </a> # <h1>Reading Files Python</h1> # <p><strong>Welcome!</strong> This notebook will teach you about reading the text file in the Python Programming Language. By the end of this lab, you'll know how to read text files.</p> # <h2>Table of Contents</h2> # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <ul> # <li><a href="download">Download Data</a></li> # <li><a href="read">Reading Text Files</a></li> # <li><a href="better">A Better Way to Open a File</a></li> # </ul> # <p> # Estimated time needed: <strong>40 min</strong> # </p> # </div> # # <hr> # <h2 id="download">Download Data</h2> # + # Download Example file # !wget -O ./Example1.txt https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/labs/example1.txt # - # <hr> # <h2 id="read">Reading Text Files</h2> # One way to read or write a file in Python is to use the built-in <code>open</code> function. The <code>open</code> function provides a <b>File object</b> that contains the methods and attributes you need in order to read, save, and manipulate the file. In this notebook, we will only cover <b>.txt</b> files. The first parameter you need is the file path and the file name. An example is shown as follow: # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%204/Images/ReadOpen.png" width="500" /> # The mode argument is optional and the default value is <b>r</b>. In this notebook we only cover two modes:  # <ul> # <li><b>r</b> Read mode for reading files </li> # <li><b>w</b> Write mode for writing files</li> # </ul> # For the next example, we will use the text file <b>Example1.txt</b>. The file is shown as follow: # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%204/Images/ReadFile.png" width="200" /> # We read the file: # + # Read the Example1.txt example1 = "./Example1.txt" file1 = open(example1, "r") # - # We can view the attributes of the file. # The name of the file: # + # Print the path of file file1.name # - # The mode the file object is in: # + # Print the mode of file, either 'r' or 'w' file1.mode # - # We can read the file and assign it to a variable : # + # Read the file FileContent = file1.read() FileContent # - # The <b>/n</b> means that there is a new line. # We can print the file: # + # Print the file with '\n' as a new line print(FileContent) # - # The file is of type string: # + # Type of file content type(FileContent) # - # We must close the file object: # + # Close file after finish file1.close() # - # <hr> # <h2 id="better">A Better Way to Open a File</h2> # Using the <code>with</code> statement is better practice, it automatically closes the file even if the code encounters an exception. The code will run everything in the indent block then close the file object. # + # Open file using with with open(example1, "r") as file1: FileContent = file1.read() print(FileContent) # - # The file object is closed, you can verify it by running the following cell: # + # Verify if the file is closed file1.closed # - # We can see the info in the file: # + # See the content of file print(FileContent) # - # The syntax is a little confusing as the file object is after the <code>as</code> statement. We also don’t explicitly close the file. Therefore we summarize the steps in a figure: # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%204/Images/ReadWith.png" width="500" /> # We don’t have to read the entire file, for example, we can read the first 4 characters by entering three as a parameter to the method **.read()**: # # + # Read first four characters with open(example1, "r") as file1: print(file1.read(4)) # - # Once the method <code>.read(4)</code> is called the first 4 characters are called. If we call the method again, the next 4 characters are called. The output for the following cell will demonstrate the process for different inputs to the method <code>read()</code>: # + # Read certain amount of characters with open(example1, "r") as file1: print(file1.read(4)) print(file1.read(4)) print(file1.read(7)) print(file1.read(15)) # - # The process is illustrated in the below figure, and each color represents the part of the file read after the method <code>read()</code> is called: # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%204/Images/ReadChar.png" width="500" /> # Here is an example using the same file, but instead we read 16, 5, and then 9 characters at a time: # + # Read certain amount of characters with open(example1, "r") as file1: print(file1.read(16)) print(file1.read(5)) print(file1.read(9)) # - # We can also read one line of the file at a time using the method <code>readline()</code>: # + # Read one line with open(example1, "r") as file1: print("first line: " + file1.readline()) # - # We can use a loop to iterate through each line: # # + # Iterate through the lines with open(example1,"r") as file1: i = 0; for line in file1: print("Iteration", str(i), ": ", line) i = i + 1; # - # We can use the method <code>readlines()</code> to save the text file to a list: # + jupyter={"outputs_hidden": true} # Read all lines and save as a list with open(example1, "r") as file1: FileasList = file1.readlines() # - # Each element of the list corresponds to a line of text: # + # Print the first line FileasList[0] # + # Print the second line FileasList[1] # + # Print the third line FileasList[2] # - # <hr> # <h2>The last exercise!</h2> # <p>Congratulations, you have completed your first lesson and hands-on lab in Python. However, there is one more thing you need to do. The Data Science community encourages sharing work. The best way to share and showcase your work is to share it on GitHub. By sharing your notebook on GitHub you are not only building your reputation with fellow data scientists, but you can also show it off when applying for a job. Even though this was your first piece of work, it is never too early to start building good habits. So, please read and follow <a href="https://cognitiveclass.ai/blog/data-scientists-stand-out-by-sharing-your-notebooks/" target="_blank">this article</a> to learn how to share your work. # <hr> # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <h2>Get IBM Watson Studio free of charge!</h2> # <p><a href="https://cocl.us/bottemNotebooksPython101Coursera"><img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Ad/BottomAd.png" width="750" align="center"></a></p> # </div> # <h3>About the Authors:</h3> # <p><a href="https://www.linkedin.com/in/joseph-s-50398b136/" target="_blank">Joseph Santarcangelo</a> is a Data Scientist at IBM, and holds a PhD in Electrical Engineering. His research focused on using Machine Learning, Signal Processing, and Computer Vision to determine how videos impact human cognition. Joseph has been working for IBM since he completed his PhD.</p> # Other contributors: <a href="www.linkedin.com/in/jiahui-mavis-zhou-a4537814a">Mavis Zhou</a> # <hr> # <p>Copyright &copy; 2018 IBM Developer Skills Network. This notebook and its source code are released under the terms of the <a href="https://cognitiveclass.ai/mit-license/">MIT License</a>.</p> ine-tuning only last 50) for layer in model.layers[:-50]: layer.trainable = False # - # compile new model model.compile( loss='categorical_crossentropy', # we train 102-way classification optimizer=keras.optimizers.adamax(lr=1e-2), # we can take big lr here because we fixed first layers metrics=['accuracy'] # report accuracy during training ) # fine tune for 2 epochs model.fit_generator( train_generator(tr_files, tr_labels), steps_per_epoch=len(tr_files) // BATCH_SIZE, epochs=2, validation_data=train_generator(te_files, te_labels), validation_steps=len(te_files) // BATCH_SIZE // 2, callbacks=[keras_utils.TqdmProgressCallback()], verbose=0 ) ## GRADED PART, DO NOT CHANGE! # Accuracy on validation set test_accuracy = model.evaluate_generator( train_generator(te_files, te_labels), len(te_files) // BATCH_SIZE // 2 )[1] grader.set_answer("wuwwC", test_accuracy) print(test_accuracy) # you can make submission with answers so far to check yourself at this stage grader.submit(COURSERA_EMAIL, COURSERA_TOKEN) # That's it! Congratulations! # # What you've done: # - prepared images for the model # - implemented your own batch generator # - fine-tuned the pre-trained model
9,596
/0. Preparations/0. Preparations.ipynb
3e6796b1a6f13da5cc5aa5d787113e098da4de56
[]
no_license
mrayy/PracticalML
https://github.com/mrayy/PracticalML
5
2
null
null
null
null
Jupyter Notebook
false
false
.py
4,151
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Session 0: PML Tools Overview # # This manual contains an overview of the tools we will use across PML course. # # ## Github: # Github (https://github.com/) is an opensource platform to share code, data, and almost any file, and its commonly used by developers to maintain their code. I will mainly use this platform to upload materials related to the PML course, and in order to make sure all students are capable to use it, this section will cover the basics of Github. # # First, to use github you don't need an account unless you want to start sharing your own materials or you want to modify other's materials. It is highly recommended to use it with your team members to manage your projects, and keep track of who did what. # # The materials of this class will be always uploaded to the following repository: # https://github.com/mrayy/PracticalML # # I highly recommend you to hit "Watch" button in the upper right corner of the page in order to get notifications when new changes or new materials are added to this repository (You will need to create an account in this case). # # For managing your repository on your PC, you can use git tools, and most recommended is GitHub Desktop (https://desktop.github.com/) which is highly compatible with GitHub. After installing it, you can create new repositories and upload them to GitHub (after having an account), or downloading other's repositories using "Clone Repository" provided with the repository's URL. For example, you can download this repository to your pc using this URL: https://github.com/mrayy/PracticalML # # ## Processing: # Processing (https://processing.org/) is a commonly used tool by designers and creative artists due to its simplicity and ease to use, as well as due to its large libraries integrated into it. We will use this tool during the course to provide interactive contents and input to our learning algorithms. # # ## Wekinator: # Wekinator (http://www.wekinator.org/) is an opensource tool for ML, and is used due to its simplicity and ease to start with Machine Learning applications. It is used as mediator between your application and the ML model, and will receive the input and send back the output to your application. # # We will also use this tool initially to develop simple models and gesture recognition before we dive into more advance topics in ML. # ### For Mac OSX Catalina Users # # To run camera samples, you need to do the following: # # - Download the latest video library from the following URL: # <br>https://github.com/processing/processing-video/releases/download/r6-v2.0-beta4/video-2.0-beta4.zip # # - Unzip it to: # <br> ~/Documents/processing/libraries # # ![](./images/videolib.png) # # # - Open terminal and run the following commands: # # <pre> # xattr -p com.apple.quarantine ~/Documents/processing/libraries/video/library/macosx/libavcodec.58.35.100.dylib # xattr -w com.apple.quarantine "00c1;5dc1bfaa;Chrome;78F18F7D-3F71-4E55-8D58-BAB946AB4707" ~/Documents/processing/libraries/video/library/macosx/*.dylib # xattr -w com.apple.quarantine "00c1;5dc1bfaa;Chrome;78F18F7D-3F71-4E55-8D58-BAB946AB4707" ~/Documents/processing/libraries/video/library/macosx/gstreamer-1.0/*.dylib # </pre>
3,484
/05_Pandas_on_my_own/.ipynb_checkpoints/01_Pandas_Introducing_The_Dataset-checkpoint.ipynb
f6a81257205b74160c8efec3bcba6ba6868f26a6
[]
no_license
emunozlorenzo/MasterDataScience
https://github.com/emunozlorenzo/MasterDataScience
3
2
null
null
null
null
Jupyter Notebook
false
false
.py
16,753
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Pandas For Data Science: Introducing The Datasets # Based on Pandas Practices by Kevin Markham at PYCON CLEVELAND 2018 # #### Importing libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt # #### Reading Datastes # # - Dataset 1: Rhode Island Dataset from [Stanford Open Policing Project](https://openpolicing.stanford.edu/) # # - Dataset 2: [Ted Talks dataset from Kaggle Datasets](https://www.kaggle.com/rounakbanik/ted-talks) ri = pd.read_csv('police.csv') # + # Let's see the first 5 rows ri.head() # + # Rows and Columns ri.shape # + # Data Types ri.dtypes # - # #### NaN: Not a Number (Missing Values) # # _why can a value be missed in our Dataset?_ # # - It was __not recorded__ at the time # - __Data Corruption__ # - Redacted for __privacy__ # - It is __irrelevant__ for a patricular row # # _What is the value of having NaN values?_ # # - You are be able to __distinguish__ between the real data and the missing data # #### Finding Missing Values ri.isnull().head() # + # The count of missing data in each of these columns # Total Rows : 91741 ri.isnull().sum() # -
1,398
/Array practice 1.ipynb
fde065553d26c9ac25e0d369e5e641f88ff34a09
[]
no_license
Manish-Kumar-9782/Data-Structures-in-python
https://github.com/Manish-Kumar-9782/Data-Structures-in-python
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
9,998
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- list_of_words = ["Hello", "there.", "How", "are", "you", "doing?"] list_of_words check_for = ["How", "are"] check_for all(w in list_of_words for w in check_for)
432
/devel_notebooks/igraph_test_GN_and_N_fast.ipynb
82f3f2323eaf1ca3a38134e5d7505c34d693386a
[]
no_license
riblidezso/graph_clust_alg_comparison
https://github.com/riblidezso/graph_clust_alg_comparison
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
48,529
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # **[Machine Learning Course Home Page](https://www.kaggle.com/learn/machine-learning)** # # --- # # This exercise will test your ability to read a data file and understand statistics about the data. # # In later exercises, you will apply techniques to filter the data, build a machine learning model, and iteratively improve your model. # # The course examples use data from Melbourne. To ensure you can apply these techniques on your own, you will have to apply them to a new dataset (with house prices from Iowa). # # The exercises use a "notebook" coding environment. In case you are unfamiliar with notebooks, we have a [90-second intro video](https://www.youtube.com/watch?v=4C2qMnaIKL4). # # # Exercises # # Run the following cell to set up code-checking, which will verify your work as you go. # Set up code checking from learntools.core import binder binder.bind(globals()) from learntools.machine_learning.ex2 import * print("Setup Complete") # ## Step 1: Loading Data # Read the Iowa data file into a Pandas DataFrame called `home_data`. # + import pandas as pd # Path of the file to read iowa_file_path = '../input/home-data-for-ml-course/train.csv' # Fill in the line below to read the file into a variable home_data home_data = pd.read_csv(iowa_file_path) # Call line below with no argument to check that you've loaded the data correctly step_1.check() # - # Lines below will give you a hint or solution code #step_1.hint() step_1.solution() # ## Step 2: Review The Data # Use the command you learned to view summary statistics of the data. Then fill in variables to answer the following questions # Print summary statistics in next line home_data.describe() # + # What is the average lot size (rounded to nearest integer)? avg_lot_size =round(home_data["LotArea"].mean(),0) # As of today, how old is the newest home (current year - the date in which it was built) newest_home_age = 2021-home_data["YearBuilt"].max() # Checks your answers step_2.check() # - #step_2.hint() step_2.solution() # ## Think About Your Data # # The newest house in your data isn't that new. A few potential explanations for this: # 1. They haven't built new houses where this data was collected. # 1. The data was collected a long time ago. Houses built after the data publication wouldn't show up. # # If the reason is explanation #1 above, does that affect your trust in the model you build with this data? What about if it is reason #2? # # How could you dig into the data to see which explanation is more plausible? # # Check out this **[discussion thread](https://www.kaggle.com/learn-forum/60581)** to see what others think or to add your ideas. # # # Keep Going # # You are ready for **[Your First Machine Learning Model](https://www.kaggle.com/dansbecker/your-first-machine-learning-model).** # # --- # **[Machine Learning Course Home Page](https://www.kaggle.com/learn/machine-learning)** # #
3,178
/PythonML_Practice.ipynb
5921c345e28f3b0ee97af843e3fae1a4b5bfeb6d
[]
no_license
vijendranp/Python--Computational-Approach
https://github.com/vijendranp/Python--Computational-Approach
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
974
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/vijendranp/Hello-World/blob/master/PythonML_Practice.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + id="3TeXv5t2Y3ZC" colab_type="code" colab={}
570
/src/Henry/Gmail Analysis/Chi-squared, time prediction and linear regression/.ipynb_checkpoints/SARIMA-checkpoint.ipynb
7532c60ce2c7250301dcd12b70028c32daa936dd
[]
no_license
UNCG-CSE/G_Suite_Metrics
https://github.com/UNCG-CSE/G_Suite_Metrics
0
4
null
2019-12-12T21:47:23
2019-12-12T21:16:54
Jupyter Notebook
Jupyter Notebook
false
false
.py
2,673,838
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## Played with SARIMA, pmdarima, and fb prophet libraries. For true and accurate prediction, look at Testing Prophet with Multiplicity # + from dateutil.parser import parse import datetime as dt import numpy as np import matplotlib.pyplot as plt import statsmodels.api as sm from statsmodels.tsa.seasonal import seasonal_decompose from statsmodels.tsa.stattools import adfuller from statsmodels.graphics.tsaplots import plot_acf,plot_pacf import seaborn as sns import pandas as pd from scipy.stats import norm, kde, kstest, stats from numpy import inf import itertools # %matplotlib inline import warnings # %matplotlib inline sns.set() pd.set_option('display.max_rows', 2000) pd.set_option('display.width', 1000) data_path = "C:\\Users\\Henry\\Documents\\405-DataScience\\G_Suite_Metrics\\data\\Gmail\\cbt.csv" fa = pd.read_csv(data_path) data_path_write = 'C:\\Users\\Henry\\Documents\\405-DataScience\\G_Suite_Metrics\\data\\Gmail\\' # - fa['day'] = pd.to_datetime(fa['day']) fa['day']= fa.day.dt.date fa.set_index('day', inplace=True) fa.index.freq = 'D' # + # noo fa = fa1[['time', 'emails_received']].copy() #fa['time'] = pd.to_datetime(fa['time'], utc = True) #fa['time']= fa.time.dt.date #fa.set_index('time', inplace=True) # - fa.size fa.index.freq = 'D' fa train, test = fa.iloc[:1268], fa.iloc[1268:] train = train.asfreq('D') test = test.asfreq('D') def find_best_sarima(train, eval_metric): p = d = q = range(0, 2) pdq = list(itertools.product(p, d, q)) seasonal_pdq = [(x[0], x[1], x[2], 12) for x in list(itertools.product(p, d, q))] counter = 0 myDict = {} for param in pdq: for param_seasonal in seasonal_pdq: try: counter += 1 mod = sm.tsa.statespace.SARIMAX(train, order=param, seasonal_order=param_seasonal, enforce_stationarity=False, enforce_invertibility=False) results = mod.fit() myDict[counter] = [results.aic, results.bic, param, param_seasonal] except: continue dict_to_df = pd.DataFrame.from_dict(myDict,orient='index') if eval_metric == 'aic': best_run = dict_to_df[dict_to_df[0] == dict_to_df[0].min()].index.values best_run = best_run[0] elif eval_metric == 'bic': best_run = dict_to_df[dict_to_df[1] == dict_to_df[1].min()].index.values best_run = best_run[0] model = sm.tsa.statespace.SARIMAX(train, order=myDict[best_run][2], seasonal_order=myDict[best_run][3], enforce_stationarity=False, enforce_invertibility=False).fit() best_model = {'model':model, 'aic':model.aic, 'bic':model.bic, 'order':myDict[best_run][2], 'seasonal_order':myDict[best_run][3]} return best_model # + #best = find_best_sarima(train, 'bic') best = sm.tsa.statespace.SARIMAX(train, order=(1,1,1),seasonal_order=(2,0,0,365)) # - best = best.fit() best test['emails_received'].index[0] #import datetime as dt test['emails_received'].index[-1] #pred= best['model'].predict(start= test.index[0] ,end = test.index[-1]) pred= best.predict(end = test.index[-1]) pred pred.plot() # + plt.figure(figsize=(22, 10)) plt.plot(train.index, train, label='Train') plt.plot(pred.index, pred, label='SARIMA', color='r') plt.plot(test.index, test, label='Test', color='k') plt.legend(loc='best', fontsize='xx-large') plt.show() # - from matplotlib import pyplot pyplot.plot(test) #pyplot.plot(pred.index, color='red') pyplot.plot(pred) pyplot.plot(test.values) from matplotlib import pyplot pyplot.plot(fa) pyplot.plot(predictions, color='red') plt.figure(figsize=(200,10)) pyplot.show() from pmdarima.arima import auto_arima stepwise_model = auto_arima(train, start_p=1, start_q=1, max_p=2, max_q=2, m=12, start_P=0, seasonal=True, d=1, D=1, trace=True, error_action='ignore', suppress_warnings=True, stepwise=True) train = train.fillna(0) fa.size stepwise_model.summary() pred= stepwise_model.predict() plt.plot(pred) plt.plot(test) from fbprophet import Prophet fa['day'] = pd.to_datetime(fa['day']) fa['day']= fa.day.dt.date fa.index.freq = 'D' df_new = fa.rename(columns={"day": "ds", "emails_received": "y"}) m = Prophet(daily_seasonality=True) m.fit(df_new) # df is a pandas.DataFrame with 'y' and 'ds' columns future = m.make_future_dataframe(periods=365) e = m.predict(future) m.plot_components(e) e e['yhat']
5,260
/dashboard.ipynb
1e7374e7b23ef2d6c8314b800850b88d6ce446cf
[]
no_license
kielwheat/SF_realestate_analysis_PyViz
https://github.com/kielwheat/SF_realestate_analysis_PyViz
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
6,219,403
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # Can I make one page-sized plot that contains all the interesting detail? # + import numpy as np import matplotlib.pyplot as plt import astropy.io.fits as fits import os import glob from scipy.interpolate import interp1d from scipy.io.idl import readsav from astropy.table import Table from astropy.io import ascii import astropy.units as u import astropy.constants as const from astropy.modeling import models, fitting from craftroom import resample from matplotlib import cm from astropy.convolution import convolve, Box1DKernel #matplotlib set up # %matplotlib inline from matplotlib import rcParams rcParams["figure.figsize"] = (14, 5) rcParams["font.size"] = 20 # - t1data = Table.read('../../common/quicksaves/2MASS-J23062928-0502285_basic.ecsv') w, f, e = t1data['WAVELENGTH'], t1data['FLUX'], t1data['ERROR'] m1data = Table.read('saved_models/trappist-1_model_const_res_v07.ecsv') m1w, m1f = m1data['WAVELENGTH'], m1data['FLUX'] # + plt.figure(figsize=(12, 16)) plt.subplot(311) labely = 1.7e-14 labelfac = 1.05 plt.errorbar((15,50),(labely, labely), yerr= [[0.05*labely, 0.05*labely],[0,0]], c ='k') plt.annotate('XMM', (20, labelfac*labely)) plt.errorbar((50,100),(labely, labely), yerr= [[0.05*labely, 0.05*labely],[0,0]], c ='k') plt.annotate('APEC', (55, labelfac*labely)) plt.errorbar((100,1060),(labely, labely), yerr= [[0.05*labely, 0.05*labely],[0,0]], c ='k') plt.annotate('DEM', (250, labelfac*labely)) plt.errorbar((1068, 5692),(labely, labely), yerr= [[0.05*labely, 0.05*labely],[0,0]], c ='k') plt.annotate('HST', (2000, labelfac*labely)) plt.errorbar((5692, 54963),(labely, labely), yerr= [[0.05*labely, 0.05*labely],[0,0]], c ='k') plt.annotate('PHOENIX', (11000, labelfac*labely)) #plt.step(w[f>0], f[f>0],label ='TRAPPIST-1 (M8)', where='mid') plt.step(w, f,label ='TRAPPIST-1 (M8)', where='mid') plt.xscale('log') #plt.yscale('log') #plt.xlim(100, 1000) #plt.xlim(90, 10000) #ax.fill_between([0,900],0,1, facecolor='#99ccff') #plt.annotate('X-ray/EUV: Thermosphere heating/removal', (12, 1e-22)) #ax.fill_between([900,2000],0,1, facecolor='#99ff66') #ax.fill_between([2000,4000],0,1, facecolor='#ffff99') #plt.annotate('FUV/NUV:\n Photochemistry', (1000, 1e-22)) #ax.fill_between([4000,60000],0,1, facecolor='#ff9933') #plt.annotate('Visible/IR: \n Atmosphere \& surface heating', (4100, 1e-22)) plt.xlim(11, 110000) plt.ylim(-0.1e-14, 2.1e-14) #plt.ylim(1e-18, 0.2e-11) #plt.xlabel('Wavelength (\AA)') plt.ylabel('Flux (erg s$^{-1}$cm$^{-2}$\AA$^{-1}$)') #plt.tight_layout() plt.subplot(312) # - # Cross sections cs_path = '/home/david/work/muscles/cross_sections/' cs = glob.glob('{}*_cs.txt'.format(cs_path)) cs # + def make_mol_label(name): #turns molcule filenames into formated labels #print(name) label = r'' for l in name: if l.isalpha(): label +=l.upper() elif l.isnumeric(): label += '$_{{{}}}$'.format(l) return label for section in cs: print(section) mol = np.genfromtxt(section, names=True) filename = os.path.split(section)[1] label = make_mol_label(filename[:-7]) molcs = convolve(mol['Total'],Box1DKernel(5)) plt.plot(mol['Lambda'], molcs, label=labels) plt.legend() plt.xscale('log') #plt.yscale('log') #plt.ylim(1e-17) plt.xlim(11, 110000) # -
3,586
/Open CV Information.ipynb
d5c83ddd5bc6529f34f7acb09811e7c34faf1159
[]
no_license
RoodraKanwar/OpenCV
https://github.com/RoodraKanwar/OpenCV
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
23,310
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import cv2 # # # READS IMAGE # + img = cv2.imread('puppy.jpg') #TO PRINT THE IMAGE, USE THIS cv2.imshow("Output",img) # 0 Means the window will not close and 1 means Millisecond here cv2.waitKey(0) # - # # FOR VIDEO RUNNING # + import cv2 #Capture Video in variable cap = cv2.VideoCapture("sample.mp4") while True: #Here img reads the frame per second and success tells us whether the frame was stored successfully in img success, img = cap.read() cv2.imshow("Video",img) if cv2.waitKey(0) & 0xFF ==ord('q'): break # - # # FOR WEBCAM # # + import cv2 cap = cv2.VideoCapture(0) #3 sets the width cap.set(3,640) #4 sets the height cap.set(4,480) #10 sets the brightness cap.set(10,50) while True: success, img = cap.read() cv2.imshow("Video",img) k = cv2.waitKey(30) & 0xff if k==27: break cap.release() # - # # Convert Color Channels # # + import cv2 img = cv2.imread("puppy.jpg") #Kernel Imported #Converts Color imggray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) #Converts the image into Blurred Image wtih 7x7 size..NOTE @@@@ Keep the value odd such as 7,7 or 5,5 or 3,3 imgblur = cv2.GaussianBlur(imggray,(7,7),0) #To find edges of our image imgcanny = cv2.Canny(img,100,100) cv2.imshow("Gray Image",imggray) cv2.imshow("Blur Image",imgblur) cv2.imshow("Edges of Image",imgcanny) cv2.waitKey(0) # + #To increase image dialation, you need a KERNEL(MATRIX), so import NUMPY import numpy as np #np.uint8 means a maximum of 256 values kernel = np.ones((5,5),np.uint8) #Dilate is used to increase the thickness of features imgdialation = cv2.dilate(imgcanny,kernel,iterations=1) #Erode is used to limit the thickness of features imgerode = cv2.erode(imgdialation,kernel,iterations=1) cv2.imshow("Dialation Image",imgdialation) cv2.imshow("Eroded Image",imgerode) # - # # RESIZING AND CROPPING # + import cv2 img = cv2.imread('puppy.jpg') print(img.shape) imgres = cv2.resize(img,(300,200)) print(imgres.shape) # HEIGHT PARAMETER AND THEN WIDTH PARTAMETER imgcrop = img[0:200,150:200] cv2.imshow("Image",imgres) cv2.imshow("Image",img) cv2.imshow("Cropped Image",imgcrop) cv2.waitKey(0) # - # # NAMING PICTURES # # + import cv2 import numpy as np #WITH 512 and 512, it is grayscale image and adding 3 makes is coloured img = np.zeros((512,512,3),np.uint8) #255 in first shows blue scale image. #img[:] = 255,0,0 #this shows image in a box img[200:300,100:300] = 255,0,0 #(0,0) represents starting pt of line, (300,300) represents end pt of life and ((0,255,0),3) represents color cv2.line(img,(0,0),(300,300),(0,255,0),3) # If you want a line till the end, use this......img.shape[1] represents width and img.shape[0] represents height cv2.line(img,(0,0),(img.shape[1],img.shape[0]),(0,255,0),3) #(0,0) represents starting, (250,350) represents end, (0,0,255) represents color and ,5 represents thickness cv2.rectangle(img,(0,0),(250,350),(0,0,255),5) cv2.rectangle(img,(0,0),(250,350),(0,0,255),cv2.FILLED) #(400,50) is mid point of circle, 30 is radius, (255,255,0) is color and 5 is thickness cv2.circle(img,(400,50),30,(255,255,0),5) #(300,100)pt. to start text, font, format, color and thickness cv2.putText(img," OPENCV ",(300,100),cv2.FONT_HERSHEY_COMPLEX,1,(255,255,0),1) cv2.imshow("Image",img) cv2.waitKey(0) # - # # Warp Perspective # Basically this helps pick out a particular coordinates of the image from the original image # + import cv2 import numpy as np img = cv2.imread("puppy.jpg") width,height = 250,350 pts1 = np.float32([[5,150],[10,200],[50,150],[60,250]]) pts2 = np.float32([[0,0],[width,0],[0,height],[width,height]]) matrix = cv2.getPerspectiveTransform(pts1,pts2) imgoutput = cv2.warpPerspective(img,matrix,(width,height)) cv2.imshow("Image",img) cv2.imshow('Output',imgoutput) cv2.waitKey(0) # - # # Joining Images # + import cv2 import numpy as np img = cv2.imread("puppy.jpg") imgHor = np.hstack((img,img)) imgVer = np.vstack((img,img)) cv2.imshow("Stacked Horizontal Image",imgHor) cv2.imshow("Stacked Vertical Image",imgVer) cv2.waitKey(0) # - # # Color Detection # # + import cv2 import numpy as np def empty(a): pass def stackImages(scale,imgArray): rows = len(imgArray) cols = len(imgArray[0]) rowsAvailable = isinstance(imgArray[0], list) width = imgArray[0][0].shape[1] height = imgArray[0][0].shape[0] if rowsAvailable: for x in range ( 0, rows): for y in range(0, cols): if imgArray[x][y].shape[:2] == imgArray[0][0].shape [:2]: imgArray[x][y] = cv2.resize(imgArray[x][y], (0, 0), None, scale, scale) else: imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale) if len(imgArray[x][y].shape) == 2: imgArray[x][y]= cv2.cvtColor( imgArray[x][y], cv2.COLOR_GRAY2BGR) imageBlank = np.zeros((height, width, 3), np.uint8) hor = [imageBlank]*rows hor_con = [imageBlank]*rows for x in range(0, rows): hor[x] = np.hstack(imgArray[x]) ver = np.vstack(hor) else: for x in range(0, rows): if imgArray[x].shape[:2] == imgArray[0].shape[:2]: imgArray[x] = cv2.resize(imgArray[x], (0, 0), None, scale, scale) else: imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0].shape[0]), None,scale, scale) if len(imgArray[x].shape) == 2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR) hor= np.hstack(imgArray) ver = hor return ver path = 'puppy.png' cv2.namedWindow("TrackBars") cv2.resizeWindow("TrackBars",640,240) cv2.createTrackbar("Hue Min","TrackBars",0,179,empty) cv2.createTrackbar("Hue Max","TrackBars",19,179,empty) cv2.createTrackbar("Sat Min","TrackBars",110,255,empty) cv2.createTrackbar("Sat Max","TrackBars",240,255,empty) cv2.createTrackbar("Val Min","TrackBars",153,255,empty) cv2.createTrackbar("Val Max","TrackBars",255,255,empty) while True: img = cv2.imread(path) imgHSV = cv2.cvtColor(img,cv2.COLOR_BGR2HSV) h_min = cv2.getTrackbarPos("Hue Min","TrackBars") h_max = cv2.getTrackbarPos("Hue Max", "TrackBars") s_min = cv2.getTrackbarPos("Sat Min", "TrackBars") s_max = cv2.getTrackbarPos("Sat Max", "TrackBars") v_min = cv2.getTrackbarPos("Val Min", "TrackBars") v_max = cv2.getTrackbarPos("Val Max", "TrackBars") print(h_min,h_max,s_min,s_max,v_min,v_max) lower = np.array([h_min,s_min,v_min]) upper = np.array([h_max,s_max,v_max]) mask = cv2.inRange(imgHSV,lower,upper) imgResult = cv2.bitwise_and(img,img,mask=mask) # cv2.imshow("Original",img) # cv2.imshow("HSV",imgHSV) # cv2.imshow("Mask", mask) # cv2.imshow("Result", imgResult) imgStack = stackImages(0.6,([img,imgHSV],[mask,imgResult])) cv2.imshow("Stacked Images", imgStack) cv2.waitKey(1) # - # # Picture Stacking Function # def stackImages(scale,imgArray): rows = len(imgArray) cols = len(imgArray[0]) rowsAvailable = isinstance(imgArray[0], list) width = imgArray[0][0].shape[1] height = imgArray[0][0].shape[0] if rowsAvailable: for x in range ( 0, rows): for y in range(0, cols): if imgArray[x][y].shape[:2] == imgArray[0][0].shape [:2]: imgArray[x][y] = cv2.resize(imgArray[x][y], (0, 0), None, scale, scale) else: imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale) if len(imgArray[x][y].shape) == 2: imgArray[x][y]= cv2.cvtColor( imgArray[x][y], cv2.COLOR_GRAY2BGR) imageBlank = np.zeros((height, width, 3), np.uint8) hor = [imageBlank]*rows hor_con = [imageBlank]*rows for x in range(0, rows): hor[x] = np.hstack(imgArray[x]) ver = np.vstack(hor) else: for x in range(0, rows): if imgArray[x].shape[:2] == imgArray[0].shape[:2]: imgArray[x] = cv2.resize(imgArray[x], (0, 0), None, scale, scale) else: imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0].shape[0]), None,scale, scale) if len(imgArray[x].shape) == 2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR) hor= np.hstack(imgArray) ver = hor return ver # # Shape Detection and Contour # + import cv2 import numpy as np def stackImages(scale,imgArray): rows = len(imgArray) cols = len(imgArray[0]) rowsAvailable = isinstance(imgArray[0], list) width = imgArray[0][0].shape[1] height = imgArray[0][0].shape[0] if rowsAvailable: for x in range ( 0, rows): for y in range(0, cols): if imgArray[x][y].shape[:2] == imgArray[0][0].shape [:2]: imgArray[x][y] = cv2.resize(imgArray[x][y], (0, 0), None, scale, scale) else: imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale) if len(imgArray[x][y].shape) == 2: imgArray[x][y]= cv2.cvtColor( imgArray[x][y], cv2.COLOR_GRAY2BGR) imageBlank = np.zeros((height, width, 3), np.uint8) hor = [imageBlank]*rows hor_con = [imageBlank]*rows for x in range(0, rows): hor[x] = np.hstack(imgArray[x]) ver = np.vstack(hor) else: for x in range(0, rows): if imgArray[x].shape[:2] == imgArray[0].shape[:2]: imgArray[x] = cv2.resize(imgArray[x], (0, 0), None, scale, scale) else: imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0].shape[0]), None,scale, scale) if len(imgArray[x].shape) == 2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR) hor= np.hstack(imgArray) ver = hor return ver def getContours(img): #The 'RETR_EXTERNAL' finds the outer contours contours,hierarchy = cv2.findContours(img,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_NONE) #This finds an iteration for contours in canny images searched through all contours for cnt in contours: area = cv2.contourArea(cnt) print(area) #Till here it draws a contour around images #If area is > 500, then it discards the shapes if area>500: cv2.drawContours(imgContour, cnt, -1, (255, 0, 0), 3) #Finds the perimeter of contours and the 'True' means the contours are closed. peri = cv2.arcLength(cnt,True) #print(peri) #Gives the corner points of Contours and 'True' means that the contours are closed. approx = cv2.approxPolyDP(cnt,0.02*peri,True) #The length of 'approx' means the overall length of contour by taking end points print(len(approx)) #This gives a bounding box around the contours objCor = len(approx) x, y, w, h = cv2.boundingRect(approx) if objCor ==3: objectType ="Tri" elif objCor == 4: aspRatio = w/float(h) if aspRatio >0.98 and aspRatio <1.03: objectType= "Square" else:objectType="Rectangle" elif objCor>4: objectType= "Circles" else:objectType="None" #This puts a rectangle contour at the particular coordinate cv2.rectangle(imgContour,(x,y),(x+w,y+h),(0,255,0),2) #The "(x+(w//2)-10)" and "(y+(h//2)-10)" are used to select the coordinates where text starts cv2.putText(imgContour,objectType, (x+(w//2)-10,y+(h//2)-10),cv2.FONT_HERSHEY_COMPLEX,0.7, (0,0,0),2) path = 'shapes.png' img = cv2.imread(path) #copies the original image to be passed to image contour imgContour = img.copy() imgGray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) imgBlur = cv2.GaussianBlur(imgGray,(7,7),1) imgCanny = cv2.Canny(imgBlur,50,50) getContours(imgCanny) imgBlank = np.zeros_like(img) imgStack = stackImages(0.5,([img,imgGray,imgBlur], [imgCanny,imgContour,imgBlank])) cv2.imshow("Stack", imgStack) cv2.waitKey(0) # - # # Face Detection # + import cv2 faceCascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") img = cv2.imread('1.jpg') imgGray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale(imgGray,1.1,4) for (x,y,w,h) in faces: cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2) cv2.imshow("Result",img) cv2.waitKey(0) # -
13,030
/Notebooks/EnisBerk/TransferLearningVggish.ipynb
acc646e571d5dff9cf5538d299cf250f291ad9f8
[]
no_license
Yunhua468/Audio-Visual-Emotion-and-Sentiment-Research
https://github.com/Yunhua468/Audio-Visual-Emotion-and-Sentiment-Research
3
0
null
null
null
null
Jupyter Notebook
false
false
.py
7,524
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + id="DYd3hHcU3HZw" colab_type="code" colab={} # !wget https://zenodo.org/api/files/c8f9b6fe-82ac-481c-ad9c-12b5581cb4b4/Audio_Song_Actors_01-24.zip # !wget https://zenodo.org/api/files/c8f9b6fe-82ac-481c-ad9c-12b5581cb4b4/Audio_Speech_Actors_01-24.zip # !unzip -q -d ./song Audio_Song_Actors_01-24.zip # !unzip -q -d ./speech Audio_Speech_Actors_01-24.zip # + [markdown] id="GSbSeXk43OP3" colab_type="text" # Modality (01 = full-AV, 02 = video-only, 03 = audio-only). # # Vocal channel (01 = speech, 02 = song). # # Emotion (01 = neutral, 02 = calm, 03 = happy, 04 = sad, 05 = angry, 06 = fearful, 07 = disgust, 08 = surprised). # # Emotional intensity (01 = normal, 02 = strong). NOTE: There is no strong intensity for the 'neutral' emotion. # # Statement (01 = "Kids are talking by the door", 02 = "Dogs are sitting by the door"). # # Repetition (01 = 1st repetition, 02 = 2nd repetition). # # Actor (01 to 24. Odd numbered actors are male, even numbered actors are female). # + [markdown] id="yUf4FwvSuj8Z" colab_type="text" # ### here you need to download files from github repo, I did not add it since I sync my local to colab # + id="F1zb2qOlz_f5" colab_type="code" colab={} # !unzip -q Audio-Visual-Emotion-and-Sentiment-Research-audio.zip # !mv Audio-Visual-Emotion-and-Sentiment-Research-audio ./Audio-Visual-Emotion-and-Sentiment-Research/ # + id="Yr8r99PzuZkY" colab_type="code" colab={} # %% codecell # pydub is required and not in colab already # !pip install soundfile # %% codecell # get model files and place in assets folder # !wget https://max-assets-prod.s3.us-south.cloud-object-storage.appdomain.cloud/max-audio-classifier/1.0.0/assets.tar.gz # !tar -xzvf assets.tar.gz # !mv classifier_model.h5 ./Audio-Visual-Emotion-and-Sentiment-Research/assets/ # !mv vggish_pca_params.npz ./Audio-Visual-Emotion-and-Sentiment-Research/assets/ # !mv vggish_model.ckpt ./Audio-Visual-Emotion-and-Sentiment-Research/assets/ # + id="mutkoRT9YrlT" colab_type="code" outputId="b0f4bcf3-efb1-4ff6-cf4e-6cfe3a0f663b" colab={"base_uri": "https://localhost:8080/", "height": 51} # %tensorflow_version 1.x # # %cd ./Audio-Visual-Emotion-and-Sentiment-Research/ import os import sys module_path = os.path.abspath(os.path.join('./Audio-Visual-Emotion-and-Sentiment-Research/Scripts')) print(module_path) if module_path not in sys.path: sys.path.append(module_path) # + id="pz68sxjjwfSK" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="f9a92c1c-be87-4de5-ffab-be09652cc7c4" # %% codecell import tensorflow as tf from models_api import VggishModelWrapper import pre_process_func Vgg=VggishModelWrapper() # + id="SM5Jpeuslq6k" colab_type="code" colab={} import glob file_list=glob.glob("./speech/**/*.wav")+glob.glob("./song/**/*.wav") raw={} post={} for wavFile in file_list: sound = pre_process_func.pre_process(wavFile) raw_embeddings,post_processed_embed =Vgg.generate_embeddings(sound) filename=wavFile.split("/")[-1] raw[filename]=raw_embeddings post[filename]=post_processed_embed # + id="SCufMjyL7_Xz" colab_type="code" colab={} # + id="8Klqlly2r5EW" colab_type="code" colab={} import pickle embeddings={"raw":raw,"post":post} with open('embeddings.dat', 'wb') as outfile: pickle.dump(embeddings, outfile, protocol=pickle.HIGHEST_PROTOCOL) # + id="is8UHE__y68h" colab_type="code" colab={} import pickle with open('embeddings.dat', 'rb') as file: embeddings=pickle.load(file) # + id="sPcfDAaHy_3s" colab_type="code" colab={} # + id="qDgWA-s-zIwb" colab_type="code" colab={}
3,834
/hw_webinar_1.ipynb
e44b0dfea3baf7d93085610edfe9f2b67b586889
[]
no_license
olhaexe/RecSys
https://github.com/olhaexe/RecSys
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
5,785
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Домашнее задание - 1 # Заполните пропуски #your_code для функций ниже # + import numpy as np recommended_list = [143, 156, 1134, 991, 27, 1543, 3345, 533, 11, 43] #id товаров bought_list = [521, 32, 143, 991] prices_recommended = [100, 90, 10, 450, 50, 37, 99, 120, 34, 100] prices_bought = [110, 190, 100, 450] # - def hit_rate_at_k(recommended_list, bought_list, k=5): flags = np.isin(bought_list, recommended_list[:k]) hit_rate = (flags.sum() > 0) * 1 return hit_rate def money_precision_at_k(recommended_list, bought_list, prices_recommended, k=5): bought_list = np.array(bought_list) recommended_list = np.array(recommended_list) prices_recommended = np.array(prices_recommended) bought_list = bought_list # Тут нет [:k] !! recommended_list = recommended_list[:k] prices_recommended = prices_recommended[:k] flags = np.isin(recommended_list, bought_list) precision = (flags*prices_recommended).sum() / prices_recommended.sum() return precision # + def recall_at_k(recommended_list, bought_list, k=5): bought_list = np.array(bought_list) recommended_list = np.array(recommended_list[:k]) flags = np.isin(bought_list, recommended_list) recall = flags.sum() / len(bought_list) return recall def money_recall_at_k(recommended_list, bought_list, prices_recommended, prices_bought, k=5): bought_list = np.array(bought_list) prices_bought = np.array(prices_bought) recommended_list = np.array(recommended_list[:k]) prices_recommended = np.array(prices_recommended[:k]) flags = np.isin(bought_list, recommended_list) recall = (flags*prices_bought).sum() / prices_bought.sum() return recall # - def reciprocal_rank(recommended_list, bought_list): flags = np.isin(recommended_list, bought_list) if sum(flags) == 0: return 0 sum_ = 0 count = 0 for i in range(1, len(flags)+1): if flags[i-1]: sum_ += 1/i count += 1 result = sum_ / count return result hit_rate_at_k(recommended_list, bought_list, k=5) money_precision_at_k(recommended_list, bought_list, prices_recommended, k=5) recall_at_k(recommended_list, bought_list, k=5) money_recall_at_k(recommended_list, bought_list, prices_recommended, prices_bought, k=5) reciprocal_rank(recommended_list, bought_list)
2,719
/Aula7_Analise_Exploratoria.ipynb
68d7293545fa546ad5103df4517b5d14a776e1e0
[]
no_license
clerisson-san/Analise_de_dados_com_Python_e_Pandas_by_DIO
https://github.com/clerisson-san/Analise_de_dados_com_Python_e_Pandas_by_DIO
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
162,232
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/clerisson-san/Analise_de_dados_com_Python_e_Pandas_by_DIO/blob/main/Aula7_Analise_Exploratoria.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + id="G5HpRApza9UR" #Importando as bibliotecas import pandas as pd import matplotlib.pyplot as plt plt.style.use("seaborn") # + id="3qLVp0Z_bUXq" colab={"base_uri": "https://localhost:8080/", "height": 361} outputId="02568dba-b32d-4da5-ed91-6c4c51d9e972" #Upload do arquivo from google.colab import files arq = files.upload() # + id="Rpxs2yU0ba23" #Criando nosso DataFrame df = pd.read_excel("AdventureWorks.xlsx") # + id="DPOEg0MikIXG" colab={"base_uri": "https://localhost:8080/", "height": 496} outputId="fcb255e3-9b0b-44a8-c2e9-5b9b54e78cc0" #Visualizando as 5 primeiras linhas df.head() # + id="UCJpu--kK9wo" colab={"base_uri": "https://localhost:8080/"} outputId="5cb5fda3-300f-4452-d9c6-ca040b32fa98" #Quantidade de linhas e colunas df.shape # + id="P9S1i8o1lUu-" colab={"base_uri": "https://localhost:8080/", "height": 306} outputId="6197dad1-cbfe-444a-a212-1bfa12541ebd" #Verificando os tipos de dados df.dtypes # + id="duheNX1GlhWw" colab={"base_uri": "https://localhost:8080/"} outputId="5b094161-87b4-40bf-c1d7-08674c42d770" #Qual a Receita total? df["Valor Venda"].sum() # + id="IHop-35BlyDO" #Qual o custo Total? df["custo"] = df["Custo Unitário"].mul(df["Quantidade"]) #Criando a coluna de custo # + id="3fy4QmNLmMWd" colab={"base_uri": "https://localhost:8080/", "height": 496} outputId="65336711-ca9f-4d81-c30a-627dd499f4d7" df.head(5) # + id="Uj7LTfyumqcn" colab={"base_uri": "https://localhost:8080/"} outputId="5b655a13-006c-49d9-cd89-5419d0a31c5f" #Qual o custo Total? round(df["custo"].sum(), 2) # + id="dcL7yq6dm6-R" #Agora que temos a receita e custo e o total, podemos achar o Lucro total #Vamos criar uma coluna de Lucro que será Receita - Custo df["lucro"] = df["Valor Venda"] - df["custo"] # + id="AESBzwFuqgy4" colab={"base_uri": "https://localhost:8080/", "height": 168} outputId="a832d8aa-bbee-41c6-e823-5844dd61890c" df.head(1) # + id="odfh78ayqpN4" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="8e29504f-0eb5-4bc7-8312-ae1df3d7de5f" #Total Lucro round(df["lucro"].sum(),2) # + id="dOlaVDsFqv-t" #Criando uma coluna com total de dias para enviar o produto df["Tempo_envio"] = df["Data Envio"] - df["Data Venda"] # + id="xzf6mIH5r3vy" colab={"base_uri": "https://localhost:8080/", "height": 496} outputId="a318dad1-f885-4809-fa49-a650858d8e2a" df.head(5) # + [markdown] id="tYKqnysZthDh" # **Agora, queremos saber a média do tempo de envio para cada Marca, e para isso precisamos transformar a coluna Tempo_envio em númerica** # + id="eUAJwu45uVV-" #Extraindo apenas os dias df["Tempo_envio"] = (df["Data Envio"] - df["Data Venda"]).dt.days # + id="MngNW5dZxjh_" colab={"base_uri": "https://localhost:8080/", "height": 168} outputId="84238e66-8470-4300-b651-91bbfc119829" df.head(1) # + id="k9le4YEvxlow" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="4fa5b1a9-e7c4-43ba-f074-7e539c3faf8e" #Verificando o tipo da coluna Tempo_envio df["Tempo_envio"].dtype # + id="VtCqhtr60byy" colab={"base_uri": "https://localhost:8080/", "height": 102} outputId="8f08f2ff-50b9-40c3-b103-153a19a4e335" #Média do tempo de envio por Marca df.groupby("Marca")["Tempo_envio"].mean() # + [markdown] id="I1sg7kwKjuU1" # **Missing Values** # + id="a26UV-kTjmog" colab={"base_uri": "https://localhost:8080/"} outputId="6a58ad81-8003-4a58-ae16-8d6cd80156e4" #Verificando se temos dados faltantes df.isnull().sum() # + [markdown] id="Mh40m00N0lQE" # **E, se a gente quiser saber o Lucro por Ano e Por Marca?** # + id="7CPhZjrJ00a1" colab={"base_uri": "https://localhost:8080/"} outputId="252524b6-442f-4dbc-a64f-d97f93c7c07d" #Vamos Agrupar por ano e marca df.groupby([df["Data Venda"].dt.year, "Marca"])["lucro"].sum() # + id="kZ3lxKGabXeq" pd.options.display.float_format = '{:20,.2f}'.format # + id="knQfX6NC3GMc" colab={"base_uri": "https://localhost:8080/", "height": 235} outputId="e93b984f-4a3b-4d96-c4be-bd32c80d32b0" #Resetando o index lucro_ano = df.groupby([df["Data Venda"].dt.year, "Marca"])["lucro"].sum().reset_index() lucro_ano # + id="0xu9qx1x4WM6" colab={"base_uri": "https://localhost:8080/"} outputId="97e9bc9e-f824-48f4-f5d4-068ffcb5be76" #Qual o total de produtos vendidos? df.groupby("Produto")["Quantidade"].sum().sort_values(ascending=False) # + id="Ov8qN2bI56NI" colab={"base_uri": "https://localhost:8080/", "height": 294} outputId="ac4fb254-6e32-4acd-fead-b04082766781" #Gráfico Total de produtos vendidos df.groupby("Produto")["Quantidade"].sum().sort_values(ascending=True).plot.barh(title="Total Produtos Vendidos") plt.xlabel("Total") plt.ylabel("Produto"); # + id="qFQBaeXNcMd4" colab={"base_uri": "https://localhost:8080/", "height": 307} outputId="9dab4b40-57a9-41b4-e08a-c01b390f6b98" df.groupby(df["Data Venda"].dt.year)["lucro"].sum().plot.bar(title="Lucro x Ano") plt.xlabel("Ano") plt.ylabel("Receita"); # + id="4-FPJ5dP5saX" colab={"base_uri": "https://localhost:8080/"} outputId="47d54856-ee18-43ae-d624-1cb0e05c8bda" df.groupby(df["Data Venda"].dt.year)["lucro"].sum() # + id="qEjCs7y77966" #Selecionando apenas as vendas de 2009 df_2009 = df[df["Data Venda"].dt.year == 2009] # + id="GiL4JRnU_LSf" colab={"base_uri": "https://localhost:8080/", "height": 496} outputId="2c5fb3db-a399-4272-af7c-e0ac7a0d295e" df_2009.head() # + id="xaH-Ym6h_SG9" colab={"base_uri": "https://localhost:8080/", "height": 294} outputId="40a45664-3afc-4db7-9f8c-a7edf3adde38" df_2009.groupby(df_2009["Data Venda"].dt.month)["lucro"].sum().plot(title="Lucro x Mês") plt.xlabel("Mês") plt.ylabel("Lucro"); # + id="8HDLr3pp_hqf" colab={"base_uri": "https://localhost:8080/", "height": 294} outputId="688d9fdf-e0cf-412c-fb07-7136bf3893d9" df_2009.groupby("Marca")["lucro"].sum().plot.bar(title="Lucro x Marca") plt.xlabel("Marca") plt.ylabel("Lucro") plt.xticks(rotation='horizontal'); # + id="xguSC8ya_mr7" colab={"base_uri": "https://localhost:8080/", "height": 294} outputId="d3d6957f-8f78-4c60-9621-c4350d58fef0" df_2009.groupby("Classe")["lucro"].sum().plot.bar(title="Lucro x Classe") plt.xlabel("Classe") plt.ylabel("Lucro") plt.xticks(rotation='horizontal'); # + id="IbO8CjekDdbk" colab={"base_uri": "https://localhost:8080/"} outputId="ee36832e-e5de-4db2-d89a-984b5da54e30" df["Tempo_envio"].describe() # + id="yVBuChl7D-LK" colab={"base_uri": "https://localhost:8080/", "height": 347} outputId="4a661f48-67f7-414e-9993-941548179c6d" #Gráfico de Boxplot plt.boxplot(df["Tempo_envio"]); # + id="AAso8LU5GiFN" colab={"base_uri": "https://localhost:8080/", "height": 265} outputId="e12a92e9-9dc6-4921-9331-fde660a0b6a2" #Histograma plt.hist(df["Tempo_envio"]); # + id="hkxhLlATHMN3" colab={"base_uri": "https://localhost:8080/"} outputId="5ddd41fd-17d8-44e7-bb18-466b0851a161" #Tempo mínimo de envio df["Tempo_envio"].min() # + id="qg1q3fAKIDtM" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="9f4667ac-1557-4591-9fdc-5436c14099c5" #Tempo máximo de envio df['Tempo_envio'].max() # + id="BiOyhekfIgLb" colab={"base_uri": "https://localhost:8080/", "height": 168} outputId="d7f75506-4083-4989-b510-2930cd10a432" #Identificando o Outlier df[df["Tempo_envio"] == 20] # + id="xL5IKMeeLI6v" df.to_csv("df_vendas_novo.csv", index=False) # + id="NLtTuecu62_h"
7,761
/start.ipynb
dbda13c6603f1d4b3e763c30dd573484cacb869c
[]
no_license
BetterWill/Test_01
https://github.com/BetterWill/Test_01
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
55,641
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + active="" # select aa.asset_seriesName_showTitle_channelName, session_videoType, count(1) ct, avg(aa.asset_contentLengthMs / 60000) as cl, APPROX_QUANTILES(session_playTimeMs, 100)[offset(80)] / 60000 AS pt80, APPROX_QUANTILES(session_playTimeMs, 100)[offset(81)] / 60000 AS pt81, APPROX_QUANTILES(session_playTimeMs, 100)[offset(82)] / 60000 AS pt82, APPROX_QUANTILES(session_playTimeMs, 100)[offset(83)] / 60000 AS pt83, APPROX_QUANTILES(session_playTimeMs, 100)[offset(84)] / 60000 AS pt84, APPROX_QUANTILES(session_playTimeMs, 100)[offset(85)] / 60000 AS pt85, APPROX_QUANTILES(session_playTimeMs, 100)[offset(86)] / 60000 AS pt86, APPROX_QUANTILES(session_playTimeMs, 100)[offset(87)] / 60000 AS pt87, APPROX_QUANTILES(session_playTimeMs, 100)[offset(88)] / 60000 AS pt88, APPROX_QUANTILES(session_playTimeMs, 100)[offset(89)] / 60000 AS pt89, APPROX_QUANTILES(session_playTimeMs, 100)[offset(90)] / 60000 AS pt90, APPROX_QUANTILES(session_playTimeMs, 100)[offset(91)] / 60000 AS pt91, APPROX_QUANTILES(session_playTimeMs, 100)[offset(92)] / 60000 AS pt92, APPROX_QUANTILES(session_playTimeMs, 100)[offset(93)] / 60000 AS pt93, APPROX_QUANTILES(session_playTimeMs, 100)[offset(94)] / 60000 AS pt94, APPROX_QUANTILES(session_playTimeMs, 100)[offset(95)] / 60000 AS pt95, APPROX_QUANTILES(session_playTimeMs, 100)[offset(96)] / 60000 AS pt96, APPROX_QUANTILES(session_playTimeMs, 100)[offset(97)] / 60000 AS pt97, APPROX_QUANTILES(session_playTimeMs, 100)[offset(98)] / 60000 AS pt98, APPROX_QUANTILES(session_playTimeMs, 100)[offset(99)] / 60000 AS pt99, APPROX_QUANTILES(session_playTimeMs, 100)[offset(100)] / 60000 AS pt100 from (select asset_seriesName_showTitle_channelName, session_playTimeMs, asset_contentLengthMs, session_videoType, session_date from sony_sne.customer_view_by_uniqueid)aa where aa.session_date > '2019-10-01' and aa.session_videoType = 'VOD' group by 1, 2 order by 3 desc # + # %matplotlib inline import pandas as pd import numpy as np import seaborn as sns import pylab pylab.rcParams['figure.figsize'] = (30.0, 15.0) # 显示大小 # + data_path = './data/cl_data.csv' data = pd.read_csv(data_path) data # - data.columns data_vod = data[data['session_videoType'] == 'VOD'] data_live = data[data['session_videoType'] == 'LIVE'] data_vod data_live # ## Test Accuracy in different APPROX_QUANTILES data.columns.values for ix in range (4, 25): print(ix, data.columns.values[ix], ' percentile estimate ', pd.Series(data['cl'] - data.iloc[:, ix]).sum()) # # Live for ix in range (4, 25): print(ix, data_live.columns.values[ix], ' percentile estimate ', pd.Series(data_live['cl'] - data.iloc[:, ix]).sum()) for ix in range (4, 25): print(ix, data_live.columns.values[ix], ' percentile estimate ', pd.Series((data_live['cl'] - data_live.iloc[:, ix]) * data_live['ct']).sum()/100000) # # VoD for ix in range (4, 25): print(ix, data_vod.columns.values[ix], ' percentile estimate ', pd.Series(data_vod['cl'] - data.iloc[:, ix]).sum()) for ix in range (4, 25): print(ix, data_vod.columns.values[ix], ' percentile estimate ', pd.Series((data_vod['cl'] - data_vod.iloc[:, ix]) * data_vod['ct']).sum()/100000) est_iter = d2l.load_data_fashion_mnist(batch_size, resize=224) d2l.train_ch6(net, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())
3,568
/Playground/MNIST_random_classification.ipynb
f79331bfc086d4d892fcd10f7b43f0722b226f43
[]
no_license
Black3rror/AI
https://github.com/Black3rror/AI
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
39,465
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] colab_type="text" id="view-in-github" # <a href="https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/content%2Fw2d5_tutorial_revs/tutorials/W2D5_ReinforcementLearning/W2D5_Tutorial1.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] colab_type="text" id="YL2_mjdRyaSg" # # Neuromatch Academy: Week 2, Day 5, Tutorial 1 # # Learning to Predict # # __Content creators:__ Marcelo Mattar and Eric DeWitt with help from Matt Krause # # __Content reviewers:__ Byron Galbraith and Michael Waskom # # + [markdown] colab_type="text" id="JTnwS5ZOyaSm" # --- # # # Tutorial objectives # # In this tutorial, we will learn how to estimate state-value functions in a classical conditioning paradigm using Temporal Difference (TD) learning and examine TD-errors at the presentation of the conditioned and unconditioned stimulus (CS and US) under different CS-US contingencies. These exercises will provide you with an understanding of both how reward prediction errors (RPEs) behave in classical conditioning and what we should expect if Dopamine represents a "canonical" model-free RPE. # # At the end of this tutorial: # * You will learn to use the standard tapped delay line conditioning model # * You will understand how RPEs move to CS # * You will understand how variability in reward size effects RPEs # * You will understand how differences in US-CS timing effect RPEs # + cellView="code" colab={} colab_type="code" id="Tr8AjcsFyaSh" # Imports import numpy as np import matplotlib.pyplot as plt # + cellView="form" colab={} colab_type="code" id="OjLe4R9uumHw" #@title Figure settings import ipywidgets as widgets # interactive display # %config InlineBackend.figure_format = 'retina' plt.style.use("https://raw.githubusercontent.com/NeuromatchAcademy/course-content/master/nma.mplstyle") # + cellView="form" colab={} colab_type="code" id="UBN49ga4u7_n" # @title Helper functions from matplotlib import ticker def plot_value_function(V, ax=None, show=True): """Plot V(s), the value function""" if not ax: fig, ax = plt.subplots() ax.stem(V, use_line_collection=True) ax.set_ylabel('Value') ax.set_xlabel('State') ax.set_title("Value function: $V(s)$") if show: plt.show() def plot_tde_trace(TDE, ax=None, show=True, skip=400): """Plot the TD Error across trials""" if not ax: fig, ax = plt.subplots() indx = np.arange(0, TDE.shape[1], skip) im = ax.imshow(TDE[:,indx]) positions = ax.get_xticks() # Avoid warning when setting string tick labels ax.xaxis.set_major_locator(ticker.FixedLocator(positions)) ax.set_xticklabels([f"{int(skip * x)}" for x in positions]) ax.set_title('TD-error over learning') ax.set_ylabel('State') ax.set_xlabel('Iterations') ax.figure.colorbar(im) if show: plt.show() def learning_summary_plot(V, TDE): """Summary plot for Ex1""" fig, (ax1, ax2) = plt.subplots(nrows = 2, gridspec_kw={'height_ratios': [1, 2]}) plot_value_function(V, ax=ax1, show=False) plot_tde_trace(TDE, ax=ax2, show=False) plt.tight_layout() def reward_guesser_title_hint(r1, r2): """"Provide a mildly obfuscated hint for a demo.""" if (r1==14 and r2==6) or (r1==6 and r2==14): return "Technically correct...(the best kind of correct)" if ~(~(r1+r2) ^ 11) - 1 == (6 | 24): # Don't spoil the fun :-) return "Congratulations! You solved it!" return "Keep trying...." #@title Default title text class ClassicalConditioning: def __init__(self, n_steps, reward_magnitude, reward_time): # Task variables self.n_steps = n_steps self.n_actions = 0 self.cs_time = int(n_steps/4) - 1 # Reward variables self.reward_state = [0,0] self.reward_magnitude = None self.reward_probability = None self.reward_time = None self.set_reward(reward_magnitude, reward_time) # Time step at which the conditioned stimulus is presented # Create a state dictionary self._create_state_dictionary() def set_reward(self, reward_magnitude, reward_time): """ Determine reward state and magnitude of reward """ if reward_time >= self.n_steps - self.cs_time: self.reward_magnitude = 0 else: self.reward_magnitude = reward_magnitude self.reward_state = [1, reward_time] def get_outcome(self, current_state): """ Determine next state and reward """ # Update state if current_state < self.n_steps - 1: next_state = current_state + 1 else: next_state = 0 # Check for reward if self.reward_state == self.state_dict[current_state]: reward = self.reward_magnitude else: reward = 0 return next_state, reward def _create_state_dictionary(self): """ This dictionary maps number of time steps/ state identities in each episode to some useful state attributes: state - 0 1 2 3 4 5 (cs) 6 7 8 9 10 11 12 ... is_delay - 0 0 0 0 0 0 (cs) 1 1 1 1 1 1 1 ... t_in_delay - 0 0 0 0 0 0 (cs) 1 2 3 4 5 6 7 ... """ d = 0 self.state_dict = {} for s in range(self.n_steps): if s <= self.cs_time: self.state_dict[s] = [0,0] else: d += 1 # Time in delay self.state_dict[s] = [1,d] class MultiRewardCC(ClassicalConditioning): """Classical conditioning paradigm, except that one randomly selected reward, magnitude, from a list, is delivered of a single fixed reward.""" def __init__(self, n_steps, reward_magnitudes, reward_time=None): """"Build a multi-reward classical conditioning environment Args: - nsteps: Maximum number of steps - reward_magnitudes: LIST of possible reward magnitudes. - reward_time: Single fixed reward time Uses numpy global random state. """ super().__init__(n_steps, 1, reward_time) self.reward_magnitudes = reward_magnitudes def get_outcome(self, current_state): next_state, reward = super().get_outcome(current_state) if reward: reward=np.random.choice(self.reward_magnitudes) return next_state, reward class ProbabilisticCC(ClassicalConditioning): """Classical conditioning paradigm, except that rewards are stochastically omitted.""" def __init__(self, n_steps, reward_magnitude, reward_time=None, p_reward=0.75): """"Build a multi-reward classical conditioning environment Args: - nsteps: Maximum number of steps - reward_magnitudes: Reward magnitudes. - reward_time: Single fixed reward time. - p_reward: probability that reward is actually delivered in rewarding state Uses numpy global random state. """ super().__init__(n_steps, reward_magnitude, reward_time) self.p_reward = p_reward def get_outcome(self, current_state): next_state, reward = super().get_outcome(current_state) if reward: reward*= int(np.random.uniform(size=1)[0] < self.p_reward) return next_state, reward # + [markdown] colab_type="text" id="0q72Sto0S2F5" # --- # # Section 1: TD-learning # + cellView="form" colab={"base_uri": "https://localhost:8080/", "height": 518} colab_type="code" id="3-im6zneSRW7" outputId="d2302f76-1f1d-477e-a3f5-eafc27aab0d4" #@title Video 1: Introduction from IPython.display import YouTubeVideo video = YouTubeVideo(id="YoNbc9M92YY", width=854, height=480, fs=1) print("Video available at https://youtu.be/" + video.id) video # + [markdown] colab_type="text" id="HB2U9wCNyaSo" # __Environment:__ # # - The agent experiences the environment in episodes or trials. # - Episodes terminate by transitioning to the inter-trial-interval (ITI) state and they are initiated from the ITI state as well. We clamp the value of the terminal/ITI states to zero. # - The classical conditioning environment is composed of a sequence of states that the agent deterministically transitions through. Starting at State 0, the agent moves to State 1 in the first step, from State 1 to State 2 in the second, and so on. These states represent time in the tapped delay line representation # - Within each episode, the agent is presented a CS and US (reward). # - For each exercise, we use a different CS-US contingency. # - The agent's goal is to learn to predict expected rewards from each state in the trial. # # # __Definitions:__ # # 1. Returns: # \begin{align} # G_{t} = r_{t+1} + \gamma r_{t+2} + \gamma^2 r_{t+3} + ... = \sum \limits_{k = 1}^{\infty} \gamma^{k-1} r_{t+k} # \end{align} # # 2. Value: # \begin{align} # V(s_{t}) = \mathbb{E} [ G_{t} | s_{t}] = \mathbb{E} [r_{t+1} + \gamma V_{t+1} | s_{t}] # \end{align} # # 3. TD-error: # \begin{align} # \delta_{t} = r_{t+1} + \gamma V(s_{t+1}) - V(s_{t}) # \end{align} # # 4. Value updates: # \begin{align} # V(s_{t}) \leftarrow V(s_{t}) + \alpha \delta_{t} # \end{align} # # + [markdown] colab_type="text" id="jMwFbZ-GvLhc" # ## Exercise 1: TD-learning with guaranteed rewards # # Implement TD-learning to estimate the state-value function in the classical-conditioning world with guaranteed rewards, with a fixed magnitude, at a fixed delay after the CS. Save TD-errors over learning so we can visualize them -- you're going to need to compute them anyway. # # Use the provided code to estimate the value function. # + colab={} colab_type="code" id="mr6FG_wFu0RD" def td_learner(env, n_trials, gamma=0.98, alpha=0.001): """ Temporal Difference learning Args: env (object): the environment to be learned n_trials (int): the number of trials to run gamma (float): temporal discount factor alpha (float): learning rate Returns: ndarray, ndarray: the value function and temporal difference error arrays """ V = np.zeros(env.n_steps) # Array to store values over states (time) TDE = np.zeros((env.n_steps, n_trials)) # Array to store TD errors for n in range(n_trials): state = 0 # Initial state for t in range(env.n_steps): # Get next state and next reward next_state, reward = env.get_outcome(state) # Is the current state in the delay period (after CS)? is_delay = env.state_dict[state][0] ######################################################################## ## TODO for students: implement TD error and value function update # Fill out function and remove raise NotImplementedError("Student excercise: implement TD error and value function update") ################################################################################# # Write an expression to compute the TD-error TDE[state, n] = ... # Write an expression to update the value function V[state] += ... # Update state state = next_state return V, TDE # Uncomment once the td_learner function is complete # env = ClassicalConditioning(n_steps=40, reward_magnitude=10, reward_time=10) # V, TDE = td_learner(env, n_trials=20000) # learning_summary_plot(V, TDE) # + colab={"base_uri": "https://localhost:8080/", "height": 429} colab_type="code" id="byxMuD1LxTVc" outputId="da1f9e77-97ec-456e-b6e5-3e64166ea982" #to_remove solution def td_learner(env, n_trials, gamma=0.98, alpha=0.001): """ Temporal Difference learning Args: env (object): the environment to be learned n_trials (int): the number of trials to run gamma (float): temporal discount factor alpha (float): learning rate Returns: ndarray, ndarray: the value function and temporal difference error arrays """ V = np.zeros(env.n_steps) # Array to store values over states (time) TDE = np.zeros((env.n_steps, n_trials)) # Array to store TD errors for n in range(n_trials): state = 0 # Initial state for t in range(env.n_steps): # Get next state and next reward next_state, reward = env.get_outcome(state) # Is the current state in the delay period (after CS)? is_delay = env.state_dict[state][0] # Write an expression to compute the TD-error TDE[state, n] = (reward + gamma * V[next_state] - V[state]) # Write an expression to update the value function V[state] += alpha * TDE[state, n] * is_delay # Update state state = next_state return V, TDE env = ClassicalConditioning(n_steps=40, reward_magnitude=10, reward_time=10) V, TDE = td_learner(env, n_trials=20000) with plt.xkcd(): learning_summary_plot(V, TDE) # + [markdown] colab_type="text" id="ROKwAo1FKAqe" # ## Interactive Demo 1: US to CS Transfer # # During classical conditioning, the subject's behavioral response (e.g., salivating) transfers from the unconditioned stimulus (US; like the smell of tasty food) to the conditioned stimulus (CS; like Pavlov ringing his bell) that predicts it. Reward prediction errors play an important role in this process by adjusting the value of states according to their expected, discounted return. # # Use the widget below to examine how reward prediction errors change over time. Before training (orange line), only the reward state has high reward prediction error. As training progresses (blue line, slider), the reward prediction errors shift to the conditioned stimulus, where they end up when the trial is complete (green line). # # Dopamine neurons, which are thought to carry reward prediction errors _in vivo_, show exactly the same behavior! # # + cellView="form" colab={"base_uri": "https://localhost:8080/", "height": 461, "referenced_widgets": ["1c791e2f446e4dd285c8967347be734b", "6cad7f364ffd4927926d0f6a08d6213f", "89c0229375a84de185c4f0114578ed09", "bbdcd8d2c92f425aa8c20f7e47e5e727", "495a849ed7304404ab2ba9e8bb9cc8ad", "02fd572f843e4138aee41d6f3b058790", "884533e643b54b4f80ea5023d9477626"]} colab_type="code" id="2UwSevZG82-M" outputId="e211b531-7b61-4a79-e0c6-f60e2a5b3504" #@title #@markdown Make sure you execute this cell to enable the widget! n_trials = 20000 @widgets.interact def plot_tde_by_trial(trial = widgets.IntSlider(value=5000, min=0, max=n_trials-1 , step=1, description="Trial #")): if 'TDE' not in globals(): print("Complete Exercise 1 to enable this interactive demo!") else: fig, ax = plt.subplots() ax.axhline(0, color='k') # Use this + basefmt=' ' to keep the legend clean. ax.stem(TDE[:, 0], linefmt='C1-', markerfmt='C1d', basefmt=' ', label="Before Learning (Trial 0)", use_line_collection=True) ax.stem(TDE[:, -1], linefmt='C2-', markerfmt='C2s', basefmt=' ', label="After Learning (Trial $\infty$)", use_line_collection=True) ax.stem(TDE[:, trial], linefmt='C0-', markerfmt='C0o', basefmt=' ', label=f"Trial {trial}", use_line_collection=True) ax.set_xlabel("State in trial") ax.set_ylabel("TD Error") ax.set_title("Temporal Difference Error by Trial") ax.legend() # + [markdown] colab_type="text" id="XZd8QkhKcHBQ" # ## Interactive Demo 2: Learning Rates and Discount Factors # # Our TD-learning agent has two parameters that control how it learns: $\alpha$, the learning rate, and $\gamma$, the discount factor. In Exercise 1, we set these parameters to $\alpha=0.001$ and $\gamma=0.98$ for you. Here, you'll investigate how changing these parameters alters the model that TD-learning learns. # # Before enabling the interactive demo below, take a moment to think about the functions of these two parameters. $\alpha$ controls the size of the Value function updates produced by each TD-error. In our simple, deterministic world, will this affect the final model we learn? Is a larger $\alpha$ necessarily better in more complex, realistic environments? # # The discount rate $\gamma$ applies an exponentially-decaying weight to returns occuring in the future, rather than the present timestep. How does this affect the model we learn? What happens when $\gamma=0$ or $\gamma \geq 1$? # # Use the widget to test your hypotheses. # # # # + cellView="form" colab={"base_uri": "https://localhost:8080/", "height": 494, "referenced_widgets": ["77f998f3160140bfbcaaa6b3b981acb2", "41fdf67eefee4b4e807f85d23ed6c81a", "58cdf8f357e24943b1479cce0b1eb639", "7b34445f59344edcad2c064fece1f150", "40524e90c7c74da283515bc84ce2543c", "0b0b91f8fba14251b27ee28c70133854", "96b07ee8588947e081d696fdc94bcb1b", "a50c7b2a97834fc89e738d5b1f6fce23", "f2a024230f434794a0c83818e580c68f", "219655c48ebb44fca9d24225400ae3c6"]} colab_type="code" id="C_9pB-UhkfHy" outputId="a8819e1d-d39a-48a4-8942-296d27dee278" #@title #@markdown Make sure you execute this cell to enable the widget! @widgets.interact def plot_summary_alpha_gamma(alpha = widgets.FloatSlider(value=0.0001, min=0.001, max=0.1, step=0.0001, description="alpha"), gamma = widgets.FloatSlider(value=0.980, min=0, max=1.1, step=0.010, description="gamma")): env = ClassicalConditioning(n_steps=40, reward_magnitude=10, reward_time=10) try: V_params, TDE_params = td_learner(env, n_trials=20000, gamma=gamma, alpha=alpha) except NotImplementedError: print("Finish Exercise 1 to enable this interactive demo") learning_summary_plot(V_params,TDE_params) # + colab={} colab_type="code" id="fSoRYk0DiAQA" #to_remove explanation """ Alpha determines how fast the model learns. In the simple, deterministic world we're using here, this allows the moodel to quickly converge onto the "true" model that heavily values the conditioned stimulus. In more complex environments, however, excessively large values of alpha can slow, or even prevent, learning, as we'll see later. Gamma effectively controls how much the model cares about the future: larger values of gamma cause the model to weight future rewards nearly as much as present ones. At gamma=1, the model weights all rewards, regardless of when they occur, equally and when greater than one, it starts to *prefer* rewards in the future, rather than the present (this is rarely good). When gamma=0, however, the model becomes greedy and only considers rewards that can be obtained immediately. """; # + [markdown] colab_type="text" id="Eruos0VKGaG1" # --- # # Section 2: TD-learning with varying reward magnitudes # # In the previous exercise, the environment was as simple as possible. On every trial, the CS predicted the same reward, at the same time, with 100% certainty. In the next few exercises, we will make the environment more progressively more complicated and examine the TD-learner's behavior. # # + [markdown] colab_type="text" id="d7jLqcoQtnLW" # ## Interactive Demo 3: Match the Value Functions # # First, will replace the environment with one that dispenses multiple rewards. Shown below is the final value function $V$ for a TD learner that was trained in an enviroment where the CS predicted rewards of 6 or 14 units (both equally likely). Can you find another pair of rewards, both equally likely, that exactly match this value function? # # Hints: # * Carefully consider the definition of the value function $V$. This can be solved analytically. # * There is no need to change $\alpha$ or $\gamma$. # * Due to the randomness, there may be a small amount of variation. # + cellView="form" colab={"base_uri": "https://localhost:8080/", "height": 493, "referenced_widgets": ["f14971dd12e84e9bb60f9f272652eb5f", "d98882811dcd4146adcdfcf09ccd467a", "5249f8b304b94b3394df785b2beca0bf", "b38b54b44e834478b4314ac53cebe443", "31617e91bd4745efb2c61d9fb6901a2c", "384645659aa04240a52857f63bec5aa1", "16d857923dc34a27878dab9d95a50033", "356b0a68c8b7496da9b1082d904d7a69", "852b766db6d34532968ccfc1ae6f2025", "db943755bdf84d8ea51ff58be7fdebc1"]} colab_type="code" id="ebkTe4kbHImq" outputId="17d844d3-a4f4-463f-ff47-be0991d03040" #@title #@markdown Make sure you execute this cell to enable the widget! n_trials = 20000 np.random.seed(2020) rng_state = np.random.get_state() env = MultiRewardCC(40, [6, 14], reward_time=10) V_multi, TDE_multi = td_learner(env, n_trials, gamma=0.98, alpha=0.001) @widgets.interact def reward_guesser_interaction(r1 = widgets.IntText(value=0, min=0, max=50, description="Reward 1"), r2 = widgets.IntText(value=0, min=0, max=50, description="Reward 2")): try: env2 = MultiRewardCC(40, [r1, r2], reward_time=10) V_guess, _ = td_learner(env2, n_trials, gamma=0.98, alpha=0.001) fig, ax = plt.subplots() m, l, _ = ax.stem(V_multi, linefmt='y-', markerfmt='yo', basefmt=' ', label="Target", use_line_collection=True) m.set_markersize(15) m.set_markerfacecolor('none') l.set_linewidth(4) m, _, _ = ax.stem(V_guess, linefmt='r', markerfmt='rx', basefmt=' ', label="Guess", use_line_collection=True) m.set_markersize(15) ax.set_xlabel("State") ax.set_ylabel("Value") ax.set_title("Guess V(s)\n" + reward_guesser_title_hint(r1, r2)) ax.legend() except NotImplementedError: print("Please finish Exercise 1 first!") # + [markdown] colab_type="text" id="MYPXCECE2w1G" # ## Section 2.1 Examining the TD Error # # Run the cell below to plot the TD errors from our multi-reward environment. A new feature appears in this plot? What is it? Why does it happen? # + colab={"base_uri": "https://localhost:8080/", "height": 421} colab_type="code" id="TlCisR8rHK43" outputId="4055d6ba-44d4-449e-ac02-88a5a9ccc809" plot_tde_trace(TDE_multi) # + colab={} colab_type="code" id="cgKx5wTk3hy-" #to_remove explanation """ The TD trace now takes on negative values because the reward delivered is sometimes larger than the expected reward and sometimes smaller. """; # + [markdown] colab_type="text" id="4Gi7Q1AFGeTU" # --- # # Section 3: TD-learning with probabilistic rewards # # In this environment, we'll return to delivering a single reward of ten units. However, it will be delivered intermittently: on 20 percent of trials, the CS will be shown but the agent will not receive the usual reward; the remaining 80% will proceed as usual. # # Run the cell below to simulate. How does this compare with the previous experiment? # # Earlier in the notebook, we saw that changing $\alpha$ had little effect on learning in a deterministic environment. What happens if you set it to an large value, like 1, in this noisier scenario? Does it seem like it will _ever_ converge? # + colab={"base_uri": "https://localhost:8080/", "height": 429} colab_type="code" id="LSn9SKRzLZ1t" outputId="4fa6612c-9a39-4eaa-a9ed-4189e1120425" np.random.set_state(rng_state) # Resynchronize everyone's notebooks n_trials = 20000 try: env = ProbabilisticCC(n_steps=40, reward_magnitude=10, reward_time=10, p_reward=0.8) V_stochastic, TDE_stochastic = td_learner(env, n_trials*2, alpha=1) learning_summary_plot(V_stochastic, TDE_stochastic) except NotImplementedError: print("Please finish Exercise 1 first") # + colab={} colab_type="code" id="Q6gf1HdZ9rFw" #to_remove explanation """ The multi-reward and probabilistic reward enviroments are the same. You could simulate a probabilistic reward of 10 units, delivered 50% of the time, by having a mixture of 10 and 0 unit rewards, or vice versa. The takehome message from these last three exercises is that the *average* or expected reward is what matters during TD learning. Large values of alpha prevent the TD Learner from converging. As a result, the value function seems implausible: one state may have an extremely low value while the neighboring ones remain high. This pattern persists even if training continues for hundreds of thousands of trials. """; # + [markdown] colab_type="text" id="CTABhuUPuoEW" # --- # # Summary # # In this notebook, we have developed a simple TD Learner and examined how its state representations and reward prediction errors evolve during training. By manipualting its environment and parameters ($\alpha$, $\gamma$), you developed an intuition for how it behaves. The takehope less # # This simple model closely resembles the behavior of subjects undergoing classical conditioning tasks and the dopamine neurons that may underlie that behavior. You may have implemented TD-reset or used the model to recreate a common experimental error. The update rule used here has been extensively studied for [more than 70 years](https://www.pnas.org/content/108/Supplement_3/15647) as a possible explanation for artificial and biological learning. # # However, you may have noticed that something is missing from this notebook. We carefully calculated the value of each state, but did not use it to actually do anything. Using values to plan _**Actions**_ is coming up next! # + [markdown] colab_type="text" id="vk8qckyuTK0O" # # Bonus # + [markdown] colab_type="text" id="s0IQkuPayaS5" # ## Exercise 2: TD-reset # # In this exercise we will implement a commonly used heuristic used in modeling activity of dopamine neurons, TD-reset. # Implement TD-learning as in previous exercises, but set TD-error to zero on all steps after reward (US). # # 1. Plot value function and TD-errors. # 2. Can you explain how the reset is changing the TD-errors and value function? # + colab={} colab_type="code" id="Ni9r7_csLwQr" def td_reset_learner(env, n_trials, alpha=0.25, gamma=0.98): """ Temporal Difference learning with the TD-reset update rule Args: env (object): the environment to be learned n_trials (int): the number of trials to run gamma (float): temporal discount factor alpha (float): learning rate Returns: ndarray, ndarray: the value function and temporal difference error arrays """ V = np.zeros(env.n_steps) TDE_reset = np.zeros((env.n_steps, n_trials)) for n in range(n_trials): state = 0 reset = False for t in range(env.n_steps): next_state, reward = env.get_outcome(state) is_delay = env.state_dict[state][0] ######################################################################## ## TODO for students: implement TD learning with the TD-reset update rule # Fill out function and remove raise NotImplementedError("Student excercise: implement TD learning with the TD-reset update rule") ######################################################################## # Write an expression to compute the TD-error using the TD-reset rule if reset: TDE_reset[state] = ... else: TDE_reset[state] = ... # Set reset flag if we receive a reward > 0 if reward > 0: reset = True # Write an expression to update the value function V[state] += ... # Update state state = next_state return V, TDE_reset # Uncomment these two lines to visualize your results # env = ProbabilisticCC(n_steps=40, reward_magnitude=10, reward_time=10, # p_reward=0.8) # V_reset, TDE_reset = td_reset_learner(env, n_trials=20000) # learning_summary_plot(V_reset, TDE_reset) # + colab={"base_uri": "https://localhost:8080/", "height": 429} colab_type="code" id="gjtFVHslLyMb" outputId="a456cef3-c2a5-4056-e9f1-e22a4a12e674" #to_remove solution def td_reset_learner(env, n_trials, alpha=0.25, gamma=0.98): """ Temporal Difference learning with reset Args: env (object): the environment to be learned n_trials (int): the number of trials to run gamma (float): temporal discount factor alpha (float): learning rate Returns: ndarray, ndarray: the value function and temporal difference error arrays """ V = np.zeros(env.n_steps) TDE_reset = np.zeros((env.n_steps, n_trials)) for n in range(n_trials): state = 0 reset = False for t in range(env.n_steps): next_state, reward = env.get_outcome(state) is_delay = env.state_dict[state][0] # Write an expression to compute the TD-error using the TD-reset rule if reset: TDE_reset[state] = 0 else: TDE_reset[state] = reward + gamma * V[next_state] - V[state] # Set reset flag if we receive a reward > 0 if reward > 0: reset = True # Write an expression to update the value function V[state] += alpha * TDE_reset[state,n] * is_delay # Update state state = next_state return V, TDE_reset env = ProbabilisticCC(n_steps=40, reward_magnitude=10, reward_time=10, p_reward=0.8) V_reset, TDE_reset = td_reset_learner(env, n_trials=20000) with plt.xkcd(): learning_summary_plot(V_reset, TDE_reset) # + [markdown] colab_type="text" id="4KpOTPk_JT1l" # ## Exercise 3: Removing the CS # # In Exercise 1, you (should have) included a term that depends on the conditioned stimulus. Remove it and see what happens. Do you understand why? # This phenomena often fools people attempting to train animals--beware! # + colab={} colab_type="code" id="gFQBlEkAJzOx" #to_remove explanation """ You should only be updating the V[state] once the conditioned stimulus appears. If you remove this term the Value Function becomes periodic, dropping towards zero right after the reward and gradually rising towards the end of the trial. This behavior is actually correct, because the model is learning the time until the *next* reward, and State 37 is closer to a reward than State 21 or 22. In an actual experiment, the animal often just wants rewards; it doesn't care about /your/ experiment or trial structure! """;
30,013
/book_code/ch4.ipynb
8ba4ffaa971fb0eb650776233f15dc0614a5c6b6
[]
no_license
jackmoody11/statistical-rethinking
https://github.com/jackmoody11/statistical-rethinking
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
197,676
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: 'Python 3.7.3 64-bit (''venv'': venv)' # name: python_defaultSpec_1597955304258 # --- # + # Book Code 4.5 import matplotlib.pyplot as plt import numpy as np log_big = np.array([np.log(np.product(1 + np.random.uniform(0, 0.5, 12))) for _ in range(1000)]) plt.hist(log_big) plt.show() # The code below ends up being non-normal because the multiplication process numbers away from 1 # does not behave like adding while multiplying numbers close to 1 does act like adding big = np.array([np.product(1 + np.random.uniform(0, 2, 12)) for _ in range(1000)]) plt.hist(big) plt.show() # - # Book Code 4.14 sample_mu = np.random.normal(178, 20, 1000) sample_sigma = np.random.uniform(0, 50, 1000) prior_h = np.random.normal(sample_mu, sample_sigma, 1000) plt.hist(prior_h) # Book Code 4.15 sample_mu = np.random.normal(178, 100, 1000) prior_h = np.random.normal(sample_mu, sample_sigma, 1000) plt.hist(prior_h) # + import matplotlib.pyplot as plt # 4M1 n_simulations = 1000 mu = np.random.normal(0, 10, n_simulations) sigma = np.random.exponential(1) y = np.random.normal(mu, sigma) plt.hist(y) # - # # 4M3 # # # $y_i \sim \text{Normal}(\mu, \sigma)$ # # $\mu_{i} \sim a + b \cdot x$ # # $a \sim \text{Normal}(0, 10)$ # # $b \sim \text{Uniform}(0, 1)$ # # $\sigma \sim \text{Exponential}(1)$ # # 4M4 # # $y_i \sim \text{Normal}(\mu, \sigma)$: Will model using linear regression # # $\mu_{i} \sim a + b \cdot x$: Expect average height to depend on year # # $a \sim \text{Normal}(0, 1)$: Coefficient for average height may vary depending on data and can be negative # # $b \sim \text{Log-Normal}(0, 1)$: Expect height of all students to increase over the course of the 3 years # # $\sigma \sim \text{Uniform}(0, 20)$: Variance must be positive. Uniform distribution helps us keep variance positive. # + # 4H1 import pandas as pd kung = pd.read_csv("../data/Howell1.csv", sep=";") kung = kung[kung.age >= 18] kung # - kung.loc[:, ['weight', 'height']].plot.scatter(x='weight', y='height')
2,203
/chapter3/ch3.ipynb
d3e2500390fdacd6b72768475141899c6ac631ad
[]
no_license
h-asano/nlp100knock
https://github.com/h-asano/nlp100knock
1
0
null
2017-01-29T06:35:14
2017-01-29T06:28:02
null
Jupyter Notebook
false
false
.py
33,645
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python [default] # language: python # name: python3 # --- # # 第3章: 正規表現 # --- # Wikipediaの記事を以下のフォーマットで書き出したファイル[jawiki-country.json.gz](http://www.cl.ecei.tohoku.ac.jp/nlp100/data/jawiki-country.json.gz)がある. # - 1行に1記事の情報がJSON形式で格納される # - 各行には記事名が"title"キーに,記事本文が"text"キーの辞書オブジェクトに格納され,そのオブジェクトがJSON形式で書き出される # - ファイル全体はgzipで圧縮される # # 以下の処理を行うプログラムを作成せよ. # ## 20. JSONデータの読み込み # Wikipedia記事のJSONファイルを読み込み,「イギリス」に関する記事本文を表示せよ.問題21-29では,ここで抽出した記事本文に対して実行せよ. # !wget 'http://www.cl.ecei.tohoku.ac.jp/nlp100/data/jawiki-country.json.gz' # + # %%file q20.py import json import sys for line in sys.stdin: wiki_dict = json.loads(line) if wiki_dict['title'] == 'イギリス': print(wiki_dict.get('text')) # - # !gzcat jawiki-country.json.gz | python q20.py > uk.txt # !head uk.txt # ### gzipコマンド # !gzip -dc jawiki-country.json.gz | python q20.py | head # ### python # + # %%file q20_2.py import gzip import json import sys with gzip.open('jawiki-country.json.gz') as fi: for line in fi: wiki_dict = json.loads(line.decode('utf-8')) if wiki_dict['title'] == 'イギリス': print(wiki_dict.get('text')) # - # !python q20_2.py | head # ## 21. カテゴリ名を含む行を抽出 # 記事中でカテゴリ名を宣言している行を抽出せよ. # + # %%file q21.py import sys for line in sys.stdin: lowered = line.lower() if lowered.startswith('[[category'): print(line.rstrip()) # - # !python q21.py < uk.txt # ## 22. カテゴリ名の抽出 # 記事のカテゴリ名を(行単位ではなく名前で)抽出せよ. # + # %%file q22.py import sys for line in sys.stdin: print(line.lower().lstrip("[[category:").rstrip("]]\n")) # - # !python q21.py < uk.txt | python q22.py # ## 23. セクション構造 # 記事中に含まれるセクション名とそのレベル(例えば"== セクション名 =="なら1)を表示せよ. # + # %%file q23.py # ==国名== → 国名 レベル1 import sys for line in sys.stdin: if line.startswith('=='): sec_name = line.strip('= \n') level = int(line.count('=')/2 - 1) print(sec_name, 'レベル'+str(level)) # - # !python q23.py < uk.txt | head # ## 24. ファイル参照の抽出 # 記事から参照されているメディアファイルをすべて抜き出せ. # + # %%file q24.py # [[File:Battle of Waterloo 1815.PNG| のようになっている import re import sys pat = re.compile(r'([fF]ile:|ファイル:)(?P<filename>.+?)\|') for line in sys.stdin: for m in pat.finditer(line): print(m.group('filename')) # - # !python q24.py < uk.txt | head # ## 25. テンプレートの抽出 # 記事中に含まれる「基礎情報」テンプレートのフィールド名と値を抽出し,辞書オブジェクトとして格納せよ. # + # %%file q25.py """ {{基礎情報 国 |略名 = イギリス |日本語国名 = グレートブリテン及び北アイルランド連合王国 |公式国名 = {{lang|en|United Kingdom of Great Britain and Northern Ireland}}<ref>英語以外での正式国名:<br/> *{{lang|gd|An Rìoghachd Aonaichte na Breatainn Mhòr agus Eirinn mu Thuath}}([[スコットランド・ゲール語]])<br/> *{{lang|cy|Teyrnas Gyfunol Prydain Fawr a Gogledd Iwerddon}}([[ウェールズ語]])<br/> """ import sys import json def main(): dic = extract_baseinf(sys.stdin) sys.stdout.write(json.dumps(dic, ensure_ascii=False)) for k, v in dic.items(): print(k, v, file=sys.stderr) def extract_baseinf(fi): baseinf = {} isbaseinf = False for line in fi: if isbaseinf: if line.startswith('}}'): return baseinf elif line[0] == '|': templis = line.strip('|\n').split('=') key = templis[0].strip() value = "=".join(templis[1:]) baseinf[key] = value else: baseinf[key] += '\n{}'.format(line.rstrip('\n')) elif line.startswith('{{基礎情報'): isbaseinf = True if __name__ == '__main__': main() # - # !python q25.py < uk.txt > uk_baseinf.dict.json # ## 26. 強調マークアップの除去 # 25の処理時に,テンプレートの値からMediaWikiの強調マークアップ(弱い強調,強調,強い強調のすべて)を除去してテキストに変換せよ(参考: [マークアップ早見表](https://ja.wikipedia.org/wiki/Help:%E6%97%A9%E8%A6%8B%E8%A1%A8)). # + # %%file q26.py """ 'が2, 3, 5個連続していた場合、'を取り除く """ import json import re import sys from pprint import pprint def main(): dic = json.loads(sys.stdin.read()) dic = no_emphasis(dic) pprint(dic) # sys.stdout.write(json.dumps(dic)) def no_emphasis(dic): for key, value in dic.items(): for n in (5, 3, 2): eliminated = value.split("'" * n) div, mod = divmod(len(eliminated), 2) if div > 0 and mod != 0: value = ''.join(eliminated) dic[key] = value break # print(key, value,file=sys.stderr) return dic if __name__ == '__main__': main() # - # !python q26.py < uk_baseinf.dict.json # ## 27. 内部リンクの除去 # 26の処理に加えて,テンプレートの値からMediaWikiの内部リンクマークアップを除去し,テキストに変換せよ(参考: [マークアップ早見表](https://ja.wikipedia.org/wiki/Help:%E6%97%A9%E8%A6%8B%E8%A1%A8)). # + # %%file q27.py """ [[記事名]] [[記事名|表示文字]] [[記事名#節名|表示文字]] """ import json import re import sys from pprint import pprint from q26 import no_emphasis def main(): dic = json.loads(sys.stdin.read()) dic = no_emphasis(dic) dic = eliminate_link(dic) pprint(dic) # sys.stdout.write(json.dumps(dic)) def eliminate_link(dic): pat = re.compile(r""" \[\[ # [[ ([^|]+\|)* # 記事名| この部分は無かったり繰り返されたりする ([^]]+) # 表示文字 patにマッチした部分をこいつに置換する \]\] # ]] """, re.VERBOSE) for key, value in dic.items(): value = pat.sub(r'\2', value) dic[key] = value return dic if __name__ == '__main__': main() # - # !python q27.py < uk_baseinf.dict.json # ## 28. MediaWikiマークアップの除去 # 27の処理に加えて,テンプレートの値からMediaWikiマークアップを可能な限り除去し,国の基本情報を整形せよ. # + # %%file q28.py import json import sys from pprint import pprint from pypandoc import convert def main(): dic = json.loads(sys.stdin.read()) for key, value in dic.items(): dic[key] = convert(value, 'plain', format='mediawiki').rstrip() pprint(dic) if __name__ == '__main__': main() # - # !python q28.py < uk_baseinf.dict.json # ## 29. 国旗画像のURLを取得する # テンプレートの内容を利用し,国旗画像のURLを取得せよ.(ヒント: [MediaWiki](https://www.mediawiki.org/wiki/API:Main_page/ja) APIの[imageinfo](https://www.mediawiki.org/wiki/API:Properties/ja#imageinfo_.2F_ii)を呼び出して,ファイル参照をURLに変換すればよい) # + # %%file q29.py import sys import json import requests baseinf = json.loads(sys.stdin.read()) r = requests.get('https://commons.wikimedia.org/w/api.php', {'action': 'query', 'prop': 'imageinfo', 'iiprop': 'url', 'format': 'json', 'titles': 'File:{}'.format(baseinf['国旗画像'])}) data = r.json() print(data['query']['pages']['347935']['imageinfo'][0]['url']) # - # !python q29.py < uk_baseinf.dict.json f_filtered.dictamen != 1338] df_filtered = df_filtered [df_filtered.dictamen != 133] ###duplicados de la resolucion 20 df_filtered = df_filtered [df_filtered.dictamen != 42594380] df_filtered = df_filtered [df_filtered.dictamen != 526] df_filtered = df_filtered [df_filtered.dictamen != 436] df_filtered = df_filtered [df_filtered.dictamen != 406] ###duplicados de la resolucion 19 df_filtered = df_filtered [df_filtered.dictamen != 699] df_filtered = df_filtered [df_filtered.dictamen != 419] ###duplicados de la resolucion 149 df_filtered = df_filtered [df_filtered.dictamen != 439] ###duplicados de la resolucion 218 df_filtered = df_filtered [df_filtered.dictamen != 1060] ###duplicados de la resolucion 778 df_filtered = df_filtered [df_filtered.dictamen != 57603276] ###duplicados de la resolucion 655 df_filtered = df_filtered [df_filtered.dictamen != 57603276] ###duplicados de la resolucion 45 df_filtered = df_filtered [df_filtered.dictamen != 734] df_filtered = df_filtered [df_filtered.dictamen != 445] df_filtered = df_filtered [df_filtered.dictamen != 72] ###duplicados de la resolucion 53 df_filtered = df_filtered [df_filtered.dictamen != 688] ###duplicados de la resolucion 361 df_filtered = df_filtered [df_filtered.dictamen != 102] ###duplicados de la resolucion 124 df_filtered = df_filtered [df_filtered.dictamen != 513] df_filtered = df_filtered [df_filtered.dictamen != 818] df_filtered = df_filtered [df_filtered.dictamen != 556] df_filtered = df_filtered [df_filtered.dictamen != 172] df_filtered = df_filtered [df_filtered.dictamen != 14] # + #para limpiar #38784640 esta hay que pedirla por correo. ##df_filtered.loc[df_filtered['Nro. de Resolucion'] == 595] # + ##df_tv.loc[df_tv['Resol. No.'] == '595'] # - df_tv. shape df_filtered.shape df_filtered. Industria. unique() plt.figure(figsize=(8,10)) df_filtered.groupby(df_filtered.Fecha.dt.year).size().plot(kind='barh') plt.ylabel('Años') plt.xlabel('Cantidad') plt.title('Analisis Base de datos') plt.show() ##por conducta df_filtered.groupby(['Tipo de Conducta/ Concentracion 1']).size().plot(kind='barh') plt.ylabel('Tipo de conducta') plt.xlabel('Cantidad') plt.title('Conductas segun bd CNDC') plt.show() # + texto = df_filtered[df_filtered ['Tipo de Conducta/ Concentracion 1'].notnull()]['Tipo de Conducta/ Concentracion 1'].to_string().lower() a,b = 'áéíóúü','aeiouu' trans = str.maketrans(a,b) texto = texto.translate(trans) texto = re.sub('_', ' ', texto) from wordcloud import WordCloud # Generate a word cloud image wordcloud = WordCloud(stopwords=stopwords, background_color='#faf5f2', width=650, height=350, max_font_size=100, max_words=220, colormap="inferno", collocations=False, normalize_plurals=False).generate(texto) # Display the generated image: # the matplotlib way: plt.figure( figsize=(10,5)) plt.imshow(wordcloud, interpolation='bilinear') plt.axis("off") plt.show() # -
9,592
/08-homework/03 - School Board Minutes.ipynb
cb165838eea25989f82ff5a76d288a89a45a848b
[]
no_license
AmyOKruk/foundations_homework
https://github.com/AmyOKruk/foundations_homework
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
12,518
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # School Board Minutes # # Scrape all of the school board minutes from http://www.mineral.k12.nv.us/pages/School_Board_Minutes # # Save a CSV called `minutes.csv` with the date and the URL to the file. The date should be formatted as YYYY-MM-DD. # # **Bonus:** Download the PDF files # # **Bonus 2:** Use [PDF OCR X](https://solutions.weblite.ca/pdfocrx/index.php) on one of the PDF files and see if it can be converted into text successfully. # # * **Hint:** If you're just looking for links, there are a lot of other links on that page! Can you look at the link to know whether it links or minutes or not? You'll want to use an "if" statement. # * **Hint:** You could also filter out bad links later on using pandas instead of when scraping # * **Hint:** If you get a weird error that you can't really figure out, you can always tell Python to just ignore it using `try` and `except`, like below. Python will try to do the stuff inside of 'try', but if it hits an error it will skip right out. # * **Hint:** Remember the codes at http://strftime.org # * **Hint:** If you have a date that you've parsed, you can use `.dt.strftime` to turn it into a specially-formatted string. You use the same codes (like %B etc) that you use for converting strings into dates. # # ```python # try: # blah blah your code # your code # your code # except: # pass # ``` # + import requests from bs4 import BeautifulSoup import pandas as pd # - response = requests.get('http://www.mineral.k12.nv.us/pages/School_Board_Minutes') doc = BeautifulSoup(response.text) # + import datetime minutes = doc.find_all('a',text = re.compile("\d, \d{4}")) data = [] for doc in minutes: row = {} date = doc.string row['File']=('http://www.mineral.k12.nv.us'+doc.get('href')) row['Date']=(date) data.append(row) # - df = pd.DataFrame(data=data) df['Date'] = pd.to_datetime(df['Date']) df # + # df.to_csv(r'minutes.csv')
2,195
/Old_Photo_restore.ipynb
8a8f6b411b45c27ec28e54b893b786c372072c6d
[ "Apache-2.0" ]
permissive
abheeshtroy/old-photo-restore-simplified
https://github.com/abheeshtroy/old-photo-restore-simplified
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
578,068
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/abheeshtroy/old-photo-restore-simplified/blob/main/Old_Photo_restore.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] id="Vkkr1Sq6t2lM" # #◢ Bringing Old Photos Back to Life # + [markdown] id="ypb6kal06Tb1" # This is a reference implementation of paper Bringing Old Photos Back to Life, CVPR2020 (Oral) by Ziyu Wan1, Bo Zhang2, Dongdong Chen3, Pan Zhang4, Dong Chen2, Jing Liao1, Fang Wen2 City University of Hong Kong, Microsoft Research Asia, Microsoft Cloud AI, 4 USTC # # Through this colab notebook we have tried to modified the original implementation so that this can be easily used by any person with limited technical knowledge. And this appears like a web page for restoring their personal photos. Click on the play button at the corner of each code block. There are two code blocks. The first one is to download pre trained models, hence it takes some time. This first block needs to be executed only once for a session. The second block has to be played for each image. # # This notebook is created by shtadal ghosh and abheesht Roy # + [markdown] id="Ubc05fcKzk90" # #◢ Block One run only once for single session Click on the below left cornner play botton to start # # + id="32jCofdSr8AW" colab={"base_uri": "https://localhost:8080/"} outputId="f32c62a8-62f6-44ff-df45-a0f3d6bc3786" #Clone the repo # !git clone https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life.git photo_restoration # pull the syncBN repo # %cd photo_restoration/Face_Enhancement/models/networks # !git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch # !cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . # %cd ../../../ # %cd Global/detection_models # !git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch # !cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . # %cd ../../ # download the landmark detection model # %cd Face_Detection/ # !wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 # !bzip2 -d shape_predictor_68_face_landmarks.dat.bz2 # %cd ../ # download the pretrained model # %cd Face_Enhancement/ # !wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Face_Enhancement/checkpoints.zip # !unzip checkpoints.zip # %cd ../ # %cd Global/ # !wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Global/checkpoints.zip # !unzip checkpoints.zip # %cd ../ # ! pip install -r requirements.txt # %cd /content/photo_restoration/ input_folder = "test_images/old" output_folder = "output" import os basepath = os.getcwd() input_path = os.path.join(basepath, input_folder) output_path = os.path.join(basepath, output_folder) if not os.path.exists(output_path): os.mkdir(output_path) # + [markdown] id="BvC6STmMVWPV" # #◢ Block TWO run every time for selecting each image Click on the below left cornner play botton to start # + colab={"resources": {"http://localhost:8080/nbextensions/google.colab/files.js": {"data": "Ly8gQ29weXJpZ2h0IDIwMTcgR29vZ2xlIExMQwovLwovLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKLy8geW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLgovLyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKLy8KLy8gICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjAKLy8KLy8gVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZQovLyBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiAiQVMgSVMiIEJBU0lTLAovLyBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC4KLy8gU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZAovLyBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS4KCi8qKgogKiBAZmlsZW92ZXJ2aWV3IEhlbHBlcnMgZm9yIGdvb2dsZS5jb2xhYiBQeXRob24gbW9kdWxlLgogKi8KKGZ1bmN0aW9uKHNjb3B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AogICAgICB9OwoKICAgICAgbGV0IHBlcmNlbnREb25lID0gZmlsZURhdGEuYnl0ZUxlbmd0aCA9PT0gMCA/CiAgICAgICAgICAxMDAgOgogICAgICAgICAgTWF0aC5yb3VuZCgocG9zaXRpb24gLyBmaWxlRGF0YS5ieXRlTGVuZ3RoKSAqIDEwMCk7CiAgICAgIHBlcmNlbnQudGV4dENvbnRlbnQgPSBgJHtwZXJjZW50RG9uZX0lIGRvbmVgOwoKICAgIH0gd2hpbGUgKHBvc2l0aW9uIDwgZmlsZURhdGEuYnl0ZUxlbmd0aCk7CiAgfQoKICAvLyBBbGwgZG9uZS4KICB5aWVsZCB7CiAgICByZXNwb25zZTogewogICAgICBhY3Rpb246ICdjb21wbGV0ZScsCiAgICB9CiAgfTsKfQoKc2NvcGUuZ29vZ2xlID0gc2NvcGUuZ29vZ2xlIHx8IHt9OwpzY29wZS5nb29nbGUuY29sYWIgPSBzY29wZS5nb29nbGUuY29sYWIgfHwge307CnNjb3BlLmdvb2dsZS5jb2xhYi5fZmlsZXMgPSB7CiAgX3VwbG9hZEZpbGVzLAogIF91cGxvYWRGaWxlc0NvbnRpbnVlLAp9Owp9KShzZWxmKTsK", "ok": true, "headers": [["content-type", "application/javascript"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 1000} id="l-gQku6A5jmu" outputId="ebb1a691-eb2f-4908-83b0-376f5137de37" # !rm -rf /content/photo_restoration/test_images/old/* # !rm -rf /content/photo_restoration/output/* # %cd /content/photo_restoration/test_images/old/ from google.colab import files uploaded = files.upload() for fn in uploaded.keys(): print('User uploaded file "{name}" with length {length} bytes'.format( name=fn, length=len(uploaded[fn]))) review_text=(uploaded[fn]) # %cd /content/photo_restoration image_name=str(fn) parts = image_name.split(".") print(parts[0]) print(image_name) # !python run.py --input_folder /content/photo_restoration/test_images/old/ --output_folder /content/photo_restoration/output/ --GPU 0 --with_scratch out_path='/content/photo_restoration/output/final_output/'+parts[0]+'.png' in_path='/content/photo_restoration/test_images/old/'+image_name import numpy as np import PIL #imi=PIL.Image.open(in_path) #print("Original Image") #imi #download the enhanced image files.download(out_path) imo=PIL.Image.open(out_path) print("Enhanced Image") imo
11,606
/Learn_Python/Udemy_Curso_Basico/dev_09_zejercicio_01.ipynb
bf3c23c377fb665d9fdb126e6766930fd1188656
[]
no_license
apizarroe/Personal_Code
https://github.com/apizarroe/Personal_Code
0
1
null
null
null
null
Jupyter Notebook
false
false
.py
1,132
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # --- # + ##################Ejercicio #Crear un modulo "modulo1.py" #Añadir la clase "Coche" creada en un ejercicio anterior al "modulo1" #Añadir la funcion lambda "media" creada en un ejercicio anterior al "modulo1" # #Crear un programa en Python "programa1.py" #Importar desde el modulo "modulo1" antes creado #Crear un objeto "coche1" al instanciar la clase "Coche" #Mediante print mostrar las caracteristicas del coche #Calcular la media de 3 notas y mostrar el resultado con print # #Ejecutar el programa "programa.py" y ver el resultado inear # For output layer, when we want real values $[-\infty, +\infty]$ # $ \large A(x) = x $ A = lambda x : x plt.plot(X, A(X)) # ## Sigmoid Same as in logistic regression. Good for probabilities and scores in the output layer. Differentiable. Slow convergence. Vanishing problem Being in the interval $[0,1]$, gradients become smaller in the inital layers due to chain rule application in the calculation of gradients. # $ \large A(x) = \frac{1}{1 + e^{-x}} $ A = lambda x : 1/(1+ math.e**(-x)) plt.plot(X, A(X)); # ## Hyperbolic tangent # Range -1 to 1. Sometimes better than sigmoid (Take care of Garson/Olden algorithms for importance extraction) # $ \large A(x) = \frac{2}{1 + e^{-2x}} - 1 $ A = lambda x : 2/(1+ math.e**(-2*x)) - 1 plt.plot(X, A(X)); # ## Relu Interesting idea. Most popular in Deep Learning. Avoids activating all neurons at the same time. Dying relu problem. Not differentiable. # $ \large A(x) = \begin{cases} # y=0 & x < 0 \\ # y=x & otherwise \\ # \end{cases} $ A = lambda x : np.select([x<0, x>=0], [0 , x]) plt.plot(X, A(X)); # ## Leaky Relu Attempt to mitigate the dying relu problem. # $ \large A(x) = \begin{cases} # y= \frac{1}{\alpha} x & x < 0 \\ # y=x & otherwise \\ # \end{cases} $ a = 0.1 A = lambda x : np.select([x<0, x>=0], [a*x , x]) plt.plot(X, A(X)); # ## Elu # Same idea of Relu, still piecewise so derivatives have to be calculated separatedly. # $ \large A(x) = \begin{cases} # y= \alpha (e^x-1) & x < 0 \\ # y=x & otherwise \\ # \end{cases} $ a = 1 A = lambda x : np.select([x<0, x>=0], [a*(math.e**(x)-1) , x]) plt.plot(X, A(X)); # ## Softplus The idea of relu but smoothing the discontinuity making it differentiable. # $ \large A(x) = \log(1 + e^x) $ A = lambda x : math.log(1+ math.e**(x)) y = [A(x) for x in X] plt.plot(X, y); # ## Softmax # Normalized exponential function. Takes a vector of real inputs and converts into probabilities # Good for classification purposes. # $ \large A(x) = \frac{e^{x_i}}{sum_{j=1}^J e^{x_j}} $ # ## Credits & Links # https://towardsdatascience.com/complete-guide-of-activation-functions-34076e95d044
2,868
/Ekstraksi Fitur 2/.ipynb_checkpoints/Extraction Feature WIth Morphological-checkpoint.ipynb
65eb3dc46aaa1d095b0ee10e67ab827b63e2a6c9
[]
no_license
ragilhadi/pkl-textdetection-bpnn
https://github.com/ragilhadi/pkl-textdetection-bpnn
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
1,528,443
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import numpy as np import cv2 as cv import matplotlib.pyplot as plt def show_image(img): fig = plt.figure(figsize=(10,10)) axes = fig.add_subplot(111) axes.imshow(img, cmap='gray') kernel = np.ones((5,5), dtype=np.uint8) kernel image = cv.imread('sudoku.jpg', 0) show_image(image) sobelx = cv.Sobel(image, cv.CV_64F, 0, 1) show_image(sobelx) sobely = cv.Sobel(image, cv.CV_64F, 1, 0) show_image(sobely) sobel_final = cv.addWeighted(sobelx, 0.5, sobely, 0.5, 0) show_image(sobel_final) sobel_morph = cv.morphologyEx(sobel_final, cv.MORPH_GRADIENT, kernel) show_image(sobel_morph) toUrl": "", "userId": "09581223866808255815"}, "user_tz": -330} id="IWhJoYg0mBfX" outputId="9fdc5ae2-57e3-47ff-982b-5423dc49b544" # %cd /content/drive/My Drive/sih # + colab={} colab_type="code" id="VRzBAoQjmHP7" # !python bin.py # + colab={} colab_type="code" id="bcqU3qgxmJSy" from keras.models import model_from_json from sklearn.externals import joblib from collections import deque class Trajectory: def __init__(self,modelPath='architecture.json',weightsPath='weights.h5',scalerPath = "scaler.pkl"): ''' modelPath to be like = 'architecture.json' weightsPath to be like = 'weights.h5' ''' json_file = open(modelPath, 'r') loaded_model_json = json_file.read() json_file.close() self.model = model_from_json(loaded_model_json) self.model.load_weights(weightsPath) self._look_back = 5 self.scaler = joblib.load(scalerPath) def predictValues(self,x,lenPred=1): ''' x is the small sequence shape should be (no. of rows,5,3) -1,3 Look back is fixed to be 5 and 3 is the params in each sequence lenPred Should be how many further points you want ''' pred = [] x = np.array(x) x = self.scaler.transform(x) x.reshape(-1,5,3) x = deque(x) assert(len(x) == self._look_back) for i in range(lenPred): # print("x before",np.array(x).shape) x_prime = self.model.predict(np.array(x).reshape((-1,self._look_back,3))) x.popleft() x.extend([x_prime]) # print("X_prime",x_prime.shape) # print(x) # print("x after",np.array(x).shape) pred.append(x_prime) pred = np.array(pred) pred = pred.reshape((-1,3)) pred = self.scaler.inverse_transform(pred) return pred def predict(self,x,lenPred): x = deque(x) pred = [] for i in range(lenPred): xTemp = self.predictValues(x) x.popleft() x.extend(xTemp) pred.append(xTemp) return pred # + colab={} colab_type="code" id="ddBDJ76UnIfU" import numpy as np traj = Trajectory(modelPath="architecture.json",weightsPath="weights.h5",scalerPath = "scaler.pkl") x = [[[-13954, -9455, 27],[-13925, -9255, 71],[-14265, -9055, 117],[-14615, -8853, 163],[-14974, -8651, 207]]] x = np.array(x).reshape(-1,3) # print(x) val = traj.predict(x,20) # + colab={"base_uri": "https://localhost:8080/", "height": 369} colab_type="code" executionInfo={"elapsed": 2114, "status": "ok", "timestamp": 1579957373548, "user": {"displayName": "Shivam Aggarwal", "photoUrl": "", "userId": "09581223866808255815"}, "user_tz": -330} id="9SQ1xhtMnYCl" outputId="2a9ec975-cf5b-4bf6-c7d6-64ba8e2a7978" val # + colab={"base_uri": "https://localhost:8080/", "height": 369} colab_type="code" executionInfo={"elapsed": 1320, "status": "ok", "timestamp": 1579957374933, "user": {"displayName": "Shivam Aggarwal", "photoUrl": "", "userId": "09581223866808255815"}, "user_tz": -330} id="dBbKdjSInfd3" outputId="4178e449-5e0b-43f9-b94f-efde1d8165a7" val # + colab={} colab_type="code" id="Wk7VA4ctsPpj" lfrom math import * import math # + colab={"base_uri": "https://localhost:8080/", "height": 70} colab_type="code" executionInfo={"elapsed": 1433, "status": "ok", "timestamp": 1579955779730, "user": {"displayName": "Shivam Aggarwal", "photoUrl": "", "userId": "09581223866808255815"}, "user_tz": -330} id="gjsY7XhZn0qR" outputId="4ea0d81b-c33f-44f6-dfa3-141e29a78219" #Let Missile Location Coordinates traj_x = -16494 traj_y = -7800 traj_z = 200 #Let prediction Location Coordinates traj1_x =-16387.025 traj1_y = -9707.095 traj1_z = 80.613 #let Actual Cordinates of Air Object traj_currx = -14974 traj_curry = -8651 traj_currz = 207 #Let Velocity of Target Shooting Missile initial_velocity = 410 distance_x = traj_x - traj1_x distance_y = traj_y - traj1_y distance_z = traj_x - traj1_z theta = math.atan(distance_x / distance_y) phi = math.atan(distance_z / distance_x) #Let Acceleration Due To Gravity is g = 9.8 #Time needed by Object to move at predicted Position Time_needed = 5 #if (Time_needed_to reach predicted point == Time Needed by MIssile to hit the object) therfore we can shoot at that point of time. Distance = sqrt((traj1_x - traj_x)**2 + (traj1_y - traj_y)**2 + (traj1_z - traj_z)**2) print(Distance) print(initial_velocity * math.cos(theta)*math.sin(phi)*Time_needed - (0.5*g*((Time_needed)**2))) if abs(Distance - (initial_velocity * math.cos(theta)*math.sin(phi)*Time_needed - (0.5*g*((Time_needed)**2)))) <= 15: print("We can shoot") else: print("Wait For the Next Interception") print(initial_velocity * math.cos(theta)*math.sin(phi)*Time_needed - (0.5*g*((Time_needed)**2))) # + colab={} colab_type="code" id="_VEa0SrnsVPg"
5,751
/homework/Day_002_HW.ipynb
ce66bd7d434cadb246b5a9f30c04ddc7a3dea89a
[]
no_license
wtchenzf/2nd-ML100Days
https://github.com/wtchenzf/2nd-ML100Days
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
7,894
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## 練習時間 # 資料的操作有很多,接下來的馬拉松中我們會介紹常被使用到的操作,參加者不妨先自行想像一下,第一次看到資料,我們一般會想知道什麼訊息? # # #### Ex: 如何知道資料的 row 數以及 column 數、有什麼欄位、多少欄位、如何截取部分的資料等等 # # 有了對資料的好奇之後,我們又怎麼通過程式碼來達成我們的目的呢? # # #### 可參考該[基礎教材](https://bookdata.readthedocs.io/en/latest/base/01_pandas.html#DataFrame-%E5%85%A5%E9%97%A8)或自行 google import os import numpy as np import pandas as pd # 設定 data_path dir_data = './data/' f_app = os.path.join('./data/','application_train.csv') print('Path of read in data: %s' % (f_app)) app_train = pd.read_csv(f_app) # ### 如果沒有想法,可以先嘗試找出剛剛例子中提到的問題的答案 # #### 資料的 row 數以及 column 數 app_train.shape # #### 列出所有欄位 app_train.columns # #### 截取部分資料 idx=app_train.iloc[0:10,0:5] idx # #### 還有各種數之不盡的資料操作,重點還是取決於實務中遇到的狀況和你想問的問題,在馬拉松中我們也會陸續提到更多例子
1,010
/code/jl-files/STARAS-master/Networks/Sensibility_NetDensity/runs/20171112_215319_Sim_Watts_Density/Hex_Stack.ipynb
5a0f640f52b50df14f7528c8211131c18ccdfdbf
[]
no_license
ccg-esb/MSW3D
https://github.com/ccg-esb/MSW3D
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
434,745
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## Hexbin and Stack Plotter CC = 0.2 # We call the libraries and the data from the experiment # + import numpy as np import matplotlib.pyplot as plt import pandas as pd import statsmodels.api as sm import os if not os.path.exists("Figures"): os.makedirs("Figures") # - mydata = np.genfromtxt("out_watts",delimiter="\t") TotalDensity = [i[0] for i in mydata] #Total bacterial density Suc = [i[1] for i in mydata] #Susceptible strain total density Res = [i[2] for i in mydata] #Resistant strain total density Rel_Freq = [i[2]/(i[1]+i[2]) for i in mydata] #Resistant Relative Frequency Suc_win = [i[3] for i in mydata] #Number of wins of Susceptible strain Res_win = [i[4] for i in mydata] #Number of wins of Resistant strain R_S_winratio = [i[4]/(i[3]+i[4]) for i in mydata]#node-to-node Resistant WinRatio Netdensity = [i[6] for i in mydata] #Network density clustc = [i[7] for i in mydata] #Network clustering coefficient clo_centr = [i[8] for i in mydata] #Closeness centrality ant_deg = [i[9] for i in mydata] #Antibiotic source connectivity bet_centr = [i[10] for i in mydata] #Betweeness centrality NamesDict = {'TotDen':'Total Bacterial Density','SucDen': 'Susceptible Bacteria Density', 'ResDen': 'Resistant Bacteria Density','Rel_Freq': 'Resistant Relative Frequency', 'SucWin': 'Susceptible Node Winners', 'ResWin':'Resistant Node Winners', 'R_S_winratio':'Ratio of winners R/S', 'NetDen':'Network Density','ClustC':'Global Clustering Coefficient','CloCentr':'Closeness Centrality', 'ant_deg':'Connectivity of Antibiotic Source', 'BetCentr':'Betweenness Centrality'} d = {'TotDen':TotalDensity,'SucDen':Suc,'ResDen':Res,'Rel_Freq':Rel_Freq, 'SucWin':Suc_win, 'ResWin':Res_win, 'R_S_winratio':R_S_winratio, 'NetDen':Netdensity,'ClustC':clustc,'CloCentr':clo_centr,'AntDeg':ant_deg, 'BetCentr':bet_centr} df = pd.DataFrame(d) # We generate the function for plotting many comparisons def plot_comparison(colx,coly): x = np.array(df[colx]) y = np.array(df[coly]) xmin = x.min() xmax = x.max() ymin = y.min() ymax = y.max() hb = plt.hexbin(df[colx], df[coly], gridsize=40,bins='log', cmap='inferno') plt.axis([xmin, xmax, ymin, ymax]) plt.title("Effect of the "+NamesDict[colx]+" on the "+NamesDict[coly]+ " (NS_CC"+str(CC)+")",y=1.08) plt.xlabel(NamesDict[colx]) plt.ylabel(NamesDict[coly]) cb = plt.colorbar(hb) cb.set_label('log(counts)') plt.savefig("Figures/"+"SenND_"+NamesDict[colx]+"_on_"+NamesDict[coly]+"_CC"+str(CC)+".png", bbox_inches='tight') plt.show() # ### Network Density vs Total Bacterial Density plot_comparison('NetDen','TotDen') # ### Density vs R-Relative Frequency plot_comparison('NetDen','Rel_Freq') # ### Clustering Coefficent vs R-Relative Frequency plot_comparison('ClustC','Rel_Freq') # ### Relationship between Node Winners and S/R Ratio plot_comparison('ResWin','Rel_Freq') # ### Centrality measures plot_comparison('CloCentr','TotDen') plot_comparison('CloCentr','Rel_Freq') # ## Analysis of Relative Frequency AND Density def stackplot_column(column): sorted_df = df.sort(column) plt.stackplot(sorted_df[column],sorted_df.ResDen,sorted_df.SucDen,colors=['red','blue']) plt.title("Effect of "+NamesDict[column]+" on the metapopulation",y=1.08) plt.ylabel("Bacterial Density") plt.xlabel(NamesDict[column]) plt.legend(['Resistant','Susceptible']) plt.savefig("Figures/"+"SenND_StackPlot_"+NamesDict[column]+"_on_Populations_CC0.2.png") plt.show() # ### Effect of Net Density on Population stackplot_column('NetDen') # ### Effect of Clustering Coefficient on Populations stackplot_column('ClustC') # ### Effect of Closeness Centrality on populations stackplot_column('CloCentr') # ### Effect of Closeness Centrality on populations stackplot_column('BetCentr') # ### Effect of Network Density on Populations stackplot_column('NetDen') e caraterísticas) keras.layers.Dense(300, activation="relu",name='Hidden1'), # Hidden layer 1 keras.layers.Dense(100, activation="relu",name='Hidden2'), # Hidden layer 2 keras.layers.Dense(10, activation="softmax",name='Output') # Output layer (la cual depende de la aplicación, para este caso son 10 porque es el número de labels) ]) # + id="7-1yEWjkcRl-" # Creación de la estrucutura interna de la Red keras.backend.clear_session() # Reiniciar todo lo que se ha utilizado #np.random.seed(42) # Semillas fijas tf.random.set_seed(42) # Modelo de inicialización de valores internos de la red neuronal # + id="pZQECFS6cX-D" colab={"base_uri": "https://localhost:8080/"} outputId="7a5fd7c6-bb6c-4816-e2b0-d23f7356d06f" # Impresión de la estrucura de la Red Neuronal model.summary() # + id="gzgFYVPEcdLG" colab={"base_uri": "https://localhost:8080/", "height": 465} outputId="056f4c40-a958-4717-999f-f5e257f983e8" #keras.utils.plot_model(model, "my_mnist_model.png", show_shapes=True) tf.keras.utils.plot_model(model) # + id="7_bSy92dchvz" colab={"base_uri": "https://localhost:8080/"} outputId="4990e1f4-eb03-4445-c1f8-8c16497e9544" model.compile(loss="sparse_categorical_crossentropy", # Función de costo a derivar optimizer="sgd", # Optimización: gradiente descendente metrics=["accuracy"]) # Monitoriar la medida de desempeño (no lo deriva-> solo para ver la tarea final) history = model.fit(X_train, # Conjunto de entrenamiento y_train, # Etiquetas  epochs=30, # Epocas: número de veces que se ejecutaran el algoritmo de backpropagation validation_data=(X_valid, y_valid)) # Conjunto de validación (evaluar el desempeño) # + id="IDn2PtLacnzm" colab={"base_uri": "https://localhost:8080/", "height": 281} outputId="3c23e65e-8529-499d-bf9c-916df8b16eaa" hpd = pd.DataFrame(history.history) hpd.plot() plt.title('Todas las métricas de rendmiento', c='r') plt.grid(True) plt.show() # + id="kzLqRDXccp1J" colab={"base_uri": "https://localhost:8080/", "height": 281} outputId="9eb815fa-3b3a-43ea-c203-ba162ee41bf5" def label_(numero_label): if numero_label == 0: label = 'Impar' if numero_label == 1: label = 'Par' return label ii = 1000 pe = model.predict(X_test[ii][np.newaxis,:,:]) probabilidad = 'Clasificación: ' + str(pe.argmax()) plt.title(probabilidad, c='r') plt.imshow(X_test[ii]) plt.show() # + [markdown] id="bVAw0yYc1yc1" # #**Deep Learning (functional model)** # + id="Es7Ye4g_4MC2" colab={"base_uri": "https://localhost:8080/"} outputId="2e93f7f7-827b-4b04-c821-6d8ff9ed1a6e" Q1 = 300 Q2 = 100 l1 = 1e-3 # Valor de regualización 1 l2 = 1e-3 # Valor de regualización 1 input = tf.keras.layers.Input(shape=(X_train.shape[1],X_train.shape[2]), name='Entrada') # Entrada de imagenes normales flatten = tf.keras.layers.Flatten(input_shape=(X_train.shape[1], X_train.shape[2]))(input) # Capa de pre-procesamiento para la entrada 1 # Primera capa de de la Red Neuronal h1 = tf.keras.layers.Dense(Q1, # Número de neuronas activation='relu', # Función de activación name='h1', # Nombre de la neurona kernel_regularizer=tf.keras.regularizers.l1_l2(l1=l1,l2=l2) )(flatten) # Segunda capa de de la Red Neuronal h2 = tf.keras.layers.Dense(Q2, # Número de neuronas activation='relu', # Función de activación name='h2', # Nombre de la neurona kernel_regularizer=tf.keras.regularizers.l1_l2(l1=l1,l2=l2) )(h1) output = tf.keras.layers.Dense(10,activation="softmax",name='outAMC')(h2) # Salida multiclase (se escoge una sotfmax para múlticlase) model_fun = tf.keras.Model(inputs=input, outputs=output) model_fun.summary() # + id="24Y9DTes5P_n" # Entrenamiento y compilación de la Red Neuronal model_fun.compile(loss=["sparse_categorical_crossentropy",tf.keras.losses.BinaryCrossentropy()], # Tipo de función de costo: custom_loss(), custom_loss(), "sparse_categorical_crossentropy" optimizer=tf.keras.optimizers.SGD(learning_rate=1e-3), # Sintonización del optimizador metrics=["accuracy"] # Métrica de seguimiento: f1, precision, recall, crossentropy ) # + id="d_FGddw95U3z" colab={"base_uri": "https://localhost:8080/"} outputId="c736586e-dab2-41ea-a0af-6876ccd87924" history = model_fun.fit(X_train, y_train, # Conjunto de entrenamiento epochs=30, # Número de epocas batch_size=32, # Número de lotes: 32, 64, 128, 256 validation_data=(X_valid, y_valid) # Selección del conjunto de validación ) # + id="Nz47yfFPRCCm" colab={"base_uri": "https://localhost:8080/", "height": 281} outputId="a2b4deac-834a-4630-c618-d5bcea9ccbf9" hpd = pd.DataFrame(history.history) hpd.plot() plt.title('Todas las métricas de rendmiento', c='r') plt.grid(True) plt.show() # + id="XAVO6eOZ7Xlc" model_PCA = tf.keras.Model(inputs=input, outputs=model_fun.get_layer('h2').output) tf.keras.utils.plot_model(model_PCA) ReductionDimension_PCA = model_PCA.predict(X_train) # + id="aSckNGes8ZxK" colab={"base_uri": "https://localhost:8080/", "height": 268} outputId="da16532b-722d-44f7-a5c4-977e70a06e47" pca = PCA(n_components = 2) tranformed_pca = pca.fit_transform(ReductionDimension_PCA) plt.figure() plt.scatter(tranformed_pca[:,0], tranformed_pca[:,1], s=1, c=y_train) plt.colorbar() plt.xticks(c='r') plt.yticks(c='r') plt.show() # + id="qxVNtrLi8tu4" pred_ = np.round(model_fun.predict(X_test)) pred_NN = np.array([x.argmax() for x in pred_]) # + id="kd4ghhBl8x3r" colab={"base_uri": "https://localhost:8080/"} outputId="a5cc7e71-8484-49ef-9665-5c3304144c56" print("Accuracy :", accuracy_score(y_test, pred_NN)) print(confusion_matrix(list(y_test), list(pred_NN))) print(classification_report(y_test, pred_NN, target_names=class_names))
10,955
/Exercises/Римски Императори.ipynb
4dc090a2f61da660e9a3593e8e5b334c12624bff
[]
no_license
ironsmile/machine-learning-fmi
https://github.com/ironsmile/machine-learning-fmi
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
208,462
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Римски императори # # Тук ще се опитам да предскажа колко време ще управлява нов римски император. За целта ще използвам данните за императорите между Август (26г. пр.н.е.) и Теодосий Първи (395г.). Осъзнавам, че вероятно няма да има достатъчно голяма зависимост между данните и продължителноста на управление, но нищо не ми пречи да опитам. Ако имаше данни и за [следващите хиляда години римски императори](https://thehistoryofbyzantium.com/2017/01/09/all-the-emperors-in-rhyme/) може би положението щеше да е друго, но не :( Благодаря, Gibbon! # # В крайна сметка имаме данни, започващи с [Battle of Actium](https://en.wikipedia.org/wiki/Battle_of_Actium) # # ![Battle Of Actium](assets/battle-of-actium.jpg) # # и завършващи с [последният император извън двора в Константинопол](https://en.wikipedia.org/wiki/Romulus_Augustulus#Last_Western_emperor) # # ![Battle Of Actium](assets/romulus-augustus-resigns-the-crown.png) # # Също така, мисля да опитам да предскажа и за няколко от следващите императори, за които ще си въведа данните ръчно. Ако модела покаже някакъв смисъл, разбира се. # # Data set-а е от kaggle - [линк](https://www.kaggle.com/lberder/roman-emperors-from-26-bc-to-395-ad/data). Данните трябва да се сложат във файл с име `roman-emperors.csv` в директорията, в която е notebook-a. # ## Но какъв е смисъла от това? # # Признавам, че шансовете утре да се появи нов римски император са ниски. Но ако все пак стане, ще знаем след колко време империята му ще е "освободена" и "демократиризирана" с помощта на "миротворци", подозрително управляващи танкова и самолети хахаха :D А и в упражнението се говори за работа с данни, а не за полезни резултати. # + # Първо няколко библиотеки, които ще ни трябват import numpy as np import matplotlib.pyplot as plt import pandas as pd import mglearn # %matplotlib inline # + # Сега, ще заредя данните romans_data = pd.read_csv('roman-emperors.csv', parse_dates=[3,4,8,9], index_col=['Index']) # Няколко императора, за пример romans_data[:5] # - # Какво представляват данните ни? Количество, фийчъри? # + interesting_features = [f for f in romans_data.columns if f not in ['Image', 'Verif', 'Notes']] print('Features Names: {}'.format(interesting_features)) # Ще си филтрирам само нещата, които наистина бих използвал romans_data = romans_data[interesting_features] print('Filtered data shape: {}'.format(romans_data.shape)) # - # Значи имаме данни за 68 императора. В 13 колони. Не са много, но само толкова са събрани в data set-а. # ## Малко поправка на данните # # След ръчно разглеждане забелязвам няколко неверни неща, които ме дразнят до безкрайност и няма да мога да преглътна. # # _Rant ON_ # # Изобщо не съм фен на теорията "Лидия ги отрови". Да, наясно съм, че това е [популярната теория](http://www.imdb.com/title/tt0074006/). Първо, бедната жена е обвиняване за отровянето на всички. Всички! След четвъртият отровен хората не биха я държали наоколо, нали? Второ, Октавиан все пак вече е бил на 75! Колко по - възрастен трябва да станеш за да се смята, че смърт след болест е естествена? На много конспиративни теористи ще им е полезен [Occam's razor](https://en.wikipedia.org/wiki/Occam%27s_razor). # # _Rant OFF_ # + # Index 1 - Augustus romans_data.at[1, 'Cause'] = 'Natural Causes' romans_data.at[1, 'Killer'] = 'Disease' romans_data[['Name', 'Killer', 'Cause']][romans_data.Name == 'Augustus'] # - # Също така 63г. пр.н.е., а не 62. Кой ги е събирал тези данни и какво е имал против Август? Ето го и самият човек. Прилича ли на някой роден през 62-ра? # # ![Augustus](assets/bust-of-augustus.jpg) # [image source](http://www.flickr.com/photos/rosemania/5371830337) # # Не! Съвсем очевидно си е роден през 63та. Защо ли? Заради прическата! # + romans_data.at[1, 'Birth'] = '0063-09-23T00:53:28+00:53' romans_data.at[1, 'Reign Start'] = '0027-01-16T00:53:28+00:53' romans_data[['Birth', 'Death', 'Reign Start', 'Reign End']][romans_data.Name == 'Augustus'] # - # ## И сега вече да ги разгледаме по - подбробно # # Първо, интересно ми е къде са се раждали тез императори: birth_cities = romans_data['Birth City'] print('Different cities: {}'.format(len(birth_cities.unique()))) birth_cities.value_counts() # Изглежда има голяма разнообразие на градовете. Тъжното е, че твърде много са NA. Което вероятно ще направи тази колона не особено полезна. # # Също така, изненадващо много са родени около днешен Белград (Singidunum) - 8 в [Sirmium](https://en.wikipedia.org/wiki/Sirmium) и 1 в [Singidunum](https://en.wikipedia.org/wiki/Singidunum). Това си е интересно само по себе си :D Трябва да се отбележи, че Sirmium е бил _основният_ военен град в източната римска имеприя. Очаквано, императорите от него са тясно свързани с армията и вероятно може да има значение за бъдещият им много-вероятно-преждевременен-и-насилствен-край. # # ![Map of The Roman Empire](assets/sirmium.png) # # И като си говорим за това, как ли са умирали тези императори? Това може да ни подскаже нещо за очакваната продължителност на управление: romans_data.Cause.value_counts().plot(kind='barh', title='Causes of Death'); # Аха! Преждевременен и насилствен край. Къде би била романтиката иначе? Но тук мога да разделя два вида смърти: 'нормални' и 'насилствени'. Насилствени са `Assasination`, `Execution` и `Suicide`. Всички останали - нормални. Слагам самоубийството като насилствена смърт т.к. никой не се самоубива без да има причина и винаги самоубилите са били поставени пред "или го правя сам, или някой го прави за мен _много_ скоро". Оставям `Captivity` и `Died in Battle` като "нормални" т.к. това си е съвсем очакван начин да умре император и не е свързан с преждевременно прекратяване на управлението му поради вътрешни причини. Има ли смисъл това? Не знам. # + violent = romans_data[(romans_data.Cause == 'Assassination') | (romans_data.Cause == 'Suicide') | (romans_data.Cause == 'Execution')] print('Violent deaths: {} ({:.2f}%)'.format(len(violent), 100 * len(violent) / len(romans_data))) # - # Всъщност, колко императора не са умерли в края на управленито си? romans_data[romans_data['Reign End'] != romans_data['Death']][['Name', 'Death', 'Reign End', 'Cause', 'Killer']] # Интересно, Гета е успял да управлява цяла седмица след като е умрял. Браво на него! Възможноста за зомби-император е интригуваща, но малко вероятно. Също така, [брат му би бил крайно объркан](https://en.wikipedia.org/wiki/Caracalla#Brother.27s_murder). Виждам възможност за много интересен роман :D # # Ето, не прилича на зомби, нали? # # ![Bust of Geta](assets/geta.jpg) # # Според мен по - скоро трябва да го броим като умрял в края на управлението си. Втори опит: romans_data[romans_data['Reign End'] < romans_data['Death']][['Name', 'Death', 'Reign End', 'Cause', 'Killer']] # Вече е по - добре. Браво Деоклициан, [зелките](http://forumromanum.org/literature/victor_ep.html#39) са по - яки от насилствена смърт при всички положения :D Пък и кой с всичкият си ще реши да убива толкова страшен човек? # # ![Bust of Deoclician](assets/deoclician.jpg) # Да разгледаме дистрибуцията на продължителност на управление. Но първо, сещам се че Август (отново той!) е роден и управлява преди новата ера, но датите в data set-а изглеждат все едно е управлявал от 26та до 14та година. Като изключим машина на времето остава варианта просто data set-а да не може да представя дати от преди новата ера заради не добре подбраният стандарт за дати. Ще трябва да се справим с това. # # Интересно е и как всички важни събития в този период са се случвали в 00:53:28. Ides of March паста да яде! Ако бях император, определено щях много да внимавам около това време. Може би да се заключвам в добре окрепена стая, на щрек и въоръжен? # # Супер извратената часова зона няма да я коментирам. type(romans_data.at[1, 'Death']) # Ахъм! Датите ни все още са низове. Ще трябва да се направи нещо и за това. Какво ли му е на `parse_dates` на [read_csv](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html#pandas.read_csv)? # + from dateutil import parser from datetime import datetime date_fields = ['Reign Start', 'Reign End', 'Birth', 'Death'] def parse_date(val): if isinstance(val, datetime): return val if val is np.nan or val == '' or val is None or val == 'nan': return np.nan try: return parser.parse(val) except: return np.nan for date_field in date_fields: romans_data[date_field] = romans_data[date_field].map(parse_date) # - # Сега, като всичко вече е истински дати е време да направим нещата с епохите по правилният начин. Някак си неудобно е да се занимавам с отрицателни числа. За тази цел ще преместя календара да започва от раждането на... (_барабани_...) Август! Така и така това си е доста по - изискано от календар с начало раждането на анонимен еврейски дърворезбар в Сирия. При това леко не с всичкия си и доста религиозен. Друго си е _истинско_ божество като Август, нали така? Това, че всички сметки стават много по - прости е само страничен ефект, честно. # # ![Истинско божество](assets/god-augustus.jpg) # + from datetime import timedelta christ_epoch = parser.parse('0001-01-01T00:00:00+00:53') td = (romans_data.at[1, 'Birth'] - christ_epoch) - 2 * timedelta(days=365) reign_age = romans_data.at[1, 'Birth'] - romans_data.at[1, 'Reign Start'] augustus_dates = romans_data[romans_data.Name == 'Augustus'][date_fields] def redefine_calendar(val): if val is np.nan or val == np.nan: return val return val + td # Преместваме датите на всички, така че нулева година да е раждането на Август for date_field in date_fields: romans_data[date_field] = romans_data[date_field].map(redefine_calendar) # Поправяме датите на самият Augustus romans_data.at[1, 'Birth'] = christ_epoch romans_data.at[1, 'Reign Start'] = christ_epoch + reign_age - 2 * timedelta(days=365) romans_data[romans_data.Name == 'Augustus'][date_fields] # - # Wow, това беше трудно! http://www.biblestudentarchives.com/documents/CalculatingBC-AD.pdf # # Нека сега разгледаме по колко време са управлявали императорите. # + import seaborn as sns romans_data['DaysInPower'] = (romans_data['Reign End'] - romans_data['Reign Start']).map(lambda x: x.days) sns.distplot(romans_data.DaysInPower); # - # Добре, тази картинка показва "скорошен" край, за да допълни преждевременен и насилствен от последната. Лошото е, че разпределението не ми подсказва нищо особено. # ### Възраст на "изкачване" на трона # # Звучи съвсем логично, че императорите-деца имат значително по - висок шанс за любимата ни вече внезапна-и-насилствена-смърт. Не бих заложил и на старците да се задържат. Гадна работа. По тази причина си мисля, че колона "възраст на изкачване" ще е полезна. try: sns.distplot((romans_data['Reign Start'] - romans_data['Birth']).map(lambda x: x.days / 365)); except ValueError as e: print("MUCH ERROR! So exception {}: {}".format(type(e), e)) # Ох, явно за някои не знаем кога са родени. Тъжна работа! Ще трябва да си измислим дати. Струва ми се добре да предположим, че са станали императори на някакво подобно време, като остналите. И от "започване на управлениет" да изчислим нашата измислена дата на раждане. # + romans_data['AgeOfSuccession'] = (romans_data['Reign Start'] - romans_data['Birth']).map(lambda x: x.days / 365) romans_data['AgeOfSuccession'].describe() # - sns.distplot(romans_data['AgeOfSuccession'].fillna(romans_data['AgeOfSuccession'].mean())); # WTF? Някой е станал император на -27!? romans_data[['Name'] + date_fields][romans_data.AgeOfSuccession < 0] # ![Bust of Tiberius](assets/tiberius.jpg) # # Хм, това е от промяната на епохата. Не съм се сетил, че и други освен Август може да са родени преди новата ера. Дали съм потроишл данните безвъзвратно? # Сигурен съм, че и Клавдий е роден пр.н.е. romans_data[['Name'] + date_fields][romans_data.Name == 'Claudius'] # ![Claudius crop](assets/claudius.jpg) # [image source](https://en.wikipedia.org/wiki/Claudius#/media/File:Claudius_crop.jpg) # + augustus_birth_ad = parser.parse('0063-09-23T00:53:28+00:53') # Да се върнем в начално състояние romans_data.at[2, 'Birth'] = christ_epoch + (augustus_birth_ad - parser.parse('0042-11-16T00:53:28+00:58')) - 2 * timedelta(days=365) romans_data.at[4, 'Birth'] = christ_epoch + (augustus_birth_ad - parser.parse('0010-08-01T00:53:28+00:58')) - 2 * timedelta(days=365) romans_data[['Name'] + date_fields][romans_data.Name == 'Claudius'] # - # Накрая ще стана доста добър с тези BC-AD сметки хахаха. Сега, да опитаме отново! # + romans_data['AgeOfSuccession'] = (romans_data['Reign Start'] - romans_data['Birth']).map(lambda x: x.days / 365) romans_data['AgeOfSuccession'].describe() # - sns.distplot(romans_data['AgeOfSuccession'].fillna(romans_data['AgeOfSuccession'].mean())); # Така, вече може да си запазим тази колона. Изглежда вeче няма странни неща. romans_data.AgeOfSuccession = romans_data.AgeOfSuccession.fillna(romans_data.AgeOfSuccession.mean()) # Добре, това вече прилича на нещо разумно. Сега, предполагам, че е много вероятно да има връзка между възраста на изкачване на трона и продължителността на управлението. # + plt.close() plt.scatter(romans_data.AgeOfSuccession, romans_data.DaysInPower) plt.gca().set_xlim(0, 85) plt.gca().set_ylim(0, 15000) plt.gca().set_xlabel('Age Of Succession') plt.gca().set_ylabel('Days in Power'); # - # Ба! Никаква връзка, няма да е толкова лесно :( Значи ще трябва да се надяваме регресията да намери някакъв смисъл сред останалите данни. # + # Удобно, от лекция 4 :D from sklearn.preprocessing import OneHotEncoder, LabelEncoder encoding_columns = ['Birth City', 'Birth Province', 'Succession', 'Cause', 'Killer', 'Dynasty', 'Era'] romans_nona = romans_data.fillna("") romans_encoders = {col: LabelEncoder().fit(romans_nona[col]) for col in encoding_columns} def encode_categorical(data, columns, encoders): return pd.DataFrame({col: encoders[col].transform(data[col]) for col in columns}, index = data.index) romans_encoded = encode_categorical(romans_nona, encoding_columns, romans_encoders) romans_encoded.head(10) # + # Сега е време да направим огромната таблица! one_hot_encoder = OneHotEncoder().fit(romans_encoded) romans_sparse = one_hot_encoder.transform(romans_encoded) romans_full = pd.np.concatenate([romans_sparse.todense(), romans_data[['AgeOfSuccession']]], axis=1) romans_full.shape # - # Разделяме си данните на няколко множества за трениране и тестване # + from sklearn.model_selection import train_test_split romans_days_in_power = romans_data.DaysInPower x_train, x_test, y_train, y_test = train_test_split(romans_full, romans_days_in_power, test_size=0.3, random_state=42) # - # Време е за тъпа линейна регресия. Какво ще стане като имаме толкова повече feature-и от колкото данни, чудя се. # + from sklearn.linear_model import LinearRegression regressor = LinearRegression() regressor.fit(x_train, y_train) print('Train set score: {}'.format(regressor.score(x_train, y_train))) print('Test set score: {}'.format(regressor.score(x_test, y_test))) # - # Алелуя! Научило ги е на изуст. Как е възможно това за линейна регресия? A -5 е... не особено полезн модел. Освен да опитаме на ново с по - малко фийчъри. Да кажем, че града в който е роден човек и провинцията, в която е роден не ни се виждат много важни. # + encoding_columns = ['Succession', 'Cause', 'Killer', 'Dynasty', 'Era'] romans_encoded = encode_categorical(romans_nona, encoding_columns, romans_encoders) one_hot_encoder = OneHotEncoder().fit(romans_encoded) romans_sparse = one_hot_encoder.transform(romans_encoded) romans_full = pd.np.concatenate([romans_sparse.todense(), romans_data[['AgeOfSuccession']]], axis=1) print(romans_full.shape) # - # Добре, фийчърите вече са по - малко от данните. Това може да е полезно. # + x_train, x_test, y_train, y_test = train_test_split(romans_full, romans_days_in_power, test_size=0.3, random_state=42) regressor = LinearRegression() regressor.fit(x_train, y_train) print('Train set score: {}'.format(regressor.score(x_train, y_train))) print('Test set score: {}'.format(regressor.score(x_test, y_test))) # - # Това е известно подобрени! Не знам дали е от значение, но още се борим да се върнем над нулата. Нека пробваме с други фийчъри. Но междувременно това може да си го направим на малка функция. # + def try_feature_set(encoding_columns, romans_nona, romans_encoders): romans_encoded = encode_categorical(romans_nona, encoding_columns, romans_encoders) one_hot_encoder = OneHotEncoder().fit(romans_encoded) romans_sparse = one_hot_encoder.transform(romans_encoded) romans_full_set = pd.np.concatenate([romans_sparse.todense(), romans_data[['AgeOfSuccession']]], axis=1) x_train, x_test, y_train, y_test = train_test_split(romans_full_set, romans_days_in_power, test_size=0.3, random_state=42) regressor = LinearRegression() regressor.fit(x_train, y_train) return (regressor, regressor.score(x_train, y_train), regressor.score(x_test, y_test)) possible_combinations = [ ['Succession', 'Killer'], ['Succession', 'Cause'], ['Succession', 'Cause', 'Killer'], ['Succession', 'Cause', 'Killer', 'Era'], ['Succession', 'Cause', 'Killer', 'Dynasty'], ['Cause', 'Killer', 'Dynasty', 'Era'], ['Cause', 'Killer', 'Dynasty'], ['Cause', 'Killer'], ['Cause', 'Killer', 'Era'], ['Cause'], ['Killer'], ['Succession'], ['Dynasty'], ['Era'], ['Era', 'Killer'], ['Era', 'Cause'], # Омръзна ми. Това са всички разумни варинати, за които се сещам. ] for combination in possible_combinations: _, train_score, test_score = try_feature_set(combination, romans_nona, romans_encoders) print("--{}--\ntrain: {}\ntest: {}\n".format(', '.join(combination), train_score, test_score)) # - # О! Имаме някакъв напредък. Само с Cause, Killer, Era и AgeOfSuccession имаме вече положителни числа 🎉! Сега ще опитам да върна местата на раждане по един или друг начин. # + possible_combinations = [ ['Cause', 'Killer', 'Era', 'Birth City'], ['Cause', 'Killer', 'Era', 'Birth Province'], ['Cause', 'Killer', 'Era', 'Birth City', 'Birth Province'], ] for combination in possible_combinations: _, train_score, test_score = try_feature_set(combination, romans_nona, romans_encoders) print("--{}--\ntrain: {}\ntest: {}\n".format(', '.join(combination), train_score, test_score)) # - # Не, не помагат изобщо! Но още си спомням теорията си за роден във военен град или не. Според мен си струва да се опита. # + def emperor_type_by_birth_place(birth_place): if birth_place in ['Sirmium', 'Singidunum']: return 'Soldier' if birth_place in ['Rome', 'Constantinople']: return 'Patrician' return 'Pleb' romans_data['EmperorType'] = romans_data['Birth City'].map(emperor_type_by_birth_place) romans_nona = romans_data.fillna("") encoding_columns += ['EmperorType'] romans_encoders = {col: LabelEncoder().fit(romans_nona[col]) for col in encoding_columns} possible_combinations = [ ['EmperorType'], ['Cause', 'EmperorType'], ['Cause', 'Era', 'EmperorType'], ['Killer', 'EmperorType'], ['Killer', 'Era', 'EmperorType'], ['Cause', 'Killer', 'EmperorType'], ['Cause', 'Killer', 'Era', 'EmperorType'], ['Cause', 'Killer', 'Dynasty', 'EmperorType'], ['Cause', 'Killer', 'Dynasty', 'Era', 'EmperorType'], ] for combination in possible_combinations: _, train_score, test_score = try_feature_set(combination, romans_nona, romans_encoders) print("--{}--\ntrain: {}\ntest: {}\n".format(', '.join(combination), train_score, test_score)) # - # Единственият извод, който мога да си направя тук е: колкото по - малко фийчъри, толкова по - добре :D За това нека се върнем няколко стъпки назад. # + # Още на графиката си личеше, че няма да стане. Но да го сравним с останалите резултати. x_train, x_test, y_train, y_test = train_test_split(romans_data[['AgeOfSuccession']], romans_days_in_power, test_size=0.3, random_state=42) regressor = LinearRegression() regressor.fit(x_train, y_train) print('Train set score: {}'.format(regressor.score(x_train, y_train))) print('Test set score: {}'.format(regressor.score(x_test, y_test))) # - # Хм. Имма друга идея. Струва ми се логично, че времето което е управлявал _прединият_ император може да има значение за текущият. Така, ако времената са лоши е по - вероятно императорът да не се задържи т.к. се е качил на трона по време на граждански войни, несигурност и други неприятни фактори. Лоши времена биха били [69AD - годината на четерите императора](https://en.wikipedia.org/wiki/Year_of_the_Four_Emperors), [193AD - годината на петте императора](https://en.wikipedia.org/wiki/Year_of_the_Five_Emperors), [238AD - годината на шестте императора](https://en.wikipedia.org/wiki/Year_of_the_Six_Emperors) и т.н. Забелязва се как `Х` в "Годината на X императора" продължава да расте за известно време. Със сигурност на римляните по това време хич не им е било забавно! # + romans_with_prev = romans_data.copy() romans_with_prev.PreviousEmperorRule = romans_with_prev.DaysInPower # Възползваме се от това, че индексите на императорите са поредни. Не съвсем, когато става въпрос за такива # управляващи по едно и също време, но пак е достатъчно близо. for ind in range(2, len(romans_data)+1): prev_ind = ind-1 romans_with_prev.at[ind, 'PreviousEmperorRule'] = romans_data.at[prev_ind, 'DaysInPower'] # Махаме Август т.к. за него нямаме предишен император romans_with_prev = romans_with_prev.drop(1) # - # Нека видим дали има някаква очевидна връзка между новата колона и target-а. # + plt.close() plt.scatter(romans_with_prev.PreviousEmperorRule, romans_with_prev.DaysInPower) plt.gca().set_xlim(0, 15000) plt.gca().set_ylim(0, 15000) plt.gca().set_xlabel('Prev Days in Power') plt.gca().set_ylabel('Days in Power'); # - # Не мога да кажа, че виждам особено сериозна връзка. # + romans_nona = romans_with_prev.fillna("") romans_encoded = encode_categorical(romans_nona, encoding_columns, romans_encoders) with_prev_encoder_one_hot = OneHotEncoder().fit(romans_encoded) romans_sparse = with_prev_encoder_one_hot.transform(romans_encoded) romans_full_set = pd.np.concatenate([romans_sparse.todense(), romans_with_prev[['AgeOfSuccession', 'PreviousEmperorRule']]], axis=1) romans_with_prev_full = romans_full_set.copy() x_train, x_test, y_train, y_test = train_test_split(romans_full_set, romans_with_prev.DaysInPower, test_size=0.3, random_state=42) regressor = LinearRegression() regressor.fit(x_train, y_train) print('Train set score: {}'.format(regressor.score(x_train, y_train))) print('Test set score: {}'.format(regressor.score(x_test, y_test))) # - # Отново много лош резултат. Т.к. отново използваме много feature-и. Да ги намаилм малкото отново. Спомням си, че от преди малко най - добрите опити бяха с (Cause, Killer), (Cause, Killer, Era), (Cause,), (Killer,). Ще ги опитам отново, но с добавени PreviousEmperorRule. # + concatenated = ['AgeOfSuccession', 'PreviousEmperorRule'] possible_combinations = [ ['Cause', 'Killer'], ['Cause', 'Killer', 'Era'], ['Cause'], ['Killer'], ] for encoding_columns in possible_combinations: romans_encoded = encode_categorical(romans_nona, encoding_columns, romans_encoders) one_hot_encoder = OneHotEncoder().fit(romans_encoded) romans_sparse = one_hot_encoder.transform(romans_encoded) romans_full_set = pd.np.concatenate([romans_sparse.todense(), romans_with_prev[concatenated]], axis=1) x_train, x_test, y_train, y_test = train_test_split(romans_full_set, romans_with_prev.DaysInPower, test_size=0.3, random_state=42) regressor = LinearRegression() regressor.fit(x_train, y_train) print("Columns: {}".format(encoding_columns + concatenated)) print("Train set score: {}".format(regressor.score(x_train, y_train))) print("Test set score: {}\n".format(regressor.score(x_test, y_test))) # - # ## Други алгоритми # # Мисля, че дойде времето да се опита с нещо различно от линейна регресия. Вече нямам никакви нови идеи. Първо, вижда ми се логично, че kNN може да е добър aлгоритъм за намиране на модел т.к. ако император е поставен в подобна ситуация очакваме да има подобни резултати и продължителност на управление. Нали така? # + from sklearn.neighbors import KNeighborsRegressor x_train, x_test, y_train, y_test = train_test_split(romans_with_prev_full, romans_with_prev.DaysInPower, test_size=0.3, random_state=42) for n in range(1, 6): regressor = KNeighborsRegressor(n_neighbors=n) regressor.fit(x_train, y_train) print("{} nieghtbours".format(n)) print("Train set score: {}".format(regressor.score(x_train, y_train))) print("Test set score: {}\n".format(regressor.score(x_test, y_test))) # - # По - добре от първоначалните опити с линейна регресия, но все още крайно недостатъчно. Може би random forest т.к. лесно ще се отърве от излишните данни? # + from sklearn.ensemble import RandomForestRegressor for e in [5, 10, 100, 200, 500, 1000]: regressor = RandomForestRegressor(n_estimators=e, n_jobs=3, random_state=42) regressor.fit(x_train, y_train) print("{} n_estimators".format(e)) print("Train set score: {}".format(regressor.score(x_train, y_train))) print("Test set score: {}\n".format(regressor.score(x_test, y_test))) # - # Яко overfitting. Интересно ми е, какво ли си мисли, че са най - полезните фийчъри? # Взимам си най - хубавото дърво regressor = RandomForestRegressor(n_estimators=e, n_jobs=3, random_state=200) regressor.fit(x_train, y_train) # + features_count = romans_with_prev_full.shape[1] importances = regressor.feature_importances_ std = np.std([tree.feature_importances_ for tree in regressor.estimators_], axis=0) indices = np.argsort(importances)[::-1] # Print the feature ranking print("Feature ranking:") for f in range(min(6, features_count)): print("%d. feature %d (%f)" % (f + 1, indices[f], importances[indices[f]])) # Plot the feature importances of the forest plt.close() plt.figure(figsize=(14, 14), dpi=80) plt.title("Feature importances") plt.barh(range(features_count), importances[indices], color="r", xerr=std[indices], align="center") plt.yticks(range(features_count), indices) plt.ylim([-1, features_count]) plt.show() # - # Подозирам, че feature 43 и 42 са PreviousEmperorRule и AgeOfSuccession. От тази гледна точка random forest-а се съгласява с мен, че са важни :) Но всъщност не знам как да го проверя. Как да обърна тези feature index-и отново към имената на фийчърите? Ясно е, че за много от тях след OneHot ще са от типа неща от сорта "IsDominatе", "IsPrincipate" и т.н. # Това нищо съществено не ми подсказва. Може би, както предполагах, няма никаква реална зависимост между тези данни и продължителноста на управление на император. Мисля да спра до тук. Но имам и няколко други идеи: # # - Да се направят bin-ове с деситилетията и да се добави всички дати на императорите в някакъв bin # - Да се опита със SVM т.к. уж те се справяли когато имаш много feature-и малко данни
28,459
/assignments/01_Intro2images-stVer.ipynb
4c19b92543a0a199321351440743bd0c5a184586
[]
no_license
iknyazeva/ML2020
https://github.com/iknyazeva/ML2020
0
13
null
2020-09-21T09:56:38
2020-09-21T09:53:56
Jupyter Notebook
Jupyter Notebook
false
false
.py
10,090,911
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + Collapsed="false" import numpy as np from skimage import data, io, color import matplotlib.patches as patches import matplotlib.image as mpimg import matplotlib.pyplot as plt # %matplotlib inline plt.rcParams["figure.figsize"] = (6,3) # + [markdown] Collapsed="false" # # Изображение как массив: начало # # В pyhton есть встроенный модель skimage для работы с изображениями. С помощью него, не устанавливая ничего дополнительно, уже можно многое сделать. Ваша задача изучить самостоятельно материал про то, как устроено зрение # [Наш опорный курс по компьютерному зрению](https://courses.cs.washington.edu/courses/cse455/18sp/), посмотрите лекцию по Human vision и восприятию зрения. Если вам не нравится материал этого лектора - можете использовать любой другой. В результате у вас должна появиться заметка в маркдауне (используйте картинки с прямыми ссылками или загружайте их к себе в репозиторий и оттуда подгружайте потом). Эту заметку вы добавляете к себе на сайт к следующему занятию, а также отправляете в гугл класс. Также надо доделать эту тетрадку и тоже отправить ее на проверку # # + Collapsed="false" print("Доступные изображения в skimage \n") '; '.join(data.__all__[2:]) # + [markdown] Collapsed="false" # ## Как прочитать изображение? # Во многих пакетах есть средства работы с изображениям, посмотрим встроенные # - средствами matplotlib.image (используется Pillow (PIL)) # - skiimage # # Есть разница откуда читать изображение, если оно находится по ссылке, то напрямую PIL не будет работать, skimage умеет читать прямо из ссылки # + Collapsed="false" # если на диске fig, ax = plt.subplots(ncols = 2, figsize = (10,8)) ax[0].imshow(io.imread('imgs/Kyoto.jpg'));ax[0].axis('off'); ax[1].imshow(mpimg.imread('imgs/Kyoto.jpg')); ax[1].axis('off'); # + Collapsed="false" import requests from io import BytesIO from PIL import Image # + Collapsed="false" Image.open('imgs/Kyoto.jpg') # + [markdown] Collapsed="false" # А если хотим прочитать сразу из урла - не получится, то skimage справится, а PIL - нет # + Collapsed="false" im_link = 'https://images.squarespace-cdn.com/content/v1/55ee34aae4b0bf70212ada4c/1479762511721-P1Z10B8ZJDWMPJO9C9TY/ke17ZwdGBToddI8pDm48kPmLlvCIXgndBxNq9fzeZb1Zw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZamWLI2zvYWH8K3-s_4yszcp2ryTI0HqTOaaUohrI8PIFMLRh9LbupWL4Bv1SDYZc4lRApws2Snwk0j_RSxbNHMKMshLAGzx4R3EDFOm1kBS/Kyoto+3.jpg' fig, ax = plt.subplots(ncols = 2, figsize = (10,8)) ax[0].imshow(io.imread(im_link));ax[0].axis('off'); ax[1].imshow(mpimg.imread(im_link)); ax[1].axis('off'); # + Collapsed="false" Image.open(im_link) # + Collapsed="false" response = requests.get(im_link) rdata = BytesIO(response.content) Image.open(rdata) # + Collapsed="false" kyoto = np.array(Image.open(rdata)) # + [markdown] Collapsed="false" # Эта картинка будет вашим заданием, а потренируемся на кошечках, еще и встроенных # + [markdown] Collapsed="false" # ## Изображение как матрица # Изображение - массив в numpy, можем использовать любые пиксельные трансформации. Как устроен массив чуть попозже, а пока научимся накладывать различные маски # + Collapsed="false" #считываем картинку image = data.chelsea() #показываем io.imshow(image); print('Image dimensions:', image.shape) print('Image size:', image.size) # + Collapsed="false" from skimage.draw import ellipse # + Collapsed="false" rr, cc = ellipse(120, 170, 40, 50, image.shape) img = image.copy() mask = np.zeros_like(img) mask[rr,cc] = 1 fig, ax = plt.subplots(ncols = 2, figsize = (10,8)) img[mask==0] = 1 ax[0].imshow(img); ax[0].axis('off'); img = image.copy() img[mask==1] = 255 ax[1].imshow(img); ax[1].axis('off'); # + [markdown] Collapsed="false" # ## Задание 1. Bounding box # Очень часто какой-то объект (лицо например) выделяют с помощью бокса # возьмите любую картинку, выделите бокс, и рядом отрисуйте содержимое бокса # + [markdown] Collapsed="false" # ## Playing with colors # # Цветовые схемы, вы с ними еще познакомитесь. А мы пока посмотрим что с этим можно сделать # Обычно цветное изображение загружается в RGB схеме. То есть изображение это три сконкатенированные матрицы: {Red, Green, Blue} # + Collapsed="false" image = data.coffee() f, ax = plt.subplots(1, 3, figsize=(20,10)) chans = ['R','G','B'] for i in range(3): ax[i].set_title(chans[i]+' channel') ax[i].imshow(image[:,:,i], cmap='gray') ax[i].axis('off') # + [markdown] Collapsed="false" # Как получить из цветной картинки изображение в градациях серого? А можно обратно? # В skimage есть конвертеры skimage.color. Что-то произошло в ячейке ниже. Что я хотела сказать этим примером? # + Collapsed="false" grayscale = color.rgb2gray(image) rgb = color.gray2rgb(grayscale) fig, ax = plt.subplots(1,3, figsize = (20,10)) ax[0].imshow(image);ax[1].imshow(grayscale);ax[2].imshow(rgb); # + [markdown] Collapsed="false" # ## RGB to HUE # # Хороший инструмент посмотреть как соответсвтуют карты # http://math.hws.edu/graphicsbook/demos/c2/rgb-hsv.html # + Collapsed="false" from skimage.color import rgb2hsv, hsv2rgb # + Collapsed="false" rgb_img = data.coffee() hsv_img = rgb2hsv(rgb_img) hue_img = hsv_img[:, :, 0] sat_img = hsv_img[:, :, 1] value_img = hsv_img[:, :, 2] fig, ax = plt.subplots(ncols=4, figsize=(10, 4)) titles = ["RGB image","Hue channel","Saturation channel", "Value channel"] imgs = [rgb_img, hue_img,sat_img,value_img] cmaps = [None,'hsv', None,None] for i in range(4): ax[i].imshow(imgs[i], cmap = cmaps[i]) ax[i].set_title(titles[i]) ax[i].axis('off') fig.tight_layout() # + Collapsed="false" data.camera().shape # + [markdown] Collapsed="false" # Допустим у вас есть любимый цвет и вы хотите видеть все в нем, тогда для этого отлично подходит hsv цветовая схема. # Посмотрим как наше кофе будет выглятедь в разных цветах # + Collapsed="false" def colorize(image, hue): hsv = color.rgb2hsv(color.gray2rgb(image)) hsv[:, :, 0] = hue return color.hsv2rgb(hsv) image = data.coffee() hue_rotations = np.linspace(0, 1, 6) colorful_images = [colorize(image, hue) for hue in hue_rotations] fig, axes = plt.subplots(nrows=2, ncols=3, figsize = (10,8)) for ax, array, hue in zip(axes.flat, colorful_images,hue_rotations): ax.imshow(array, vmin=0, vmax=1) ax.set_title(f'Hue equal to {round(hue,3)}') ax.set_axis_off() fig.tight_layout() # + [markdown] Collapsed="false" # ### Сохранение изображения # тут все просто: # # `io.imsave(filename, source)` # # Но если вы посмотрите на внтуреннее представление, то там каждый слой переведен в масштаб от 0 до 1, а стандартное представление это диапазон 0-255, поэтому вы переводите либо руками, либо оставляете это функции, она тогда выдаст предупреждение # + Collapsed="false" plt.imshow(colorize(image, 0.5)) io.imsave('imgs/blue_coffee.png', colorize(image, 0.5)) io.imsave('imgs/blue_coffee.png', (255*colorize(image, 0.5)).astype(np.uint8)) # + [markdown] Collapsed="false" # ## А как быть если захотелось не только базового цвета, но еще и оттенков? # # Сделайте модификацию функции colorize,  в которой можно задать диапазон базового цвета hue_min, hue_max # + Collapsed="false" def colorize_band(image, hue_min,hue_max): #to do pass # + [markdown] Collapsed="false" # Все оттенки фиолетового у вас будут выглядеть как-то так # + Collapsed="false" Image.open('imgs/purple_kyoto.jpg') # + Collapsed="false"
7,627
/Data PreProcessing - DSN Staff Promotions 2019.ipynb
68897ba4eea59265cab6d228eaa882f37f0e9e49
[]
no_license
rawnc/Data-PreProcessing---Using-DSN-Staff-Promotions-2019-Data
https://github.com/rawnc/Data-PreProcessing---Using-DSN-Staff-Promotions-2019-Data
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
1,630,048
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # include modules from os import listdir from os.path import isfile, join import math from textblob import TextBlob as tb # define functions def tf(word, blob): return blob.words.count(word) / len(blob.words) def n_containing(word, bloblist): return sum(1 for blob in bloblist if word in blob.words) def idf(word, bloblist): return math.log(len(bloblist) / (1 + n_containing(word, bloblist))) def tfidf(word, blob, bloblist): return tf(word, blob) * idf(word, bloblist) # fetching documents mypath = "C:/Users/Venant/Desktop/vectors" filenames = [f for f in listdir(mypath) if isfile(join(mypath, f))] docs = [] for file in filenames: file_path = mypath + '/' + file with open(file_path) as f: str = ' '.join(f.readlines()) docs.append(str) # converting documents into blobs blobs = [] for doc in docs: blob = tb(doc) # do preprocessing blobs.append(blob) # calculations word = 'extraction' tf = tf(word, blobs[2]) print(tf) idf = idf(word, blobs) print(idf) tfidf = tf*idf print(tfidf) # -
1,339
/notebooks/sample_lakes.ipynb
493ea7a7094217285b6aa12c3eef5786b614aada
[ "BSD-3-Clause" ]
permissive
Ciaran1981/morph-snakes
https://github.com/Ciaran1981/morph-snakes
0
0
null
2020-04-29T11:39:05
2020-04-29T11:05:26
null
Jupyter Notebook
false
false
.py
652,492
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] colab_type="text" id="S0WvPSo3MqKp" # # **Data Science 100: Final Project** # --- # # # # # # # # # # # # + [markdown] colab_type="text" id="zjt38IuEkQ5o" # ### **Topic:** # COVID-19 in California: Predicting Cases and Deaths # # ### **Team:** # # # * Pranav Bhasin # * Muskaan Goyal # # + [markdown] colab_type="text" id="vqSMxtyvO3B1" # # **Overview** # # --- # # # # # # # # # # + [markdown] colab_type="text" id="ARY-PCURkOSr" # 1. <b>[About the Project](#Introduction)</b> # * Introduction # * Research Question # 1. <b>[Setup](#Setup)</b> # * Libraries # * Datasets # 1. <b>[Processing and Data Cleaning](#DataCleaning)</b> # * Data Cleaning # * Preparing Data # * Standardize Data # * Generating Training/Validation Data # 1. <b>[Prediction Model of number of cases](#Model1)</b> # * Window Size Tunings # * Threshold Tunings # * Lambda Tunings # 1. <b>[Prediction Model of number of deaths](#Model2)</b> # * Window Size Tunings # * Threshold Tunings # * Lambda Tunings # 1. <b>[Further Analysis](#FurtherAnalysis)</b> # 1. <b>[Conclusion](#Conclusion)</b> # 1. <b>[Resources](#Resources)</b> # + [markdown] colab_type="text" id="0-1gAl3zTvAW" # # <a id='Introduction'><b>About the Project</b></a> # # # --- # # # # # + [markdown] id="aunxwqYyhIBc" colab_type="text" # ### **Introduction** # + [markdown] id="MIZ4IMbfBACe" colab_type="text" # The World Health Organization (WHO) issued a “public health emergency of international concern,” on January 30th. In less than 5 months, COVID-19 has spread across the world infecting over x people, and causing nearly y deaths in over 212 countries and territories. This disease, from the class of influenza-like viruses like MERS and SARS, is a keen reminder of the Spanish Flu pandemic. # # The COVID-19 pandemic continues to have a devastating effect on the health and well-being of the global population. A critical step in the fight against COVID-19 is predicting the number of new cases and deaths. As most countries are following some form of social distancing measures, an important consideration for governments in lockdown is the growing number of cases and deaths despite these measures. This motivated our team to model the spread of the disease in the form of new cases and deaths. By leveraging time-series datasets and population, we would like to predict the # # + [markdown] id="DD7k_djmhLIM" colab_type="text" # ### **Reseach Question** # * How can we predict the number of new cases of COVID-19 in # California using the time series data of new cases in all states in the United States and their respective populations? # * How can we predict the number of deaths due COVID-19 in California using the time series data of deaths in all states in the United States and their respective populations? # # + [markdown] colab_type="text" id="RGirhAObjxUA" # # <a id='Setup'><b>Setup</b></a> # # --- # # # + [markdown] colab_type="text" id="frnG1DPPj7-O" # ### **Libraries** # + colab_type="code" id="hp9aVbyWkBtO" colab={"base_uri": "https://localhost:8080/", "height": 71} outputId="c7012665-96e5-4305-b5b4-e58c29195b8d" from datetime import datetime, timedelta from dateutil import tz from IPython.display import display, Markdown, Latex import matplotlib.pyplot as plt import numpy as np import pandas as pd from pylab import rcParams import warnings import requests from sklearn.linear_model import Ridge, Lasso import seaborn as sns # + [markdown] colab_type="text" id="RpxaPRGt4K7w" # ### **Datasets** # + colab_type="code" id="Sh2OZZ_n2UfT" colab={} # Coronavirus confirmed_data = pd.read_csv('time_series_covid19_confirmed_US.csv') death_data = pd.read_csv('time_series_covid19_deaths_US.csv') # + colab_type="code" id="s8DA8e5g438i" outputId="c573191f-84f9-4616-e89f-ca461e1c4aa0" colab={"base_uri": "https://localhost:8080/", "height": 578} confirmed_data.head(10) # + id="ykih_PbwTr_C" colab_type="code" outputId="dd6a6903-15ec-40fc-9a65-2de04be115bf" colab={"base_uri": "https://localhost:8080/", "height": 338} death_data.head() # + [markdown] id="IAB69VR4TsAE" colab_type="text" # # <a id='DataCleaning'><b>Processing And Data Cleaning</b></a> # + [markdown] id="3aSOHdv0ymFk" colab_type="text" # ### **Data Cleaning and Exploratory Data Analysis** # + [markdown] id="PqEvHTtKkXx-" colab_type="text" # For answering our research question, we need to focus on the state-level data. As the the data presented in the tables `confirmed_data` and `death_data` is on a county-level, we need to process our tables to get the required data. # However, before we do that, we need to address the null values, and values that don't fit our criterion of being a state. # # + id="s3eQzr_umDr6" colab_type="code" outputId="b9e4c5bb-af34-4b95-a557-84a444f12e17" colab={"base_uri": "https://localhost:8080/", "height": 119} confirmed_data.isna().sum().sort_values(ascending=False).head() # + id="aryLwkLxmn13" colab_type="code" outputId="1b0d0356-9c0f-4c67-a205-41dd99c4b359" colab={"base_uri": "https://localhost:8080/", "height": 119} death_data.isna().sum().sort_values(ascending=False).head() # + id="DQKjiblKt3ly" colab_type="code" outputId="20142c57-2b12-45a5-ed9c-edf5e25e536c" colab={"base_uri": "https://localhost:8080/", "height": 51} print(confirmed_data.iso3.unique()) print(death_data.iso3.unique()) # + [markdown] id="SNGvnUyfmgNa" colab_type="text" # We noticed that in both the tables, we noticed that 7 Admin2 values and 4 FIPS values are missing. From the documentation of the datasets, we know that Admin2 and FIPS represent unique counties. # + id="MenAW--4nWUU" colab_type="code" outputId="04355378-8c1b-4d49-8afd-afb2e1991ebd" colab={"base_uri": "https://localhost:8080/", "height": 609} confirmed_data[confirmed_data['Admin2'].isna() | confirmed_data['FIPS'].isna()] # + id="KskHWnT9sAmC" colab_type="code" outputId="0cf65363-eff9-41a3-dec7-823e07b007c3" colab={"base_uri": "https://localhost:8080/", "height": 609} death_data[death_data['Admin2'].isna() | death_data['FIPS'].isna()] # + [markdown] id="A4iUHNtxokD5" colab_type="text" # **Observations** # * Although the counties `Dukes and Nantucket` and `Kansas City` don't have FIPS for historic reasons, they are part of their respective states, and would be combined into them. # * We first notice that the first 5 entries are US Overseas territories. As they. As they are islands, they might not accurately represent characteristics similar to that of the mainland states. So we're removing them. # * The Province States titled `Diamond Princess` and `Grand Princess` are in fact cruise ships that were stranded in the seas for a long-time. As the people on board were disembarked from the ship, these people are already being counted in their respective states. So, we can safely remove them from our count. # * The last two of the entries are of correctional facilities. On further researching these numbers, we couldn't find if these were already included in the count for Michigan. Nonetheless, as these facilities are locked and are not accessible openly by the people outside, we are excluding these numbers. # # # + id="B_r9OWHNr7kk" colab_type="code" outputId="f81c03bb-dd90-4673-af25-cb02d2df36ab" colab={"base_uri": "https://localhost:8080/", "height": 338} # Removing Rows confirmed_data_clean = confirmed_data.drop(index=[0, 1, 2, 3, 4, 3200, 3252, 3253, 3254]) death_data_clean = death_data.drop(index=[0, 1, 2, 3, 4, 3200, 3252, 3253, 3254]) # Fill NA for Valid Values confirmed_data_clean.fillna(value="Unassigned", inplace=True) death_data_clean.fillna(value="Unassigned", inplace=True) confirmed_data_clean.head(5) death_data_clean.head(5) # + [markdown] id="qtj-Kzjytlo5" colab_type="text" # ### **Preparing Data** # + id="iqcsZLbatmrQ" colab_type="code" outputId="12ada95f-ef35-43cd-ded3-49f7953cd705" colab={"base_uri": "https://localhost:8080/", "height": 284} confirmed_data_clean = confirmed_data_clean.drop(columns = ["UID", "iso2", "iso3", "code3", "FIPS", "Admin2", "Country_Region", "Lat", "Long_", "Combined_Key"] ).rename(columns = {"Province_State" : "State"} ).groupby("State").sum() confirmed_data_clean.head() # + id="jeaTjtn5v99f" colab_type="code" outputId="b502cb23-fd8d-4343-ee56-378ab40bffc4" colab={"base_uri": "https://localhost:8080/", "height": 284} death_data_clean = death_data_clean.drop(columns = ["UID", "iso2", "iso3", "code3", "FIPS", "Admin2", "Country_Region", "Lat", "Long_", "Combined_Key"] ).rename(columns = {"Province_State" : "State"} ).groupby("State").sum() death_data_clean.head() # + [markdown] id="hz-TMQp6xbdd" colab_type="text" # Finally, we would like to ensure that our data from both tables matches up with one another. # We can run a quick smoke test by: # + id="haA6gxryxmNI" colab_type="code" outputId="3cca02f4-90ce-4317-da1f-5d99b6106aec" colab={"base_uri": "https://localhost:8080/", "height": 34} assert np.all([state in death_data_clean.index for state in confirmed_data_clean.index]), "A state in one of the tables doesn't match with the other" print("Dataframes are matched") # + id="0mufbF9s1nvq" colab_type="code" colab={} # Separating death_data_clean into two tables for separating populations population = death_data_clean['Population'].to_frame() death_data_clean.drop(columns=['Population'], inplace=True) # + id="blr0CuFA5z6G" colab_type="code" outputId="be79db56-1b8e-461a-c150-21a5ccb0ffb2" colab={"base_uri": "https://localhost:8080/", "height": 235} population.head() # + id="Svi3wISuCgJJ" colab_type="code" colab={} def heatmap(df, title): fig, ax = plt.subplots(figsize=(12,7)) plt.title(title, fontsize= 18) ttl = ax.title ttl.set_position([0.5, 1.05]) cmap = sns.cm.rocket_r sns.heatmap(df.loc[["New York", "New Jersey", "California","Texas"]],cmap=cmap,vmin=10, linewidths=0.30, ax=ax) plt.show() def line_plot(df, title): fig, ax = plt.subplots(figsize=(12,7)) plt.title(title, fontsize= 18) ttl = ax.title ttl.set_position([0.5, 1.05]) plt.plot(np.arange(1,88,1), df) plt.plot() plt.show() # + id="VjfGhwVZGY7W" colab_type="code" outputId="03837926-dc27-4a90-cf41-46b1a049626f" colab={"base_uri": "https://localhost:8080/", "height": 496} heatmap(confirmed_data_clean, "Heatmap of Confirmed Cases of States by Date") # + id="g3Pf6e4dGkvR" colab_type="code" outputId="7035aa88-88dd-4b89-bb06-d0b32b05de41" colab={"base_uri": "https://localhost:8080/", "height": 496} heatmap(death_data_clean, "Heatmap of Confirmed Cases of States by Date") # + [markdown] id="ze16XGkTJVxK" colab_type="text" # While epidemics often grow in an exponential fashion, from the heatmap we can see how the values in the different states was extremely low initially, and grew significantly toward the end supporting our notion. To account for the same in our linear model, we will linearize out data by normalization. # + [markdown] id="D6SBGw8qyvYk" colab_type="text" # ### **Normalize Data** # + [markdown] id="X3pHldHD3zwB" colab_type="text" # After cleaning and preparing our data, we will normalize the data. We will first divide all the entries in both the datasets by their respective state populations to help us represent the number of cases and deaths on the same scale. # + id="ArqMyrHa0gdp" colab_type="code" colab={} def normalize(data, divisor): return data/float(divisor) def rev_normalize(data, multiplier): return data * float(multiplier) def log_normalize(data, base=np.e): return np.log(np.clip(data, 1e-15, 1)) / np.log(base) def exponential_normalize(data, base=np.e): return base ** data def row_to_state(df, state = "California", threshold = 1, window_size=4, normalize_data=True): assert state in df.index, "Invalid State: {state}".format(state = state) window_size += 1 data = df.loc[state] if not np.any(data >= threshold): return None Y = np.array(data[np.argmax(data >= threshold):]) if len(Y) <= window_size: return None X = [] for i in range(len(Y) - window_size): window = Y[i:i + window_size] X.append(window) if normalize_data: return normalize(np.array(X), population.loc[state]) return np.array(X) # + [markdown] id="5o9Q_S94DsvL" colab_type="text" # For our purpose, we created the function `state_to_input` that takes a dataframe from either `death_data_clean` or `confirmed_data_clean` to create an array for a given State that represents the possible set of windows of days. For example, for a window size of 4 days, we created windows of size 5 in which the fifth entry becomes the value and the four days represent features. # + id="680mPTatDhx0" colab_type="code" outputId="0467622a-0119-4603-bab5-f30d39671ea4" colab={"base_uri": "https://localhost:8080/", "height": 34} # Sample for California row_to_state(confirmed_data_clean, normalize_data=False)[40] # + [markdown] id="6oCB6DrOFiGs" colab_type="text" # ### **Generating Training/Validation Data** # + [markdown] id="mHqLo32wHVBT" colab_type="text" # We would now use our functions above to create our training and validation datasets. We do so by operating on the cleaned datasets for confirmed cases and deaths, and applying the methods defined above to each entry. For the same, we created the following method: # + id="er29qdMAHhiM" colab_type="code" colab={} def get_data(df, train = [], val = [], threshold = 1, window_size = 4): def stack_state(data, state_data): if data is None: data = state_data else: data = np.vstack((data, state_data)) return data if (len(train)) == 0: train = list(set(df.index) - set(val)) train_data, val_data = None, None for state in df.index: state_data = row_to_state(df, state, threshold = threshold, window_size=window_size) if state_data is None: continue if state in train: train_data = stack_state(train_data, state_data) else: val_data = stack_state(val_data, state_data) return train_data, val_data # + id="XnP5VQh2LCyl" colab_type="code" colab={} # Generating data for predicted state being California train_data_confirmed, val_data_confirmed = get_data(confirmed_data_clean, train=[], val = ["California"], threshold=1, window_size=4) X_train_data_confirmed, y_train_data_confirmed = train_data_confirmed[:,:4], train_data_confirmed[:,4:] X_val_data_confirmed, y_val_data_confirmed = val_data_confirmed[:,:4], val_data_confirmed[:,4:] # + [markdown] id="Y6ZxEihlgRXl" colab_type="text" # # <a id='Model1'><b>Prediction Model Of Number of Cases</b></a> # + [markdown] id="dNg5yC93N51O" colab_type="text" # After generating our training and validation sets for both the datasets, we will create a prediction model of number of coronavirus cases in a region, In particular, we will predict the number of cases in California using the other data points we have. # + id="EjSYnjczZ0Cy" colab_type="code" colab={} def loss_function(df, state, prediction, y): pred = rev_normalize(prediction, df.loc[state]) y = rev_normalize(y, df.loc[state]) return np.mean(abs(pred - y)) # + id="Xt-Jm_laOQve" colab_type="code" outputId="ac9439af-7dda-4921-a015-f7ef2aa77ccf" colab={"base_uri": "https://localhost:8080/", "height": 51} model = Ridge(alpha = 0.002) model.fit(X_train_data_confirmed, y_train_data_confirmed) pred = model.predict(X_train_data_confirmed) print("Training Accuracy:" , model.score(X_train_data_confirmed, y_train_data_confirmed, sample_weight=None)) print("Validation Accuracy:" , model.score(X_val_data_confirmed, y_val_data_confirmed, sample_weight=None)) # + id="JSC8kecwWbVs" colab_type="code" outputId="213907d3-e441-47e1-c4f8-b5973528f521" colab={"base_uri": "https://localhost:8080/", "height": 51} from sklearn.linear_model import RidgeCV model = RidgeCV(alphas = [1, 0.1, 0.01, 0.001]) model.fit(np.vstack((X_train_data_confirmed, X_val_data_confirmed)), np.vstack((y_train_data_confirmed, y_val_data_confirmed))) pred = model.predict(X_train_data_confirmed) print("Training Accuracy:" , model.score(X_train_data_confirmed, y_train_data_confirmed, sample_weight=None)) print("Validation Accuracy:" , model.score(X_val_data_confirmed, y_val_data_confirmed, sample_weight=None)) # + [markdown] id="CpjNvRoVr4t-" colab_type="text" # We utilised the regression models like RidgeRegression and RidgeCv from the sklearn library. We played around with the parameter alpha to get a decent training and validation accuracy. # # We realised that our model can be improved by optimising the parameters of our model - threshold value, window size and alpha value. To optimise these paramters, we will tune these parameters and find the optimised values. # + id="4g20r_LBYQb_" colab_type="code" colab={} def data_pipeline(data, state="California", threshold = 1, window_size = 15, alpha = 0.001): train_data_confirmed, val_data_confirmed = get_data(data, train=[], val = [state], threshold=threshold, window_size=window_size) X_train_data_confirmed, y_train_data_confirmed = train_data_confirmed[:,:window_size], train_data_confirmed[:,window_size:] X_val_data_confirmed, y_val_data_confirmed = val_data_confirmed[:,:window_size], val_data_confirmed[:,window_size:] model = Ridge(alpha = alpha) model.fit(X_train_data_confirmed, y_train_data_confirmed) pred = model.predict(X_train_data_confirmed) pred_val = model.predict(X_val_data_confirmed) return (loss_function(population,state, pred, y_train_data_confirmed), loss_function(population, state, pred_val, y_val_data_confirmed), model.score(X_train_data_confirmed, y_train_data_confirmed, sample_weight=None), model.score(X_val_data_confirmed, y_val_data_confirmed, sample_weight=None)) # + id="GXNaR4RhdjEg" colab_type="code" outputId="9dfa410c-0f98-4797-eeb8-517345163722" colab={"base_uri": "https://localhost:8080/", "height": 85} t_loss, v_loss, t_acc, v_acc = data_pipeline(confirmed_data_clean) print("Training Loss:", t_loss) print("Validation Loss:", v_loss) print("Training Accuracy:" , t_acc) print("Validation Accuracy:" , v_acc) # + id="fHhIdA-zfhd4" colab_type="code" colab={} def visualize(values_tested, losses, param, xLog=False): plt.plot(values_tested, losses, label="Loss") plt.xlabel(f"Values of {param}") plt.ylabel(f"Loss") if xLog: plt.xscale("log") plt.title(f"Testing Different Values of {param}") plt.show() # + [markdown] id="JR-tQjo3m4bq" colab_type="text" # ### **Threshold Tuning** # + id="nwwHogZPfrUC" colab_type="code" outputId="c77ec779-92ea-4d08-cd58-a85d3dab84c2" colab={"base_uri": "https://localhost:8080/", "height": 312} thresholds_to_test = list(np.linspace(1, 100, 30)) threshold_losses = [] for t in thresholds_to_test: threshold_loss = data_pipeline(confirmed_data_clean, threshold=t, alpha=0)[1] threshold_losses.append(threshold_loss) best_threshold_i = np.argmin(threshold_losses) best_threshold_cases = thresholds_to_test[best_threshold_i] visualize(thresholds_to_test, threshold_losses, "threshold") print(f"The best threshold found was {best_threshold_cases} with a loss of {threshold_losses[best_threshold_i]}") # + [markdown] id="OMyCGE3Vm-6x" colab_type="text" # ### **Window size Tuning** # + id="hn50J1kPkGh6" colab_type="code" outputId="5be175ba-6e1e-4964-e8ce-40aa62c1f30c" colab={"base_uri": "https://localhost:8080/", "height": 312} windowSizes_to_test = list(range(10,30)) windowSize_losses = [] for w in windowSizes_to_test: windowSize_loss = data_pipeline(confirmed_data_clean, threshold=best_threshold_cases, window_size=w, alpha=0)[1] windowSize_losses.append(windowSize_loss) best_windowSize_i = np.argmin(windowSize_losses) best_windowSize_cases = windowSizes_to_test[best_windowSize_i] visualize(windowSizes_to_test, windowSize_losses, "windowSize") print(f"The best windowSize found was {best_windowSize_cases} with a loss of {windowSize_losses[best_windowSize_i]}") # + [markdown] id="NDMzdXLbnEIt" colab_type="text" # ### **Alpha Tuning** # + id="2hLQDpa5k537" colab_type="code" outputId="503ad240-8a35-45ec-b821-450e5f71e7b6" colab={"base_uri": "https://localhost:8080/", "height": 316} a_to_test = list(np.geomspace(1e-15, 10, 30)) a_losses = [] for a in a_to_test: a_loss = data_pipeline(confirmed_data_clean, threshold=best_threshold_cases, window_size=best_windowSize_cases, alpha=a)[1] a_losses.append(a_loss) best_a_i = np.argmin(a_losses) best_a_cases = a_to_test[best_a_i] visualize(a_to_test, a_losses, "a", True) print(f"The best alpha found was {best_a_cases} with a loss of {a_losses[best_a_i]}") # + id="2u-5ag0clFEH" colab_type="code" outputId="32fbfcde-fb31-436a-fe5a-aea31c2a2e6b" colab={"base_uri": "https://localhost:8080/", "height": 85} t_loss_optimise, v_loss_optimise, t_acc_optimise, v_acc_optimise = data_pipeline(confirmed_data_clean, threshold=best_threshold_cases, window_size=best_windowSize_cases, alpha=best_a_i) print("Optimised Training Loss:", t_loss_optimise) print("Optimised Validation Loss:", v_loss_optimise) print("Optimised Training Accuracy:" , t_acc_optimise) print("Optimised Validation Accuracy:" , v_acc_optimise) # + [markdown] id="kjjZZh8WtXEr" colab_type="text" # After tuning the parameters, we noticed that our training loss decreased from 5009 to 892, validation loss decreased from 4066 to 190, training accuracy increased from 0.96 to 0.999 and validating accuracy increased from 0.75 to 0.999. # # Therefore we can say that optimising these parameters significantly improved our accuracy rates and decreased our losses in both training and validation datasets. # + [markdown] id="VY9XHrqtggaD" colab_type="text" # # <a id='Model2'><b>Prediction Model Of Number of Deaths</b></a> # + [markdown] id="0lBtcgSBqX7H" colab_type="text" # We will use a similar prediction model for number of deaths in a state as the prediciton model of number of coronavirus cases in a state. Using the above workflow and optimisation, we will optimize the prediction model of the number of deaths in california. # + id="5kPrCosHfo1H" colab_type="code" colab={} def data_pipeline(data, state="California", threshold = 1, window_size = 4, alpha = 0.00001): train_data_death, val_data_death = get_data(death_data_clean, train=[], val = [state], threshold=threshold, window_size=window_size) X_train_data_death, y_train_data_death = train_data_death[:,:window_size], train_data_death[:,window_size:] X_val_data_death, y_val_data_death = val_data_death[:,:window_size], val_data_death[:,window_size:] model = Ridge(alpha = alpha) model.fit(X_train_data_death, y_train_data_death) pred_death = model.predict(X_train_data_death) pred_val_death = model.predict(X_val_data_death) return (loss_function(population,state, pred_death, y_train_data_death), loss_function(population, state, pred_val_death, y_val_data_death), model.score(X_train_data_death, y_train_data_death, sample_weight=None), model.score(X_val_data_death, y_val_data_death, sample_weight=None)) # + id="jzdOywgyoQQa" colab_type="code" outputId="90da9171-2b26-4cf8-90bf-65034d27ffde" colab={"base_uri": "https://localhost:8080/", "height": 85} t_loss_death, v_loss_death, t_acc_death, v_acc_death = data_pipeline(confirmed_data_clean) print("Training Loss:", t_loss_death) print("Validation Loss:", v_loss_death) print("Training Accuracy:" , t_acc_death) print("Validation Accuracy:" , v_acc_death) # + [markdown] id="Fm3Th4MBo2cD" colab_type="text" # ### **Threshold Tuning** # + id="5MnFiMY9o_D_" colab_type="code" outputId="b8e43136-f73f-41de-8712-a9f659bce830" colab={"base_uri": "https://localhost:8080/", "height": 312} thresholds_to_test_death = list(np.linspace(1, 100, 30)) threshold_losses_death = [] for t in thresholds_to_test_death: threshold_loss_death = data_pipeline(death_data_clean, threshold=t, alpha=0)[1] threshold_losses_death.append(threshold_loss_death) best_threshold_i_death = np.argmin(threshold_losses_death) best_threshold_cases_death = thresholds_to_test_death[best_threshold_i_death] visualize(thresholds_to_test_death, threshold_losses_death, "threshold") print(f"The best threshold found was {best_threshold_cases_death} with a loss of {threshold_losses_death[best_threshold_i_death]}") # + [markdown] id="ESA6xmaao3qQ" colab_type="text" # ### **Window Size Tuning** # + id="c7lDugkIptie" colab_type="code" outputId="94ddfd62-e2f7-4971-ccd5-85026b3b8134" colab={"base_uri": "https://localhost:8080/", "height": 312} windowSizes_to_test = list(range(4,30)) windowSize_losses = [] for w in windowSizes_to_test: windowSize_loss = data_pipeline(death_data_clean, threshold=best_threshold_cases, window_size=w, alpha=0)[1] windowSize_losses.append(windowSize_loss) best_windowSize_i = np.argmin(windowSize_losses) best_windowSize_cases = windowSizes_to_test[best_windowSize_i] visualize(windowSizes_to_test, windowSize_losses, "windowSize") print(f"The best windowSize found was {best_windowSize_cases} with a loss of {windowSize_losses[best_windowSize_i]}") # + [markdown] id="OrPkjI3do4wk" colab_type="text" # ### **Alpha Tuning** # + id="OR7SUNEKp_c0" colab_type="code" outputId="e3793ff7-7704-4065-c178-1ecb8f49e93b" colab={"base_uri": "https://localhost:8080/", "height": 316} a_to_test = list(np.geomspace(1e-15, 10, 30)) a_losses = [] for a in a_to_test: a_loss = data_pipeline(death_data_clean, threshold=best_threshold_cases, window_size=best_windowSize_cases, alpha=a)[1] a_losses.append(a_loss) best_a_i = np.argmin(a_losses) best_a_cases = a_to_test[best_a_i] visualize(a_to_test, a_losses, "a", True) print(f"The best alpha found was {best_a_cases} with a loss of {a_losses[best_a_i]}") # + [markdown] id="-qas5qNUqup-" colab_type="text" # We have found the optimal parameters for our model. We will put them below to find the optimised training and validation loss. # + id="ISA9Yv0XqIls" colab_type="code" outputId="9bcb6587-2b26-4f01-e6ec-0de53ecc67f9" colab={"base_uri": "https://localhost:8080/", "height": 85} t_loss_optimise_death, v_loss_optimise_death, t_acc_optimise_death, v_acc_optimise_death = data_pipeline(death_data_clean, threshold=best_threshold_cases, window_size=best_windowSize_cases, alpha=best_a_i) print("Optimised Training Loss:", t_loss_optimise_death) print("Optimised Validation Loss:", v_loss_optimise_death) print("Optimised Training Accuracy:" , t_acc_optimise_death) print("Optimised Validation Accuracy:" , v_acc_optimise_death) # + [markdown] id="UzchmwKlsktU" colab_type="text" # After tuning the parameters, we noticed that our training loss decreased from 252 to 19.9, validation loss decreased from 148 to 4.2, training accuracy increased from 0.729 to 0.996 and validating accuracy increased from 0.58 to 0.998. # # Therefore we can say that optimising these parameters significantly improved our accuracy rates and decreased our losses in both training and validation datasets. # + [markdown] id="4pQlhgOlgsgk" colab_type="text" # # <a id='FurtherAnalysis'><b>Further Analysis</b></a> # + [markdown] id="DTgsByzy2XFz" colab_type="text" # We can further analyse the spread of coronavirus in different states as compared to the spread of coronavirus in California. # + id="ZFsg0LZv2WQm" colab_type="code" colab={} def visualise_plot(states=["California"], data=confirmed_data_clean, normalizeCurves=False, title="Total Cases of COVID-19 As Fraction of Total Population", maxLabels=3, fig=1): if not isinstance(states, list): states = [states] if len(states) == 0: states = population.index maxStateValues = [] midStateValues = [] for i in range(len(states)): state = states[i] pop = population.loc[state][0] y = data.loc[state] / pop if normalizeCurves: y /= max(y) x = list(range(len(y))) maxStateValues.append(max(y)) midStateValues.append(y[35]) plt.plot(x, y) plt.xlabel("Days since 1/22/20") plt.ylabel("Fraction of Population Infected") if normalizeCurves: plt.ylabel("Relative Growth Curves") if len(states) < 10: plt.legend(labels=states) else: if not normalizeCurves: topStates = states[np.array(maxStatesValues).argsort()[-maxLabels:][::-1]] labels = [c if c in topStates else "_"+c+"_" for c in states] else: topStates = states[np.array(midStateValues).argsort()[-maxLabels:][::-1]] labels = [c if c in topStates else "_"+c+"_" for c in states] plt.legend(labels=labels) plt.title(f"Figure {fig}: {title}") plt.show() # + [markdown] id="yHEDL0q537R4" colab_type="text" # ## **Visualization Plot of Fraction of People Infected** # + id="tCMpzvkl36HE" colab_type="code" outputId="ab3fc95b-91c4-4211-c8b9-de2bbe7b0018" colab={"base_uri": "https://localhost:8080/", "height": 295} visualise_plot(states=['California', 'New York','Texas', 'Oregon'], fig=1) # + id="QD4fdh-x4sGi" colab_type="code" outputId="f8c5e613-f075-4b9b-bb53-4ec459852cad" colab={"base_uri": "https://localhost:8080/", "height": 295} visualise_plot(states=['California', 'New York', 'Texas', 'Oregon'], normalizeCurves=True, title="Total Cases of COVID-19 As Relative Growth Curves (same peak)", maxLabels=5, fig=3) # + [markdown] id="ulBE_UP0gt0X" colab_type="text" # # <a id='Conclusion'><b>Summary of Results and Future Scope</b></a> # + [markdown] id="kL6aenbEMayg" colab_type="text" # ### **Summary of Results** # Initially we utilised the model Ridge Regression model in sklearn library which helped us train our data. We got decent training accuracy and validation accuracy, but we realised we could do better. After playing with different alpha values we decided to iterate on our model using Ridge Regression with Cross Validation model in sklearn library. Through the Ridge Regression with Cross Validation model we were able to improve our model by improving the alpha value. This iteration helped us realise that we can improve our model by improving the parameters of our model - threshold, window size and alpha value. In our final iteration, we utilised regression model and optimisation using tuning to improve our model’s training accuracy. After tuning the parameters for the number of coronavirus cases in california, we noticed that our training loss decreased from 5009 to 892, validation loss decreased from 4066 to 190, training accuracy increased from 0.96 to 0.999 and validating accuracy increased from 0.75 to 0.999. After tuning the parameters for the number of deaths in california, we noticed that our training loss decreased from 252 to 19.9, validation loss decreased from 148 to 4.2, training accuracy increased from 0.729 to 0.996 and validating accuracy increased from 0.58 to 0.998. Therefore we can say that optimising these parameters significantly improved our accuracy rates and decreased our losses in both training and validation datasets. # # + [markdown] id="DFRerdybMfg-" colab_type="text" # ### **Future Scope** # # # * This model currently takes only into consideration the State Population and Time Series data. This means that the model is suseptible to changes. As social distancing measure changes, this model would deviate from the initial conditions. # * This model can be improved by considering additional features, including changes in social distancing norms. # # # + [markdown] id="zoW78SwbhloM" colab_type="text" # # <a id='Resources'><b>Resources</b></a> # + [markdown] id="nup3syMNyFVR" colab_type="text" # We utilised the following resources to build this project: # + [markdown] id="3nzrbEKsyUYZ" colab_type="text" # **DATASETS** # # * **time_series_covid19_deaths_US.csv:** https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_US.csv # # * **time_series_covid19_confirmed_US.csv:** https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_US.csv # # * **4.18states.csv:** https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_daily_reports_us/04-18-2020.csv # # * **abridged_couties.csv:** https://github.com/Yu-Group/covid19-severity-prediction/blob/master/data/county_data_abridged.csv: (Column Descriptions: https://github.com/Yu-Group/covid19-severity-prediction/blob/master/data/list_of_columns.md) # # **DATA CLEANING AND DATA PREPARING** # * http://www.ds100.org/sp20/syllabus/ # # # **TIME SERIES PREDICTION MODEL** # * https://www.analyticsvidhya.com/blog/2019/12/6-powerful-feature-engineering-techniques-time-series/? # * https://elleklinton.com/covid19/ # # We would also like to thank our amazing professors, GSi, course staff and fellow classmates for a great semester. # # #
35,263
/statistics/Untitled.ipynb
fbd072d8db8ed891d21634998cd1399164ca8d37
[ "MIT" ]
permissive
priyaananthasankar/learning
https://github.com/priyaananthasankar/learning
0
0
null
2019-06-25T01:06:19
2019-06-03T16:36:41
null
Jupyter Notebook
false
false
.py
3,996
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Traffic Light Classifier # --- # # In this project, you’ll use your knowledge of computer vision techniques to build a classifier for images of traffic lights! You'll be given a dataset of traffic light images in which one of three lights is illuminated: red, yellow, or green. # # In this notebook, you'll pre-process these images, extract features that will help us distinguish the different types of images, and use those features to classify the traffic light images into three classes: red, yellow, or green. The tasks will be broken down into a few sections: # # 1. **Loading and visualizing the data**. # The first step in any classification task is to be familiar with your data; you'll need to load in the images of traffic lights and visualize them! # # 2. **Pre-processing**. # The input images and output labels need to be standardized. This way, you can analyze all the input images using the same classification pipeline, and you know what output to expect when you eventually classify a *new* image. # # 3. **Feature extraction**. # Next, you'll extract some features from each image that will help distinguish and eventually classify these images. # # 4. **Classification and visualizing error**. # Finally, you'll write one function that uses your features to classify *any* traffic light image. This function will take in an image and output a label. You'll also be given code to determine the accuracy of your classification model. # # 5. **Evaluate your model**. # To pass this project, your classifier must be >90% accurate and never classify any red lights as green; it's likely that you'll need to improve the accuracy of your classifier by changing existing features or adding new features. I'd also encourage you to try to get as close to 100% accuracy as possible! # # Here are some sample images from the dataset (from left to right: red, green, and yellow traffic lights): # <img src="images/all_lights.png" width="50%" height="50%"> # # --- # ### *Here's what you need to know to complete the project:* # # Some template code has already been provided for you, but you'll need to implement additional code steps to successfully complete this project. Any code that is required to pass this project is marked with **'(IMPLEMENTATION)'** in the header. There are also a couple of questions about your thoughts as you work through this project, which are marked with **'(QUESTION)'** in the header. Make sure to answer all questions and to check your work against the [project rubric](https://review.udacity.com/#!/rubrics/1213/view) to make sure you complete the necessary classification steps! # # Your project submission will be evaluated based on the code implementations you provide, and on two main classification criteria. # Your complete traffic light classifier should have: # 1. **Greater than 90% accuracy** # 2. ***Never* classify red lights as green** # # # 1. Loading and Visualizing the Traffic Light Dataset # # This traffic light dataset consists of 1484 number of color images in 3 categories - red, yellow, and green. As with most human-sourced data, the data is not evenly distributed among the types. There are: # * 904 red traffic light images # * 536 green traffic light images # * 44 yellow traffic light images # # *Note: All images come from this [MIT self-driving car course](https://selfdrivingcars.mit.edu/) and are licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).* # ### Import resources # # Before you get started on the project code, import the libraries and resources that you'll need. # + import cv2 # computer vision library import helpers # helper functions import random import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg # for loading in images # %matplotlib inline # - # ## Training and Testing Data # # All 1484 of the traffic light images are separated into training and testing datasets. # # * 80% of these images are training images, for you to use as you create a classifier. # * 20% are test images, which will be used to test the accuracy of your classifier. # * All images are pictures of 3-light traffic lights with one light illuminated. # # ## Define the image directories # # First, we set some variables to keep track of some where our images are stored: # # IMAGE_DIR_TRAINING: the directory where our training image data is stored # IMAGE_DIR_TEST: the directory where our test image data is stored # Image data directories IMAGE_DIR_TRAINING = "traffic_light_images/training/" IMAGE_DIR_TEST = "traffic_light_images/test/" # ## Load the datasets # # These first few lines of code will load the training traffic light images and store all of them in a variable, `IMAGE_LIST`. This list contains the images and their associated label ("red", "yellow", "green"). # # You are encouraged to take a look at the `load_dataset` function in the helpers.py file. This will give you a good idea about how lots of image files can be read in from a directory using the [glob library](https://pymotw.com/2/glob/). The `load_dataset` function takes in the name of an image directory and returns a list of images and their associated labels. # # For example, the first image-label pair in `IMAGE_LIST` can be accessed by index: # ``` IMAGE_LIST[0][:]```. # # Using the load_dataset function in helpers.py # Load training data IMAGE_LIST = helpers.load_dataset(IMAGE_DIR_TRAINING) # ## Visualize the Data # # The first steps in analyzing any dataset are to 1. load the data and 2. look at the data. Seeing what it looks like will give you an idea of what to look for in the images, what kind of noise or inconsistencies you have to deal with, and so on. This will help you understand the image dataset, and **understanding a dataset is part of making predictions about the data**. # --- # ### Visualize the input images # # Visualize and explore the image data! Write code to display an image in `IMAGE_LIST`: # * Display the image # * Print out the shape of the image # * Print out its corresponding label # # See if you can display at least one of each type of traffic light image – red, green, and yellow — and look at their similarities and differences. # + ## TODO: Write code to display an image in IMAGE_LIST (try finding a yellow traffic light!) ## TODO: Print out 1. The shape of the image and 2. The image's label # The first image in IMAGE_LIST is displayed below (without information about shape or label) selected_image_1 = IMAGE_LIST[50][0] selected_label_1 = IMAGE_LIST[50][1] selected_image_2 = IMAGE_LIST[1][0] selected_label_2 = IMAGE_LIST[1][1] selected_image_3 = IMAGE_LIST[111][0] selected_label_3 = IMAGE_LIST[967][1] selected_image_4 = IMAGE_LIST[1000][0] selected_label_4 = IMAGE_LIST[1000][1] #plt.imshow(selected_image_1) #print("label =" + str(selected_label_1)) #plt.imshow(selected_image_2) #print("label =" + str(selected_label_2)) plt.imshow(selected_image_3) print("label3 =" + str(selected_label_3)) plt.imshow(selected_image_4) print("label4 =" + str(selected_label_4)) # - # # 2. Pre-process the Data # # After loading in each image, you have to standardize the input and output! # # ### Input # # This means that every input image should be in the same format, of the same size, and so on. We'll be creating features by performing the same analysis on every picture, and for a classification task like this, it's important that **similar images create similar features**! # # ### Output # # We also need the output to be a label that is easy to read and easy to compare with other labels. It is good practice to convert categorical data like "red" and "green" to numerical data. # # A very common classification output is a 1D list that is the length of the number of classes - three in the case of red, yellow, and green lights - with the values 0 or 1 indicating which class a certain image is. For example, since we have three classes (red, yellow, and green), we can make a list with the order: [red value, yellow value, green value]. In general, order does not matter, we choose the order [red value, yellow value, green value] in this case to reflect the position of each light in descending vertical order. # # A red light should have the label: [1, 0, 0]. Yellow should be: [0, 1, 0]. Green should be: [0, 0, 1]. These labels are called **one-hot encoded labels**. # # *(Note: one-hot encoding will be especially important when you work with [machine learning algorithms](https://machinelearningmastery.com/how-to-one-hot-encode-sequence-data-in-python/)).* # # <img src="images/processing_steps.png" width="80%" height="80%"> # # --- # <a id='task2'></a> # ### (IMPLEMENTATION): Standardize the input images # # * Resize each image to the desired input size: 32x32px. # * (Optional) You may choose to crop, shift, or rotate the images in this step as well. # # It's very common to have square input sizes that can be rotated (and remain the same size), and analyzed in smaller, square patches. It's also important to make all your images the same size so that they can be sent through the same pipeline of classification steps! # This function should take in an RGB image and return a new, standardized version def standardize_input(image): ## TODO: Resize image and pre-process so that all "standard" images are the same size standard_im = np.copy(image) row_crop = 32 col_crop = 32 standard_im = cv2.resize(standard_im,(col_crop,row_crop)) return standard_im # ## Standardize the output # # With each loaded image, we also specify the expected output. For this, we use **one-hot encoding**. # # * One-hot encode the labels. To do this, create an array of zeros representing each class of traffic light (red, yellow, green), and set the index of the expected class number to 1. # # Since we have three classes (red, yellow, and green), we have imposed an order of: [red value, yellow value, green value]. To one-hot encode, say, a yellow light, we would first initialize an array to [0, 0, 0] and change the middle value (the yellow value) to 1: [0, 1, 0]. # # --- # <a id='task3'></a> # ### (IMPLEMENTATION): Implement one-hot encoding # + ## TODO: One hot encode an image label ## Given a label - "red", "green", or "yellow" - return a one-hot encoded label # Examples: # one_hot_encode("red") should return: [1, 0, 0] # one_hot_encode("yellow") should return: [0, 1, 0] # one_hot_encode("green") should return: [0, 0, 1] def one_hot_encode(label): ## TODO: Create a one-hot encoded label that works for all classes of traffic lights one_hot_encoded = [] if label == 'red': one_hot_encoded.append(1) one_hot_encoded.append(0) one_hot_encoded.append(0) elif label == 'yellow': one_hot_encoded.append(0) one_hot_encoded.append(1) one_hot_encoded.append(0) else: one_hot_encoded.append(0) one_hot_encoded.append(0) one_hot_encoded.append(1) return one_hot_encoded # - # ### Testing as you Code # # After programming a function like this, it's a good idea to test it, and see if it produces the expected output. **In general, it's good practice to test code in small, functional pieces, after you write it**. This way, you can make sure that your code is correct as you continue to build a classifier, and you can identify any errors early on so that they don't compound. # # All test code can be found in the file `test_functions.py`. You are encouraged to look through that code and add your own testing code if you find it useful! # # One test function you'll find is: `test_one_hot(self, one_hot_function)` which takes in one argument, a one_hot_encode function, and tests its functionality. If your one_hot_label code does not work as expected, this test will print ot an error message that will tell you a bit about why your code failed. Once your code works, this should print out TEST PASSED. # + # Importing the tests import test_functions tests = test_functions.Tests() # Test for one_hot_encode function tests.test_one_hot(one_hot_encode) # - # ## Construct a `STANDARDIZED_LIST` of input images and output labels. # # This function takes in a list of image-label pairs and outputs a **standardized** list of resized images and one-hot encoded labels. # # This uses the functions you defined above to standardize the input and output, so those functions must be complete for this standardization to work! # # + def standardize(image_list): # Empty image data array standard_list = [] # Iterate through all the image-label pairs for item in image_list: image = item[0] label = item[1] # Standardize the image standardized_im = standardize_input(image) # One-hot encode the label one_hot_label = one_hot_encode(label) # Append the image, and it's one hot encoded label to the full, processed list of image data standard_list.append((standardized_im, one_hot_label)) return standard_list # Standardize all training images STANDARDIZED_LIST = standardize(IMAGE_LIST) # - # ## Visualize the standardized data # # Display a standardized image from STANDARDIZED_LIST and compare it with a non-standardized image from IMAGE_LIST. Note that their sizes and appearance are different! ## TODO: Display a standardized image and its label standard_image_1 = STANDARDIZED_LIST[1000][0] plt.imshow(standard_image_1) # # 3. Feature Extraction # # You'll be using what you now about color spaces, shape analysis, and feature construction to create features that help distinguish and classify the three types of traffic light images. # # You'll be tasked with creating **one feature** at a minimum (with the option to create more). The required feature is **a brightness feature using HSV color space**: # # 1. A brightness feature. # - Using HSV color space, create a feature that helps you identify the 3 different classes of traffic light. # - You'll be asked some questions about what methods you tried to locate this traffic light, so, as you progress through this notebook, always be thinking about your approach: what works and what doesn't? # # 2. (Optional): Create more features! # # Any more features that you create are up to you and should improve the accuracy of your traffic light classification algorithm! One thing to note is that, to pass this project you must **never classify a red light as a green light** because this creates a serious safety risk for a self-driving car. To avoid this misclassification, you might consider adding another feature that specifically distinguishes between red and green lights. # # These features will be combined near the end of his notebook to form a complete classification algorithm. # ## Creating a brightness feature # # There are a number of ways to create a brightness feature that will help you characterize images of traffic lights, and it will be up to you to decide on the best procedure to complete this step. You should visualize and test your code as you go. # # Pictured below is a sample pipeline for creating a brightness feature (from left to right: standardized image, HSV color-masked image, cropped image, brightness feature): # # <img src="images/feature_ext_steps.png" width="70%" height="70%"> # # ## RGB to HSV conversion # # Below, a test image is converted from RGB to HSV colorspace and each component is displayed in an image. # + # Convert and image to HSV colorspace # Visualize the individual color channels image_num = 0 test_im = STANDARDIZED_LIST[image_num][0] test_label = STANDARDIZED_LIST[image_num][1] # Convert to HSV hsv = cv2.cvtColor(test_im, cv2.COLOR_RGB2HSV) # Print image label print('Label [red, yellow, green]: ' + str(test_label)) # HSV channels h = hsv[:,:,0] s = hsv[:,:,1] v = hsv[:,:,2] # Plot the original image and the three channels f, (ax1, ax2, ax3, ax4) = plt.subplots(1, 4, figsize=(20,10)) ax1.set_title('Standardized image') ax1.imshow(test_im) ax2.set_title('H channel') ax2.imshow(h, cmap='gray') ax3.set_title('S channel') ax3.imshow(s, cmap='gray') ax4.set_title('V channel') ax4.imshow(v, cmap='gray') # - # --- # <a id='task7'></a> # ### (IMPLEMENTATION): Create a brightness feature that uses HSV color space # # Write a function that takes in an RGB image and returns a 1D feature vector and/or single value that will help classify an image of a traffic light. The only requirement is that this function should apply an HSV colorspace transformation, the rest is up to you. # # From this feature, you should be able to estimate an image's label and classify it as either a red, green, or yellow traffic light. You may also define helper functions if they simplify your code. # + ## TODO: Create a brightness feature that takes in an RGB image and outputs a feature vector and/or value ## This feature should use HSV colorspace values def create_feature(rgb_image): feature = [] #showing the image before processing #lt.imshow(rgb_image) ## TODO: Convert image to HSV color space hsv = cv2.cvtColor(rgb_image, cv2.COLOR_RGB2HSV) lowrange = np.array([0,0,20]) highrange = np.array([256,100,205]) mask = cv2.inRange(hsv,lowrange,highrange) masked_image = np.copy(hsv) masked_image[mask != 0] = [0,0,0] #showing the image after applying the mask #lt.imshow(masked_image) hsv_2_rgb = np.copy(masked_image) rgb = cv2.cvtColor(hsv_2_rgb, cv2.COLOR_HSV2RGB) #showing the image after converting it back to rgb plt.imshow(rgb) rowcrop = 12 colcrop = 3 standard_rgb = np.copy(rgb) standard_rgb = standard_rgb[colcrop:-colcrop, rowcrop:-rowcrop,:] #showing the image after cropping #plt.imshow(standard_rgb) red_sum = np.sum(standard_rgb[:,:,0]) green_sum = np.sum(standard_rgb[:,:,1]) blue_sum = np.sum(standard_rgb[:,:,2]) total = standard_rgb.shape[0] * standard_rgb.shape[1] feature.append(red_sum/total) feature.append(green_sum/total) feature.append(blue_sum/total) return feature standard_image_1 = STANDARDIZED_LIST[500][0] create_feature(standard_image_1) # - # ## (Optional) Create more features to help accurately label the traffic light images # (Optional) Add more image analysis and create more features # ## (QUESTION 1): How do the features you made help you distinguish between the 3 classes of traffic light images? # **Answer:** # The feature i created counts the average number of the pixels of red, green and blue pixels in the given images. # It will then estimate the image class whether red or green based on the number of pixels of green or red. # # 4. Classification and Visualizing Error # # Using all of your features, write a function that takes in an RGB image and, using your extracted features, outputs whether a light is red, green or yellow as a one-hot encoded label. This classification function should be able to classify any image of a traffic light! # # You are encouraged to write any helper functions or visualization code that you may need, but for testing the accuracy, make sure that this `estimate_label` function returns a one-hot encoded label. # --- # <a id='task8'></a> # ### (IMPLEMENTATION): Build a complete classifier # This function should take in RGB image input # Analyze that image using your feature creation code and output a one-hot encoded label def estimate_label(rgb_image): features = create_feature(rgb_image) ## TODO: Extract feature(s) from the RGB image and use those features to ## classify the image and output a one-hot encoded label predicted_label = [] num_red = features[0] num_green = features[1] num_blue = features[2] if num_red < num_green and num_blue > 200: predicted_label = [1,0,0] elif num_red > num_green: predicted_label = [1,0,0] elif num_red < num_green: predicted_label = [0,0,1] else: predicted_label = [0,1,0] return predicted_label # ## Testing the classifier # # Here is where we test your classification algorithm using our test set of data that we set aside at the beginning of the notebook! This project will be complete once you've pogrammed a "good" classifier. # # A "good" classifier in this case should meet the following criteria (and once it does, feel free to submit your project): # 1. Get above 90% classification accuracy. # 2. Never classify a red light as a green light. # # ### Test dataset # # Below, we load in the test dataset, standardize it using the `standardize` function you defined above, and then **shuffle** it; this ensures that order will not play a role in testing accuracy. # # + # Using the load_dataset function in helpers.py # Load test data TEST_IMAGE_LIST = helpers.load_dataset(IMAGE_DIR_TEST) # Standardize the test data STANDARDIZED_TEST_LIST = standardize(TEST_IMAGE_LIST) # Shuffle the standardized test data random.shuffle(STANDARDIZED_TEST_LIST) # - # ## Determine the Accuracy # # Compare the output of your classification algorithm (a.k.a. your "model") with the true labels and determine the accuracy. # # This code stores all the misclassified images, their predicted labels, and their true labels, in a list called `MISCLASSIFIED`. This code is used for testing and *should not be changed*. # + # Constructs a list of misclassified images given a list of test images and their labels # This will throw an AssertionError if labels are not standardized (one-hot encoded) def get_misclassified_images(test_images): # Track misclassified images by placing them into a list misclassified_images_labels = [] # Iterate through all the test images # Classify each image and compare to the true label for image in test_images: # Get true data im = image[0] true_label = image[1] assert(len(true_label) == 3), "The true_label is not the expected length (3)." # Get predicted label from your classifier predicted_label = estimate_label(im) assert(len(predicted_label) == 3), "The predicted_label is not the expected length (3)." # Compare true and predicted labels if(predicted_label != true_label): # If these labels are not equal, the image has been misclassified misclassified_images_labels.append((im, predicted_label, true_label)) # Return the list of misclassified [image, predicted_label, true_label] values return misclassified_images_labels # Find all misclassified images in a given test set MISCLASSIFIED = get_misclassified_images(STANDARDIZED_TEST_LIST) # Accuracy calculations total = len(STANDARDIZED_TEST_LIST) num_correct = total - len(MISCLASSIFIED) accuracy = num_correct/total print('Accuracy: ' + str(accuracy)) print("Number of misclassified images = " + str(len(MISCLASSIFIED)) +' out of '+ str(total)) # - # --- # <a id='task9'></a> # ### Visualize the misclassified images # # Visualize some of the images you classified wrong (in the `MISCLASSIFIED` list) and note any qualities that make them difficult to classify. This will help you identify any weaknesses in your classification algorithm. # + # Visualize misclassified example(s) ## TODO: Display an image in the `MISCLASSIFIED` list ## TODO: Print out its predicted label - to see what the image *was* incorrectly classified as image = 8 selected_image = MISCLASSIFIED[image][0] predicted_label = MISCLASSIFIED[image][1] true_label = MISCLASSIFIED[image][2] print('predicted_label' + str(predicted_label)) print('true_label' + str(true_label)) plt.imshow(selected_image) # - # --- # <a id='question2'></a> # ## (Question 2): After visualizing these misclassifications, what weaknesses do you think your classification algorithm has? Please note at least two. # **Answer:** Write your answer in this cell. # Firstly, The weakness in the classifer that the green light is sometimes appeared as red. # Secondly, No handling mechanism fo the (yellow light) as it is hard to represent the yellow light by the combination of the red and green light. The usage for HSV color space here could enhance the issue. # # ## Test if you classify any red lights as green # # **To pass this project, you must not classify any red lights as green!** Classifying red lights as green would cause a car to drive through a red traffic light, so this red-as-green error is very dangerous in the real world. # # The code below lets you test to see if you've misclassified any red lights as green in the test set. **This test assumes that `MISCLASSIFIED` is a list of tuples with the order: [misclassified_image, predicted_label, true_label].** # # Note: this is not an all encompassing test, but its a good indicator that, if you pass, you are on the right track! This iterates through your list of misclassified examples and checks to see if any red traffic lights have been mistakenly labelled [0, 1, 0] (green). # + # Importing the tests import test_functions tests = test_functions.Tests() if(len(MISCLASSIFIED) > 0): # Test code for one_hot_encode function tests.test_red_as_green(MISCLASSIFIED) else: print("MISCLASSIFIED may not have been populated with images.") # - # # 5. Improve your algorithm! # # **Submit your project after you have completed all implementations, answered all questions, AND when you've met the two criteria:** # 1. Greater than 90% accuracy classification # 2. No red lights classified as green # # If you did not meet these requirements (which is common on the first attempt!), revisit your algorithm and tweak it to improve light recognition -- this could mean changing the brightness feature, performing some background subtraction, or adding another feature! # # --- # ### Going Further (Optional Challenges) # # If you found this challenge easy, I suggest you go above and beyond! Here are a couple **optional** (meaning you do not need to implement these to submit and pass the project) suggestions: # * (Optional) Aim for >95% classification accuracy. # * (Optional) Some lights are in the shape of arrows; further classify the lights as round or arrow-shaped. # * (Optional) Add another feature and aim for as close to 100% accuracy as you can get!
26,815
/SpinAxis.ipynb
75df59a39fc25d3da8379066c1555e699dcc8e17
[]
no_license
chrisjackson4256/BaseballDataAnalyses
https://github.com/chrisjackson4256/BaseballDataAnalyses
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
99,200
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Calculating the Spin Axis of a Pitch # # This tries to follow the paper by Alan Nathan ["Determining the 3D Spin Axis from Statcast Data"](http://baseball.physics.illinois.edu/trackman/SpinAxis.pdf). # # Brooks Baseball is the only site I've seen that tabulates spin axis, but they only do it in the "Scatter Charts". import numpy as np import pandas as pd pd.set_option('display.max_columns', 500) # ### Comparing to Analysis of Andrew Miller # # Trying to compare to the data in the FanGraphs [article about Andrew Miller's slider](https://blogs.fangraphs.com/how-andrew-miller-can-return-to-dominance/) # + data = pd.read_csv("../data/pitch_data_2019.csv") # andrew miller pitcher_id = 453192 data = data[data['pitcher'] == pitcher_id] # just sliders data = data[data['pitch_type'] == 'SL'] print(data.shape) print(data.columns.tolist()) # columns to keep cols_to_keep = ['game_date', 'release_speed', 'release_spin_rate', 'release_extension', 'release_pos_x', 'release_pos_z', 'pfx_x', 'pfx_z', 'plate_x', 'plate_z', 'vx0', 'vy0', 'vz0', 'ax', 'ay', 'az'] data = data[cols_to_keep] data.head() # - # ### Comparing to Alan Nathan's Excel Spreadsheet # + active="" # data = pd.read_csv("/home/chris/Downloads/savant_data (1).csv") # # print(data.columns) # # data.sort_values(by=['pitch_type', 'game_date'], inplace=True, ascending=True) # # cols_to_keep = ['pitch_type', 'release_speed', 'release_pos_x', 'release_pos_z', 'pfx_x', 'pfx_z', # 'plate_x', 'plate_z', 'vx0', 'vy0', 'vz0', 'ax', 'ay', 'az', 'release_spin_rate', 'release_extension'] # # data = data[cols_to_keep] # # #data = data[(data['release_speed'] == 85.1) & (data['release_pos_x'] == -2.7068)] # # print(data.shape) # data.head(10) # + data.rename(columns={'release_speed': 'v0', 'release_pos_x': 'xR', 'release_pos_z': 'zR', }, inplace=True) data_game_dates = data[['game_date']] data.head() # + def compute_spin_angle_phi(data): # the release point y coordinate data['yR'] = 60.5 - data['release_extension'] # find speed at release (initial velocity is given at 50 ft) data['tR'] = (-data['vy0'] - np.sqrt(data['vy0']*data['vy0'] - 2*data['ay']*(50 - data['yR']))) / data['ay'] data['vxR'] = data['vx0'] + data['ax']*data['tR'] data['vyR'] = data['vy0'] + data['ay']*data['tR'] data['vzR'] = data['vz0'] + data['az']*data['tR'] data['dv0'] = data['v0'] - np.sqrt(data['vxR']**2 + data['vyR']**2 + data['vzR']**2)/1.467 # calculate x movement data['tf'] = (-data['vyR'] - np.sqrt(data['vyR']**2 - 2*data['ay']*(data['yR'] - 17/12)))/data['ay'] data['calculate_x_mvt'] = data['plate_x'] - data['xR'] - (data['vxR']/data['vyR'])*(17/12 - data['yR']) data['calculate_z_mvt'] = data['plate_z'] - data['zR'] - (data['vzR']/data['vyR'])*(17/12 - data['yR']) + 0.5*(32.174)*data['tf']**2 # average velocities data['vxbar'] = (2*data['vxR'] + data['ax']*data['tf'])/2 data['vybar'] = (2*data['vyR'] + data['ay']*data['tf'])/2 data['vzbar'] = (2*data['vzR'] + data['az']*data['tf'])/2 data['vbar'] = np.sqrt(data['vxbar']**2 + data['vybar']**2 + data['vzbar']**2) # drag acceleration data['adrag'] = -(data['ax']*data['vxbar'] + data['ay']*data['vybar'] + (data['az'] + 32.174)*data['vzbar'])/data['vbar'] data['Cd'] = data['adrag']/8.598E-02/data['vbar']**2 # Magnus acceleration data['amagx'] = data['ax'] + data['adrag']*data['vxbar']/data['vbar'] data['amagy'] = data['ay'] + data['adrag']*data['vybar']/data['vbar'] data['amagz'] = data['az'] + data['adrag']*data['vzbar']/data['vbar'] + 32.174 data['amag'] = np.sqrt(data['amagx']**2 + data['amagy']**2 + data['amagz']**2) data['Mx'] = 0.5 * data['amagx'] * data['tf']**2 * 12 data['Mz'] = 0.5 * data['amagz'] * data['tf']**2 * 12 data['Cl'] = data['amag']/8.598E-02/data['vbar']**2 data['S'] = 0.4 * data['Cl'] / (1 - 2.32 * data['Cl']) data['spinT'] = 78.92 * data['S'] * data['vbar'] data['spinTx'] = data['spinT'] * (data['vybar']*data['amagz'] - data['vzbar']*data['amagy'])/(data['amag']*data['vbar']) data['spinTy'] = data['spinT'] * (data['vzbar']*data['amagx'] - data['vxbar']*data['amagz'])/(data['amag']*data['vbar']) data['spinTz'] = data['spinT'] * (data['vxbar']*data['amagy'] - data['vybar']*data['amagx'])/(data['amag']*data['vbar']) data['spin_check'] = np.sqrt(data['spinTx']**2 + data['spinTy']**2 + data['spinTz']**2) - data['spinT'] def compute_phi(row): if row['amagz'] > 0: return -np.arctan(row['amagx']/row['amagz']) * 180 / 3.14 + 180 else: return 180 - np.arctan(row['amagx']/row['amagz']) * 180 / 3.14 + 180 data['phi'] = data.apply(compute_phi, axis=1) data = data[['v0', 'tR', 'vxR', 'vyR', 'vzR', 'dv0', 'xR', 'yR', 'zR', 'pfx_x', 'pfx_z', 'plate_x', 'plate_z', 'calculate_x_mvt', 'calculate_z_mvt', 'vx0', 'vy0', 'vz0', 'ax', 'ay', 'az', 'release_spin_rate', 'release_extension', 'tf', 'vxbar', 'vybar', 'vzbar', 'vbar', 'adrag', 'Cd', 'amagx', 'amagy', 'amagz', 'amag', 'Mx', 'Mz', 'Cl', 'S', 'spinT', 'spinTx', 'spinTy', 'spinTz', 'spin_check', 'phi']] data_spin_axis = data[['phi', 'v0', 'release_spin_rate']] data # + data_spin_dates = pd.merge(data_game_dates, data_spin_axis, left_index=True, right_index=True) data_spin_dates # + data_spin_dates['game_date'] = pd.to_datetime(data_spin_dates['game_date']) data_spin_dates['month'] = data_spin_dates['game_date'].dt.month data_spin_dates['month'] = data_spin_dates['month'].apply(lambda x: 4 if x == 3 else x) data_spin_dates # + data_spin_dates = data_spin_dates[['month', 'phi', 'v0', 'release_spin_rate']] data_spin_avg = pd.DataFrame(data_spin_dates.groupby('month')[['phi', 'v0', 'release_spin_rate']].mean()) round(data_spin_avg,1) # - def compute_spin_angle_phi(row): # find speed at release (initial velocity is given at 50 ft) tR = (-row['vy0'] - np.sqrt(row['vy0']**2 - 2*row['ay']*(50 - row['yR']))) / row['ay'] vxR = row['vx0'] + row['ax']*tR vyR = row['vy0'] + row['ay']*tR vzR = row['vz0'] + row['az']*tR dv0 = row['v0'] - np.sqrt(vxR**2 + vyR**2 + vzR**2)/1.467 # calculate x movement tf = (-vyR - np.sqrt(vyR**2 - 2*row['ay']*(row['yR'] - 17/12)))/row['ay'] calculate_x_mvt = row['plate_x'] - row['xR'] - (vxR/vyR)*(17/12 - row['yR']) calculate_z_mvt = row['plate_z'] - row['zR'] - (vzR/vyR)*(17/12 - row['yR']) + 0.5*(32.174)*tf**2 # average velocities vxbar = (2*vxR + row['ax']*tf)/2 vybar = (2*vyR + row['ay']*tf)/2 vzbar = (2*vzR + row['az']*tf)/2 vbar = np.sqrt(vxbar**2 + vybar**2 + vzbar**2) # drag acceleration adrag = -(row['ax']*vxbar + row['ay']*vybar + (row['az'] + 32.174)*vzbar) / vbar Cd = adrag/8.598E-02/vbar**2 # Magnus acceleration amagx = row['ax'] + adrag*vxbar / vbar amagy = row['ay'] + adrag*vybar / vbar amagz = row['az'] + adrag*vzbar / vbar + 32.174 amag = np.sqrt(amagx**2 + amagy**2 + amagz**2) def compute_phi(amagx, amagz): if amagz > 0: return -np.arctan(amagx / amagz) * 180 / 3.14 + 180 else: return 180 - np.arctan(amagx / amagz) * 180 / 3.14 + 180 phi = compute_phi(amagx, amagz) return round(phi, 0) # + test_data = pd.read_csv("/home/chris/Downloads/savant_data (1).csv") print(test_data.columns.tolist()) test_data.head() # + cols_to_keep = ['pitch_type', c] test_data = test_data[cols_to_keep] test_data.rename(columns={'release_speed': 'v0', 'release_pos_x': 'xR', 'release_pos_y': 'yR', 'release_pos_z': 'zR'}, inplace=True) test_data = test_data[(test_data['v0'] == 85.1) & (test_data['xR'] == -2.7068)] test_data.head() # + test_data['phi'] = test_data.apply(compute_spin_angle_phi, axis=1) test_data.head() # -
8,125
/analysis/scripts/milestone3processed.ipynb
844343251c4e685abec7f57334087a2479b1cfcd
[ "MIT" ]
permissive
data301-2020-winter1/course-project-solo_303
https://github.com/data301-2020-winter1/course-project-solo_303
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
12,589
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # # Functions # # # `Function` class objects provide the building blocks for mathematical expression within Underworld2. The primary aim of this class is to enable a natural description of mathematics through the Python syntax so that users may quickly and accurately prototype model behaviour. # # Functions are used extensively across the Underworld2 API and provide a unified interface to Underworld2 discrete objects. # # **Overview:** # # 1. A simple example. # 1. Usage basics. # 1. Module overview. # 1. The `evaluate()` method. # 1. The `input` function. # 1. Branching functions. # # **Keywords:** functions, swarms, meshvariables, materials # # ## A Simple Example # # Let us define a function which we might use as a variable heat conductivity for a thermal problem. It will take the following temperature dependent form: # # $$ # k(\mathbf{x}) = 5 +8\exp({5T(\mathbf{x})}) # $$ # + import underworld as uw from underworld import function as fn import glucifer # first create a mesh and variable mesh = uw.mesh.FeMesh_Cartesian(elementRes=(64,64)) tempVar = mesh.add_variable(1) # init the temp variable for index,coord in enumerate(mesh.data): tempVar.data[index] = coord[1] # and now define the function. fn_k = 5. + 8.*fn.math.exp(5.*tempVar) # a # vis fig = glucifer.Figure() fig.append(glucifer.objects.Surface(mesh,fn_k)) # b fig.show() # c # - # Let's deconstruct the `Function` defined at step (a) above: # # ``` # fn_k = 5. # 1 # + 8.* # 2 # fn.math.exp( # 3 # 5.*temp ) # 4 # ``` # Things to note at the positions above: # 1. You can directly use Python native numerical objects. Under the hood, the native Python float object created here '`5.`' will be automatically converted to an Underworld2 `Constant` type function. Note that arithmetic operations only currently support float type objects, and an exception will be thrown for other types. For this reason, you often need to be careful where you use Python natives (for instance, using '`5`' here instead of '`5.`' would result in an error). # 2. Again, the native '`8.`' will be automatically converted. The addition operator here will be automatically converted to an Underworld `Addition` operation through operator overloading. Likewise for the multiplication operation. # 3. Note that for an exponential function, we need to use the Underworld provided `fn.math.exp` function, **not** the Python `math` module `exp` function. # 4. Here the argument (`5.*temp`) is itself a `Function`, and `Function` compounding applies. Importantly, note that the `MeshVariable` is used directly in the arithmetic, and this is possible because it is also a `Function` class object (more on this soon). # # At step (b), we provide the function to the visualisation object (`Surface`). `Function` objects are expected in many places across the Underworld2 API. At this stage, tests are performed to ensure that the provided function is valid and compatible. # # Finally, at step (c), the actually function evaluation occurs. This will generally be the most compuationally expensive phase, with the provided function being evaluated numerous times. # ## Usage basics # ### Underworld data objects # As seen in the example above, Underworld data objects (`MeshVariable` and `SwarmVariable` types) may be used directly within functions, as they are indeed themselves `Function` objects (via Python multiple inheritance). The Function class provides a uniform interface to these objects and is (largely) agnostic to the underlying data discretisation, instead providing mechanisms for evaluation at arbitrary coordinates. Note that true arbitrary coordinate evaluation is not possible for `SwarmVariable` objects, as they are purely discrete and do not (currently) have supporting interpolation functions. The _special case_ inputs provided by objects of the `FunctionInput` class may be used for `SwarmVariable` objects (more on this soon). # # The following simple example demonstrates querying a `MeshVariable` object. # + # create a new mesh variable sinvar = mesh.add_variable(1) # initialise with a sine perturbation import numpy as np sinvar.data[:,0] = np.sin( np.pi*mesh.data[:,0] ) # use the `evaluate()` method to perform query.. more on this below result = sinvar.evaluate( (0.25,0.) ) print("Evaluation result: {}".format(result)) # - # Let's define a test which we will use to ensure we're getting the correct numbers: def test( result, expected ): if not np.allclose(result, expected, rtol=2e-2, atol=2e-2 ): raise RuntimeError("Error! Expected result was not obtained.") # use test import math test(result,math.sqrt(2.)/2.) # ### Elementary algebraic operations # Use the Python equivalents (`+`,`-`,`*`,`/`) directly with your `Function` objects! `Function` objects are operator overloaded to facilitate this. Note however that only functions which return floating point type values are compatible with elementary operations currently, and an exception will be raised otherwise. # # Let's have a play with some mesh variables initialised to constants. # + # create some more mesh variables and initialise two_var = mesh.add_variable(1) six_var = mesh.add_variable(1) two_var.data[:] = 2. six_var.data[:] = 6. # create some functions via the Python operators fn_plus = two_var + six_var fn_minus = two_var - six_var fn_div = two_var / six_var fn_times = two_var * six_var # check results.. evaluate anywhere as our mesh variables are constant coord = (0.1234, 0.5678) resultplus = fn_plus.evaluate( coord ) resultminus = fn_minus.evaluate( coord ) resultdiv = fn_div.evaluate( coord ) resulttimes = fn_times.evaluate( coord ) print("Addition result : {}".format(resultplus)) print("Subtraction result : {}".format(resultminus)) print("Division result : {}".format(resultdiv)) print("Multiplication result: {}".format(resulttimes)) # run tests test(resultplus, 8.) test(resultminus,-4.) test(resultdiv, 1./3.) test(resulttimes, 12.) # - # ## Convenience conversions # # Python elementary types (int/floats/etc) may be used directly with Underworld Function objects in algebraic operations. Likewise, Python tuples (or lists) of Underworld Functions are automatically converted into `Function` objects which return vector results composed of the tuple/list entries. It is often important to remember that the elementary algebraic operations are only compatible with float type objects, and therefore you will often need to write '`5.`' (which will be converted to a double precision float object) instead of '`5`' (which will be converted to a integer object). # + # create a new mesh variable and init cosvar = mesh.add_variable(1) cosvar.data[:,0] = np.cos( np.pi*mesh.data[:,0] ) # create function.. note that `2.` and the `1.` are automatically converted sin2 = 2.*sinvar*cosvar + 1. # evaluate somewhere and then test import random coord = ( random.random(), 0. ) result = sin2.evaluate(coord) expected = math.sin(2.*math.pi*coord[0]) + 1. # via double angle formula test(result, expected) # also let's create a vector function on the fly. # first create a vector mesh variable vecvar = mesh.add_variable(2) vecvar.data[:] = (1.,1.) # now the function definition, evaluation, and test fn_vec = vecvar + (sinvar, cosvar) result = fn_vec.evaluate(coord) expected = (math.sin(math.pi*coord[0]) + 1., math.cos(math.pi*coord[0]) + 1.) test(result,expected) # - # Note that conversions can only occur automatically where the Python object (tuple or primary math object) comes _in contact_ with an Underworld function, whereby conversion occurs by virtue of the object overloading. However, occasionally we may wish to explicitly perform conversions, generally where we wish to use the `evaluate()` method or when we wish to utilise overloading. The `convert()` static method on the `Function` class provides this functionality: # + vec_as_py_tuple = (sinvar, cosvar) print("`vec_as_py_tuple` type is: {}".format(type(vec_as_py_tuple))) # this will not work! # vec_as_py_tuple.evaluate() vec_as_uw_fn = fn.Function.convert(vec_as_py_tuple) print("`vec_as_uw_fn` type is: {}".format(type(vec_as_uw_fn))) # this is better print("evaluate: {}".format(vec_as_uw_fn.evaluate(coord))) # - # ## Basic mathematical functions # Basic functions (such as `sin()` and `exp()`) are provided by the `underworld.function.math` module. Note that the Python `math` module is **not** compatible with Underworld2 functions (you must use _our_ math module). Operator overloads are also provided from the indexing operator (`[]`) and the power operator (`**`). # # We will construct some more double angle formula here. While in the previous example, we used Numpy to initialise a mesh variable object to construct `sin` and `cos` like functions, here all mathematical operations will be performed by Underworld `Function` objects. # + # trig funcs sin = fn.math.sin() cos = fn.math.cos() tan = fn.math.tan() # double angle formula sin_2theta = 2.*sin*cos cos_2theta = 1. - 2.*sin**2 tan_2theta = (2.*tan)/(1.-tan**2) # get somewhere to evaluate theta = random.random() # do things check out? test( sin_2theta.evaluate(theta), math.sin(2*theta) ) test( cos_2theta.evaluate(theta), math.cos(2*theta) ) test( tan_2theta.evaluate(theta), math.tan(2*theta) ) # - # ## Relational and logical functions # Relational functions are constructed via the Python relational operators (`<`,`<=`,`>`,`>=`). Underworld functions for `AND`, `OR` and `XOR` logical operations are also available, and these overload the Python bitwise operators (`&`,`|`,`^`) (though they do **not** perform bitwise operations). These functions will all return boolean results. # + # define a logical function for inside a unit circle. # we will use the `input()` function as a proxy for the coordinate (see below). radius = 1. coord = fn.input() inside_circle = ( coord[0]**2 + coord[1]**2 < radius**2 ) # test at some locations test( inside_circle.evaluate( (0. ,0. ) ), True ) test( inside_circle.evaluate( (1. ,1. ) ), False ) test( inside_circle.evaluate( (0.5,0.5) ), True ) test( inside_circle.evaluate( (0.9,0.5) ), False ) # now something a bit more complex.. first, some circles radius = 0.25 offset = (0.5,0.5) deltax = radius*math.cos(math.pi/4.) deltay = radius*math.sin(math.pi/4.) coord1 = fn.input() - offset circle1 = ( fn.math.dot(coord1,coord1) < radius**2 ) coord2 = coord1 - ( deltax, deltay) circle2 = ( fn.math.dot(coord2,coord2) < radius**2 ) coord3 = coord1 - (-deltax, deltay) circle3 = ( fn.math.dot(coord3,coord3) < radius**2 ) coord4 = coord1 - ( deltax,-deltay) circle4 = ( fn.math.dot(coord4,coord4) < radius**2 ) coord5 = coord1 - (-deltax,-deltay) circle5 = ( fn.math.dot(coord5,coord5) < radius**2 ) # now create a cross.. note the use of the OR operator cross = ( (fn.math.abs(coord1[0])<radius/2.) | (fn.math.abs(coord1[1])<radius/2.) ) # visualise the XOR of these shapes fig = glucifer.Figure() fig.append(glucifer.objects.Surface(mesh, circle1^circle2^circle3^circle4^circle5^cross, resolution=400, colours=['white','blue'])) fig.show() # - # ## Conformal input & output checking # When you define your functions, they are input agnostic in the sense that you describe your function without declaring the type of argument that will be used when the function is eventually evaluated. At evaluation time, checks are performed to ensure the argument is compatible with the provided function. Likewise, the output returned by the evaluated function will be checked to ensure it is of the required form. If a check fails, an exception is thrown. # # Some examples: # # ### Input/Output types # as mentioned already, arithmetic operations are only possible for `float` types fn_test = vecvar + 1 # note that the definition works fine, try: fn_test.evaluate((0.1,0.2)) # but the failure will occur at evaluation time. except RuntimeError as e: print("RuntimeError: "+str(e)) # ### Cardinality # the `Surface` object can only visualise scalar objects fig = glucifer.Figure() try: fig.append(glucifer.objects.Surface(mesh,vecvar)) # failure will occur here except RuntimeError as e: print("RuntimeError: "+str(e)) # ### Input/Output classes # 'SwarmVariable' objects do not accept global coordinate evaluation swarm = uw.swarm.Swarm(mesh) svar = swarm.add_variable('double',1) swarm.populate_using_layout(uw.swarm.layouts.GlobalSpaceFillerLayout(swarm,1)) try: svar.evaluate((0.2,0.3)) except RuntimeError as e: print("RuntimeError: "+str(e)) # ## Function definitions are templates # # When you are defining your functions, you are actually constructing a tree structure which _templates_ the actual function definition. At evaluation time, this tree is walked starting with the provided input data, evaluating all subfunctions and passing through the results. So functions are dynamic in the sense that they **do not** capture a static representation of their constituent functions at definition time, but instead simply refer to these functions at evaluation time. This detail is mainly of importance when using data functions such as a `MeshVariable` objects, and means that any changes to the mesh variable will be reflected immediately in any functions which utilise it. # + # create mesh var and init to 1. meshvar = mesh.add_variable(1) meshvar.data[:] = 1. # now create a function which utilises the mesh var and evaluate fn_test = meshvar * 5. result_before = fn_test.evaluate((0.1,0.2)) # now modify the meshvar and evaluate the fn again meshvar.data[:] = -1. result_after = fn_test.evaluate((0.1,0.2)) print(result_before,result_after) # - # ## Module Overview # The user is encouraged to drill down interactively into submodules to discover all available functionality. Documentation and examples are provided via class docstrings. A general overview of the top level is provided here: # # #### Submodules: # `analytic`: Analytic solution functions. # `branching`: Functions which provide branching type behaviour. # `exception`: Functions which raise exceptions under certain conditions. # `math`: Basic mathematics functions. # `misc`: Miscellaneous other functions. # `rheology`: Functions which perform rheology specific behaviours. # `shape`: Functions which perform geometric operations. # `tensor`: Functions which perform operations on tensor functions. # `view`: Functions which only observe function evaluations without modifying results. # # #### Classes: # `coord`: This function is an alias to the `input()` function. # `input`: This is the identity function. It simply returns its input. # `Function`: The `Function` base class. # `FunctionInput`: The `FunctionInput` base class. # ## The `evaluate()` Method # # # Once you have created functions, you will pass these into various objects within the Underworld2 API, however you will often also wish to directly evaluate the functions you have created for analytic or testing purposes. The `evaluate()` method provides this capability. Here are some basic examples using the function created previously: # evaluate at single location, provide as a coordinate tuple or list. fn_k.evaluate( (0.3,0.2) ) # evaluate at a set of locations, provide these as a numpy array. import numpy as np count = 10 # create an empty array locations = np.zeros( (count,2) ) # specify evaluation coodinates locations[:,0] = 0.5 locations[:,1] = np.linspace(0.,1.,count) # evaluate fn_k.evaluate(locations) # #### The `FunctionInput` class # A further type of input to function evaluation are `FunctionInput` class objects. These are shortcuts to their underlying data, but leverage the fundamental object data for higher efficiency evaluations, and sometimes as a necessity to facilitate the evaluation. Currently provided `FunctionInput` classes include: # # * `underworld.mesh.FeMesh`: Evaluation at all mesh vertex coordinates. # * `underworld.mesh.FeMesh_IndexSet`: Evaluation at the mesh vertex coordinates within the set. # * `underworld.swarm.Swarm`: Evaluation at all swarm particle coordinates. # * `underworld.swarm.VoronoiIntegrationSwarm`: Evaluation at all voronoi swarm particle coordinates. # # The above behave as `FunctionInput` classes by way of the multiple inheritence mechanisms of Python. For example, mesh objects (ie, objects of class `FeMesh`) are also `FunctionInput` objects. # # Note that you will get identical evaluation results using the entire mesh vertex Numpy array as evaluation input, or using the mesh directly as an input: # + # first lets confirm that mesh is indeed a `FunctionInput` object if not isinstance(mesh, fn.FunctionInput): raise RuntimeError("Error! The mesh does not appear to be an instance of the `FunctionInput` class.") # now evaluate at all mesh vertices: results_using_functioninput = fn_k.evaluate(mesh) # likewise, let's do the numpy equivalent results_using_numpy = fn_k.evaluate(mesh.data) # confirm identical results if not np.allclose( results_using_functioninput, results_using_numpy ): raise RuntimeError("Error! Results differ where they should be the same.") # - # Note that the `FeMesh_IndexSet` which contains all mesh vertices should *also* return identical results: # + # first create the 'empty' set allindices = mesh.specialSets['Empty'] # now invert to obtain the 'full' set allindices.invert() # evaluate results_using_indexset = fn_k.evaluate(allindices) # again confirm identical results if not np.allclose( results_using_functioninput, results_using_indexset ): raise RuntimeError("Error! Results differ where they should be the same.") # - # While all the above methods yield the same numerical results, note that there are efficiency differences. When you provide a Numpy array as input to a `MeshVariable` object evaluation, it is first necessary to determine which element the evaluation coordinate belongs to, which can be an expensive operation (in particular for deformed mesh). Once the owning element is determined, the interpolation itself needs to be calculated. However, when using the mesh object directly as a function input, the evaluation leverages higher level object information to directly extract the nodal values (ie, owning element and interpolation are not required). Consider the following timing results: # first evaluate directly using mesh # %timeit tempVar.evaluate(mesh) # now evaluate via numpy array # %timeit tempVar.evaluate(mesh.data) # now flag the mesh as deformed. note that we are not # moving any mesh vertices, but simply flagging the # mesh as deformed. with mesh.deform_mesh(): pass # %timeit fn_k.evaluate(mesh.data) mesh.reset() # reset the mesh for future operations # So we see that there isn't a dramatic difference until the mesh is *deformed*. Note also that as we haven't truly deformed the mesh, the observed result will generally be the best case scenario. # # The other important `FunctionInput` objects are the swarm based items. In the case of functions which utilise `SwarmVariable` objects, these are the **only** option for evaluation from within Python. This is because particles are inherently discrete, and therefore evaluation at arbitrary locations is not directly possible. In some case where you supply `SwarmVariable` functions to be used within Underworld operations (such as a viscosity for the Stokes system), a nearest neighbour calculation is implicitly utilised, however these mechanisms are not (yet) exposed for calls to the `evaluate()` method. Future releases will provide greater functionality for operating over `SwarmVariable` functions. Again, simply pass the swarm to the evaluate function to utilse the swarm `FunctionInput` behaviour: # + # first add a swarm to the existing mesh and populate swarm = uw.swarm.Swarm(mesh) swarm.populate_using_layout( uw.swarm.layouts.GlobalSpaceFillerLayout(swarm,20) ) # add variable to use for conductivity k_var = swarm.add_variable('double',1) # now initialise these particles to have values which correspond to those # provided by fn_k. we can use either `swarm` or `swarm.data` as inputs # here and the results in this case will be identical. k_var.data[:] = fn_k.evaluate(swarm) # note that k_var is itself of the `Function` class if not isinstance(k_var, fn.Function): raise RuntimeError("Error! Swarm variable does not appear to be of `Function` class") # now try to evaluate at arbitrary location # k_var.evaluate( (0.3,0.2) ) # this will raise a RuntimeError! # now evaluate using swarm results_using_swarm_k_var = k_var.evaluate( swarm ) # also evaluate fn_k using swarm results_using_swarm_fn_k = fn_k.evaluate( swarm ) if not np.allclose( results_using_swarm_fn_k, results_using_swarm_fn_k ): raise RuntimeError("Error! These arrays should have identical values.") # - # ## The `input` function # # The `function.input` class simply provides the identity function. It returns whatever values are passed to it! # + # create the input class/function fn_input = fn.input() # confirm behaviour print(fn_input.evaluate( 2. ) ) print(fn_input.evaluate( ((0.2), (0.3)) )) print(fn_input.evaluate( ((0.2), (0.3), (0.4)) )) print(fn_input.evaluate( mesh.data[0:5] )) if not np.allclose(mesh.data, fn_input.evaluate(mesh.data)): raise RuntimeError("Error! These arrays should have identical values.") # - # The `input` function is most often used when you wish to construct functions which operate over a particular coordinate axis: # Create sinusoidal function in the horizontal direction. # Note that the square brackets operator is overloaded to extract # a certain axis' value from vector functions. fn_sin = fn.math.sin(8.*np.pi*fn_input[0]) # take a look fig = glucifer.Figure() fig.append(glucifer.objects.Surface(mesh,fn_sin)) fig.show() # We also provide an alias to this class in `function.coord`. This is strictly a Python alias, and is identical in all ways (except name!) to `function.input`. It is provided because we often use the `input` function to operate on coordinate values (as above), but it is worth noting that function inputs are certainly not restricted to coordinates or vectors, and in these cases it would be misleading to use the `coord` function. # ## Branching Functions # # Branching functions are functions which nest other functions, and select which function to execute based on some condition (also expressed as a function!). The most common use case for branching functions are for defining *materials* within your model which exhibit different behaviours (based on their associated function). Note that Underworld2 does not include an explict 'material' construct (unlike Underworld1), however the equivalent functionality may be obtained through branching functions. # # Two branching functions are currently provided: # # `function.branching.map`: Key/value type mapping of behavior.<br/> # `function.branching.conditional`: if/elif type behaviour.<br/> # # Refer to respective API documentation for further information on these function classes. The `map` function is usually used to construct material type behaviours. Note that the `map` function provides a subset of the `conditional` function behaviour, though it has performance advantages. # # Let us construct a basic model with material type behaviours: # + # setup a mesh and swarm mesh = uw.mesh.FeMesh_Cartesian(elementRes=(8,8),minCoord=(-1.0, -1.0), maxCoord=(1.0, 1.0)) swarm = uw.swarm.Swarm(mesh) swarm.populate_using_layout(uw.swarm.layouts.GlobalSpaceFillerLayout(swarm,80)) # add a variable which will act as the key function for the map function. material_index = swarm.add_variable("int",1) # add the following for convenience and clarity. outside_circle = 0 inside_circle = 1 # initialise material_index to be outside_circle everywhere material_index.data[:] = outside_circle # now set to inside_circle where inside circle! r2 = 0.8 for index, position in enumerate(swarm.particleCoordinates.data): if position[0]**2 + position[1]**2 < r2: material_index.data[index] = inside_circle # create mapped behaviour dictionary fn_z = fn.input()[1] map_dict = { outside_circle:fn_z, inside_circle:fn_sin } # create function fn_map = fn.branching.map( fn_key = material_index, mapping = map_dict ) # viz fig = glucifer.Figure() fig.append( glucifer.objects.Points(swarm,fn_map, pointSize=10.) ) fig.show() # - # Alternatively, we can achieve an identical result using the `conditional` function, and its `evaluate()` method: # + # the 'position' variable (created above) retains a reference to the # particleCoordinates numpy array. this inteferes with adding a new # swarm variable, so we must delete it. del position # add a new variable first (we will test later for equality) material_index2 = swarm.add_variable("int",1) # first define a function which returns true if inside the circle coord = fn.input() fn_in_circle = fn.math.dot(coord,coord) < r2 # note the overload of the '<' operator # now create the conditional fn_conditional = fn.branching.conditional( ( (fn_in_circle, inside_circle), ( True, outside_circle) ) ) # use the evaluate, writing the results out to the material_index2 material_index2.data[:] = fn_conditional.evaluate(swarm) # check to ensure that we have identical results if not (material_index2.data == material_index.data).all(): raise RuntimeError("Error! These arrays should have identical values.")
25,979
/C5 Sequence Models/5-Emojify_v2a.ipynb
84a2f8387a4aaa6564ebd16ec9bfb2f5be832d84
[]
no_license
databoy-eng/Deep-Learning-Specialization
https://github.com/databoy-eng/Deep-Learning-Specialization
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
77,624
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Emojify! # # Welcome to the second assignment of Week 2. You are going to use word vector representations to build an Emojifier. # # Have you ever wanted to make your text messages more expressive? Your emojifier app will help you do that. # So rather than writing: # >"Congratulations on the promotion! Let's get coffee and talk. Love you!" # # The emojifier can automatically turn this into: # >"Congratulations on the promotion! 👍 Let's get coffee and talk. ☕️ Love you! ❤️" # # * You will implement a model which inputs a sentence (such as "Let's go see the baseball game tonight!") and finds the most appropriate emoji to be used with this sentence (⚾️). # # #### Using word vectors to improve emoji lookups # * In many emoji interfaces, you need to remember that ❤️ is the "heart" symbol rather than the "love" symbol. # * In other words, you'll have to remember to type "heart" to find the desired emoji, and typing "love" won't bring up that symbol. # * We can make a more flexible emoji interface by using word vectors! # * When using word vectors, you'll see that even if your training set explicitly relates only a few words to a particular emoji, your algorithm will be able to generalize and associate additional words in the test set to the same emoji. # * This works even if those additional words don't even appear in the training set. # * This allows you to build an accurate classifier mapping from sentences to emojis, even using a small training set. # # #### What you'll build # 1. In this exercise, you'll start with a baseline model (Emojifier-V1) using word embeddings. # 2. Then you will build a more sophisticated model (Emojifier-V2) that further incorporates an LSTM. # ## <font color='darkblue'>Updates</font> # # #### If you were working on the notebook before this update... # * The current notebook is version "2a". # * You can find your original work saved in the notebook with the previous version name ("v2") # * To view the file directory, go to the menu "File->Open", and this will open a new tab that shows the file directory. # # #### List of updates # * sentence_to_avg # * Updated instructions. # * Use separate variables to store the total and the average (instead of just `avg`). # * Additional hint about how to initialize the shape of `avg` vector. # * sentences_to_indices # * Updated preceding text and instructions, added additional hints. # * pretrained_embedding_layer # * Additional instructions to explain how to implement each step. # * Emoify_V2 # * Modifies instructions to specify which parameters are needed for each Keras layer. # * Remind users of Keras syntax. # * Explanation of how to use the layer object that is returned by `pretrained_embedding_layer`. # * Provides sample Keras code. # * Spelling, grammar and wording corrections. # Let's get started! Run the following cell to load the package you are going to use. # + import numpy as np from emo_utils import * import emoji import matplotlib.pyplot as plt # %matplotlib inline # - # ## 1 - Baseline model: Emojifier-V1 # # ### 1.1 - Dataset EMOJISET # # Let's start by building a simple baseline classifier. # # You have a tiny dataset (X, Y) where: # - X contains 127 sentences (strings). # - Y contains an integer label between 0 and 4 corresponding to an emoji for each sentence. # # <img src="images/data_set.png" style="width:700px;height:300px;"> # <caption><center> **Figure 1**: EMOJISET - a classification problem with 5 classes. A few examples of sentences are given here. </center></caption> # # Let's load the dataset using the code below. We split the dataset between training (127 examples) and testing (56 examples). X_train, Y_train = read_csv('data/train_emoji.csv') X_test, Y_test = read_csv('data/tesss.csv') maxLen = len(max(X_train, key=len).split()) # Run the following cell to print sentences from X_train and corresponding labels from Y_train. # * Change `idx` to see different examples. # * Note that due to the font used by iPython notebook, the heart emoji may be colored black rather than red. for idx in range(10): print(X_train[idx], label_to_emoji(Y_train[idx])) # ### 1.2 - Overview of the Emojifier-V1 # # In this part, you are going to implement a baseline model called "Emojifier-v1". # # <center> # <img src="images/image_1.png" style="width:900px;height:300px;"> # <caption><center> **Figure 2**: Baseline model (Emojifier-V1).</center></caption> # </center> # # # #### Inputs and outputs # * The input of the model is a string corresponding to a sentence (e.g. "I love you). # * The output will be a probability vector of shape (1,5), (there are 5 emojis to choose from). # * The (1,5) probability vector is passed to an argmax layer, which extracts the index of the emoji with the highest probability. # #### One-hot encoding # * To get our labels into a format suitable for training a softmax classifier, lets convert $Y$ from its current shape $(m, 1)$ into a "one-hot representation" $(m, 5)$, # * Each row is a one-hot vector giving the label of one example. # * Here, `Y_oh` stands for "Y-one-hot" in the variable names `Y_oh_train` and `Y_oh_test`: Y_oh_train = convert_to_one_hot(Y_train, C = 5) Y_oh_test = convert_to_one_hot(Y_test, C = 5) # Let's see what `convert_to_one_hot()` did. Feel free to change `index` to print out different values. idx = 50 print(f"Sentence '{X_train[50]}' has label index {Y_train[idx]}, which is emoji {label_to_emoji(Y_train[idx])}", ) print(f"Label index {Y_train[idx]} in one-hot encoding format is {Y_oh_train[idx]}") # All the data is now ready to be fed into the Emojify-V1 model. Let's implement the model! # ### 1.3 - Implementing Emojifier-V1 # # As shown in Figure 2 (above), the first step is to: # * Convert each word in the input sentence into their word vector representations. # * Then take an average of the word vectors. # * Similar to the previous exercise, we will use pre-trained 50-dimensional GloVe embeddings. # # Run the following cell to load the `word_to_vec_map`, which contains all the vector representations. word_to_index, index_to_word, word_to_vec_map = read_glove_vecs('../../readonly/glove.6B.50d.txt') # You've loaded: # - `word_to_index`: dictionary mapping from words to their indices in the vocabulary # - (400,001 words, with the valid indices ranging from 0 to 400,000) # - `index_to_word`: dictionary mapping from indices to their corresponding words in the vocabulary # - `word_to_vec_map`: dictionary mapping words to their GloVe vector representation. # # Run the following cell to check if it works. word = "cucumber" idx = 289846 print("the index of", word, "in the vocabulary is", word_to_index[word]) print("the", str(idx) + "th word in the vocabulary is", index_to_word[idx]) # **Exercise**: Implement `sentence_to_avg()`. You will need to carry out two steps: # 1. Convert every sentence to lower-case, then split the sentence into a list of words. # * `X.lower()` and `X.split()` might be useful. # 2. For each word in the sentence, access its GloVe representation. # * Then take the average of all of these word vectors. # * You might use `numpy.zeros()`. # # # #### Additional Hints # * When creating the `avg` array of zeros, you'll want it to be a vector of the same shape as the other word vectors in the `word_to_vec_map`. # * You can choose a word that exists in the `word_to_vec_map` and access its `.shape` field. # * Be careful not to hard code the word that you access. In other words, don't assume that if you see the word 'the' in the `word_to_vec_map` within this notebook, that this word will be in the `word_to_vec_map` when the function is being called by the automatic grader. # * Hint: you can use any one of the word vectors that you retrieved from the input `sentence` to find the shape of a word vector. # + # GRADED FUNCTION: sentence_to_avg def sentence_to_avg(sentence, word_to_vec_map): """ Converts a sentence (string) into a list of words (strings). Extracts the GloVe representation of each word and averages its value into a single vector encoding the meaning of the sentence. Arguments: sentence -- string, one training example from X word_to_vec_map -- dictionary mapping every word in a vocabulary into its 50-dimensional vector representation Returns: avg -- average vector encoding information about the sentence, numpy-array of shape (50,) """ ### START CODE HERE ### # Step 1: Split sentence into list of lower case words (≈ 1 line) words = sentence.lower().split() # Initialize the average word vector, should have the same shape as your word vectors. avg = np.zeros((50, )) # Step 2: average the word vectors. You can loop over the words in the list "words". for w in words: avg += word_to_vec_map[w] avg /= len(words) ### END CODE HERE ### return avg # - avg = sentence_to_avg("Morrocan couscous is my favorite dish", word_to_vec_map) print("avg = \n", avg) # **Expected Output**: # # ```Python # avg = # [-0.008005 0.56370833 -0.50427333 0.258865 0.55131103 0.03104983 # -0.21013718 0.16893933 -0.09590267 0.141784 -0.15708967 0.18525867 # 0.6495785 0.38371117 0.21102167 0.11301667 0.02613967 0.26037767 # 0.05820667 -0.01578167 -0.12078833 -0.02471267 0.4128455 0.5152061 # 0.38756167 -0.898661 -0.535145 0.33501167 0.68806933 -0.2156265 # 1.797155 0.10476933 -0.36775333 0.750785 0.10282583 0.348925 # -0.27262833 0.66768 -0.10706167 -0.283635 0.59580117 0.28747333 # -0.3366635 0.23393817 0.34349183 0.178405 0.1166155 -0.076433 # 0.1445417 0.09808667] # ``` # #### Model # # You now have all the pieces to finish implementing the `model()` function. # After using `sentence_to_avg()` you need to: # * Pass the average through forward propagation # * Compute the cost # * Backpropagate to update the softmax parameters # # **Exercise**: Implement the `model()` function described in Figure (2). # # * The equations you need to implement in the forward pass and to compute the cross-entropy cost are below: # * The variable $Y_{oh}$ ("Y one hot") is the one-hot encoding of the output labels. # # $$ z^{(i)} = W . avg^{(i)} + b$$ # # $$ a^{(i)} = softmax(z^{(i)})$$ # # $$ \mathcal{L}^{(i)} = - \sum_{k = 0}^{n_y - 1} Y_{oh,k}^{(i)} * log(a^{(i)}_k)$$ # # **Note** It is possible to come up with a more efficient vectorized implementation. For now, let's use nested for loops to better understand the algorithm, and for easier debugging. # # We provided the function `softmax()`, which was imported earlier. # + # GRADED FUNCTION: model def model(X, Y, word_to_vec_map, learning_rate = 0.01, num_iterations = 400): """ Model to train word vector representations in numpy. Arguments: X -- input data, numpy array of sentences as strings, of shape (m, 1) Y -- labels, numpy array of integers between 0 and 7, numpy-array of shape (m, 1) word_to_vec_map -- dictionary mapping every word in a vocabulary into its 50-dimensional vector representation learning_rate -- learning_rate for the stochastic gradient descent algorithm num_iterations -- number of iterations Returns: pred -- vector of predictions, numpy-array of shape (m, 1) W -- weight matrix of the softmax layer, of shape (n_y, n_h) b -- bias of the softmax layer, of shape (n_y,) """ np.random.seed(1) # Define number of training examples m = Y.shape[0] # number of training examples n_y = 5 # number of classes n_h = 50 # dimensions of the GloVe vectors # Initialize parameters using Xavier initialization W = np.random.randn(n_y, n_h) / np.sqrt(n_h) b = np.zeros((n_y,)) # Convert Y to Y_onehot with n_y classes Y_oh = convert_to_one_hot(Y, C = n_y) # Optimization loop for t in range(num_iterations): # Loop over the number of iterations for i in range(m): # Loop over the training examples ### START CODE HERE ### (≈ 4 lines of code) # Average the word vectors of the words from the i'th training example avg = sentence_to_avg(X[i], word_to_vec_map) # Forward propagate the avg through the softmax layer z = W @ avg + b a = softmax(z) # Compute cost using the i'th training label's one hot representation and "A" (the output of the softmax) cost = -np.sum(Y_oh[i] * np.log(a)) ### END CODE HERE ### # Compute gradients dz = a - Y_oh[i] dW = np.dot(dz.reshape(n_y,1), avg.reshape(1, n_h)) db = dz # Update parameters with Stochastic Gradient Descent W = W - learning_rate * dW b = b - learning_rate * db if t % 100 == 0: print("Epoch: " + str(t) + " --- cost = " + str(cost)) pred = predict(X, Y, W, b, word_to_vec_map) #predict is defined in emo_utils.py return pred, W, b # + print(X_train.shape) print(Y_train.shape) print(np.eye(5)[Y_train.reshape(-1)].shape) print(X_train[0]) print(type(X_train)) Y = np.asarray([5,0,0,5, 4, 4, 4, 6, 6, 4, 1, 1, 5, 6, 6, 3, 6, 3, 4, 4]) print(Y.shape) X = np.asarray(['I am going to the bar tonight', 'I love you', 'miss you my dear', 'Lets go party and drinks','Congrats on the new job','Congratulations', 'I am so happy for you', 'Why are you feeling bad', 'What is wrong with you', 'You totally deserve this prize', 'Let us go play football', 'Are you down for football this afternoon', 'Work hard play harder', 'It is suprising how people can be dumb sometimes', 'I am very disappointed','It is the best day in my life', 'I think I will end up alone','My life is so boring','Good job', 'Great so awesome']) print(X.shape) print(np.eye(5)[Y_train.reshape(-1)].shape) print(type(X_train)) # - # Run the next cell to train your model and learn the softmax parameters (W,b). pred, W, b = model(X_train, Y_train, word_to_vec_map) print(pred) # **Expected Output** (on a subset of iterations): # # <table> # <tr> # <td> # **Epoch: 0** # </td> # <td> # cost = 1.95204988128 # </td> # <td> # Accuracy: 0.348484848485 # </td> # </tr> # # # <tr> # <td> # **Epoch: 100** # </td> # <td> # cost = 0.0797181872601 # </td> # <td> # Accuracy: 0.931818181818 # </td> # </tr> # # <tr> # <td> # **Epoch: 200** # </td> # <td> # cost = 0.0445636924368 # </td> # <td> # Accuracy: 0.954545454545 # </td> # </tr> # # <tr> # <td> # **Epoch: 300** # </td> # <td> # cost = 0.0343226737879 # </td> # <td> # Accuracy: 0.969696969697 # </td> # </tr> # </table> # Great! Your model has pretty high accuracy on the training set. Lets now see how it does on the test set. # ### 1.4 - Examining test set performance # # * Note that the `predict` function used here is defined in emo_util.spy. print("Training set:") pred_train = predict(X_train, Y_train, W, b, word_to_vec_map) print('Test set:') pred_test = predict(X_test, Y_test, W, b, word_to_vec_map) # **Expected Output**: # # <table> # <tr> # <td> # **Train set accuracy** # </td> # <td> # 97.7 # </td> # </tr> # <tr> # <td> # **Test set accuracy** # </td> # <td> # 85.7 # </td> # </tr> # </table> # * Random guessing would have had 20% accuracy given that there are 5 classes. (1/5 = 20%). # * This is pretty good performance after training on only 127 examples. # # # #### The model matches emojis to relevant words # In the training set, the algorithm saw the sentence # >"*I love you*" # # with the label ❤️. # * You can check that the word "adore" does not appear in the training set. # * Nonetheless, lets see what happens if you write "*I adore you*." # # # + X_my_sentences = np.array(["i adore you", "i love you", "funny lol", "lets play with a ball", "food is ready", "not feeling happy"]) Y_my_labels = np.array([[0], [0], [2], [1], [4],[3]]) pred = predict(X_my_sentences, Y_my_labels , W, b, word_to_vec_map) print_predictions(X_my_sentences, pred) # - # Amazing! # * Because *adore* has a similar embedding as *love*, the algorithm has generalized correctly even to a word it has never seen before. # * Words such as *heart*, *dear*, *beloved* or *adore* have embedding vectors similar to *love*. # * Feel free to modify the inputs above and try out a variety of input sentences. # * How well does it work? # # #### Word ordering isn't considered in this model # * Note that the model doesn't get the following sentence correct: # >"not feeling happy" # # * This algorithm ignores word ordering, so is not good at understanding phrases like "not happy." # # #### Confusion matrix # * Printing the confusion matrix can also help understand which classes are more difficult for your model. # * A confusion matrix shows how often an example whose label is one class ("actual" class) is mislabeled by the algorithm with a different class ("predicted" class). print(Y_test.shape) print(' '+ label_to_emoji(0)+ ' ' + label_to_emoji(1) + ' ' + label_to_emoji(2)+ ' ' + label_to_emoji(3)+' ' + label_to_emoji(4)) print(pd.crosstab(Y_test, pred_test.reshape(56,), rownames=['Actual'], colnames=['Predicted'], margins=True)) plot_confusion_matrix(Y_test, pred_test) # # ## What you should remember from this section # - Even with a 127 training examples, you can get a reasonably good model for Emojifying. # - This is due to the generalization power word vectors gives you. # - Emojify-V1 will perform poorly on sentences such as *"This movie is not good and not enjoyable"* # - It doesn't understand combinations of words. # - It just averages all the words' embedding vectors together, without considering the ordering of words. # # **You will build a better algorithm in the next section!** # ## 2 - Emojifier-V2: Using LSTMs in Keras: # # Let's build an LSTM model that takes word **sequences** as input! # * This model will be able to account for the word ordering. # * Emojifier-V2 will continue to use pre-trained word embeddings to represent words. # * We will feed word embeddings into an LSTM. # * The LSTM will learn to predict the most appropriate emoji. # # Run the following cell to load the Keras packages. import numpy as np np.random.seed(0) from keras.models import Model from keras.layers import Dense, Input, Dropout, LSTM, Activation from keras.layers.embeddings import Embedding from keras.preprocessing import sequence from keras.initializers import glorot_uniform np.random.seed(1) # ### 2.1 - Overview of the model # # Here is the Emojifier-v2 you will implement: # # <img src="images/emojifier-v2.png" style="width:700px;height:400px;"> <br> # <caption><center> **Figure 3**: Emojifier-V2. A 2-layer LSTM sequence classifier. </center></caption> # # # ### 2.2 Keras and mini-batching # # * In this exercise, we want to train Keras using mini-batches. # * However, most deep learning frameworks require that all sequences in the same mini-batch have the **same length**. # * This is what allows vectorization to work: If you had a 3-word sentence and a 4-word sentence, then the computations needed for them are different (one takes 3 steps of an LSTM, one takes 4 steps) so it's just not possible to do them both at the same time. # # #### Padding handles sequences of varying length # * The common solution to handling sequences of **different length** is to use padding. Specifically: # * Set a maximum sequence length # * Pad all sequences to have the same length. # # ##### Example of padding # * Given a maximum sequence length of 20, we could pad every sentence with "0"s so that each input sentence is of length 20. # * Thus, the sentence "I love you" would be represented as $(e_{I}, e_{love}, e_{you}, \vec{0}, \vec{0}, \ldots, \vec{0})$. # * In this example, any sentences longer than 20 words would have to be truncated. # * One way to choose the maximum sequence length is to just pick the length of the longest sentence in the training set. # # ### 2.3 - The Embedding layer # # * In Keras, the embedding matrix is represented as a "layer". # * The embedding matrix maps word indices to embedding vectors. # * The word indices are positive integers. # * The embedding vectors are dense vectors of fixed size. # * When we say a vector is "dense", in this context, it means that most of the values are non-zero. As a counter-example, a one-hot encoded vector is not "dense." # * The embedding matrix can be derived in two ways: # * Training a model to derive the embeddings from scratch. # * Using a pretrained embedding # # #### Using and updating pre-trained embeddings # * In this part, you will learn how to create an [Embedding()](https://keras.io/layers/embeddings/) layer in Keras # * You will initialize the Embedding layer with the GloVe 50-dimensional vectors. # * In the code below, we'll show you how Keras allows you to either train or leave fixed this layer. # * Because our training set is quite small, we will leave the GloVe embeddings fixed instead of updating them. # # # #### Inputs and outputs to the embedding layer # # * The `Embedding()` layer's input is an integer matrix of size **(batch size, max input length)**. # * This input corresponds to sentences converted into lists of indices (integers). # * The largest integer (the highest word index) in the input should be no larger than the vocabulary size. # * The embedding layer outputs an array of shape (batch size, max input length, dimension of word vectors). # # * The figure shows the propagation of two example sentences through the embedding layer. # * Both examples have been zero-padded to a length of `max_len=5`. # * The word embeddings are 50 units in length. # * The final dimension of the representation is `(2,max_len,50)`. # # <img src="images/embedding1.png" style="width:700px;height:250px;"> # <caption><center> **Figure 4**: Embedding layer</center></caption> # #### Prepare the input sentences # **Exercise**: # * Implement `sentences_to_indices`, which processes an array of sentences (X) and returns inputs to the embedding layer: # * Convert each training sentences into a list of indices (the indices correspond to each word in the sentence) # * Zero-pad all these lists so that their length is the length of the longest sentence. # # ##### Additional Hints # * Note that you may have considered using the `enumerate()` function in the for loop, but for the purposes of passing the autograder, please follow the starter code by initializing and incrementing `j` explicitly. for idx, val in enumerate(["I", "like", "learning"]): print(idx,val) # + # GRADED FUNCTION: sentences_to_indices def sentences_to_indices(X, word_to_index, max_len): """ Converts an array of sentences (strings) into an array of indices corresponding to words in the sentences. The output shape should be such that it can be given to `Embedding()` (described in Figure 4). Arguments: X -- array of sentences (strings), of shape (m, 1) word_to_index -- a dictionary containing the each word mapped to its index max_len -- maximum number of words in a sentence. You can assume every sentence in X is no longer than this. Returns: X_indices -- array of indices corresponding to words in the sentences from X, of shape (m, max_len) """ m = X.shape[0] # number of training examples ### START CODE HERE ### # Initialize X_indices as a numpy matrix of zeros and the correct shape (≈ 1 line) X_indices = np.zeros(shape=(m, max_len)) for i in range(m): # loop over training examples # Convert the ith training sentence in lower case and split is into words. You should get a list of words. sentence_words = (X[i].lower()).split() # Initialize j to 0 j = 0 # Loop over the words of sentence_words for w in sentence_words: # Set the (i,j)th entry of X_indices to the index of the correct word. X_indices[i, j] = word_to_index[w] # Increment j to j + 1 j = j + 1 ### END CODE HERE ### ### END CODE HERE ### return X_indices # - # Run the following cell to check what `sentences_to_indices()` does, and check your results. X1 = np.array(["funny lol", "lets play baseball", "food is ready for you"]) X1_indices = sentences_to_indices(X1,word_to_index, max_len = 5) print("X1 =", X1) print("X1_indices =\n", X1_indices) # **Expected Output**: # # ```Python # X1 = ['funny lol' 'lets play baseball' 'food is ready for you'] # X1_indices = # [[ 155345. 225122. 0. 0. 0.] # [ 220930. 286375. 69714. 0. 0.] # [ 151204. 192973. 302254. 151349. 394475.]] # ``` # #### Build embedding layer # # * Let's build the `Embedding()` layer in Keras, using pre-trained word vectors. # * The embedding layer takes as input a list of word indices. # * `sentences_to_indices()` creates these word indices. # * The embedding layer will return the word embeddings for a sentence. # # **Exercise**: Implement `pretrained_embedding_layer()` with these steps: # 1. Initialize the embedding matrix as a numpy array of zeros. # * The embedding matrix has a row for each unique word in the vocabulary. # * There is one additional row to handle "unknown" words. # * So vocab_len is the number of unique words plus one. # * Each row will store the vector representation of one word. # * For example, one row may be 50 positions long if using GloVe word vectors. # * In the code below, `emb_dim` represents the length of a word embedding. # 2. Fill in each row of the embedding matrix with the vector representation of a word # * Each word in `word_to_index` is a string. # * word_to_vec_map is a dictionary where the keys are strings and the values are the word vectors. # 3. Define the Keras embedding layer. # * Use [Embedding()](https://keras.io/layers/embeddings/). # * The input dimension is equal to the vocabulary length (number of unique words plus one). # * The output dimension is equal to the number of positions in a word embedding. # * Make this layer's embeddings fixed. # * If you were to set `trainable = True`, then it will allow the optimization algorithm to modify the values of the word embeddings. # * In this case, we don't want the model to modify the word embeddings. # 4. Set the embedding weights to be equal to the embedding matrix. # * Note that this is part of the code is already completed for you and does not need to be modified. # + # GRADED FUNCTION: pretrained_embedding_layer def pretrained_embedding_layer(word_to_vec_map, word_to_index): """ Creates a Keras Embedding() layer and loads in pre-trained GloVe 50-dimensional vectors. Arguments: word_to_vec_map -- dictionary mapping words to their GloVe vector representation. word_to_index -- dictionary mapping from words to their indices in the vocabulary (400,001 words) Returns: embedding_layer -- pretrained layer Keras instance """ vocab_len = len(word_to_index) + 1 # adding 1 to fit Keras embedding (requirement) emb_dim = word_to_vec_map["cucumber"].shape[0] # define dimensionality of your GloVe word vectors (= 50) ### START CODE HERE ### # Initialize the embedding matrix as a numpy array of zeros of shape (vocab_len, dimensions of word vectors = emb_dim) emb_matrix = np.zeros(shape=(vocab_len, emb_dim)) # Set each row "index" of the embedding matrix to be the word vector representation of the "index"th word of the vocabulary for word, index in word_to_index.items(): emb_matrix[index, :] = word_to_vec_map[word] # Define Keras embedding layer with the correct output/input sizes, make it trainable. Use Embedding(...). Make sure to set trainable=False. embedding_layer = Embedding(vocab_len, emb_dim, trainable=False) ### END CODE HERE ### # Step 4 (already done for you; please do not modify) # Build the embedding layer, it is required before setting the weights of the embedding layer. embedding_layer.build((None,)) # Do not modify the "None". This line of code is complete as-is. # Set the weights of the embedding layer to the embedding matrix. Your layer is now pretrained. embedding_layer.set_weights([emb_matrix]) return embedding_layer # - embedding_layer = pretrained_embedding_layer(word_to_vec_map, word_to_index) print("weights[0][1][3] =", embedding_layer.get_weights()[0][1][3]) # **Expected Output**: # # ```Python # weights[0][1][3] = -0.3403 # ``` # ## 2.3 Building the Emojifier-V2 # # Lets now build the Emojifier-V2 model. # * You feed the embedding layer's output to an LSTM network. # # <img src="images/emojifier-v2.png" style="width:700px;height:400px;"> <br> # <caption><center> **Figure 3**: Emojifier-v2. A 2-layer LSTM sequence classifier. </center></caption> # # # **Exercise:** Implement `Emojify_V2()`, which builds a Keras graph of the architecture shown in Figure 3. # * The model takes as input an array of sentences of shape (`m`, `max_len`, ) defined by `input_shape`. # * The model outputs a softmax probability vector of shape (`m`, `C = 5`). # # * You may need to use the following Keras layers: # * [Input()](https://keras.io/layers/core/#input) # * Set the `shape` and `dtype` parameters. # * The inputs are integers, so you can specify the data type as a string, 'int32'. # * [LSTM()](https://keras.io/layers/recurrent/#lstm) # * Set the `units` and `return_sequences` parameters. # * [Dropout()](https://keras.io/layers/core/#dropout) # * Set the `rate` parameter. # * [Dense()](https://keras.io/layers/core/#dense) # * Set the `units`, # * Note that `Dense()` has an `activation` parameter. For the purposes of passing the autograder, please do not set the activation within `Dense()`. Use the separate `Activation` layer to do so. # * [Activation()](https://keras.io/activations/). # * You can pass in the activation of your choice as a lowercase string. # * [Model](https://keras.io/models/model/) # Set `inputs` and `outputs`. # # # #### Additional Hints # * Remember that these Keras layers return an object, and you will feed in the outputs of the previous layer as the input arguments to that object. The returned object can be created and called in the same line. # # ```Python # # How to use Keras layers in two lines of code # dense_object = Dense(units = ...) # X = dense_object(inputs) # # # How to use Keras layers in one line of code # X = Dense(units = ...)(inputs) # ``` # # * The `embedding_layer` that is returned by `pretrained_embedding_layer` is a layer object that can be called as a function, passing in a single argument (sentence indices). # # * Here is some sample code in case you're stuck # ```Python # raw_inputs = Input(shape=(maxLen,), dtype='int32') # preprocessed_inputs = ... # some pre-processing # X = LSTM(units = ..., return_sequences= ...)(processed_inputs) # X = Dropout(rate = ..., )(X) # ... # X = Dense(units = ...)(X) # X = Activation(...)(X) # model = Model(inputs=..., outputs=...) # ... # ``` # # # + # GRADED FUNCTION: Emojify_V2 def Emojify_V2(input_shape, word_to_vec_map, word_to_index): """ Function creating the Emojify-v2 model's graph. Arguments: input_shape -- shape of the input, usually (max_len,) word_to_vec_map -- dictionary mapping every word in a vocabulary into its 50-dimensional vector representation word_to_index -- dictionary mapping from words to their indices in the vocabulary (400,001 words) Returns: model -- a model instance in Keras """ ### START CODE HERE ### # Define sentence_indices as the input of the graph, it should be of shape input_shape and dtype 'int32' (as it contains indices). sentence_indices = Input(input_shape, dtype='int32') # Create the embedding layer pretrained with GloVe Vectors (≈1 line) embedding_layer = pretrained_embedding_layer(word_to_vec_map, word_to_index) # Propagate sentence_indices through your embedding layer, you get back the embeddings embeddings = embedding_layer(sentence_indices) # Propagate the embeddings through an LSTM layer with 128-dimensional hidden state # Be careful, the returned output should be a batch of sequences. X = LSTM(128, return_sequences=True)(embeddings) # Add dropout with a probability of 0.5 X = Dropout(0.5)(X) # Propagate X trough another LSTM layer with 128-dimensional hidden state # Be careful, the returned output should be a single hidden state, not a batch of sequences. X = LSTM(128, return_sequences=False)(X) # Add dropout with a probability of 0.5 X = Dropout(0.5)(X) # Propagate X through a Dense layer with softmax activation to get back a batch of 5-dimensional vectors. X = Dense(5)(X) # Add a softmax activation X = Activation('softmax')(X) # Create Model instance which converts sentence_indices into X. model = Model(sentence_indices, X) ### END CODE HERE ### return model # - # Run the following cell to create your model and check its summary. Because all sentences in the dataset are less than 10 words, we chose `max_len = 10`. You should see your architecture, it uses "20,223,927" parameters, of which 20,000,050 (the word embeddings) are non-trainable, and the remaining 223,877 are. Because our vocabulary size has 400,001 words (with valid indices from 0 to 400,000) there are 400,001\*50 = 20,000,050 non-trainable parameters. model = Emojify_V2((maxLen,), word_to_vec_map, word_to_index) model.summary() # As usual, after creating your model in Keras, you need to compile it and define what loss, optimizer and metrics your are want to use. Compile your model using `categorical_crossentropy` loss, `adam` optimizer and `['accuracy']` metrics: model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) # It's time to train your model. Your Emojifier-V2 `model` takes as input an array of shape (`m`, `max_len`) and outputs probability vectors of shape (`m`, `number of classes`). We thus have to convert X_train (array of sentences as strings) to X_train_indices (array of sentences as list of word indices), and Y_train (labels as indices) to Y_train_oh (labels as one-hot vectors). X_train_indices = sentences_to_indices(X_train, word_to_index, maxLen) Y_train_oh = convert_to_one_hot(Y_train, C = 5) # Fit the Keras model on `X_train_indices` and `Y_train_oh`. We will use `epochs = 50` and `batch_size = 32`. model.fit(X_train_indices, Y_train_oh, epochs = 50, batch_size = 32, shuffle=True) # Your model should perform around **90% to 100% accuracy** on the training set. The exact accuracy you get may be a little different. Run the following cell to evaluate your model on the test set. X_test_indices = sentences_to_indices(X_test, word_to_index, max_len = maxLen) Y_test_oh = convert_to_one_hot(Y_test, C = 5) loss, acc = model.evaluate(X_test_indices, Y_test_oh) print() print("Test accuracy = ", acc) # You should get a test accuracy between 80% and 95%. Run the cell below to see the mislabelled examples. # This code allows you to see the mislabelled examples C = 5 y_test_oh = np.eye(C)[Y_test.reshape(-1)] X_test_indices = sentences_to_indices(X_test, word_to_index, maxLen) pred = model.predict(X_test_indices) for i in range(len(X_test)): x = X_test_indices num = np.argmax(pred[i]) if(num != Y_test[i]): print('Expected emoji:'+ label_to_emoji(Y_test[i]) + ' prediction: '+ X_test[i] + label_to_emoji(num).strip()) # Now you can try it on your own example. Write your own sentence below. # Change the sentence below to see your prediction. Make sure all the words are in the Glove embeddings. x_test = np.array(['not feeling happy']) X_test_indices = sentences_to_indices(x_test, word_to_index, maxLen) print(x_test[0] +' '+ label_to_emoji(np.argmax(model.predict(X_test_indices)))) # ## LSTM version accounts for word order # * Previously, Emojify-V1 model did not correctly label "not feeling happy," but our implementation of Emojiy-V2 got it right. # * (Keras' outputs are slightly random each time, so you may not have obtained the same result.) # * The current model still isn't very robust at understanding negation (such as "not happy") # * This is because the training set is small and doesn't have a lot of examples of negation. # * But if the training set were larger, the LSTM model would be much better than the Emojify-V1 model at understanding such complex sentences. # # ### Congratulations! # # You have completed this notebook! ❤️❤️❤️ # # # ## What you should remember # - If you have an NLP task where the training set is small, using word embeddings can help your algorithm significantly. # - Word embeddings allow your model to work on words in the test set that may not even appear in the training set. # - Training sequence models in Keras (and in most other deep learning frameworks) requires a few important details: # - To use mini-batches, the sequences need to be **padded** so that all the examples in a mini-batch have the **same length**. # - An `Embedding()` layer can be initialized with pretrained values. # - These values can be either fixed or trained further on your dataset. # - If however your labeled dataset is small, it's usually not worth trying to train a large pre-trained set of embeddings. # - `LSTM()` has a flag called `return_sequences` to decide if you would like to return every hidden states or only the last one. # - You can use `Dropout()` right after `LSTM()` to regularize your network. # # #### Input sentences: # ```Python # "Congratulations on finishing this assignment and building an Emojifier." # "We hope you're happy with what you've accomplished in this notebook!" # ``` # #### Output emojis: # # 😀😀😀😀😀😀 # ## Acknowledgments # # Thanks to Alison Darcy and the Woebot team for their advice on the creation of this assignment. # * Woebot is a chatbot friend that is ready to speak with you 24/7. # * Part of Woebot's technology uses word embeddings to understand the emotions of what you say. # * You can chat with Woebot by going to http://woebot.io # # <img src="images/woebot.png" style="width:600px;height:300px;">
39,775
/45 实现混淆矩阵,精准率和召回率.ipynb
effcd6c0c7bf45342ed911216fe2241f2606f654
[]
no_license
BaiYuhaoSpiceeYJ/MachineLearning
https://github.com/BaiYuhaoSpiceeYJ/MachineLearning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
4,043
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import numpy as np from sklearn import datasets digits = datasets.load_digits() X = digits.data y = digits.target.copy() y[digits.target==9] = 1 y[digits.target!=9] = 0 from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=666) from sklearn.linear_model import LogisticRegression log_reg = LogisticRegression() log_reg.fit(X_train, y_train) print(log_reg.score(X_test, y_test))#准确率 y_log_predict = log_reg.predict(X_test) def TN(y_true, y_predict): assert len(y_true) == len(y_predict) return np.sum((y_true == 0) & (y_predict == 0)) def FP(y_true, y_predict): assert len(y_true) == len(y_predict) return np.sum((y_true == 0) & (y_predict == 1)) def FN(y_true, y_predict): assert len(y_true) == len(y_predict) return np.sum((y_true == 1) & (y_predict == 0)) def TP(y_true, y_predict): assert len(y_true) == len(y_predict) return np.sum((y_true == 1) & (y_predict == 1)) tn=TN(y_test,y_log_predict) fp=FP(y_test,y_log_predict) fn=FN(y_test,y_log_predict) tp=TP(y_test,y_log_predict) #混淆矩阵 def confusion_matrix(y_true, y_predict): return np.array([ [TN(y_true, y_predict), FP(y_true, y_predict)], [FN(y_true, y_predict), TP(y_true, y_predict)]]) confusionMatrix = confusion_matrix(y_test, y_log_predict) print(confusionMatrix) #精准率 def precision_score(y_true, y_predict): tp = TP(y_true, y_predict) fp = FP(y_true, y_predict) try: return tp / (tp + fp) except: return 0.0 print("precision_score=",precision_score(y_test, y_log_predict)) #召回率 def recall_score(y_true, y_predict): tp = TP(y_true, y_predict) fn = FN(y_true, y_predict) try: return tp / (tp + fn) except: return 0.0 print("recall_score=",recall_score(y_test, y_log_predict)) # + from sklearn.metrics import confusion_matrix print(confusion_matrix(y_test, y_log_predict)) from sklearn.metrics import precision_score print(precision_score(y_test, y_log_predict)) from sklearn.metrics import recall_score print(recall_score(y_test, y_log_predict)) # -
2,397
/investigate-tmdb-dataset.ipynb
13cf6d106cfbed8f8be3fd879f81e50f09ceb433
[ "MIT" ]
permissive
bassamfaramawi/Investigate-TMDb-Movie-Dataset
https://github.com/bassamfaramawi/Investigate-TMDb-Movie-Dataset
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
551,109
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <a href="https://www.kaggle.com/code/tiodaronzi3/investigate-tmdb-dataset?scriptVersionId=92706423" target="_blank"><img align="left" alt="Kaggle" title="Open in Kaggle" src="https://kaggle.com/static/images/open-in-kaggle.svg"></a> # + [markdown] _cell_guid="b1076dfc-b9ad-4769-8c92-a6c4dae69d19" _uuid="8f2839f25d086af736a60e9eeb907d3b93b6e0e5" papermill={"duration": 0.027879, "end_time": "2022-04-11T10:51:27.108541", "exception": false, "start_time": "2022-04-11T10:51:27.080662", "status": "completed"} # # Investigate TMDB Dataset # # --- # Github: [Investigate TMDB Dataset](https://github.com/bassamfaramawi/Investigate-TMDb-Movie-Dataset) # # Kaggle: [Investigate TMDB Dataset](https://www.kaggle.com/code/tiodaronzi3/investigate-tmdb-dataset) # # Auther: Bassam Faramawi # # --- # # **Contents** # * [Introduction](#Introduction) # * [Packages](#Packages) # * [Data Wrangling](#Data_Wrangling) # * [Explore data](#Explore_data) # * [Data cleaning](#Data_cleaning) # * [Exploratory Data Analysis](#Exploratory_Data_Analysis) # * [Research Question 1](#Research_Question_1) # * [Research Question 2](#Research_Question_2) # * [Research Question 3](#Research_Question_3) # * [Research Question 4](#Research_Question_4) # * [Conclusions](#Conclusions) # # # <a id='Introduction'></a> <br> # # Introduction # # This data set contains information about 5,000 movies collected from The Movie Database (TMDb), including user ratings and revenue. # # Initially, these data are useful for both production companies and movie aficionados, so our questions should focus on both sides and how each benefit from data. # # > __For filmmakers, are there a certain production companies that have found a consistent formula, which means they are always/mostly producing or participating in production of the most successful commercial movies? Is a film costing over 100 million dollars to produce can still flop or in clearer Can the producer risk producing a movie at a high cost (100m or more) with the possibility of commercial loss??__ # # > __For movie aficionados with different interests, can we predict which films will be highly rated whether or not they are a commerical success? What are the most popular genres among movie aficionados?And do this popular change by years?__ # # <a id='Packages'></a> <br> # # Packages # + papermill={"duration": 1.038171, "end_time": "2022-04-11T10:51:28.174721", "exception": false, "start_time": "2022-04-11T10:51:27.13655", "status": "completed"} # First, we import few python packages required to investigate the dataset import pandas as pd import numpy as np import ast import matplotlib.pyplot as plt import seaborn as sns from wordcloud import WordCloud # %matplotlib inline # + [markdown] papermill={"duration": 0.03119, "end_time": "2022-04-11T10:51:28.232349", "exception": false, "start_time": "2022-04-11T10:51:28.201159", "status": "completed"} # <a id='Data_Wrangling'></a> <br> # # Data Wrangling # # <a id='Explore_data'></a> <br> # ### Explore data # # > I will load in the data, using (read_csv) function. Dataset is downloaded from Kaggle __[here](https://www.kaggle.com/tmdb/tmdb-movie-metadata)__, in csv format('tmdb-movies.csv'). And i will check for cleanliness, and then trim and clean the dataset for analysis. # + papermill={"duration": 0.210672, "end_time": "2022-04-11T10:51:28.472767", "exception": false, "start_time": "2022-04-11T10:51:28.262095", "status": "completed"} # Load data into a pandas DataFrame and print out a few lines df = pd.read_csv('../input/tmdb-movie-metadata/tmdb_5000_movies.csv') df.tail() # + papermill={"duration": 0.057331, "end_time": "2022-04-11T10:51:28.556818", "exception": false, "start_time": "2022-04-11T10:51:28.499487", "status": "completed"} # Inspect data types and looking for instances of missing or possibly errant data. df.info() # + papermill={"duration": 0.042671, "end_time": "2022-04-11T10:51:28.6264", "exception": false, "start_time": "2022-04-11T10:51:28.583729", "status": "completed"} # View clearer null values in the data df.isnull().sum() # + [markdown] papermill={"duration": 0.02653, "end_time": "2022-04-11T10:51:28.679689", "exception": false, "start_time": "2022-04-11T10:51:28.653159", "status": "completed"} # >From the result, the data is consisting of 4803 enties or movies and 20 attributes between (float, int and object/string), and there is some data values is null value needed to droped from the dataframe as well as a mistake entries such as zero budget/revenue value which is not real. # Another note is that there is some columns we have no need of it in our analytices and its presence or absence doesn't affect our calculations such is __['homepage', 'overview', 'runtime','release_date', 'tagline', 'keywords']__, so will drop it totaly from the dataframe. # # <a id='Data_cleaning'></a> <br> # ### Data cleaning # (Droping unneeded columns, null values and mistake entries) # + papermill={"duration": 0.046701, "end_time": "2022-04-11T10:51:28.753263", "exception": false, "start_time": "2022-04-11T10:51:28.706562", "status": "completed"} # First, drop unneeded columns and print a one line to ensure df.drop(['homepage', 'overview', 'runtime', 'tagline', 'keywords'], axis=1, inplace=True) df.head(1) # + papermill={"duration": 0.044759, "end_time": "2022-04-11T10:51:28.825489", "exception": false, "start_time": "2022-04-11T10:51:28.78073", "status": "completed"} # Then, drop rows with null values to maintain a clean data and make sure the result df.dropna(inplace=True) df.isnull().sum() # + papermill={"duration": 0.042065, "end_time": "2022-04-11T10:51:28.895498", "exception": false, "start_time": "2022-04-11T10:51:28.853433", "status": "completed"} # Drop rows with mistake budget/revenue entries df.drop(df.query('revenue == 0 or budget == 0').index, inplace=True) # + papermill={"duration": 0.047324, "end_time": "2022-04-11T10:51:28.970899", "exception": false, "start_time": "2022-04-11T10:51:28.923575", "status": "completed"} # Setting movie title as the index of the data for ease of indexing and for visualizations purposes df.set_index('original_title', inplace=True) df.head() # + papermill={"duration": 0.151065, "end_time": "2022-04-11T10:51:29.151179", "exception": false, "start_time": "2022-04-11T10:51:29.000114", "status": "completed"} df.loc[:, 'production_companies'] = df['production_companies'].apply(lambda x: [i['name'] for i in ast.literal_eval(x)]) df['production_companies'] # + papermill={"duration": 0.097781, "end_time": "2022-04-11T10:51:29.27813", "exception": false, "start_time": "2022-04-11T10:51:29.180349", "status": "completed"} df.loc[:, 'production_countries'] = df['production_countries'].apply(lambda x: [i['name'] for i in ast.literal_eval(x)]) df['production_countries'] # + papermill={"duration": 0.13085, "end_time": "2022-04-11T10:51:29.438666", "exception": false, "start_time": "2022-04-11T10:51:29.307816", "status": "completed"} df.loc[:, 'genres'] = df['genres'].apply(lambda x: [i['name'] for i in ast.literal_eval(x)]) df['genres'] # + papermill={"duration": 0.041577, "end_time": "2022-04-11T10:51:29.510162", "exception": false, "start_time": "2022-04-11T10:51:29.468585", "status": "completed"} df['release_year'] = pd.DatetimeIndex(df['release_date']).year df['release_year'] # + papermill={"duration": 0.049649, "end_time": "2022-04-11T10:51:29.595397", "exception": false, "start_time": "2022-04-11T10:51:29.545748", "status": "completed"} df.drop(['release_date'], axis=1, inplace=True) # + [markdown] papermill={"duration": 0.035427, "end_time": "2022-04-11T10:51:29.667304", "exception": false, "start_time": "2022-04-11T10:51:29.631877", "status": "completed"} # <a id='Exploratory_Data_Analysis'></a> <br> # # Exploratory Data Analysis # # Now that we've trimmed and cleaned the data, so lets move on to exploration. I compute statistics and create visualizations with the goal of addressing the research questions that i posed in the Introduction section. # # # ___________________________________________________________________________________________________________________________ # <a id='Research_Question_1'></a> <br> # ### Research Question 1 (For filmmakers, are there certain production companies that have found a consistent formula?) # # >Note that there are movies that are not active means that have not received enough voting (less than 500 votes) which will affect our conclusions, so we will select the only the movies that received more than 500 votes and work with. # + papermill={"duration": 0.047829, "end_time": "2022-04-11T10:51:29.745059", "exception": false, "start_time": "2022-04-11T10:51:29.69723", "status": "completed"} # Select active movies and view properties of new dataframe active_movies = df.query('vote_count >= 500') active_movies.info() # + [markdown] papermill={"duration": 0.030034, "end_time": "2022-04-11T10:51:29.80694", "exception": false, "start_time": "2022-04-11T10:51:29.776906", "status": "completed"} # >1562 active titles we have, Surely the production companies that co-produced of top revenue of them they are the ones we want. # + [markdown] papermill={"duration": 0.030406, "end_time": "2022-04-11T10:51:29.867743", "exception": false, "start_time": "2022-04-11T10:51:29.837337", "status": "completed"} # >Each movie is co-produced by a group of companies, not a single company, so we need to know the companies with the largest share of the list, which will certainly be the ones that we want. To determine these companies we need to calculate the frequency of repetition of the name of each company in the list. # + papermill={"duration": 0.043514, "end_time": "2022-04-11T10:51:29.941497", "exception": false, "start_time": "2022-04-11T10:51:29.897983", "status": "completed"} # Select top 100 revenue movies top_100_revenue = active_movies.sort_values(by='revenue', ascending=False)[:100] # Extract the production companies from the top 100 revenue movies to a dict type companies_by_top100 = {} for companies in top_100_revenue['production_companies']: for company in companies: if company in companies_by_top100: companies_by_top100[company] += 1 else: companies_by_top100[company] = 1 # Sort the top companies in descending order companies_by_top100 = dict(sorted(companies_by_top100.items(), key=lambda item: item[1], reverse=True)) # convert to list of tuples companies_by_top100 = [(k,v) for k,v in companies_by_top100.items()] # Top 10 companies top_revenue_10_companies = companies_by_top100[:10] top_revenue_10_companies # + papermill={"duration": 0.494083, "end_time": "2022-04-11T10:51:30.46603", "exception": false, "start_time": "2022-04-11T10:51:29.971947", "status": "completed"} # Draw a bar chart of the first/top 10 companies according to their frequencies sns.set_style('whitegrid') # Set a style for the background of the chart f, ax = plt.subplots(figsize=(18,18)) top_10 = list(zip(*top_revenue_10_companies))[0] # The x axis is the top 10 companies names frequancies = list(zip(*top_revenue_10_companies))[1] # The y axis is the frequancies(number of the movies produced from top 100) x_label = top_10 # Names of the companies plt.xticks(rotation=85, fontsize = 20) plt.yticks(fontsize = 15) plt.ylabel("Number of Top revenue Movies Produced", fontsize = 22, labelpad = 10) plt.title('Top 10 Revenue Production Companies\n(based on top 100 revenue movies)' ,bbox={'facecolor':'k', 'pad':5},color='w',fontsize = 25) ax.bar(top_10, frequancies, align = 'center', color='g'); # + [markdown] papermill={"duration": 0.035001, "end_time": "2022-04-11T10:51:30.535963", "exception": false, "start_time": "2022-04-11T10:51:30.500962", "status": "completed"} # >"Warner Bros." is the top production company of all the production companies with 15 movie co-produced from the top 100 revenue movies all the time, followed by "Walt Disney Pictures" by 14 movies co-produced, then "Paramount Pictures" with 11 movie co-produced. # # # _________________________________________________________________________________________________________________________ # <a id='Research_Question_2'></a> <br> # ### Research Question 2 (For filmmakers, is a film costing over $100M to produce can still flop?) # # > Can the producer risk producing a movie at a high cost ($ 100 million or more) with the possibility of commercial loss? # > Failed commercially movies means that its reward revenue is less than than its costed budget, so lets extract the commercially failed movies that costed 100m or more from our data and take a closer look. # + papermill={"duration": 0.059494, "end_time": "2022-04-11T10:51:30.630752", "exception": false, "start_time": "2022-04-11T10:51:30.571258", "status": "completed"} # Select the movies which budget more than 100m and revenue less thna budget budget100m_failed_movies = active_movies.query('budget >= 1.0e+08 and revenue < budget')[['release_year', 'production_companies', 'budget','revenue']] # Adding a new columns containing the revenue-budget proportion budget100m_failed_movies['revenue_prop'] = budget100m_failed_movies.revenue/budget100m_failed_movies.budget # Sort the movies by revenue proportion in ascending order budget100m_failed_movies.sort_values(by='revenue_prop', inplace=True) budget100m_failed_movies # + papermill={"duration": 0.255252, "end_time": "2022-04-11T10:51:30.921843", "exception": false, "start_time": "2022-04-11T10:51:30.666591", "status": "completed"} # Draw a pie chart to view the percentage/probability of 100m failed movies f, ax = plt.subplots(figsize=(15,15)) plt.title('100m dollars Failed movies Probability', color='b',fontsize = 25) plt.pie([len(budget100m_failed_movies), len(active_movies)], labels= ['Failed 100m Movies', 'Active Movies'] ,autopct='%.2f'); # + [markdown] papermill={"duration": 0.036249, "end_time": "2022-04-11T10:51:30.994753", "exception": false, "start_time": "2022-04-11T10:51:30.958504", "status": "completed"} # > From pie clear that that the percentage of 100m failed movies is so weak (0.92%), so the probability of a commercial loss of producing a 100m dollars movie is so weak. # + papermill={"duration": 0.505896, "end_time": "2022-04-11T10:51:31.537548", "exception": false, "start_time": "2022-04-11T10:51:31.031652", "status": "completed"} # Draw a bar chart to get encloser to the revenue-budget ratio of 100m failed movies budget100m_failed_movies[['budget','revenue']].plot(kind='bar', figsize=(15,8)) plt.xticks(fontsize = 15) plt.yticks(fontsize = 15) plt.ylabel("Dollars", fontsize = 15, labelpad = 10) plt.xlabel("Movie", fontsize = 15, labelpad = 10) plt.legend(prop={'size': 20}) plt.title('Failed Movies Budget/Revenue overview' ,bbox={'facecolor':'b', 'pad':5},color='w',fontsize = 25); # + [markdown] papermill={"duration": 0.039681, "end_time": "2022-04-11T10:51:31.617161", "exception": false, "start_time": "2022-04-11T10:51:31.57748", "status": "completed"} # # ____________________________________________________________________________________________________________________________ # <a id='Research_Question_3'></a> <br> # ### Research Question 3 (For movie aficionados, can we predict which films will be highly rated whether or not they are a commerical success?) # # >I need to know the nature of the relationship between the rates of the commerically successful movies and its revenue (an inverse or reverse relationship or no rlationship between them). # First we drop the 10 failed movies from the data, then sort the data by vote_average in a descending order. # + papermill={"duration": 0.069292, "end_time": "2022-04-11T10:51:31.725531", "exception": false, "start_time": "2022-04-11T10:51:31.656239", "status": "completed"} active_movies.drop(budget100m_failed_movies.index, inplace=True) sorted_by_vote = active_movies.sort_values(by='vote_average', ascending=False) sorted_by_vote.head() # + [markdown] papermill={"duration": 0.039469, "end_time": "2022-04-11T10:51:31.804527", "exception": false, "start_time": "2022-04-11T10:51:31.765058", "status": "completed"} # >Then plot a histogram of the vote_average and the revenue to get the relationship between them visualized clearly. # + papermill={"duration": 0.287749, "end_time": "2022-04-11T10:51:32.132339", "exception": false, "start_time": "2022-04-11T10:51:31.84459", "status": "completed"} f, ax = plt.subplots(figsize=(15,10)) plt.ylabel("$ Revenue", fontsize = 15, labelpad = 10) plt.xlabel("Vote average", fontsize = 15, labelpad = 10) plt.title('Vote average - Revenue Histogram', color='r',fontsize = 25) ax.hist(sorted_by_vote.vote_average, weights=sorted_by_vote.revenue); # + [markdown] papermill={"duration": 0.040786, "end_time": "2022-04-11T10:51:32.215304", "exception": false, "start_time": "2022-04-11T10:51:32.174518", "status": "completed"} # >__Here we note the histogram is like (or mostly) left skewed, So it's likely that high-revenue movies are also often rated as high ratings by movies aficionados.__ # # >We also note that there are some movies rated higher than 8 but had not got revenue of 100 million, which is: # + papermill={"duration": 0.088455, "end_time": "2022-04-11T10:51:32.344657", "exception": false, "start_time": "2022-04-11T10:51:32.256202", "status": "completed"} sorted_by_vote.query('vote_average>= 8 and revenue < 1.0e+08') # + [markdown] papermill={"duration": 0.04232, "end_time": "2022-04-11T10:51:32.429981", "exception": false, "start_time": "2022-04-11T10:51:32.387661", "status": "completed"} # > 26 movies (including the top rated movie "The Shawshank Redemption") did not achieve high revenue. # # __________________________________________________________________________________________________________________ # <a id='Research_Question_4'></a> <br> # ### Research Question 4 (Which is the most popular genres between movies aficionados?) # # > To answer this question, should select the top popular movies from data according to the 'popularity' column, and extract the list of the different genres of the top popular movies, then calculate the frequency of each genre repeated from the 'genres' coumn using our previously defined 'count_word' method, then try to use a smart way to visualize data to be more clear to detect every genre popularity. # + papermill={"duration": 0.073157, "end_time": "2022-04-11T10:51:32.545973", "exception": false, "start_time": "2022-04-11T10:51:32.472816", "status": "completed"} df.describe() # + [markdown] papermill={"duration": 0.043109, "end_time": "2022-04-11T10:51:32.632996", "exception": false, "start_time": "2022-04-11T10:51:32.589887", "status": "completed"} # > The popularity between min 0.019 and max 875.6 and mean = 29 and half of movies have popularity under 20.4 so we will consider the movie is popular if above 5 popularity. # + papermill={"duration": 0.078073, "end_time": "2022-04-11T10:51:32.754633", "exception": false, "start_time": "2022-04-11T10:51:32.67656", "status": "completed"} # Will consider the movie is popular if its popularity is more than 5.0 top_popular_movies = df.query('popularity >= 5.0') top_popular_movies # + papermill={"duration": 0.058089, "end_time": "2022-04-11T10:51:32.857318", "exception": false, "start_time": "2022-04-11T10:51:32.799229", "status": "completed"} # Extract the genres from the top popular movies to a dict type top_populars_genres = {} for genres in top_popular_movies['genres']: for genre in genres: if genre in top_populars_genres: top_populars_genres[genre] += 1 else: top_populars_genres[genre] = 1 # Sort the top popular genres in descending order top_populars_genres = dict(sorted(top_populars_genres.items(), key=lambda item: item[1], reverse=True)) # convert to list of lists top_populars_genres = [[k,v] for k,v in top_populars_genres.items()] top_populars_genres # + [markdown] papermill={"duration": 0.044357, "end_time": "2022-04-11T10:51:32.946455", "exception": false, "start_time": "2022-04-11T10:51:32.902098", "status": "completed"} # >__Now we have got the genres frequencies, and as genres is a words so we will use a WordCloud to visualize it smartly, and the size and color of each genre will vary according to the genre frequency/popularity__ # + papermill={"duration": 0.621657, "end_time": "2022-04-11T10:51:33.613787", "exception": false, "start_time": "2022-04-11T10:51:32.99213", "status": "completed"} # Function that control the color of the words def random_color_func(word=None, font_size=None, position=None, orientation=None, font_path=None, random_state=None): h = int(360.0 * tone / 255.0) s = int(100.0 * 255.0 / 255.0) l = int(100.0 * float(random_state.randint(70, 120)) / 255.0) return "hsl({}, {}%, {}%)".format(h, s, l) #________________________________________________________ # I define the dictionary used to produce the wordcloud words = dict() trunc_occurences = top_populars_genres for s in trunc_occurences: words[s[0]] = s[1] tone = 55.0 # define the color of the words #________________________________________________________ wordcloud = WordCloud(width=1000,height=400, background_color='black', max_words=100,relative_scaling=0.8, color_func = random_color_func, normalize_plurals=False) wordcloud.generate_from_frequencies(words) f, ax = plt.subplots(figsize=(18,18)) ax.imshow(wordcloud, interpolation="bilinear") ax.axis('off'); # + [markdown] papermill={"duration": 0.047489, "end_time": "2022-04-11T10:51:33.709251", "exception": false, "start_time": "2022-04-11T10:51:33.661762", "status": "completed"} # >__From the wordcloud we noted that Drama movies, Action movies, Comedy movies, Thriller movies then Adventure movies is the most popilar genres between movie aficionados they prefer to watch.__ # # <a id='conclusions'></a> <br> # # Conclusions # # Finally, We have encountered some difficulties here, such as the incomplete or corrupting of some of the values in the data and the lack of others or some of the data entered wrongly and unrealistically. # # __We have tried to answer some of the questions that may be important to both filmmakers and movie aficionados:__ # # __Companies ('Warner Bros.', Walt Disney Pictures', 'Paramount Pictures', 'Lucasfilm', 'Universal Pictures') respectively are the companies with the largest share of successful films, which reached the successful formula in how to produce a film that succeeds commercially. At the same time we found it difficult to produce a film with a budget exceeding $ 100 million and then the film fails commercially. It definitely concerns producers. Movies know you so dare or make a decision to produce a high-budget movie.__ # __We also know that films that are commercially successful often get a high rating afterwards by movie aficionados. # We have found that drama, action, comedian, thriller and fantasy movies are the most popular films among film aficionados, and it is important to know filmmakers to see the general taste among movie buffs.__
23,434
/08_File_Processing.ipynb
6ce8f1f8eea793803e684807d8005748047fccb3
[]
no_license
pvnmahathi/fmml2021
https://github.com/pvnmahathi/fmml2021
2
0
null
2021-09-03T12:16:40
2021-08-31T06:22:59
null
Jupyter Notebook
false
false
.py
9,467
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/pvnmahathi/fmml2021/blob/main/08_File_Processing.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + id="on0OBs9S-eiS" outputId="45c29972-2161-4f27-ac70-f1c150bcfef9" colab={"base_uri": "https://localhost:8080/"} # !wget https://raw.githubusercontent.com/aosp-mirror/platform_external_protobuf/master/CONTRIBUTORS.txt # + id="Rg5LcpidAP7I" infile_pointer = open("CONTRIBUTORS.txt", "r") outfile_pointer = open("emails-id.txt", "w") # + id="4yocH5ViAb-g" outputId="bf58cb62-1822-4f6d-fe2f-f6b6ec836bf2" colab={"base_uri": "https://localhost:8080/"} for each_line in infile_pointer: if (each_line.count('@') > 0) and (each_line.count('<') > 0): print (each_line) outfile_pointer.write(each_line) infile_pointer.close() outfile_pointer.close() # + id="jcMUd4hNCQiU" # https://github.com/mysql/mysql-server/blob/8.0/Docs/sp-imp-spec.txt # Write a program to save all lines that start with '-' in a separate file # Ignore all leading blank characters. # + id="nLsjy7cQ5tgU" outputId="a5456e6c-0f07-4e1e-c46c-05b9e05b11d8" colab={"base_uri": "https://localhost:8080/"} # !wget https://raw.githubusercontent.com/mysql/mysql-server/8.0/Docs/sp-imp-spec.txt #saving the input file to local directory # + id="9JNS-0ZM6IZB" ex_input = open("sp-imp-spec.txt", "r") #input file ex_output = open("lines-with--.txt", "w") #output file which contains lines that start with '-' # + id="kYzq-aSL6XfT" ##code snippet to save all lines thet start with '-' in a separate file for line in ex_input: l1 = line.lstrip(" ") #ignoring blank spaces at beginning if l1[0] == "-": #checking if the line starts with '-' ex_output.write(line)#if it starts with '-', then it is added to output file ex_input.close() ex_output.close() # + [markdown] id="CzILoddNaWPQ" # Reference: [Official Python Documentation](https://docs.python.org/3/tutorial/inputoutput.html) # # String methods: [Link](https://www.w3schools.com/python/python_ref_string.asp)
2,373
/ml-mipt/week0_02_linear_reg/week02_linear_regression.ipynb
02152d0ec6588e261ec7bbee52cc5e4d8a7b2fca
[ "MIT" ]
permissive
ShamsimukhametovDanil/ml-mipt
https://github.com/ShamsimukhametovDanil/ml-mipt
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
696,966
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## ml-mipt course # # ### Seminar 2 # ### Linear Regression & other stuff # # Based on [Evgeny Sokolov](https://github.com/esokolov) open materials. # Let's take a look at Linear Regression and its implementations in this notebook. # # __Contents__: # * Linear Regression analytical solution # * Gradient descent approach # * Stochastic gradient # * Linear Regression out of the box (sklearn, vw, etc.) # * MSE and MAE in Linear Regression # # See `week02_extra*` notebooks for extra (more complex or just additional) materials. # + import numpy as np import matplotlib import matplotlib.pyplot as plt import pandas as pd np.random.seed(16) matplotlib.rcParams.update({'font.size': 16}) # - # Time to generate features matrix $X$ and correct weights vector $w_{true}$. Targer vector $Y$ is computed as $Xw_{true}$ with gaussian noise: # + n_features = 2 n_objects = 300 batch_size = 10 #for gradient descent num_steps = 43 w_true = np.random.normal(size=(n_features, )) X = np.random.uniform(-5, 5, (n_objects, n_features)) X *= (np.arange(n_features) * 2 + 1)[np.newaxis, :] # for different scales Y = X.dot(w_true) + np.random.normal(0, 1, n_objects) # - # *Recap:* # Analytical solution formula is simple: # # $$ # w = (X^TX)^{-1}X^Ty. # $$ # # Let's check how it works: w_star = np.linalg.inv(X.T.dot(X)).dot(X.T).dot(Y) w_star w_true # As we can see, the analytical solution is quite close to the original one. # ## Градиентный спуск # # # Здесь присутствует обращение матрицы $X^TX$ — очень трудоёмкая операция при большом количестве признаков. Нетрудно подсчитать, что сложность вычислений $O(d^3 + d^2l)$. При решении задач такая трудоёмкость часто оказывается непозволительной, поэтому параметры ищут итерационными методами, стоимость которых меньше. Один из них — градиентный спуск. # # Напомним, что в градиентном спуске значения параметров на следующем шаге получаются из значений параметров на текущем шаге смещением в сторону антиградиента функционала: # # $$w^{(t+1)} = w^{(t)} - \eta_t \nabla Q(w^{(t)}),$$ # где $\eta_t$ — длина шага градиентного спуска. # # Формула градиента функции ошибки в случае MSE выглядит следующим образом: # # $$\nabla Q(w) = -2X^Ty + 2X^TXw = 2X^T(Xw - y).$$ # # Сложность вычислений в данном случае $O(dl)$. Стохастический градиентный спуск отличается от обычного заменой градиента на несмещённую оценку по одному или нескольким объектам. В этом случае сложность становится $O(kd)$, где $k$ — количество объектов, по которым оценивается градиент, $k << l$. Это отчасти объясняет популярность стохастических методов оптимизации. # ### Визуализация траекторий GD и SGD # На простом примере разберём основные тонкости, связанные со стохастической оптимизацией. # Обучим на сгенерированных данных линейную регрессию для MSE при помощи полного градиентного спуска — тем самым получим вектор параметров. # Покажем последовательность оценок параметров $w^{(t)}$, получаемых в ходе итераций. Красная точка — $w_{true}$. # + w_0 = np.random.uniform(-2, 2, n_features) w = w_0.copy() w_list = [w.copy()] step_size = 1e-2 for i in range(num_steps): w -= 2 * step_size * np.dot(X.T, np.dot(X, w) - Y) / Y.size w_list.append(w.copy()) w_list = np.array(w_list) # + # compute level set A, B = np.meshgrid(np.linspace(-2, 2, 100), np.linspace(-2, 2, 100)) levels = np.empty_like(A) for i in range(A.shape[0]): for j in range(A.shape[1]): w_tmp = np.array([A[i, j], B[i, j]]) levels[i, j] = np.mean(np.power(np.dot(X, w_tmp) - Y, 2)) plt.figure(figsize=(13, 9)) plt.title('GD trajectory') plt.xlabel('$w_1$') plt.ylabel('$w_2$') plt.xlim((w_list[:, 0].min() - 0.1, w_list[:, 0].max() + 0.1)) plt.ylim((w_list[:, 1].min() - 0.1, w_list[:, 1].max() + 0.1)) plt.gca().set_aspect('equal') # visualize the level set CS = plt.contour(A, B, levels, levels=np.logspace(0, 1, num=20), cmap=plt.cm.rainbow_r) CB = plt.colorbar(CS, shrink=0.8, extend='both') # visualize trajectory plt.scatter(w_true[0], w_true[1], c='r') plt.scatter(w_list[:, 0], w_list[:, 1]) plt.plot(w_list[:, 0], w_list[:, 1]) plt.show() # - # Градиент перпендикулярен линиям уровня. Это объясняет такие зигзагообразные траектории градиентного спуска. Для большей наглядности в каждой точке пространства посчитаем градиент функционала и покажем его направление. # + # compute level set A, B = np.meshgrid(np.linspace(-3, 3, 100), np.linspace(-3, 3, 100)) A_mini, B_mini = np.meshgrid(np.linspace(-2, 2, 20), np.linspace(-2, 2, 27)) levels = np.empty_like(A) for i in range(A.shape[0]): for j in range(A.shape[1]): w_tmp = np.array([A[i, j], B[i, j]]) levels[i, j] = np.mean(np.power(np.dot(X, w_tmp) - Y, 2)) # visualize the level set plt.figure(figsize=(13, 9)) CS = plt.contour(A, B, levels, levels=np.logspace(-1, 1.5, num=30), cmap=plt.cm.rainbow_r) CB = plt.colorbar(CS, shrink=0.8, extend='both') # visualize the gradients gradients = np.empty_like(A_mini) for i in range(A_mini.shape[0]): for j in range(A_mini.shape[1]): w_tmp = np.array([A_mini[i, j], B_mini[i, j]]) antigrad = - 2 * 1e-3 * np.dot(X.T, np.dot(X, w_tmp) - Y) / Y.shape[0] plt.arrow(A_mini[i, j], B_mini[i, j], antigrad[0], antigrad[1], head_width=0.02) plt.title('Antigradients demonstration') plt.xlabel(r'$w_1$') plt.ylabel(r'$w_2$') plt.xlim((w_true[0] - 1.5, w_true[0] + 1.5)) plt.ylim((w_true[1] - .5, w_true[1] + .7)) plt.gca().set_aspect('equal') plt.show() # - # Визуализируем теперь траектории стохастического градиентного спуска, повторив те же самые действия, оценивая при этом градиент по подвыборке. # + w = w_0.copy() w_list = [w.copy()] step_size = 1e-2 for i in range(num_steps): sample = np.random.randint(n_objects, size=batch_size) w -= 2 * step_size * np.dot(X[sample].T, np.dot(X[sample], w) - Y[sample]) / batch_size w_list.append(w.copy()) w_list = np.array(w_list) # - w_list # + # compute level set A, B = np.meshgrid(np.linspace(-2, 2, 100), np.linspace(-2, 2, 100)) levels = np.empty_like(A) for i in range(A.shape[0]): for j in range(A.shape[1]): w_tmp = np.array([A[i, j], B[i, j]]) levels[i, j] = np.mean(np.power(np.dot(X, w_tmp) - Y, 2)) plt.figure(figsize=(13, 9)) plt.title('SGD trajectory') plt.xlabel(r'$w_1$') plt.ylabel(r'$w_2$') plt.xlim((w_list[:, 0].min() - 0.1, w_list[:, 0].max() + 0.1)) plt.ylim((w_list[:, 1].min() - 0.1, w_list[:, 1].max() + 0.1)) plt.gca().set_aspect('equal') # visualize the level set CS = plt.contour(A, B, levels, levels=np.logspace(0, 1, num=20), cmap=plt.cm.rainbow_r) CB = plt.colorbar(CS, shrink=0.8, extend='both') # visualize trajectory plt.scatter(w_true[0], w_true[1], c='r') plt.scatter(w_list[:, 0], w_list[:, 1]) plt.plot(w_list[:, 0], w_list[:, 1]) plt.show() # - # Как видно, метод стохастического градиента «бродит» вокруг оптимума. Это объясняется подбором шага градиентного спуска $\eta_k$. Дело в том, что для сходимости стохастического градиентного спуска для последовательности шагов $\eta_k$ должны выполняться [условия Роббинса-Монро](https://projecteuclid.org/download/pdf_1/euclid.aoms/1177729586): # $$ # \sum_{k = 1}^\infty \eta_k = \infty, \qquad \sum_{k = 1}^\infty \eta_k^2 < \infty. # $$ # Интуитивно это означает следующее: # 1. последовательность должна расходиться, чтобы метод оптимизации мог добраться до любой точки пространства, # 2. но расходиться не слишком быстро. # Попробуем посмотреть на траектории SGD, последовательность шагов которой удовлетворяет условиям Роббинса-Монро: # + w = w_0.copy() w_list = [w.copy()] step_size_0 = 1e-2 for i in range(num_steps): step_size = step_size_0 / ((i+1)**0.51) sample = np.random.randint(n_objects, size=batch_size) w -= 2 * step_size * np.dot(X[sample].T, np.dot(X[sample], w) - Y[sample]) / batch_size w_list.append(w.copy()) w_list = np.array(w_list) # - w_list # + # compute level set A, B = np.meshgrid(np.linspace(-2, 2, 100), np.linspace(-2, 2, 100)) levels = np.empty_like(A) for i in range(A.shape[0]): for j in range(A.shape[1]): w_tmp = np.array([A[i, j], B[i, j]]) levels[i, j] = np.mean(np.power(np.dot(X, w_tmp) - Y, 2)) plt.figure(figsize=(13, 9)) plt.title('SGD trajectory') plt.xlabel(r'$w_1$') plt.ylabel(r'$w_2$') plt.xlim((w_list[:, 0].min() - 0.1, w_list[:, 0].max() + 0.1)) plt.ylim((w_list[:, 1].min() - 0.1, w_list[:, 1].max() + 0.1)) #plt.gca().set_aspect('equal') # visualize the level set CS = plt.contour(A, B, levels, levels=np.logspace(0, 1, num=20), cmap=plt.cm.rainbow_r) CB = plt.colorbar(CS, shrink=0.8, extend='both') # visualize trajectory plt.scatter(w_true[0], w_true[1], c='r') plt.scatter(w_list[:, 0], w_list[:, 1]) plt.plot(w_list[:, 0], w_list[:, 1]) plt.show() # - # ### Сравнение скоростей сходимости # Последнее, что хотелось бы продемонстрировать — сравнение, насколько быстро достигают оптимума метод полного и стохастического градиентного спуска. Сгенерируем выборку и построим график зависимости функционала от итерации. # + # data generation n_features = 50 n_objects = 1000 num_steps = 200 batch_size = 10 w_true = np.random.uniform(-2, 2, n_features) X = np.random.uniform(-10, 10, (n_objects, n_features)) Y = X.dot(w_true) + np.random.normal(0, 5, n_objects) # + step_size_sgd = 0.01 step_size_gd = 1e-2 w_sgd = np.random.uniform(-4, 4, n_features) w_gd = w_sgd.copy() residuals_sgd = [np.mean(np.power(np.dot(X, w_sgd) - Y, 2))] residuals_gd = [np.mean(np.power(np.dot(X, w_gd) - Y, 2))] for i in range(num_steps): step_size = step_size_sgd / ((i+1) ** 0.51) sample = np.random.randint(n_objects, size=batch_size) w_sgd -= 2 * step_size * np.dot(X[sample].T, np.dot(X[sample], w_sgd) - Y[sample]) / batch_size residuals_sgd.append(np.mean(np.power(np.dot(X, w_sgd) - Y, 2))) w_gd -= 2 * step_size_gd * np.dot(X.T, np.dot(X, w_gd) - Y) / Y.shape[0] residuals_gd.append(np.mean(np.power(np.dot(X, w_gd) - Y, 2))) # - plt.figure(figsize=(13, 6)) plt.plot(range(num_steps+1), residuals_gd, label='Full GD') plt.plot(range(num_steps+1), residuals_sgd, label='SGD') plt.title('Empirial risk over iterations') plt.xlim((-1, num_steps+1)) plt.legend() plt.xlabel('Iter num') plt.ylabel(r'Q($w$)') plt.grid() plt.show() # Как видно, GD буквально за несколько итераций оказывается вблизи оптимума, в то время как поведение SGD может быть весьма нестабильным. Как правило, для более сложных моделей наблюдаются ещё большие флуктуации в зависимости качества функционала от итерации при использовании стохастических градиентных методов. Путём подбора величины шага можно добиться лучшей скорости сходимости, и существуют методы, адаптивно подбирающие величину шага (AdaGrad, Adam, RMSProp). # ### Linear regression out of the box # # Finally, let's take a brief look at implemented versions of Linear Regression from sklearn. The main classes are: # # * [LinearRegression](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html) — classical linear regression (*actially, it is just `scipy.linalg.lstsq` wrapped with sklearn `Predictor` class) __analytical__ solver. # * [Lasso](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html) — Linear regression with L1 regularization. # * [Ridge](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Ridge.html) — Linear regression with L2 regularization. # # To minimize any other error function you are free to use [SGDRegressor](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.SGDRegressor.html) (or wait a few weeks and we will get the great *PyTorch* automatic differentiation engine). # # Let's compare the speed of analytical and gradient solutions from the sklearn realizations. # # IPython magic `%%time` wrapper will be used. # # To measure the quality $R^2$ score will be used. It compares our model (`a`) with one always predicting mean `y`: # # $$R^2 = 1 - \frac{\sum_i (y_i - a(x_i))^2}{\sum_i (y_i - \overline{y}_i)^2}$$ # # `LinearRegression` vs. `Ridge`: __Fight!__ # # # ![](img/mortal_combat.jpg) from sklearn.linear_model import LinearRegression, Lasso, Ridge # + n_features = 700 n_objects = 100000 num_steps = 150 w_true = np.random.uniform(-2, 2, (n_features, 1)) X = np.random.uniform(-100, 100, (n_objects, n_features)) Y = X.dot(w_true) + np.random.normal(0, 10, (n_objects, 1)) # + # %%time lr = LinearRegression() lr.fit(X, Y) print(f'R2: {lr.score(X, Y)}') # + # %%time lr = Ridge(alpha=0.0, solver='sparse_cg') lr.fit(X, Y) print(f'R2: {lr.score(X, Y)}') # - # ### Функции потерь в регрессии # Функционал качества в задачах обучения с учителем обычно задается в виде суммы по объектам выборки: # $$Q(a) = \frac 1 \ell \sum_{i=1}^\ell L(y_i, a(x_i)),$$ # где $L(\cdot, \cdot)$ - функция потерь, задающая штраф за разницу между предсказанием и истинным значением целевого признака. Свойства функции потерь: # * $L(y_i, a(x_i)) \geqslant 0$; # * $L(y_i, y_i) = 0$. # Как отмечалось на первой лекции, функционал качества должен в первую очередь отвечать требованиям заказчика, при этом математические свойства функции потерь могут быть неудобны для оптимизации. # # __Пример:__ если мы не различаем маленькие ошибки (между 0.01 и 0.1 нет особой разницы), но зато не хотим получать большие ошибки, можно использовать следующую функцию потерь: # # $$L(y_i, a(x_i)) = [| y_i - a(x_i) | < \varepsilon],$$ $\varepsilon$ - допустимая разница между предсказанием и фактом. # # ### Среднеквадратичная и средняя абсолютная ошибка # Кроме требований заказчика, функционал качества должен учитывать математические особенности модели, например устойчивость к шумовым объектам. В линейной регрессии Mean Squared Error: $L(y_i, a(x_i)) = (a(x_i) - y_i)^2$ не обладает этим свойством, потому что задает очень большие штрафы за большие отклонения от фактического значения. # # Рассмотрим это явление на примере. Выберем один признак, от которого целевой признак (имеющий индекс 15 в матрице X) зависит практически линейно. Добавим к выборке два объекта-выброса и посмотрим, как изменится оптимизированная на MSE прямая. with open('data/data_preprocessed.json') as file: X = pd.read_json(file) X_subset = X[[7, 15]].values # add two outliers X_subset_modified = np.vstack((X_subset, [[1, 90], [2, 50]])) def scatter_points_and_plot_line_MSE(X_subset): plt.scatter(X_subset[:, 0], X_subset[:, 1]) lr = LinearRegression() #lr = Ridge(alpha=0.0, solver='sparse_cg') lr.fit(X_subset[:, 0][:, None], X_subset[:, 1]) grid = np.linspace(0, 2, 100) line = lr.predict(grid[:, None]) plt.plot(grid, line) plt.figure(figsize=(20, 5)) plt.subplot(1, 2, 1) scatter_points_and_plot_line_MSE(X_subset) plt.ylim(-20, 100) plt.xlabel("x") plt.ylabel("y") plt.subplot(1, 2, 2) scatter_points_and_plot_line_MSE(X_subset_modified) plt.ylim(-20, 100) plt.xlabel("x") # Из-за шумовых объектов прямая достаточно сильно изменила наклон. Поэтому вместо MSE часто используют Mean Absoulte Error: # $$L(y_i, a(x_i)) = |y_i - a(x_i)|$$ # # Теперь обучим регрессию, оптимизируя MAE. В sklearn такая регрессия не реализована, но можно использовать модуль statsmodels import statsmodels.api as sm import statsmodels.formula.api as smf def scatter_points_and_plot_line_MAE(X_subset): mod = smf.quantreg('f15 ~ f7', pd.DataFrame(data=X_subset, columns=["f7", "f15"])) # задаеем зависимость и передаем данные res = mod.fit(q=0.5) plt.scatter(X_subset[:, 0], X_subset[:, 1]) # визуализируем точки grid = np.linspace(0, 2, 100) plt.plot(grid, grid * res.params["f7"] + res.params["Intercept"]) # визуализируем прямую return mod, res plt.figure(figsize=(20, 5)) plt.subplot(1, 2, 1) model, result = scatter_points_and_plot_line_MAE(X_subset) plt.ylim(-20, 100) plt.xlabel("x") plt.ylabel("y") plt.subplot(1, 2, 2) model, result = scatter_points_and_plot_line_MAE(X_subset_modified) plt.ylim(-20, 100) plt.xlabel("x") # Прямая не изменила направление из-за выбросов. # Попробуем добавить больше шумовых объектов: X_subset_modified_twice = np.vstack(( X_subset_modified, np.random.randint(5, size=60).reshape(-1, 2) * [1, 30], )) plt.figure(figsize=(20, 5)) plt.subplot(1, 2, 1) model, result = scatter_points_and_plot_line_MAE(X_subset) plt.ylim(-20, 100) plt.xlabel("x") plt.ylabel("y") plt.subplot(1, 2, 2) model, result = scatter_points_and_plot_line_MAE(X_subset_modified_twice) plt.ylim(-20, 100) plt.xlabel("x") # Прямая изменила наклон, когда мы добавили 30 (почти 15%) шумовых точек. # ## Мультиколлинеарность и регуляризация # + import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error, r2_score # - # #### Решение задачи МНК def my_linear_regression(X_train, Y_train): return np.linalg.inv(X_train.T.dot(X_train)).dot(X_train.T).dot(y_train) def predict(X, w): return np.dot(X, w) # #### Загрузим датасет # https://habrahabr.ru/post/206306/ data = pd.read_csv('data/energy_efficiency.csv') data.head() # #### Посмотрим на скоррелированность данных data.corr() f, ax = plt.subplots(figsize=(10, 8)) corr = data.drop(['Y1','Y2'], axis=1).corr() sns.heatmap(corr, square=True, ax=ax, cmap=sns.diverging_palette(220, 10, as_cmap=True)) f, ax = plt.subplots(figsize=(10, 8)) corr = data.corr() sns.heatmap(corr, square=True, ax=ax, cmap=sns.diverging_palette(220, 10, as_cmap=True)) # Видим, что x1 скоррелирован с x2, а x4 с x5. Из-за этого матрица $X^{T}*X$ необратима. # #### Посмотрим как на таких данных отработает наша линейная регрессия # Разобьем выборку на train и test X = data.drop(['Y1','Y2'], axis=1) y = data['Y1'] X.shape, y.shape X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) # Обучим регрессию и посмотрим на качество w = my_linear_regression(X_train, y_train) y_train_pred = predict(X_train, w) print("Train MSE: ", mean_squared_error(y_train, y_train_pred)) print("Train R2: ", r2_score(y_train, y_train_pred)) y_test_pred = predict(X_test, w) print("Test MSE: ", mean_squared_error(y_test, y_test_pred)) print("Test R2: ", r2_score(y_test, y_test_pred)) # Как-то не очень # #### Попробуем убрать скоррелированные признаки X = data.drop(['X1','X4', 'Y1','Y2'], axis=1) y = data['Y1'] X.shape, y.shape X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) # Обучим регрессию и посмотрим на качество w = my_linear_regression(X_train, y_train) y_train_pred = predict(X_train, w) print("Train MSE: ", mean_squared_error(y_train, y_train_pred)) print("Train R2: ", r2_score(y_train, y_train_pred)) y_test_pred = predict(X_test, w) print("Test MSE: ", mean_squared_error(y_test, y_test_pred)) print("Test R2: ", r2_score(y_test, y_test_pred)) # Юху! Получили алгоритм с хорошим качеством # #### Реализуем линейную регрессию с L2 регуляризацией def my_linear_regression(X_train, Y_train, l2=0): return np.linalg.inv(X_train.T.dot(X_train) + l2*np.eye(X_train.shape[1])).dot(X_train.T).dot(y_train) # Обучим регрессию с регуляризацией и посмотрим на качество X = data.drop(['Y1','Y2'], axis=1) y = data['Y1'] X.shape, y.shape X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) w = my_linear_regression(X_train, y_train, l2=0.001) y_train_pred = predict(X_train, w) print("Train MSE: ", mean_squared_error(y_train, y_train_pred)) print("Train R2: ", r2_score(y_train, y_train_pred)) y_test_pred = predict(X_test, w) print("Test MSE: ", mean_squared_error(y_test, y_test_pred)) print("Test R2: ", r2_score(y_test, y_test_pred)) # Этого же эффекта(отсутствие переобучения) добились добавив регуляризацию
20,019
/LogReg, SVM & Model(Bin) - SampleSize vs Score.ipynb
c454f4d531378584e633686d47737ad29940eb2d
[]
no_license
Ilanagweinstein/CodeBlue
https://github.com/Ilanagweinstein/CodeBlue
1
0
null
2020-01-02T18:36:02
2019-12-08T21:38:58
null
Jupyter Notebook
false
false
.py
73,775
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import os import numpy as np import pandas as pd import sklearn from sklearn.model_selection import cross_validate from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report, confusion_matrix import matplotlib.pyplot as plt from sklearn.metrics import accuracy_score import warnings warnings.filterwarnings('ignore') directory = os.getcwd() data_all = pd.read_csv(directory + '/input_data.csv', sep=',') #all columns data_all.head() data =data_all.drop(columns = 'DISPATCH_RESPONSE_SECONDS_QY') #df without dispatch response seconds data.head() data.shape # ***BINNING INCIDENT_TRAVEL_TM (DISCRETIZING)*** # # #bins; change n to change num of bins n = 5 max = 1025 bin_width = max/n #+1 because we have n bins so n+1 endpoints bin_width #bin ranges bins = np.linspace(0,max,n+1) bins #labels for bin ranges labels = list(range(1,n+1)) labels #df to visualize bins df = pd.DataFrame(data = labels) df['start'] = bins[:bins.shape[0]-1] df['end'] = bins[1:] df #coding continuous data based on bins/labels, removing continuous data cols data['INCIDENT_TRAVEL_TM_SECONDS_QY_Bin'] = pd.cut(data['INCIDENT_TRAVEL_TM_SECONDS_QY'],bins,labels=labels) data = data.drop(columns = ['INCIDENT_TRAVEL_TM_SECONDS_QY']) data.head() import collections from collections import Counter travel_tm = collections.Counter(data["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"]) travel_tm_count = sum(travel_tm.values()) travel_tm #visualize count of data within each bin travel_tm = {k: (v*100) / travel_tm_count for k, v in travel_tm.items()} #mult by 100 to turn into percent plt.bar(travel_tm.keys(),travel_tm.values()) plt.grid(axis = 'x') plt.xlabel("Travel Time (Binned)") plt.ylabel("Frequency (%)") plt.show() # + #X is predictors, Y is value to be predicted X = data.drop(columns = ["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"]) Y = data["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"] X.head() # - Y.head() #splitting into training and testing datasets X_train, X_test, Y_train, Y_test = train_test_split(X, Y, train_size=.75) X_train.head() Y_train.head() X_test.head() Y_test.head() # ***LOGISTIC REGRESSION*** from sklearn import linear_model from sklearn import metrics import matplotlib import matplotlib.pyplot as plt # %matplotlib inline logreg = linear_model.LogisticRegression() logreg.fit(X_train, Y_train) logreg.score(X_train,Y_train) logreg.score(X_test,Y_test) Y_lr_predict = logreg.predict(X_test) Y_lr_predict print("=== Classification Report ===") print(classification_report(Y_test, Y_lr_predict)) print("=== Confusion Matrix ===") print(confusion_matrix(Y_test, Y_lr_predict)) # ***SVM*** data1 = data.sample(n = 50000) from sklearn.svm import SVC #X is predictors, Y is value to be predicted X = data1.drop(columns = ["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"]) Y = data1["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"] X_train, X_test, Y_train, Y_test = train_test_split(X, Y, train_size=.75) svm = SVC(kernel = "linear") svm.fit(X_train,Y_train) svm.score(X_train,Y_train) svm.score(X_test,Y_test) Y_svm_predict = svm.predict(X_test) Y_svm_predict print("=== Classification Report ===") print(classification_report(Y_test, Y_svm_predict)) #Same as svm.score(Y_test,Y) metrics.accuracy_score(Y_test,Y_svm_predict) print("=== Confusion Matrix ===") print(confusion_matrix(Y_test, Y_svm_predict)) # ***Samplesize vs Score*** # + import random import numpy as np import pandas as pd from sklearn import linear_model from sklearn.svm import SVC #IMPORT YOUR PACKAGES np.random.seed(2019) # - directory = os.getcwd() data_all = pd.read_csv(directory + '/input_data.csv', sep=',') ## REPLACE THIS WITH MY EXECUTED DICT AND NEW MODEL NAMES+BIN ## summary_dict = {"LR5":[],"LR12":[],"LR25":[],"LR41":[], "SVM5":[],"SVM12":[],"SVM25":[],"SVM41":[],} # + num_bins = [5, 12, 25, 41] samplesize = [1000, 5000, 10000, 25000, 50000] for n in num_bins: max = 1025 bin_width = max/n bins = np.linspace(0,max,n+1) labels = list(range(1,n+1)) data =data_all.drop(columns = 'DISPATCH_RESPONSE_SECONDS_QY') data['INCIDENT_TRAVEL_TM_SECONDS_QY_Bin'] = pd.cut(data['INCIDENT_TRAVEL_TM_SECONDS_QY'],bins,labels=labels) data = data.drop(columns = ['INCIDENT_TRAVEL_TM_SECONDS_QY']) ##REPLACE STRING DEFINING MODEL BELOW## row_label = 'SVM' + str(n) for s in samplesize: data_sampled = data.sample(n = s) X = data_sampled.drop(columns = ["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"]) Y = data_sampled["INCIDENT_TRAVEL_TM_SECONDS_QY_Bin"] X_train, X_test, Y_train, Y_test = train_test_split(X, Y, train_size=.75) ## REPLACE MODEL below ## svm = SVC(kernel = "linear") svm.fit(X_train,Y_train) score = svm.score(X_test,Y_test) ## REPLACE MODEL above ## summary_dict[row_label].append(score) # - summary_dict pd.DataFrame.from_dict(summary_dict,orient = 'index',columns = ['1K','5K','10K','25K','50K']) inX = inputX[train_idx].copy(); trainY = targetY[train_idx].copy() testX = inputX[test_idx].copy(); testY = targetY[test_idx].copy() trainX_mu = trainX.mean(axis=0); trainX_sd = trainX.std(axis=0) trainX = (trainX - trainX_mu)/trainX_sd; testX = (testX - trainX_mu)/trainX_sd trainY_mean = np.log(trainY).mean() lr = LinearRegression(copy_X=True); lr.fit(trainX, np.log10(trainY) - trainY_mean) pred = 10.**(lr.predict(testX) + trainY_mean) kfold_diff = np.append(kfold_diff, pred - testY) i += 1 lr_diff = kfold_diff lr_ae = np.abs(kfold_diff) lr_se = kfold_diff ** 2 print str(k_fold_cv) + '-fold CV Error Metrics' print 'Linear Regression' print 'rmse: ' + str(np.sqrt(lr_se.mean())) print 'mae: ' + str(lr_ae.mean()) # + # Cross validate MGP-Zn gp_kern = GPy.kern.RBF(2) icm = GPy.util.multioutput.ICM(input_dim = 2, num_outputs=2, kernel = gp_kern) y_co = np.log10(meuse.zinc).values.reshape((-1, 1)) y_co = y_co - y_co.mean() x_co_mu = meuse[['x','y']].values.mean(axis=0) x_co_sd = meuse[['x','y']].values.std(axis=0) x_co = (meuse[['x','y']].values - x_co_mu)/x_co_sd kfold_diff = np.array([]) for train_idx, test_idx in kf: trainX = inputX[train_idx].copy(); trainY = targetY[train_idx].copy() testX = inputX[test_idx].copy(); testY = targetY[test_idx].copy() trainX = (trainX - x_co_mu)/x_co_sd testX = (testX - x_co_mu)/x_co_sd trainY_mean = np.log10(trainY).mean() mgpr = GPy.models.GPCoregionalizedRegression([trainX, x_co],[np.log10(trainY) - trainY_mean, y_co], kernel=icm) mgpr.optimize_restarts(10, verbose = False) noise_dict = {'output_index': np.zeros((len(testX),1)).astype(int)} pred = 10.**(mgpr.predict(np.c_[testX, np.zeros((len(testX),1))], Y_metadata=noise_dict)[0] + trainY_mean) kfold_diff = np.append(kfold_diff, pred - testY) mgp_zn_diff = kfold_diff mgp_zn_ae = np.abs(kfold_diff) mgp_zn_se = kfold_diff ** 2 print str(k_fold_cv) + '-fold CV Error Metrics' print 'Multi-task GP/cokriging with Squared-exponential Kernel' print 'rmse: ' + str(np.sqrt(mgp_zn_se.mean())) print 'mae : ' + str(mgp_zn_ae.mean()) # + # Cross validate MGP-Cu gp_kern = GPy.kern.RBF(2) icm = GPy.util.multioutput.ICM(input_dim = 2, num_outputs=2, kernel = gp_kern) y_co = np.log10(meuse.copper).values.reshape((-1, 1)) y_co = y_co - y_co.mean() x_co_mu = meuse[['x','y']].values.mean(axis=0) x_co_sd = meuse[['x','y']].values.std(axis=0) x_co = (meuse[['x','y']].values - x_co_mu)/x_co_sd kfold_diff = np.array([]) for train_idx, test_idx in kf: trainX = inputX[train_idx].copy(); trainY = targetY[train_idx].copy() testX = inputX[test_idx].copy(); testY = targetY[test_idx].copy() trainX = (trainX - x_co_mu)/x_co_sd testX = (testX - x_co_mu)/x_co_sd trainY_mean = np.log10(trainY).mean() mgpr = GPy.models.GPCoregionalizedRegression([trainX, x_co],[np.log10(trainY) - trainY_mean, y_co], kernel = icm) mgpr.optimize_restarts(10, verbose = False) noise_dict = {'output_index': np.zeros((len(testX),1)).astype(int)} pred = 10.**(mgpr.predict(np.c_[testX, np.zeros((len(testX),1))], Y_metadata=noise_dict)[0] + trainY_mean) kfold_diff = np.append(kfold_diff, pred - testY) mgp_cop_diff = kfold_diff mgp_cop_ae = np.abs(kfold_diff) mgp_cop_se = kfold_diff ** 2 print str(k_fold_cv) + '-fold CV Error Metrics' print 'Multi-task GP/cokriging with Squared-exponential Kernel' print 'rmse: ' + str(np.sqrt(mgp_cop_se.mean())) print 'mae : ' + str(mgp_cop_ae.mean()) # + # Cross validate MGP-Pb gp_kern = GPy.kern.RBF(2) icm = GPy.util.multioutput.ICM(input_dim = 2, num_outputs=2, kernel = gp_kern) y_co = np.log10(meuse.lead).values.reshape((-1, 1)) y_co = y_co - y_co.mean() x_co_mu = meuse[['x','y']].values.mean(axis=0) x_co_sd = meuse[['x','y']].values.std(axis=0) x_co = (meuse[['x','y']].values - x_co_mu)/x_co_sd kfold_diff = np.array([]) for train_idx, test_idx in kf: trainX = inputX[train_idx].copy(); trainY = targetY[train_idx].copy() testX = inputX[test_idx].copy(); testY = targetY[test_idx].copy() trainX = (trainX - x_co_mu)/x_co_sd testX = (testX - x_co_mu)/x_co_sd trainY_mean = np.log10(trainY).mean() mgpr = GPy.models.GPCoregionalizedRegression([trainX, x_co],[np.log10(trainY) - trainY_mean, y_co], kernel = icm) mgpr.optimize_restarts(10, verbose = False) noise_dict = {'output_index': np.zeros((len(testX),1)).astype(int)} pred = 10.**(mgpr.predict(np.c_[testX, np.zeros((len(testX),1))], Y_metadata=noise_dict)[0] + trainY_mean) kfold_diff = np.append(kfold_diff, pred - testY) mgp_lead_diff = kfold_diff mgp_lead_ae = np.abs(kfold_diff) mgp_lead_se = kfold_diff ** 2 print str(k_fold_cv) + '-fold CV Error Metrics' print 'Multi-task GP/cokriging with Squared-exponential Kernel' print 'rmse: ' + str(np.sqrt(mgp_lead_se.mean())) print 'mae : ' + str(mgp_lead_ae.mean()) # - # Cross validate PBP-50 kfold_diff = np.array([]) i = 0 n_hidden_units = 50 plt.rcParams['figure.figsize'] = (6,12) for train_idx, test_idx in kf: trainX = inputX[train_idx].copy(); trainY = targetY[train_idx].copy() testX = inputX[test_idx].copy(); testY = targetY[test_idx].copy() #trainX_mu = trainX.mean(axis=0); trainX_sd = trainX.std(axis=0) #trainX = (trainX - trainX_mu)/trainX_sd; testX = (testX - trainX_mu)/trainX_sd net = PBP_net.PBP_net(trainX, np.log10(trainY.T[0]), [ n_hidden_units, n_hidden_units ], normalize = True, n_epochs = 20000) pred, v, v_noise = net.predict(testX) pred = np.reshape(10. ** pred, (-1, 1)) kfold_diff = np.append(kfold_diff, pred - testY) #plt.subplot(int(k_fold_cv/2), 2, i) #plt.plot(testY, pred, 'ro') i += 1 pbp_diff = kfold_diff pbp_ae = np.abs(kfold_diff) pbp_se = kfold_diff ** 2 print str(k_fold_cv) + '-fold CV Error Metrics' print 'PBP-50' print 'rmse: ' + str(np.sqrt(pbp_se.mean())) print 'mae: ' + str(pbp_ae.mean()) # Cross validate PBP-60 kfold_diff = np.array([]) i = 0 n_hidden_units = 60 plt.rcParams['figure.figsize'] = (6,12) for train_idx, test_idx in kf: trainX = inputX[train_idx].copy(); trainY = targetY[train_idx].copy() testX = inputX[test_idx].copy(); testY = targetY[test_idx].copy() #trainX_mu = trainX.mean(axis=0); trainX_sd = trainX.std(axis=0) #trainX = (trainX - trainX_mu)/trainX_sd; testX = (testX - trainX_mu)/trainX_sd net = PBP_net.PBP_net(trainX, np.log10(trainY.T[0]), [ n_hidden_units, n_hidden_units ], normalize = True, n_epochs = 20000) pred, v, v_noise = net.predict(testX) pred = np.reshape(10. ** pred, (-1, 1)) kfold_diff = np.append(kfold_diff, pred - testY) #plt.subplot(int(k_fold_cv/2), 2, i) #plt.plot(testY, pred, 'ro') i += 1 pbp60_diff = kfold_diff pbp60_ae = np.abs(kfold_diff) pbp60_se = kfold_diff ** 2 print str(k_fold_cv) + '-fold CV Error Metrics' print 'PBP-60' print 'rmse: ' + str(np.sqrt(pbp60_se.mean())) print 'mae: ' + str(pbp60_ae.mean()) # + # Generate residual histograms plt.rcParams['figure.figsize'] = (15,15) plt.subplot(3,3,1) plt.hist(lr_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(lr_diff)) plt.ylim((0,40)) plt.title('OLS') plt.subplot(3,3,2) plt.hist(krr_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(krr_diff)) plt.ylim((0,40)) plt.title('KRR') plt.subplot(3,3,3) plt.hist(gp_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(krr_diff)) plt.ylim((0,40)) plt.title('GP') plt.subplot(3,3,4) plt.hist(mgp_zn_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(mgp_zn_diff)) plt.ylim((0,40)) plt.title('MGP-Zn') plt.subplot(3,3,5) plt.hist(mgp_cop_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(mgp_cop_diff)) plt.ylim((0,40)) plt.title('MGP-Cu') plt.subplot(3,3,6) plt.hist(mgp_lead_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(mgp_lead_diff)) plt.ylim((0,40)) plt.title('MGP-Pb') plt.subplot(3,3,7) plt.hist(pbp_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(pbp_diff)) plt.ylim((0,40)) plt.title('PBP-50') plt.subplot(3,3,8) plt.hist(pbp60_diff, bins = np.arange(-20.,20.,.5)) #print np.max(np.abs(pbp60_diff)) plt.ylim((0,40)) plt.title('PBP-60') # + # Visualize Meuse data print 'Pearson Correlation Coefficients' print np.log10(meuse[['cadmium', 'om', 'copper', 'zinc', 'lead']]).corr() print print 'Spearman Correlation Coefficients' print np.log10(meuse[['cadmium', 'om', 'copper', 'zinc', 'lead']]).corr('spearman') plt.rcParams['figure.figsize']= (15,5) plt.subplot(1,3,1) plt.scatter(np.log10(meuse.cadmium), np.log10(meuse.copper)) plt.xlabel('log-cadmium'); plt.ylabel('log-copper'); plt.grid() #plt.xlim((-1.,2.2));plt.ylim((-1.,2.2)) plt.xlim((-1.5,3.5));plt.ylim((-1.5,3.5)) plt.subplot(1,3,2) plt.scatter(np.log10(meuse.cadmium), np.log10(meuse.zinc)) plt.xlabel('log-cadmium'); plt.ylabel('log-zinc'); plt.grid() #plt.xlim((-1.,3.4));plt.ylim((-1.,3.4)) plt.xlim((-1.5,3.5));plt.ylim((-1.5,3.5)) plt.subplot(1,3,3) plt.scatter(np.log10(meuse.cadmium), np.log10(meuse.lead)) #plt.xlim((-1.,3.));plt.ylim((-1.,3.)) plt.xlim((-1.5,3.5));plt.ylim((-1.5,3.5)) plt.xlabel('log-cadmium'); plt.ylabel('log-lead'); plt.grid() plt.suptitle('Scatter plots of soil substance log-concentration', fontsize=20) plt.rcParams['figure.figsize']= (10,10) plt.figure() plt.scatter(meuse['x'], meuse['y'], s = 75., c = np.log10(meuse.cadmium), alpha = 0.7) plt.xlim((np.min(meuse['x'])-800.,np.min(meuse['x'])-800.+4500. )) plt.ylim((np.min(meuse['y'])-200.,np.min(meuse['y'])-200.+4500)) plt.colorbar() plt.title('Log-concentration of Cadmium', fontsize = 20) plt.grid() # - # Generate scatter plot of cross-validation error for debugging plt.rcParams['figure.figsize'] = (11,10) for train_idx, test_idx in kf: plt.figure() plt.scatter(data[train_idx, 0], data[train_idx,1], marker='x') plt.scatter(data[test_idx,0], data[test_idx,1], c = np.abs(mgp_zn_diff[test_idx]), s = 50) plt.colorbar()
15,222
/DNN.ipynb
224d1ec998e67d6254d4825ae22ebad2f6cb0692
[]
no_license
GiuliaLanzillotta/TensorflowEssentials
https://github.com/GiuliaLanzillotta/TensorflowEssentials
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
5,323,755
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/GiuliaLanzillotta/TensorflowEssentials/blob/master/DNN.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + id="r2tNcK0KJzaa" colab_type="code" colab={} # %tensorflow_version 1.x import tensorflow as tf # + id="7oIlyzc9LhyA" colab_type="code" colab={} import numpy as np # + [markdown] id="5EGHtIb4KGxz" colab_type="text" # # Building a DNN from scratch # # Yeah, this notebook is not as exciting as launching a rocket into space or discussing about quantum physics. <br> # What I would like to show though is the level of detail and attention that one needs to put into building even the simpler version of such powerful models. In a nutshell, the message here is to be **responsible** even when the task seems fairly easy. # + id="Rj7_nfiPcRY7" colab_type="code" colab={} tf.reset_default_graph() # + [markdown] id="c3zEJ0a1QQ5V" colab_type="text" # #### Phase 1 : construction # # The construction phase always starts by spelling out the hyper-parameters to use in your net # + id="xYlzDcLlKFoX" colab_type="code" colab={} ## HYPER-PARAMETERS ## n_inputs = 28*28 n_hidden1 = 300 n_hidden2 = 100 n_out = 10 ## INPUTS ## X = tf.placeholder(tf.float32, shape=(None, n_inputs), name="X") y = tf.placeholder(tf.int64, shape=(None), name="y") # + [markdown] id="r4ko9e7bNQ29" colab_type="text" # > ### The DRY principle : don't repeat yourself! # Repeated code is common when building a neural net.<br> # Development is much easier and less error-prone if you group code in functions. # + id="94DcX1BWKfL3" colab_type="code" colab={} def neural_layers(X, n_neurons, name, activation=None): with tf.name_scope(name): n_inputs = int(X.get_shape()[1]) stddev = 2/np.sqrt(n_inputs) # random initialization using a truncated normal (Gaussian) distribution. # Using this specific standard deviation helps the algorithm converge much faster init = tf.truncated_normal(shape=(n_inputs,n_neurons), mean=0.0, stddev=stddev) W = tf.Variable(init, name="weights") b = tf.Variable(tf.zeros([n_neurons]), name="biases") z = tf.matmul(X,W) + b if activation == "relu": return tf.nn.relu(z) return z # + [markdown] id="Re58mAXmMigs" colab_type="text" # >#### Why random initialization ? # It is important to initialize connection weights randomly for all hidden layers to avoid any symmetries that the Gradient Descent algorithm would be unable to break. # # Note that there are no symmety issues for the bias parameters. # # > #### Why a truncated normal? # Using a truncated normal distribution rather than a regular normal distribution ensures that there won’t be any large weights, which could slow down training. # # + id="VfXfZwDnMn4R" colab_type="code" colab={} with tf.name_scope("myDNN"): hidden1 = neural_layers(X, n_hidden1, "hidden1", activation="relu") hidden2 = neural_layers(hidden1, n_hidden2, "hidden2", activation="relu") logits = neural_layers(hidden2, n_out, "output") # + [markdown] id="38wTYLHJdhDd" colab_type="text" # # > #### Why using a ReLU? # ReLu is a bit faster to compute than other activation functions, and Gradient Descent does not get stuck as much on plateaus, thanks to the fact that it does not saturate for large input values. <br> # Keep in mind that, differently from softmax activations (sigmoid included), the ReLu function does not map the input to a probabilistic space. This is the reason why it cannot usually be used in the output layers (for classification at least). # + [markdown] id="R2bxsmOCQJ1g" colab_type="text" # Now let's code the loss, and then we're ready to code the training part of the graph. # + id="0ZKdm5I2PXlP" colab_type="code" colab={} with tf.name_scope("loss"): cross_entropy = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=y, logits=logits) # cross_entropy is a 1D vector containing the cross entropy for each instance in y loss = tf.reduce_mean(cross_entropy, name="cross_entropy") # + [markdown] id="QljxWe0uRFfc" colab_type="text" # > #### Why sparse_softmax_cross_entropy_with_logits? # Technically equivalent to applying the softmax activation function and then computing the cross entropy, but it is **more efficient**, and it properly **takes care of corner cases** like logits equal to 0.<br> # The sparsity refers to taking as input non one-hot encoded vectors. # + [markdown] id="73ldEjdnZRJ5" colab_type="text" # Let's add a summary to keep track of the loss value # + id="BALyuOX7ZWFQ" colab_type="code" colab={} loss_summary = tf.summary.scalar("loss",loss) # + [markdown] id="1LvOggnbZfol" colab_type="text" # Now the optimization nodes: # + id="n94vUoBkRu7t" colab_type="code" colab={} learning_rate = 1e-3 # + id="BZYwBNz7R3dk" colab_type="code" colab={} with tf.name_scope("training"): optimizer = tf.train.GradientDescentOptimizer(learning_rate) training_operation = optimizer.minimize(loss) # + [markdown] id="1Mz-JA0cSgOD" colab_type="text" # Last part of the construction phase: define the evaluation metric of the model.<br> # Here I decided to use *accuracy* as a metric of evaluation. # + id="KAO3MSFySlZp" colab_type="code" colab={} with tf.name_scope("evaluation"): n_correct = tf.nn.in_top_k(logits, y, 1) accuracy = tf.reduce_mean(tf.cast(n_correct, tf.float32)) # + [markdown] id="WWUcfC_AZjJo" colab_type="text" # Add a summary for the accuracy as well: # # + id="aIV1ifg_ZmpZ" colab_type="code" colab={} accuracy_summary = tf.summary.scalar("accuracy",accuracy) # + [markdown] id="RzVExFUXTIdl" colab_type="text" # And don't forget to add the initializer node ( and eventually the Saver node) # + id="iaK8hkqqTOcV" colab_type="code" colab={} init = tf.global_variables_initializer() summaries_merged = tf.summary.merge_all() saver = tf.train.Saver() # + [markdown] id="zL5N8H3ERrXs" colab_type="text" # #### Phase 2 : execution phase # + [markdown] id="abnCdfaMXAyL" colab_type="text" # #### First comes the data # # Since I don't want to spend too much time here loading batches, cleaning and shuffling data, I will use the MNIST dataset from **tensorflow datasets** # + id="NevHN60yXRCA" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 87} outputId="d32b8af0-8986-45e2-9151-aebb0b55fd73" from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("/tmp/data/") # + [markdown] id="Ew3Tal7KXWtn" colab_type="text" # ####Training hyperparameters # + id="MFJPqKFDXVO9" colab_type="code" colab={} n_epochs = 100 batch_size = 50 # + [markdown] id="_4egFbJBXeS9" colab_type="text" # #### Finally, train the model! # # It's good practice to keep track of the running time. # + id="FexJy6QJX2d0" colab_type="code" colab={} import time # + id="p_OdfXWnXiZc" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 1000} outputId="391a280e-5172-4817-8244-f3641db7d8a9" ## START TRAINING ## start = time.time() with tf.Session() as sess: sess.run(init) ## SUMMARY ## writer = tf.summary.FileWriter("myDNN", sess.graph) for epoch in range(n_epochs): for step in range(mnist.train.num_examples//batch_size): X_batch, y_batch = mnist.train.next_batch(batch_size) sess.run(training_operation, feed_dict = {X: X_batch, y : y_batch}) ## EVALUATION ## accuracy_train = accuracy.eval(feed_dict={X: X_batch, y: y_batch}) accuracy_test = accuracy.eval(feed_dict={X:mnist.test.images, y: mnist.test.labels}) print(epoch, "Train accuracy:", accuracy_train, "Test accuracy:", accuracy_test) ## WRITE SUMMARIES ## loss_summary_str = loss_summary.eval(feed_dict={X: X_batch, y: y_batch}) accuracy_summary_str = accuracy_summary.eval(feed_dict={X:mnist.test.images, y: mnist.test.labels}) writer.add_summary(loss_summary_str, epoch) writer.add_summary(accuracy_summary_str, epoch) save_path = saver.save(sess, "./my_DNN_final.ckpt") writer.close() ## END TRAINING ## end = time.time() print("Time running: ",end-start) # + [markdown] id="ysBl7xuZPfVX" colab_type="text" # ### Always VISUALISE # # I find it very helpful to see what I am doing, especially when building complex models. # + id="5DFtW3inPnvF" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 35} outputId="6f5ee61b-6583-486e-c22e-b87e73b10961" # #!pip install -U tensorboard-plugin-wit # run once then comment-out # %tensorflow_version 1.x # %load_ext tensorboard # + id="JEvv6nWCPs24" colab_type="code" colab={"resources": {"http://localhost:6006/": {"data": "PCFkb2N0eXBlIGh0bWw+PCEtLQpAbGljZW5zZQpDb3B5cmlnaHQgMjAxNiBUaGUgVGVuc29yRmxvdyBBdXRob3JzLiBBbGwgUmlnaHRzIFJlc2VydmVkLgoKTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNlIik7CnlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS4KWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0CgogICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wCgpVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZ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UkkgZm9yIHN0eWxlIGNvbnRlbnQKICAgICAqIEByZXR1cm4geyFBcnJheTwhSFRNTFN0eWxlRWxlbWVudD59IEFycmF5IG9mIHN0eWxlcwogICAgICogQHRoaXMge1N0eWxlR2F0aGVyfQogICAgICovCiAgICBzdHlsZXNGcm9tVGVtcGxhdGUodGVtcGxhdGUsIGJhc2VVUkkpIHsKICAgICAgaWYgKCF0ZW1wbGF0ZS5fc3R5bGVzKSB7CiAgICAgICAgY29uc3Qgc3R5bGVzID0gW107CiAgICAgICAgLy8gaWYgZWxlbWVudCBpcyBhIHRlbXBsYXRlLCBnZXQgY29udGVudCBmcm9tIGl0cyAuY29udGVudAogICAgICAgIGNvbnN0IGUkID0gdGVtcGxhdGUuY29udGVudC5xdWVyeVNlbGVjdG9yQWxsKCdzdHlsZScpOwogICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGUkLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICBsZXQgZSA9IGUkW2ldOwogICAgICAgICAgLy8gc3VwcG9ydCBzdHlsZSBzaGFyaW5nIGJ5IGFsbG93aW5nIHN0eWxlcyB0byAiaW5jbHVkZSIKICAgICAgICAgIC8vIG90aGVyIGRvbS1tb2R1bGVzIHRoYXQgY29udGFpbiBzdHlsaW5nCiAgICAgICAgICBsZXQgaW5jbHVkZSA9IGUuZ2V0QXR0cmlidXRlKElOQ0xVREVfQVRUUik7CiAgICAgICAgICBpZiAoaW5jbHVkZSkgewogICAgICAgICAgICBzdHlsZXMucHVzaCguLi50aGlzLnN0eWxlc0Zyb21Nb2R1bGVzKGluY2x1ZGUpLmZpbHRlcihmdW5jdGlvbihpdGVtLCBpbmRleCwgc2VsZikgewogICAgICAgICAgICAgIHJldHVybiBzZWxmLmluZGV4T2YoaXRlbSkgPT09IGluZGV4OwogICAgICAgICAgICB9KSk7CiAgICAgICAgICB9CiAgICAgICAgICBpZiAoYmFzZVVSSSkgewogICAgICAgICAgICBlLnRleHRDb250ZW50ID0gUG9seW1lci5SZ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SAwOwogICAgfSwKCiAgICAvKioKICAgICAqIFJldHVybnMgdGhlIHJvb3QgcHJvcGVydHkgbmFtZSBmb3IgdGhlIGdpdmVuIHBhdGguCiAgICAgKgogICAgICogRXhhbXBsZToKICAgICAqCiAgICAgKiBgYGAKICAgICAqIFBvbHltZXIuUGF0aC5yb290KCdmb28uYmFyLmJheicpIC8vICdmb28nCiAgICAgKiBQb2x5bWVyLlBhdGgucm9vdCgnZm9vJykgICAgICAgICAvLyAnZm9vJwogICAgICogYGBgCiAgICAgKgogICAgICogQG1lbWJlcm9mIFBvbHltZXIuUGF0aAogICAgICogQHBhcmFtIHtzdHJpbmd9IHBhdGggUGF0aCBzdHJpbmcKICAgICAqIEByZXR1cm4ge3N0cmluZ30gUm9vdCBwcm9wZXJ0eSBuYW1lCiAgICAgKi8KICAgIHJvb3Q6IGZ1bmN0aW9uKHBhdGgpIHsKICAgICAgbGV0IGRvdEluZGV4ID0gcGF0aC5pbmRleE9mKCcuJyk7CiAgICAgIGlmIChkb3RJbmRleCA9PT0gLTEpIHsKICAgICAgICByZXR1cm4gcGF0aDsKICAgICAgfQogICAgICByZXR1cm4gcGF0aC5zbGljZSgwLCBkb3RJbmRleCk7CiAgICB9LAoKICAgIC8qKgogICAgICogR2l2ZW4gYGJhc2VgIGlzIGBmb28uYmFyYCwgYGZvb2AgaXMgYW4gYW5jZXN0b3IsIGBmb28uYmFyYCBpcyBub3QKICAgICAqIFJldHVybnMgdHJ1ZSBpZiB0aGUgZ2l2ZW4gcGF0aCBpcyBhbiBhbmNlc3RvciBvZiB0aGUgYmFzZSBwYXRoLgogICAgICoKICAgICAqIEV4YW1wbGU6CiAgICAgKgogICAgICogYGBgCiAgICAgKiBQb2x5bWVyLlBhdGguaXNBbmNlc3RvcignZm9vLmJhcicsICdmb28nKSAgICAgICAgIC8vIHRydWUKICAgICAqIFBvbHltZXIuUGF0aC5pc0FuY2VzdG9yKCdmb28uYmFyJywgJ2Zvby5iYXInKSAgICAgLy8gZmFs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FycmF5PHN0cmluZ3xudW1iZXI+fSBwYXRoIElucHV0IHBhdGgKICAgICAqIEByZXR1cm4ge3N0cmluZ30gRmxhdHRlbmVkIHBhdGgKICAgICAqLwogICAgbm9ybWFsaXplOiBmdW5jdGlvbihwYXRoKSB7CiAgICAgIGlmIChBcnJheS5pc0FycmF5KHBhdGgpKSB7CiAgICAgICAgbGV0IHBhcnRzID0gW107CiAgICAgICAgZm9yIChsZXQgaT0wOyBpPHBhdGgubGVuZ3RoOyBpKyspIHsKICAgICAgICAgIGxldCBhcmdzID0gcGF0aFtpXS50b1N0cmluZygpLnNwbGl0KCcuJyk7CiAgICAgICAgICBmb3IgKGxldCBqPTA7IGo8YXJncy5sZW5ndGg7IGorKykgewogICAgICAgICAgICBwYXJ0cy5wdXNoKGFyZ3Nbal0pOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gcGFydHMuam9pbignLicpOwogICAgICB9IGVsc2UgewogICAgICAgIHJldHVybiBwYXRoOwogICAgICB9CiAgICB9LAoKICAgIC8qKgogICAgICogU3BsaXRzIGEgcGF0aCBpbnRvIGFuIGFycmF5IG9mIHByb3BlcnR5IG5hbWVzLiBBY2NlcHRzIGVpdGhlciBhcnJheXMKICAgICAqIG9mIHBhdGggcGFydHMgb3Igc3RyaW5ncy4KICAgICAqCiAgICAgKiBFeGFtcGxlOgogICAgICoKICAgICAqIGBgYAogICAgICogUG9seW1lci5QYXRoLnNwbGl0KFsnZm9vLmJhcicsIDAsICdiYXonXSkgIC8vIFsnZm9vJywgJ2JhcicsICcwJywgJ2JheiddCiAgICAgKiBQb2x5bWVyLlBhdGguc3BsaXQoJ2Zvby5iYXIuMC5iYXonKSAgICAgICAgLy8gWydmb28nLCAnYmFyJywgJzAnLCAnYmF6J10KICAgICAqIGBgYAogICAgICoKICAgICAqIEBtZW1iZXJvZiBQb2x5bWVyLlBhdGgKICAgICAqIEBwYXJhbSB7c3RyaW5nIHwgIUFycmF5PHN0cmluZ3xudW1iZX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ZnVsbHkgZGVyZWZlcmVuY2VkLgogICAgICogQHRoaXMge1BhdGh9CiAgICAgKi8KICAgIGdldDogZnVuY3Rpb24ocm9vdCwgcGF0aCwgaW5mbykgewogICAgICBsZXQgcHJvcCA9IHJvb3Q7CiAgICAgIGxldCBwYXJ0cyA9IHRoaXMuc3BsaXQocGF0aCk7CiAgICAgIC8vIExvb3Agb3ZlciBwYXRoIHBhcnRzWzAuLm4tMV0gYW5kIGRlcmVmZXJlbmNlCiAgICAgIGZvciAobGV0IGk9MDsgaTxwYXJ0cy5sZW5ndGg7IGkrKykgewogICAgICAgIGlmICghcHJvcCkgewogICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KICAgICAgICBsZXQgcGFydCA9IHBhcnRzW2ldOwogICAgICAgIHByb3AgPSBwcm9wW3BhcnRdOwogICAgICB9CiAgICAgIGlmIChpbmZvKSB7CiAgICAgICAgaW5mby5wYXRoID0gcGFydHMuam9pbignLicpOwogICAgICB9CiAgICAgIHJldHVybiBwcm9wOwogICAgfSwKCiAgICAvKioKICAgICAqIFNldHMgYSB2YWx1ZSB0byBhIHBhdGguICBJZiBhbnkgc3ViLXByb3BlcnR5IGluIHRoZSBwYXRoIGlzIGB1bmRlZmluZWRgLAogICAgICogdGhpcyBtZXRob2Qgd2lsbCBuby1vcC4KICAgICAqCiAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5QYXRoCiAgICAgKiBAcGFyYW0ge09iamVjdH0gcm9vdCBPYmplY3QgZnJvbSB3aGljaCB0byBkZXJlZmVyZW5jZSBwYXRoIGZyb20KICAgICAqIEBwYXJhbSB7c3RyaW5nIHwgIUFycmF5PHN0cmluZ3xudW1iZXI+fSBwYXRoIFBhdGggdG8gc2V0CiAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFZhbHVlIHRvIHNldCB0byBwYXRoCiAgICAgKiBAcmV0dXJuIHtzdHJpbmcgfCB1bmRlZmluZWR9IFRoZSBub3JtYWxpemVkIHZlcnNpb24gb2YgdGhlI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KICAgICAgICovCiAgICAgIGFmdGVyKGRlbGF5KSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIHJ1bihmbikgeyByZXR1cm4gd2luZG93LnNldFRpbWVvdXQoZm4sIGRlbGF5KTsgfSwKICAgICAgICAgIGNhbmNlbChoYW5kbGUpIHsKICAgICAgICAgICAgd2luZG93LmNsZWFyVGltZW91dChoYW5kbGUpOwogICAgICAgICAgfQogICAgICAgIH07CiAgICAgIH0sCiAgICAgIC8qKgogICAgICAgKiBFbnF1ZXVlcyBhIGZ1bmN0aW9uIGNhbGxlZCBpbiB0aGUgbmV4dCB0YXNrLgogICAgICAgKgogICAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYy50aW1lT3V0CiAgICAgICAqIEBwYXJhbSB7IUZ1bmN0aW9ufSBmbiBDYWxsYmFjayB0byBydW4KICAgICAgICogQHBhcmFtIHtudW1iZXI9fSBkZWxheSBEZWxheSBpbiBtaWxsaXNlY29uZHMKICAgICAgICogQHJldHVybiB7bnVtYmVyfSBIYW5kbGUgdXNlZCBmb3IgY2FuY2VsaW5nIHRhc2sKICAgICAgICovCiAgICAgIHJ1bihmbiwgZGVsYXkpIHsKICAgICAgICByZXR1cm4gd2luZG93LnNldFRpbWVvdXQoZm4sIGRlbGF5KTsKICAgICAgfSwKICAgICAgLyoqCiAgICAgICAqIENhbmNlbHMgYSBwcmV2aW91c2x5IGVucXVldWVkIGB0aW1lT3V0YCBjYWxsYmFjay4KICAgICAgICoKICAgICAgICogQG1lbWJlcm9mIFBvbHltZXIuQXN5bmMudGltZU91dAogICAgICAgKiBAcGFyYW0ge251bWJlcn0gaGFuZGxlIEhhbmRsZSByZXR1cm5lZCBmcm9tIGBydW5gIG9mIGNhbGxiYWNrIHRvIGNhbmNlbAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2FuY2VsKGhhbmRsZSkgewogICAgICAgIHdpbmRvdy5jbGVhclRpbWVvdXQoaGFuZGxlKTsKICAgICAgfQogICAgfSwKCiAgICAvKioKICAgICAqIEFzeW5jIGludGVyZmFjZSB3cmFwcGVyIGFyb3VuZCBgcmVxdWVzdEFuaW1hdGlvbkZyYW1lYC4KICAgICAqCiAgICAgKiBAbmFtZXNwYWNlCiAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYwogICAgICogQHN1bW1hcnkgQXN5bmMgaW50ZXJmYWNlIHdyYXBwZXIgYXJvdW5kIGByZXF1ZXN0QW5pbWF0aW9uRnJhbWVgLgogICAgICovCiAgICBhbmltYXRpb25GcmFtZTogewogICAgICAvKioKICAgICAgICogRW5xdWV1ZXMgYSBmdW5jdGlvbiBjYWxsZWQgYXQgYHJlcXVlc3RBbmltYXRpb25GcmFtZWAgdGltaW5nLgogICAgICAgKgogICAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYy5hbmltYXRpb25GcmFtZQogICAgICAgKiBAcGFyYW0ge2Z1bmN0aW9uKG51bWJlcik6dm9pZH0gZm4gQ2FsbGJhY2sgdG8gcnVuCiAgICAgICAqIEByZXR1cm4ge251bWJlcn0gSGFuZGxlIHVzZWQgZm9yIGNhbmNlbGluZyB0YXNrCiAgICAgICAqLwogICAgICBydW4oZm4pIHsKICAgICAgICByZXR1cm4gd2luZG93LnJlcXVlc3RBbmltYXRpb25GcmFtZShmbik7CiAgICAgIH0sCiAgICAgIC8qKgogICAgICAgKiBDYW5jZWxzIGEgcHJldmlvdXNseSBlbnF1ZXVlZCBgYW5pbWF0aW9uRnJhbWVgIGNhbGxiYWNrLgogICAgICAgKgogICAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYy5hbmltYXRpb25GcmFtZQogICAgICAgKiBAcGFyYW0ge251bWJlcn0gaGFuZGxlIEhhbmRsZSByZXR1cm5lZCBmcm9tIGBydW5gIG9mIGNhbGxiYWNrIHRvIGNhbmNlbAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2FuY2Vs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iBwcm9wZXJ0eS4KICAgICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgTmFtZSBvZiB0aGUgcHJvcGVydHkKICAgICAgICAgKiBAcGFyYW0ge2Jvb2xlYW49fSByZWFkT25seSBXaGVuIHRydWUsIG5vIHNldHRlciBpcyBjcmVhdGVkCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICAgX2RlZmluZVByb3BlcnR5QWNjZXNzb3IocHJvcGVydHksIHJlYWRPbmx5KSB7CiAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgcHJvcGVydHksIHsKICAgICAgICAgICAgLyogZXNsaW50LWRpc2FibGUgdmFsaWQtanNkb2MgKi8KICAgICAgICAgICAgLyoqIEB0aGlzIHtQcm9wZXJ0aWVzQ2hhbmdlZH0gKi8KICAgICAgICAgICAgZ2V0KCkgewogICAgICAgICAgICAgIHJldHVybiB0aGlzLl9nZXRQcm9wZXJ0eShwcm9wZXJ0eSk7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIC8qKiBAdGhpcyB7UHJvcGVydGllc0NoYW5nZWR9ICovCiAgICAgICAgICAgIHNldDogcmVhZE9ubHkgPyBmdW5jdGlvbiAoKSB7fSA6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgIHRoaXMuX3NldFByb3BlcnR5KHByb3BlcnR5LCB2YWx1ZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLyogZXNsaW50LWVuYWJsZSAqLwogICAgICAgICAgfSk7CiAgICAgICAgfQoKICAgICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICAgIHN1cGVyKCk7CiAgICAgICAgICB0aGlzLl9fZGF0YUVuYWJsZWQgPSBmYWxzZTsKICAgICAgICAgIHRoaXMuX19kYXRhUmVhZHkgPSBmYWxzZTsKICAgICAgICAgIHRoaXMuX19kYXRhSW52YWxpZCA9IGZhbHNlOwogICAgICAgICAgdGhpcy5fX2RhdGEgPSB7fTsKICAgICAgICAgIHRoaXMuX19kYXRhUGVuZGluZyA9IG51bGw7CiAgICAgICAgICB0aGlzLl9fZGF0YU9sZCA9IG51bGw7CiAgICAgICAgICB0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMgPSBudWxsOwogICAgICAgICAgdGhpcy5fX3NlcmlhbGl6aW5nID0gZmFsc2U7CiAgICAgICAgICB0aGlzLl9pbml0aWFsaXplUHJvcGVydGllcygpOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogTGlmZWN5Y2xlIGNhbGxiYWNrIGNhbGxlZCB3aGVuIHByb3BlcnRpZXMgYXJlIGVuYWJsZWQgdmlhCiAgICAgICAgICogYF9lbmFibGVQcm9wZXJ0aWVzYC4KICAgICAgICAgKgogICAgICAgICAqIFVzZXJzIG1heSBvdmVycmlkZSB0aGlzIGZ1bmN0aW9uIHRvIGltcGxlbWVudCBiZWhhdmlvciB0aGF0IGlzCiAgICAgICAgICogZGVwZW5kZW50IG9uIHRoZSBlbGVtZW50IGhhdmluZyBpdHMgcHJvcGVydHkgZGF0YSBpbml0aWFsaXplZCwgZS5nLgogICAgICAgICAqIGZyb20gZGVmYXVsdHMgKGluaXRpYWxpemVkIGZyb20gYGNvbnN0cnVjdG9yYCwgYF9pbml0aWFsaXplUHJvcGVydGllc2ApLAogICAgICAgICAqIGBhdHRyaWJ1dGVDaGFuZ2VkQ2FsbGJhY2tgLCBvciB2YWx1ZXMgcHJvcGFnYXRlZCBmcm9tIGhvc3QgZS5nLiB2aWEKICAgICAgICAgKiBiaW5kaW5ncy4gIGBzdXBlci5yZWFkeSgpYCBtdXN0IGJlIGNhbGxlZCB0byBlbnN1cmUgdGhlIGRhdGEgc3lzdGVtCiAgICAgICAgICogYmVjb21lcyBlbmFibGVkLgogICAgICAgICAqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKiBAcHVibGljCiAgICAgICAgICovCiAgICAgICAgcmVhZHkoKSB7Ci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AgICAgICAgICAgICAgZGVsZXRlIHRoaXNbcF07CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIENhbGxlZCBhdCByZWFkeSB0aW1lIHdpdGggYmFnIG9mIGluc3RhbmNlIHByb3BlcnRpZXMgdGhhdCBvdmVyd3JvdGUKICAgICAgICAgKiBhY2Nlc3NvcnMgd2hlbiB0aGUgZWxlbWVudCB1cGdyYWRlZC4KICAgICAgICAgKgogICAgICAgICAqIFRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIHNldHMgdGhlc2UgcHJvcGVydGllcyBiYWNrIGludG8gdGhlCiAgICAgICAgICogc2V0dGVyIGF0IHJlYWR5IHRpbWUuICBUaGlzIG1ldGhvZCBpcyBwcm92aWRlZCBhcyBhbiBvdmVycmlkZQogICAgICAgICAqIHBvaW50IGZvciBjdXN0b21pemluZyBvciBwcm92aWRpbmcgbW9yZSBlZmZpY2llbnQgaW5pdGlhbGl6YXRpb24uCiAgICAgICAgICoKICAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gcHJvcHMgQmFnIG9mIHByb3BlcnR5IHZhbHVlcyB0aGF0IHdlcmUgb3ZlcndyaXR0ZW4KICAgICAgICAgKiAgIHdoZW4gY3JlYXRpbmcgcHJvcGVydHkgYWNjZXNzb3JzLgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9pbml0aWFsaXplSW5zdGFuY2VQcm9wZXJ0aWVzKHByb3BzKSB7CiAgICAgICAgICBPYmplY3QuYXNzaWduKHRoaXMsIHByb3BzKTsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIFVwZGF0ZXMgdGhlIGxvY2FsIHN0b3JhZ2UgZm9yIGEgcHJvcGVydHkgKHZpYSBgX3NldFBlbmRpbmdQcm9wZXJ0eWApCiAgICAgICAgICogYW5kIGVucXVldWVzIGEgYF9wcm9lcHJ0aWVzQ2hhbmdlZGAgY2FsbGJhY2suCiAgICAgICAgICoKICAgICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgTmFtZSBvZiB0aGUgcHJvcGVydHkKICAgICAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFZhbHVlIHRvIHNldAogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9zZXRQcm9wZXJ0eShwcm9wZXJ0eSwgdmFsdWUpIHsKICAgICAgICAgIGlmICh0aGlzLl9zZXRQZW5kaW5nUHJvcGVydHkocHJvcGVydHksIHZhbHVlKSkgewogICAgICAgICAgICB0aGlzLl9pbnZhbGlkYXRlUHJvcGVydGllcygpOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB0aGUgdmFsdWUgZm9yIHRoZSBnaXZlbiBwcm9wZXJ0eS4KICAgICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgTmFtZSBvZiBwcm9wZXJ0eQogICAgICAgICAqIEByZXR1cm4geyp9IFZhbHVlIGZvciB0aGUgZ2l2ZW4gcHJvcGVydHkKICAgICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAgICovCiAgICAgICAgX2dldFByb3BlcnR5KHByb3BlcnR5KSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5fX2RhdGFbcHJvcGVydHldOwogICAgICAgIH0KCiAgICAgICAgLyogZXNsaW50LWRpc2FibGUgbm8tdW51c2VkLXZhcnMgKi8KICAgICAgICAvKioKICAgICAgICAgKiBVcGRhdGVzIHRoZSBsb2NhbCBzdG9yYWdlIGZvciBhIHByb3BlcnR5LCByZWNvcmRzIHRoZSBwcmV2aW91cyB2YWx1ZSwKICAgICAgICAgKiBhbmQgYWRkcyBpdCB0byB0aGUgc2V0IG9mICJwZW5kaW5nIGNoYW5nZXMiIHRoYXQgd2lsbCB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dGhpcy5fX2RhdGFPbGQpKSB7CiAgICAgICAgICAgICAgdGhpcy5fX2RhdGFPbGRbcHJvcGVydHldID0gb2xkOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHRoaXMuX19kYXRhW3Byb3BlcnR5XSA9IHZhbHVlOwogICAgICAgICAgICB0aGlzLl9fZGF0YVBlbmRpbmdbcHJvcGVydHldID0gdmFsdWU7CiAgICAgICAgICB9CiAgICAgICAgICByZXR1cm4gY2hhbmdlZDsKICAgICAgICB9CiAgICAgICAgLyogZXNsaW50LWVuYWJsZSAqLwoKICAgICAgICAvKioKICAgICAgICAgKiBNYXJrcyB0aGUgcHJvcGVydGllcyBhcyBpbnZhbGlkLCBhbmQgZW5xdWV1ZXMgYW4gYXN5bmMKICAgICAgICAgKiBgX3Byb3BlcnRpZXNDaGFuZ2VkYCBjYWxsYmFjay4KICAgICAgICAgKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9pbnZhbGlkYXRlUHJvcGVydGllcygpIHsKICAgICAgICAgIGlmICghdGhpcy5fX2RhdGFJbnZhbGlkICYmIHRoaXMuX19kYXRhUmVhZHkpIHsKICAgICAgICAgICAgdGhpcy5fX2RhdGFJbnZhbGlkID0gdHJ1ZTsKICAgICAgICAgICAgbWljcm90YXNrLnJ1bigoKSA9PiB7CiAgICAgICAgICAgICAgaWYgKHRoaXMuX19kYXRhSW52YWxpZCkgewogICAgICAgICAgICAgICAgdGhpcy5fX2RhdGFJbnZhbGlkID0gZmFsc2U7CiAgICAgICAgICAgICAgICB0aGlzLl9mbHVzaFByb3BlcnRpZXMoKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQ2FsbCB0byBlbmFibGUgcHJvcGVydHkgYWNjZXNzb3IgcHJvY2Vzc2luZy4gQmVmb3JlIHRoaXMgbWV0aG9kIGlzCiAgICAgICAgICogY2FsbGVkIGFjY2Vzc29yIHZhbHVlcyB3aWxsIGJlIHNldCBidXQgc2lkZSBlZmZlY3RzIGFyZQogICAgICAgICAqIHF1ZXVlZC4gV2hlbiBjYWxsZWQsIGFueSBwZW5kaW5nIHNpZGUgZWZmZWN0cyBvY2N1ciBpbW1lZGlhdGVseS4KICAgICAgICAgKiBGb3IgZWxlbWVudHMsIGdlbmVyYWxseSBgY29ubmVjdGVkQ2FsbGJhY2tgIGlzIGEgbm9ybWFsIHNwb3QgdG8gZG8gc28uCiAgICAgICAgICogSXQgaXMgc2FmZSB0byBjYWxsIHRoaXMgbWV0aG9kIG11bHRpcGxlIHRpbWVzIGFzIGl0IG9ubHkgdHVybnMgb24KICAgICAgICAgKiBwcm9wZXJ0eSBhY2Nlc3NvcnMgb25jZS4KICAgICAgICAgKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9lbmFibGVQcm9wZXJ0aWVzKCkgewogICAgICAgICAgaWYgKCF0aGlzLl9fZGF0YUVuYWJsZWQpIHsKICAgICAgICAgICAgdGhpcy5fX2RhdGFFbmFibGVkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKHRoaXMuX19kYXRhSW5zdGFuY2VQcm9wcykgewogICAgICAgICAgICAgIHRoaXMuX2luaXRpYWxpemVJbnN0YW5jZVByb3BlcnRpZXModGhpcy5fX2RhdGFJbnN0YW5jZVByb3BzKTsKICAgICAgICAgICAgICB0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMgPSBudWxsOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHRoaXMucmVhZHkoKTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIENhbGxzIHRoZSBgX3Byb3BlcnRpZXNDaGFuZ2VkYCBjYWxsYmFjayB3aXRoIHRoZSBjdXJyZW50IHNldCBvZgogICAgICAgICA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QgaW1wbGVtZW50aW9uIHRvIHNlcmlhbGl6ZSBvYmplY3RzIGFzIEpTT04uCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7Kn0gdmFsdWUgUHJvcGVydHkgdmFsdWUgdG8gc2VyaWFsaXplLgogICAgICAgKiBAcmV0dXJuIHtzdHJpbmcgfCB1bmRlZmluZWR9IFN0cmluZyBzZXJpYWxpemVkIGZyb20gdGhlIHByb3ZpZGVkIHByb3BlcnR5IHZhbHVlLgogICAgICAgKi8KICAgICAgX3NlcmlhbGl6ZVZhbHVlKHZhbHVlKSB7CiAgICAgICAgLyogZXNsaW50LWRpc2FibGUgbm8tZmFsbHRocm91Z2ggKi8KICAgICAgICBzd2l0Y2ggKHR5cGVvZiB2YWx1ZSkgewogICAgICAgICAgY2FzZSAnb2JqZWN0JzoKICAgICAgICAgICAgaWYgKHZhbHVlIGluc3RhbmNlb2YgRGF0ZSkgewogICAgICAgICAgICAgIHJldHVybiB2YWx1ZS50b1N0cmluZygpOwogICAgICAgICAgICB9IGVsc2UgaWYgKHZhbHVlKSB7CiAgICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh2YWx1ZSk7CiAgICAgICAgICAgICAgfSBjYXRjaCh4KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gJyc7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIHN1cGVyLl9zZXJpYWxpemVWYWx1ZSh2YWx1ZSk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogQ29udmVydHMgYSBzdHJpbmcgdG8gYSB0eXBlZCBKYXZhU2NyaXB0IHZhbHVlLgogICAgICAgKgogICAgICAgKiBUaGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgUG9seW1lciB3aGVuIHJlYWRpbmcgSFRNTCBhdHRyaWJ1dGUgdmFsdWVzIHRvCiAgICA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gKiBjb250YWlucyBhbiBgaW5kZXhgIChgY2hpbGROb2Rlc2AgaW5kZXggaW4gcGFyZW50KSBhbmQgb3B0aW9uYWxseQogICAgICAgKiBgcGFyZW50YCwgd2hpY2ggcG9pbnRzIHRvIG5vZGUgaW5mbyBvZiBpdHMgcGFyZW50IChpbmNsdWRpbmcgaXRzIGluZGV4KS4KICAgICAgICoKICAgICAgICogVGhlIHRlbXBsYXRlIG1ldGFkYXRhIG9iamVjdCByZXR1cm5lZCBmcm9tIHRoaXMgbWV0aG9kIGhhcyB0aGUgZm9sbG93aW5nCiAgICAgICAqIHN0cnVjdHVyZSAobWFueSBmaWVsZHMgb3B0aW9uYWwpOgogICAgICAgKgogICAgICAgKiBgYGBqcwogICAgICAgKiAgIHsKICAgICAgICogICAgIC8vIEZsYXR0ZW5lZCBsaXN0IG9mIG5vZGUgbWV0YWRhdGEgKGZvciBub2RlcyB0aGF0IGdlbmVyYXRlZCBtZXRhZGF0YSkKICAgICAgICogICAgIG5vZGVJbmZvTGlzdDogWwogICAgICAgKiAgICAgICB7CiAgICAgICAqICAgICAgICAgLy8gYGlkYCBhdHRyaWJ1dGUgZm9yIGFueSBub2RlcyB3aXRoIGlkJ3MgZm9yIGdlbmVyYXRpbmcgYCRgIG1hcAogICAgICAgKiAgICAgICAgIGlkOiB7c3RyaW5nfSwKICAgICAgICogICAgICAgICAvLyBgb24tZXZlbnQ9ImhhbmRsZXIiYCBtZXRhZGF0YQogICAgICAgKiAgICAgICAgIGV2ZW50czogWwogICAgICAgKiAgICAgICAgICAgewogICAgICAgKiAgICAgICAgICAgICBuYW1lOiB7c3RyaW5nfSwgICAvLyBldmVudCBuYW1lCiAgICAgICAqICAgICAgICAgICAgIHZhbHVlOiB7c3RyaW5nfSwgIC8vIGhhbmRsZXIgbWV0aG9kIG5hbWUKICAgICAgICogICAgICAgICAgIH0sIC4uLgogICAgICAgKiAgICAgICAgIF0sCiAgICAgICAqICAgICAgICAgLy8gTm90ZXMgd2hlbiB0aGUgdGVtcGxhdGUgY29udGFpbmVkIGEgYDxzbG90PmAgZm9yIHNoYWR5IERPTQogICAgICAgKiAgICAgICAgIC8vIG9wdGltaXphdGlvbiBwdXJwb3NlcwogICAgICAgKiAgICAgICAgIGhhc0luc2VydGlvblBvaW50OiB7Ym9vbGVhbn0sCiAgICAgICAqICAgICAgICAgLy8gRm9yIG5lc3RlZCBgPHRlbXBsYXRlPmBgIG5vZGVzLCBuZXN0ZWQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogICAgICAgICB0ZW1wbGF0ZUluZm86IHtvYmplY3R9LCAvLyBuZXN0ZWQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogICAgICAgICAvLyBNZXRhZGF0YSB0byBhbGxvdyBlZmZpY2llbnQgcmV0cmlldmFsIG9mIGluc3RhbmNlZCBub2RlCiAgICAgICAqICAgICAgICAgLy8gY29ycmVzcG9uZGluZyB0byB0aGlzIG1ldGFkYXRhCiAgICAgICAqICAgICAgICAgcGFyZW50SW5mbzoge251bWJlcn0sICAgLy8gcmVmZXJlbmNlIHRvIHBhcmVudCBub2RlSW5mbz4KICAgICAgICogICAgICAgICBwYXJlbnRJbmRleDoge251bWJlcn0sICAvLyBpbmRleCBpbiBwYXJlbnQncyBgY2hpbGROb2Rlc2AgY29sbGVjdGlvbgogICAgICAgKiAgICAgICAgIGluZm9JbmRleDoge251bWJlcn0sICAgIC8vIGluZGV4IG9mIHRoaXMgYG5vZGVJbmZvYCBpbiBgdGVtcGxhdGVJbmZvLm5vZGVJbmZvTGlzdGAKICAgICAgICogICAgICAgfSwKICAgICAgICogICAgICAgLi4uCiAgICAgICAqICAgICBdLAogICAgICAgKiAgICAgLy8gV2hlbiB0cnVlLCB0aGUgdGVtcGxhdGUgaGFkIHRoZSBgc3RyaXAtd2hpdGVzcGFjZWAgYXR0cmlidXRlCiAgICAgICAqICAgICAvLyBvciB3YXMgbmVzdGVkIGluIGEgdGVtcGxhdGUgd2l0aCB0aGF0IHNldH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AgICAgd2Fsa2VyLmN1cnJlbnROb2RlID0gbm9kZTsKICAgICAgICAgIG5leHQgPSB3YWxrZXIubmV4dFNpYmxpbmcoKTsKICAgICAgICAgIGlmIChub2RlLm5vZGVUeXBlID09PSBOb2RlLlRFWFRfTk9ERSkgewogICAgICAgICAgICBsZXQgLyoqIE5vZGUgKi8gbiA9IG5leHQ7CiAgICAgICAgICAgIHdoaWxlIChuICYmIChuLm5vZGVUeXBlID09PSBOb2RlLlRFWFRfTk9ERSkpIHsKICAgICAgICAgICAgICBub2RlLnRleHRDb250ZW50ICs9IG4udGV4dENvbnRlbnQ7CiAgICAgICAgICAgICAgbmV4dCA9IHdhbGtlci5uZXh0U2libGluZygpOwogICAgICAgICAgICAgIHJvb3QucmVtb3ZlQ2hpbGQobik7CiAgICAgICAgICAgICAgbiA9IG5leHQ7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLy8gb3B0aW9uYWxseSBzdHJpcCB3aGl0ZXNwYWNlCiAgICAgICAgICAgIGlmICh0ZW1wbGF0ZUluZm8uc3RyaXBXaGl0ZVNwYWNlICYmICFub2RlLnRleHRDb250ZW50LnRyaW0oKSkgewogICAgICAgICAgICAgIHJvb3QucmVtb3ZlQ2hpbGQobm9kZSk7CiAgICAgICAgICAgICAgY29udGludWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIGxldCBjaGlsZEluZm8gPSB7IHBhcmVudEluZGV4LCBwYXJlbnRJbmZvOiBub2RlSW5mbyB9OwogICAgICAgICAgaWYgKHRoaXMuX3BhcnNlVGVtcGxhdGVOb2RlKG5vZGUsIHRlbXBsYXRlSW5mbywgY2hpbGRJbmZvKSkgewogICAgICAgICAgICBjaGlsZEluZm8uaW5mb0luZGV4ID0gdGVtcGxhdGVJbmZvLm5vZGVJbmZvTGlzdC5wdXNoKC8qKiBAdHlwZSB7IU5vZGVJbmZvfSAqLyhjaGlsZEluZm8pKSAtIDE7CiAgICAgICAgICB9CiAgICAgICAgICAvLy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AgICAgbm9kZUluZm8uZXZlbnRzID0gbm9kZUluZm8uZXZlbnRzIHx8IFtdOwogICAgICAgICAgbm9kZUluZm8uZXZlbnRzLnB1c2goewogICAgICAgICAgICBuYW1lOiBuYW1lLnNsaWNlKDMpLAogICAgICAgICAgICB2YWx1ZQogICAgICAgICAgfSk7CiAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICB9CiAgICAgICAgLy8gc3RhdGljIGlkCiAgICAgICAgZWxzZSBpZiAobmFtZSA9PT0gJ2lkJykgewogICAgICAgICAgbm9kZUluZm8uaWQgPSB2YWx1ZTsKICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIHRoZSBgY29udGVudGAgZG9jdW1lbnQgZnJhZ21lbnQgZm9yIGEgZ2l2ZW4gdGVtcGxhdGUuCiAgICAgICAqCiAgICAgICAqIEZvciBuZXN0ZWQgdGVtcGxhdGVzLCBQb2x5bWVyIHBlcmZvcm1zIGFuIG9wdGltaXphdGlvbiB0byBjYWNoZSBuZXN0ZWQKICAgICAgICogdGVtcGxhdGUgY29udGVudCB0byBhdm9pZCB0aGUgY29zdCBvZiBjbG9uaW5nIGRlZXBseSBuZXN0ZWQgdGVtcGxhdGVzLgogICAgICAgKiBUaGlzIG1ldGhvZCByZXRyaWV2ZXMgdGhlIGNhY2hlZCBjb250ZW50IGZvciBhIGdpdmVuIHRlbXBsYXRlLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge0hUTUxUZW1wbGF0ZUVsZW1lbnR9IHRlbXBsYXRlIFRlbXBsYXRlIHRvIHJldHJpZXZlIGBjb250ZW50YCBmb3IKICAgICAgICogQHJldHVybiB7RG9jdW1lbnRGcmFnbWVudH0gQ29udGVudCBmcmFnbWVudAogICAgICAgKi8KICAgICAgc3RhdGljIF9jb250ZW50Rm9yVGVtcGxhdGUodGVtcGxhdGUpIHs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dVTUVOVCA9ICcoPzooJyArIElERU5UICsgJ3wnICsgTlVNQkVSICsgJ3wnICsgIFNUUklORyArICcpXFxzKicgKyAnKSc7CiAgY29uc3QgQVJHVU1FTlRTID0gJyg/OicgKyBBUkdVTUVOVCArICcoPzosXFxzKicgKyBBUkdVTUVOVCArICcpKicgKyAnKSc7CiAgY29uc3QgQVJHVU1FTlRfTElTVCA9ICcoPzonICsgJ1xcKFxccyonICsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnKD86JyArIEFSR1VNRU5UUyArICc/JyArICcpJyArCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdcXClcXHMqJyArICcpJzsKICBjb25zdCBCSU5ESU5HID0gJygnICsgSURFTlQgKyAnXFxzKicgKyBBUkdVTUVOVF9MSVNUICsgJz8nICsgJyknOyAvLyBHcm91cCAzCiAgY29uc3QgT1BFTl9CUkFDS0VUID0gJyhcXFtcXFt8e3spJyArICdcXHMqJzsKICBjb25zdCBDTE9TRV9CUkFDS0VUID0gJyg/Ol1dfH19KSc7CiAgY29uc3QgTkVHQVRFID0gJyg/OighKVxccyopPyc7IC8vIEdyb3VwIDIKICBjb25zdCBFWFBSRVNTSU9OID0gT1BFTl9CUkFDS0VUICsgTkVHQVRFICsgQklORElORyArIENMT1NFX0JSQUNLRVQ7CiAgY29uc3QgYmluZGluZ1JlZ2V4ID0gbmV3IFJlZ0V4cChFWFBSRVNTSU9OLCAiZyIpOwoKICAvKioKICAgKiBDcmVhdGUgYSBzdHJpbmcgZnJvbSBiaW5kaW5nIHBhcnRzIG9mIGFsbCB0aGUgbGl0ZXJhbCBwYXJ0cwogICAqCiAgICogQHBhcmFtIHshQXJyYXk8QmluZGluZ1BhcnQ+fSBwYXJ0cyBBbGwgcGFydHMgdG8gc3RyaW5naWZ5CiAgICogQHJldHVybiB7c3RyaW5nfSBTdHJpbmcgbWFkZSBmcm9tIHRoZSBsaXRlcmFsIHBhcnRzCiAgICovCiAgZnVuY3Rpb24gbGl0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GhzOwogICAgICAgIC8qKiBAdHlwZSB7Ym9vbGVhbn0gKi8KICAgICAgICB0aGlzLl9fZGF0YUhhc1BhdGhzOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19kYXRhQ29tcG91bmRTdG9yYWdlOwogICAgICAgIC8qKiBAdHlwZSB7UG9seW1lcl9Qcm9wZXJ0eUVmZmVjdHN9ICovCiAgICAgICAgdGhpcy5fX2RhdGFIb3N0OwogICAgICAgIC8qKiBAdHlwZSB7IU9iamVjdH0gKi8KICAgICAgICB0aGlzLl9fZGF0YVRlbXA7CiAgICAgICAgLyoqIEB0eXBlIHtib29sZWFufSAqLwogICAgICAgIHRoaXMuX19kYXRhQ2xpZW50c0luaXRpYWxpemVkOwogICAgICAgIC8qKiBAdHlwZSB7IU9iamVjdH0gKi8KICAgICAgICB0aGlzLl9fZGF0YTsKICAgICAgICAvKiogQHR5cGUgeyFPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nOwogICAgICAgIC8qKiBAdHlwZSB7IU9iamVjdH0gKi8KICAgICAgICB0aGlzLl9fZGF0YU9sZDsKICAgICAgICAvKiogQHR5cGUge09iamVjdH0gKi8KICAgICAgICB0aGlzLl9fY29tcHV0ZUVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX3JlZmxlY3RFZmZlY3RzOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19ub3RpZnlFZmZlY3RzOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19wcm9wYWdhdGVFZmZlY3RzOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19vYnNlcnZlRWZmZWN0czsKICAgICAgICAvKiogQHR5cGUge09iamVjdH0gKi8KICAgICAgICB0aGlzLl9fcmV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EKICAgICAgICogbW9yZSBlZmZpY2llbnQgaW1wbGVtZW50YXRpb24gb2YgaW5pdGlhbGl6aW5nIHByb3BlcnRpZXMgZnJvbQogICAgICAgKiB0aGUgcHJvdG90eXBlIG9uIHRoZSBpbnN0YW5jZS4KICAgICAgICoKICAgICAgICogQG92ZXJyaWRlCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBwcm9wcyBQcm9wZXJ0aWVzIHRvIGluaXRpYWxpemUgb24gdGhlIHByb3RvdHlwZQogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgX2luaXRpYWxpemVQcm90b1Byb3BlcnRpZXMocHJvcHMpIHsKICAgICAgICB0aGlzLl9fZGF0YSA9IE9iamVjdC5jcmVhdGUocHJvcHMpOwogICAgICAgIHRoaXMuX19kYXRhUGVuZGluZyA9IE9iamVjdC5jcmVhdGUocHJvcHMpOwogICAgICAgIHRoaXMuX19kYXRhT2xkID0ge307CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBPdmVycmlkZXMgYFBvbHltZXIuUHJvcGVydHlBY2Nlc3NvcnNgIGltcGxlbWVudGF0aW9uIHRvIGF2b2lkIHNldHRpbmcKICAgICAgICogYF9zZXRQcm9wZXJ0eWAncyBgc2hvdWxkTm90aWZ5OiB0cnVlYC4KICAgICAgICoKICAgICAgICogQG92ZXJyaWRlCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBwcm9wcyBQcm9wZXJ0aWVzIHRvIGluaXRpYWxpemUgb24gdGhlIGluc3RhbmNlCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfaW5pdGlhbGl6ZUluc3RhbmNlUHJvcGVydGllcyhwcm9wcykgewogICAgICAgIGxldCByZWFkT25seSA9IHRoaXNbVFlQRVMuUkVBRF9PTkxZXTsKICAgICAgICBmb3IgKGxldCBwcm9wIGluIHByb3BzKSB7CiAgICAgICAgICBpZiAoIXJlYWRPbmx5IHx8ICFyZW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wogICAgICAgIGlmIChjbGllbnQgIT09IHRoaXMpIHsKICAgICAgICAgIHRoaXMuX19kYXRhUGVuZGluZ0NsaWVudHMucHVzaChjbGllbnQpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIE92ZXJyaWRlcyBzdXBlcmNsYXNzIGltcGxlbWVudGF0aW9uLgogICAgICAgKgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAqLwogICAgICBfZmx1c2hQcm9wZXJ0aWVzKCkgewogICAgICAgIHRoaXMuX19kYXRhQ291bnRlcisrOwogICAgICAgIHN1cGVyLl9mbHVzaFByb3BlcnRpZXMoKTsKICAgICAgICB0aGlzLl9fZGF0YUNvdW50ZXItLTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEZsdXNoZXMgYW55IGNsaWVudHMgcHJldmlvdXNseSBlbnF1ZXVlZCB2aWEgYF9lbnF1ZXVlQ2xpZW50YCwgY2F1c2luZwogICAgICAgKiB0aGVpciBgX2ZsdXNoUHJvcGVydGllc2AgbWV0aG9kIHRvIHJ1bi4KICAgICAgICoKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2ZsdXNoQ2xpZW50cygpIHsKICAgICAgICBpZiAoIXRoaXMuX19kYXRhQ2xpZW50c1JlYWR5KSB7CiAgICAgICAgICB0aGlzLl9fZGF0YUNsaWVudHNSZWFkeSA9IHRydWU7CiAgICAgICAgICB0aGlzLl9yZWFkeUNsaWVudHMoKTsKICAgICAgICAgIC8vIE92ZXJyaWRlIHBvaW50IHdoZXJlIGFjY2Vzc29ycyBhcmUgdHVybmVkIG9uOyBpbXBvcnRhbnRseSwKICAgICAgICAgIC8vIHRoaXMgaXMgYWZ0ZXIgY2xpZW50cyBoYXZlIGZ1bGx5IHJlYWRpZWQsIHByb3ZpZGluZyBhIGd1YXJhbnRlZQogICAgICAgICAgLy8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SBzdGFtcGVkIGRvbSBlbmFibGVzLgogICAgICBfX2VuYWJsZU9yRmx1c2hDbGllbnRzKCkgewogICAgICAgIGxldCBjbGllbnRzID0gdGhpcy5fX2RhdGFQZW5kaW5nQ2xpZW50czsKICAgICAgICBpZiAoY2xpZW50cykgewogICAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nQ2xpZW50cyA9IG51bGw7CiAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBjbGllbnRzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIGxldCBjbGllbnQgPSBjbGllbnRzW2ldOwogICAgICAgICAgICBpZiAoIWNsaWVudC5fX2RhdGFFbmFibGVkKSB7CiAgICAgICAgICAgICAgY2xpZW50Ll9lbmFibGVQcm9wZXJ0aWVzKCk7CiAgICAgICAgICAgIH0gZWxzZSBpZiAoY2xpZW50Ll9fZGF0YVBlbmRpbmcpIHsKICAgICAgICAgICAgICBjbGllbnQuX2ZsdXNoUHJvcGVydGllcygpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogUGVyZm9ybSBhbnkgaW5pdGlhbCBzZXR1cCBvbiBjbGllbnQgZG9tLiBDYWxsZWQgYmVmb3JlIHRoZSBmaXJzdAogICAgICAgKiBgX2ZsdXNoUHJvcGVydGllc2AgY2FsbCBvbiBjbGllbnQgZG9tIGFuZCBiZWZvcmUgYW55IGVsZW1lbnQKICAgICAgICogb2JzZXJ2ZXJzIGFyZSBjYWxsZWQuCiAgICAgICAqCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqIEBwcm90ZWN0ZWQKICAgICAgICovCiAgICAgIF9yZWFkeUNsaWVudHMoKSB7CiAgICAgICAgdGhpcy5fX2VuYWJsZU9yRmx1c2hDbGllbnRzKCk7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBTZXRzIGEgYmFnIG9mIHByb3BlcnR5IGNoYW5nZXMgdG8g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iBUaGUgYXJndW1lbnRzIGFmdGVyIGBwYXRoYCBhbmQgcmV0dXJuIHZhbHVlIG1hdGNoIHRoYXQgb2YKICAgICAgICogYEFycmF5LnByb3RvdHlwZS5wb3BgLgogICAgICAgKgogICAgICAgKiBUaGlzIG1ldGhvZCBub3RpZmllcyBvdGhlciBwYXRocyB0byB0aGUgc2FtZSBhcnJheSB0aGF0IGEKICAgICAgICogc3BsaWNlIG9jY3VycmVkIHRvIHRoZSBhcnJheS4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmcgfCAhQXJyYXk8c3RyaW5nfG51bWJlcj59IHBhdGggUGF0aCB0byBhcnJheS4KICAgICAgICogQHJldHVybiB7Kn0gSXRlbSB0aGF0IHdhcyByZW1vdmVkLgogICAgICAgKiBAcHVibGljCiAgICAgICAqLwogICAgICBzaGlmdChwYXRoKSB7CiAgICAgICAgbGV0IGluZm8gPSB7cGF0aDogJyd9OwogICAgICAgIGxldCBhcnJheSA9IC8qKiBAdHlwZSB7QXJyYXl9ICovKFBvbHltZXIuUGF0aC5nZXQodGhpcywgcGF0aCwgaW5mbykpOwogICAgICAgIGxldCBoYWRMZW5ndGggPSBCb29sZWFuKGFycmF5Lmxlbmd0aCk7CiAgICAgICAgbGV0IHJldCA9IGFycmF5LnNoaWZ0KCk7CiAgICAgICAgaWYgKGhhZExlbmd0aCkgewogICAgICAgICAgbm90aWZ5U3BsaWNlKHRoaXMsIGFycmF5LCBpbmZvLnBhdGgsIDAsIDAsIFtyZXRdKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJldDsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEFkZHMgaXRlbXMgb250byB0aGUgYmVnaW5uaW5nIG9mIHRoZSBhcnJheSBhdCB0aGUgcGF0aCBzcGVjaWZpZWQuCiAgICAgICAqCiAgICAgICAqIFRoZSBhcmd1bWVudHMgYWZ0ZXIgYHBhdGhgIGFuZCByZXR1cm4gdmFsdWUgbWF0Y2ggdGhhdCBvZgogICAgICAgKiBgQXJyYXkucHJvdG90eXBlLnB1c2hgLgogICAgICAgKgogICAgICAgKiBUaGlzIG1ldGhvZCBub3RpZmllcyBvdGhlciBwYXRocyB0byB0aGUgc2FtZSBhcnJheSB0aGF0IGEKICAgICAgICogc3BsaWNlIG9jY3VycmVkIHRvIHRoZSBhcnJheS4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmcgfCAhQXJyYXk8c3RyaW5nfG51bWJlcj59IHBhdGggUGF0aCB0byBhcnJheS4KICAgICAgICogQHBhcmFtIHsuLi4qfSBpdGVtcyBJdGVtcyB0byBpbnNlcnQgaW5mbyBhcnJheQogICAgICAgKiBAcmV0dXJuIHtudW1iZXJ9IE5ldyBsZW5ndGggb2YgdGhlIGFycmF5LgogICAgICAgKiBAcHVibGljCiAgICAgICAqLwogICAgICB1bnNoaWZ0KHBhdGgsIC4uLml0ZW1zKSB7CiAgICAgICAgbGV0IGluZm8gPSB7cGF0aDogJyd9OwogICAgICAgIGxldCBhcnJheSA9IC8qKiBAdHlwZSB7QXJyYXl9ICovKFBvbHltZXIuUGF0aC5nZXQodGhpcywgcGF0aCwgaW5mbykpOwogICAgICAgIGxldCByZXQgPSBhcnJheS51bnNoaWZ0KC4uLml0ZW1zKTsKICAgICAgICBpZiAoaXRlbXMubGVuZ3RoKSB7CiAgICAgICAgICBub3RpZnlTcGxpY2UodGhpcywgYXJyYXksIGluZm8ucGF0aCwgMCwgaXRlbXMubGVuZ3RoLCBbXSk7CiAgICAgICAgfQogICAgICAgIHJldHVybiByZXQ7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBOb3RpZnkgdGhhdCBhIHBhdGggaGFzIGNoYW5nZWQuCiAgICAgICAqCiAgICAgICAqIEV4YW1wbGU6CiAgICAgICAqCiAgICAgICAqICAgICB0aGlzLml0ZW0udXNlci5uYW1lID0gJ0JvYic7CiAgICAgICAqICAgICB0aGlzLm5vdGlmeVBhdGgoJ2l0ZW0udXNlci5uYW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dWx0IG9mIGEgcGF0aCBub3RpZmljYXRpb24uCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7IUFycmF5PCFNZXRob2RBcmc+fSBhcmdzIEFycmF5IG9mIGFyZ3VtZW50IG1ldGFkYXRhCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwYXRoIFByb3BlcnR5L3BhdGggbmFtZSB0aGF0IHRyaWdnZXJlZCB0aGUgbWV0aG9kIGVmZmVjdAogICAgICAgKiBAcGFyYW0ge09iamVjdH0gcHJvcHMgQmFnIG9mIGN1cnJlbnQgcHJvcGVydHkgY2hhbmdlcwogICAgICAgKiBAcmV0dXJuIHtBcnJheTwqPn0gQXJyYXkgb2YgYXJndW1lbnQgdmFsdWVzCiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICBfbWFyc2hhbEFyZ3MoYXJncywgcGF0aCwgcHJvcHMpIHsKICAgICAgICBjb25zdCBkYXRhID0gdGhpcy5fX2RhdGE7CiAgICAgICAgbGV0IHZhbHVlcyA9IFtdOwogICAgICAgIGZvciAobGV0IGk9MCwgbD1hcmdzLmxlbmd0aDsgaTxsOyBpKyspIHsKICAgICAgICAgIGxldCBhcmcgPSBhcmdzW2ldOwogICAgICAgICAgbGV0IG5hbWUgPSBhcmcubmFtZTsKICAgICAgICAgIGxldCB2OwogICAgICAgICAgaWYgKGFyZy5saXRlcmFsKSB7CiAgICAgICAgICAgIHYgPSBhcmcudmFsdWU7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpZiAoYXJnLnN0cnVjdHVyZWQpIHsKICAgICAgICAgICAgICB2ID0gUG9seW1lci5QYXRoLmdldChkYXRhLCBuYW1lKTsKICAgICAgICAgICAgICAvLyB3aGVuIGRhdGEgaXMgbm90IHN0b3JlZCBlLmcuIGBzcGxpY2VzYAogICAgICAgICAgICAgIGlmICh2ID09PSB1bmRlZmluZWQpIHsKICAgICAgICAgICAgICAgIHYgPSBwcm9wc1tuYW1lXTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgdiA9IGRhdGFbbmFtZV07CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIGlmIChhcmcud2lsZGNhcmQpIHsKICAgICAgICAgICAgLy8gT25seSBzZW5kIHRoZSBhY3R1YWwgcGF0aCBjaGFuZ2VkIGluZm8gaWYgdGhlIGNoYW5nZSB0aGF0CiAgICAgICAgICAgIC8vIGNhdXNlZCB0aGUgb2JzZXJ2ZXIgdG8gcnVuIG1hdGNoZWQgdGhlIHdpbGRjYXJkCiAgICAgICAgICAgIGxldCBiYXNlQ2hhbmdlZCA9IChuYW1lLmluZGV4T2YocGF0aCArICcuJykgPT09IDApOwogICAgICAgICAgICBsZXQgbWF0Y2hlcyA9IChwYXRoLmluZGV4T2YobmFtZSkgPT09IDAgJiYgIWJhc2VDaGFuZ2VkKTsKICAgICAgICAgICAgdmFsdWVzW2ldID0gewogICAgICAgICAgICAgIHBhdGg6IG1hdGNoZXMgPyBwYXRoIDogbmFtZSwKICAgICAgICAgICAgICB2YWx1ZTogbWF0Y2hlcyA/IHByb3BzW3BhdGhdIDogdiwKICAgICAgICAgICAgICBiYXNlOiB2CiAgICAgICAgICAgIH07CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB2YWx1ZXNbaV0gPSB2OwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gdmFsdWVzOwogICAgICB9CgogICAgICAvLyAtLSBzdGF0aWMgY2xhc3MgbWV0aG9kcyAtLS0tLS0tLS0tLS0KCiAgICAgIC8qKgogICAgICAgKiBFbnN1cmVzIGFuIGFjY2Vzc29yIGV4aXN0cyBmb3IgdGhlIHNwZWNpZmllZCBwcm9wZXJ0eSwgYW5kIGFkZHMKICAgICAgICogdG8gYSBsaXN0IG9mICJwcm9wZXJ0eSBlZmZlY3RzIiB0aGF0IHdpbGwgcnVuIHdoZW4gdGhlIGFjY2Vzc29yIGZvcgogICAgIC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leC5leGVjKHRleHQpKSAhPT0gbnVsbCkgewogICAgICAgICAgLy8gQWRkIGxpdGVyYWwgcGFydAogICAgICAgICAgaWYgKG0uaW5kZXggPiBsYXN0SW5kZXgpIHsKICAgICAgICAgICAgcGFydHMucHVzaCh7bGl0ZXJhbDogdGV4dC5zbGljZShsYXN0SW5kZXgsIG0uaW5kZXgpfSk7CiAgICAgICAgICB9CiAgICAgICAgICAvLyBBZGQgYmluZGluZyBwYXJ0CiAgICAgICAgICBsZXQgbW9kZSA9IG1bMV1bMF07CiAgICAgICAgICBsZXQgbmVnYXRlID0gQm9vbGVhbihtWzJdKTsKICAgICAgICAgIGxldCBzb3VyY2UgPSBtWzNdLnRyaW0oKTsKICAgICAgICAgIGxldCBjdXN0b21FdmVudCA9IGZhbHNlLCBub3RpZnlFdmVudCA9ICcnLCBjb2xvbiA9IC0xOwogICAgICAgICAgaWYgKG1vZGUgPT0gJ3snICYmIChjb2xvbiA9IHNvdXJjZS5pbmRleE9mKCc6OicpKSA+IDApIHsKICAgICAgICAgICAgbm90aWZ5RXZlbnQgPSBzb3VyY2Uuc3Vic3RyaW5nKGNvbG9uICsgMik7CiAgICAgICAgICAgIHNvdXJjZSA9IHNvdXJjZS5zdWJzdHJpbmcoMCwgY29sb24pOwogICAgICAgICAgICBjdXN0b21FdmVudCA9IHRydWU7CiAgICAgICAgICB9CiAgICAgICAgICBsZXQgc2lnbmF0dXJlID0gcGFyc2VNZXRob2Qoc291cmNlKTsKICAgICAgICAgIGxldCBkZXBlbmRlbmNpZXMgPSBbXTsKICAgICAgICAgIGlmIChzaWduYXR1cmUpIHsKICAgICAgICAgICAgLy8gSW5saW5lIGNvbXB1dGVkIGZ1bmN0aW9uCiAgICAgICAgICAgIGxldCB7YXJncywgbWV0aG9kTmFtZX0gPSBzaWduYXR1cmU7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaTxhcmdzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgbGV0IGFyZyA9IGFyZ3NbaV07CiAgICAgICAgICAgICAgaWYgKCFhcmcubGl0ZXJhbCkgewogICAgICAgICAgICAgICAgZGVwZW5kZW5jaWVzLnB1c2goYXJnKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgbGV0IGR5bmFtaWNGbnMgPSB0ZW1wbGF0ZUluZm8uZHluYW1pY0ZuczsKICAgICAgICAgICAgaWYgKGR5bmFtaWNGbnMgJiYgZHluYW1pY0Zuc1ttZXRob2ROYW1lXSB8fCBzaWduYXR1cmUuc3RhdGljKSB7CiAgICAgICAgICAgICAgZGVwZW5kZW5jaWVzLnB1c2gobWV0aG9kTmFtZSk7CiAgICAgICAgICAgICAgc2lnbmF0dXJlLmR5bmFtaWNGbiA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIC8vIFByb3BlcnR5IG9yIHBhdGgKICAgICAgICAgICAgZGVwZW5kZW5jaWVzLnB1c2goc291cmNlKTsKICAgICAgICAgIH0KICAgICAgICAgIHBhcnRzLnB1c2goewogICAgICAgICAgICBzb3VyY2UsIG1vZGUsIG5lZ2F0ZSwgY3VzdG9tRXZlbnQsIHNpZ25hdHVyZSwgZGVwZW5kZW5jaWVzLAogICAgICAgICAgICBldmVudDogbm90aWZ5RXZlbnQKICAgICAgICAgIH0pOwogICAgICAgICAgbGFzdEluZGV4ID0gYmluZGluZ1JlZ2V4Lmxhc3RJbmRleDsKICAgICAgICB9CiAgICAgICAgLy8gQWRkIGEgZmluYWwgbGl0ZXJhbCBwYXJ0CiAgICAgICAgaWYgKGxhc3RJbmRleCAmJiBsYXN0SW5kZXggPCB0ZXh0Lmxlbmd0aCkgewogICAgICAgICAgbGV0IGxpdGVyYWwgPSB0ZXh0LnN1YnN0cmluZyhsYXN0SW5kZXgpOwogICAgICAgICAgaWYgKGxpdGVyYWwpIHsKICAgICAgICAgICAgcGFydHMucHVzaCh7CiAgICAgICAgICAgICAgbGl0ZXJ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gcHJvcGVydHkKICAgICAgICogYWNjZXNzb3JzIGV4aXN0IG9uIHRoZSBlbGVtZW50IHByb3RvdHlwZS4gVGhpcyBtZXRob2QgY2FsbHMKICAgICAgICogYF9maW5hbGl6ZUNsYXNzYCB0byBmaW5hbGl6ZSBlYWNoIGNvbnN0cnVjdG9yIGluIHRoZSBwcm90b3R5cGUgY2hhaW4uCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBzdGF0aWMgZmluYWxpemUoKSB7CiAgICAgICAgaWYgKCF0aGlzLmhhc093blByb3BlcnR5KEpTQ29tcGlsZXJfcmVuYW1lUHJvcGVydHkoJ19fZmluYWxpemVkJywgdGhpcykpKSB7CiAgICAgICAgICBjb25zdCBzdXBlckN0b3IgPSBzdXBlclByb3BlcnRpZXNDbGFzcygvKiogQHR5cGUge1Byb3BlcnRpZXNNaXhpbkNvbnN0cnVjdG9yfSAqLyh0aGlzKSk7CiAgICAgICAgICBpZiAoc3VwZXJDdG9yKSB7CiAgICAgICAgICAgIHN1cGVyQ3Rvci5maW5hbGl6ZSgpOwogICAgICAgICAgfQogICAgICAgICAgdGhpcy5fX2ZpbmFsaXplZCA9IHRydWU7CiAgICAgICAgICB0aGlzLl9maW5hbGl6ZUNsYXNzKCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogRmluYWxpemUgYW4gZWxlbWVudCBjbGFzcy4gVGhpcyBpbmNsdWRlcyBlbnN1cmluZyBwcm9wZXJ0eQogICAgICAgKiBhY2Nlc3NvcnMgZXhpc3Qgb24gdGhlIGVsZW1lbnQgcHJvdG90eXBlLiBUaGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkKICAgICAgICogYGZpbmFsaXplYCBhbmQgZmluYWxpemVzIHRoZSBjbGFzcyBjb25zdHJ1Y3Rvci4KICAgICAgICoKICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgc3RhdGljIF9maW5hbGl6ZUNsYXNzKCkgewogIC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ydWN0b3IpKSkgewogICAgICAgIGNvbnN0cnVjdG9yLl9fcHJvcGVydHlEZWZhdWx0cyA9IG51bGw7CiAgICAgICAgbGV0IHByb3BzID0gY29uc3RydWN0b3IuX3Byb3BlcnRpZXM7CiAgICAgICAgZm9yIChsZXQgcCBpbiBwcm9wcykgewogICAgICAgICAgbGV0IGluZm8gPSBwcm9wc1twXTsKICAgICAgICAgIGlmICgndmFsdWUnIGluIGluZm8pIHsKICAgICAgICAgICAgY29uc3RydWN0b3IuX19wcm9wZXJ0eURlZmF1bHRzID0gY29uc3RydWN0b3IuX19wcm9wZXJ0eURlZmF1bHRzIHx8IHt9OwogICAgICAgICAgICBjb25zdHJ1Y3Rvci5fX3Byb3BlcnR5RGVmYXVsdHNbcF0gPSBpbmZvOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICByZXR1cm4gY29uc3RydWN0b3IuX19wcm9wZXJ0eURlZmF1bHRzOwogICAgfQoKICAgIC8qKgogICAgICogUmV0dXJucyBhIG1lbW9pemVkIHZlcnNpb24gb2YgdGhlIGBvYnNlcnZlcnNgIGFycmF5LgogICAgICogQHBhcmFtIHtQb2x5bWVyRWxlbWVudENvbnN0cnVjdG9yfSBjb25zdHJ1Y3RvciBFbGVtZW50IGNsYXNzCiAgICAgKiBAcmV0dXJuIHtBcnJheX0gQXJyYXkgY29udGFpbmluZyBvd24gb2JzZXJ2ZXJzIGZvciB0aGUgZ2l2ZW4gY2xhc3MKICAgICAqIEBwcm90ZWN0ZWQKICAgICAqLwogICAgZnVuY3Rpb24gb3duT2JzZXJ2ZXJzKGNvbnN0cnVjdG9yKSB7CiAgICAgIGlmICghY29uc3RydWN0b3IuaGFzT3duUHJvcGVydHkoCiAgICAgICAgSlNDb21waWxlcl9yZW5hbWVQcm9wZXJ0eSgnX19vd25PYnNlcnZlcnMnLCBjb25zdHJ1Y3RvcikpKSB7CiAgICAgICAgICBjb25zdHJ1Y3Rvci5fX293bk9ic2VydmVycyA9CiAgICAgIC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KioKICAgICAqIEBwb2x5bWVyCiAgICAgKiBAbWl4aW5DbGFzcwogICAgICogQHVucmVzdHJpY3RlZAogICAgICogQGltcGxlbWVudHMge1BvbHltZXJfRWxlbWVudE1peGlufQogICAgICovCiAgICBjbGFzcyBQb2x5bWVyRWxlbWVudCBleHRlbmRzIHBvbHltZXJFbGVtZW50QmFzZSB7CgogICAgICAvKioKICAgICAgICogT3ZlcnJpZGUgb2YgUHJvcGVydGllc01peGluIF9maW5hbGl6ZUNsYXNzIHRvIGNyZWF0ZSBvYnNlcnZlcnMgYW5kCiAgICAgICAqIGZpbmQgdGhlIHRlbXBsYXRlLgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAqIEBvdmVycmlkZQogICAgICAgKiBAc3VwcHJlc3Mge21pc3NpbmdQcm9wZXJ0aWVzfSBJbnRlcmZhY2VzIGluIGNsb3N1cmUgZG8gbm90IGluaGVyaXQgc3RhdGljcywgYnV0IGNsYXNzZXMgZG8KICAgICAgICovCiAgICAgIHN0YXRpYyBfZmluYWxpemVDbGFzcygpIHsKICAgICAgICBzdXBlci5fZmluYWxpemVDbGFzcygpOwogICAgICAgIGNvbnN0IG9ic2VydmVycyA9IG93bk9ic2VydmVycyh0aGlzKTsKICAgICAgICBpZiAob2JzZXJ2ZXJzKSB7CiAgICAgICAgICB0aGlzLmNyZWF0ZU9ic2VydmVycyhvYnNlcnZlcnMsIHRoaXMuX3Byb3BlcnRpZXMpOwogICAgICAgIH0KICAgICAgICB0aGlzLl9wcmVwYXJlVGVtcGxhdGUoKTsKICAgICAgfQoKICAgICAgc3RhdGljIF9wcmVwYXJlVGVtcGxhdGUoKSB7CiAgICAgICAgLy8gbm90ZTogY3JlYXRlICJ3b3JraW5nIiB0ZW1wbGF0ZSB0aGF0IGlzIGZpbmFsaXplZCBhdCBpbnN0YW5jZSB0aW1lCiAgICAgICAgbGV0IHRlbXBsYXRlID0gLyoqIEB0eXBlIHtQb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TsKICAgICAgICAgICAgdGhpcy5faW1wb3J0UGF0aCA9IChtb2R1bGUgJiYgbW9kdWxlLmFzc2V0cGF0aCkgfHwKICAgICAgICAgICAgICBPYmplY3QuZ2V0UHJvdG90eXBlT2YoLyoqIEB0eXBlIHtQb2x5bWVyRWxlbWVudENvbnN0cnVjdG9yfSovICh0aGlzKS5wcm90b3R5cGUpLmNvbnN0cnVjdG9yLmltcG9ydFBhdGg7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiB0aGlzLl9pbXBvcnRQYXRoOwogICAgICB9CgogICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICBzdXBlcigpOwogICAgICAgIC8qKiBAdHlwZSB7SFRNTFRlbXBsYXRlRWxlbWVudH0gKi8KICAgICAgICB0aGlzLl90ZW1wbGF0ZTsKICAgICAgICAvKiogQHR5cGUge3N0cmluZ30gKi8KICAgICAgICB0aGlzLl9pbXBvcnRQYXRoOwogICAgICAgIC8qKiBAdHlwZSB7c3RyaW5nfSAqLwogICAgICAgIHRoaXMucm9vdFBhdGg7CiAgICAgICAgLyoqIEB0eXBlIHtzdHJpbmd9ICovCiAgICAgICAgdGhpcy5pbXBvcnRQYXRoOwogICAgICAgIC8qKiBAdHlwZSB7U3RhbXBlZFRlbXBsYXRlIHwgSFRNTEVsZW1lbnQgfCBTaGFkb3dSb290fSAqLwogICAgICAgIHRoaXMucm9vdDsKICAgICAgICAvKiogQHR5cGUgeyFPYmplY3Q8c3RyaW5nLCAhRWxlbWVudD59ICovCiAgICAgICAgdGhpcy4kOwogICAgICB9CgogICAgICAvKioKICAgICAgICogT3ZlcnJpZGVzIHRoZSBkZWZhdWx0IGBQb2x5bWVyLlByb3BlcnR5QWNjZXNzb3JzYCB0byBlbnN1cmUgY2xhc3MKICAgICAgICogbWV0YXByb2dyYW1taW5nIHJlbGF0ZWQgdG8gcHJvcGVydHkgYWNjZXNzb3JzIGFuZCBlZmZlY3RzIGhhcwogICAgICAgKiBjb21wbG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gKiB0byBwdXQgaXRzIGRvbSBpbiBhbm90aGVyIGxvY2F0aW9uLgogICAgICAgKgogICAgICAgKiBAdGhyb3dzIHtFcnJvcn0KICAgICAgICogQHN1cHByZXNzIHttaXNzaW5nUmV0dXJufQogICAgICAgKiBAcGFyYW0ge1N0YW1wZWRUZW1wbGF0ZX0gZG9tIHRvIGF0dGFjaCB0byB0aGUgZWxlbWVudC4KICAgICAgICogQHJldHVybiB7U2hhZG93Um9vdH0gbm9kZSB0byB3aGljaCB0aGUgZG9tIGhhcyBiZWVuIGF0dGFjaGVkLgogICAgICAgKi8KICAgICAgX2F0dGFjaERvbShkb20pIHsKICAgICAgICBpZiAodGhpcy5hdHRhY2hTaGFkb3cpIHsKICAgICAgICAgIGlmIChkb20pIHsKICAgICAgICAgICAgaWYgKCF0aGlzLnNoYWRvd1Jvb3QpIHsKICAgICAgICAgICAgICB0aGlzLmF0dGFjaFNoYWRvdyh7bW9kZTogJ29wZW4nfSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdGhpcy5zaGFkb3dSb290LmFwcGVuZENoaWxkKGRvbSk7CiAgICAgICAgICAgIHJldHVybiB0aGlzLnNoYWRvd1Jvb3Q7CiAgICAgICAgICB9CiAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdTaGFkb3dET00gbm90IGF2YWlsYWJsZS4gJyArCiAgICAgICAgICAgIC8vIFRPRE8oc29ydmVsbCk6IG1vdmUgdG8gY29tcGlsZS10aW1lIGNvbmRpdGlvbmFsIHdoZW4gc3VwcG9ydGVkCiAgICAgICAgICAnUG9seW1lci5FbGVtZW50IGNhbiBjcmVhdGUgZG9tIGFzIGNoaWxkcmVuIGluc3RlYWQgb2YgaW4gJyArCiAgICAgICAgICAnU2hhZG93RE9NIGJ5IHNldHRpbmcgYHRoaXMucm9vdCA9IHRoaXM7XGAgYmVmb3JlIFxgcmVhZHlcYC4nKTsKICAgICA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ICAgICB0aGlzLl9hc3luY01vZHVsZSA9IGFzeW5jTW9kdWxlOwogICAgICB0aGlzLl9jYWxsYmFjayA9IGNhbGxiYWNrOwogICAgICB0aGlzLl90aW1lciA9IHRoaXMuX2FzeW5jTW9kdWxlLnJ1bigoKSA9PiB7CiAgICAgICAgdGhpcy5fdGltZXIgPSBudWxsOwogICAgICAgIHRoaXMuX2NhbGxiYWNrKCk7CiAgICAgIH0pOwogICAgfQogICAgLyoqCiAgICAgKiBDYW5jZWxzIGFuIGFjdGl2ZSBkZWJvdW5jZXIgYW5kIHJldHVybnMgYSByZWZlcmVuY2UgdG8gaXRzZWxmLgogICAgICoKICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIGNhbmNlbCgpIHsKICAgICAgaWYgKHRoaXMuaXNBY3RpdmUoKSkgewogICAgICAgIHRoaXMuX2FzeW5jTW9kdWxlLmNhbmNlbCh0aGlzLl90aW1lcik7CiAgICAgICAgdGhpcy5fdGltZXIgPSBudWxsOwogICAgICB9CiAgICB9CiAgICAvKioKICAgICAqIEZsdXNoZXMgYW4gYWN0aXZlIGRlYm91bmNlciBhbmQgcmV0dXJucyBhIHJlZmVyZW5jZSB0byBpdHNlbGYuCiAgICAgKgogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgZmx1c2goKSB7CiAgICAgIGlmICh0aGlzLmlzQWN0aXZlKCkpIHsKICAgICAgICB0aGlzLmNhbmNlbCgpOwogICAgICAgIHRoaXMuX2NhbGxiYWNrKCk7CiAgICAgIH0KICAgIH0KICAgIC8qKgogICAgICogUmV0dXJucyB0cnVlIGlmIHRoZSBkZWJvdW5jZXIgaXMgYWN0aXZlLgogICAgICoKICAgICAqIEByZXR1cm4ge2Jvb2xlYW59IFRydWUgaWYgYWN0aXZlLgogICAgICovCiAgICBpc0FjdGl2ZSgpIHsKICAgICAgcmV0dXJuIHRoaXMuX3RpbWVyICE9IG51bGw7CiAgICB9CiAgICAvKioKICAgICAqIENyZWF0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ZlbnRbSEFORExFRF9PQkpdID0ge3NraXA6IHRydWV9OwogICAgLy8gZGlzYWJsZSAiZ2hvc3QgY2xpY2tzIgogICAgaWYgKG1vdXNlRXZlbnQudHlwZSA9PT0gJ2NsaWNrJykgewogICAgICBsZXQgY2xpY2tGcm9tTGFiZWwgPSBmYWxzZTsKICAgICAgbGV0IHBhdGggPSBtb3VzZUV2ZW50LmNvbXBvc2VkUGF0aCAmJiBtb3VzZUV2ZW50LmNvbXBvc2VkUGF0aCgpOwogICAgICBpZiAocGF0aCkgewogICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgcGF0aC5sZW5ndGg7IGkrKykgewogICAgICAgICAgaWYgKHBhdGhbaV0ubm9kZVR5cGUgPT09IE5vZGUuRUxFTUVOVF9OT0RFKSB7CiAgICAgICAgICAgIGlmIChwYXRoW2ldLmxvY2FsTmFtZSA9PT0gJ2xhYmVsJykgewogICAgICAgICAgICAgIGNsaWNrZWRMYWJlbHMucHVzaChwYXRoW2ldKTsKICAgICAgICAgICAgfSBlbHNlIGlmIChjYW5CZUxhYmVsbGVkKHBhdGhbaV0pKSB7CiAgICAgICAgICAgICAgbGV0IG93bmVyTGFiZWxzID0gbWF0Y2hpbmdMYWJlbHMocGF0aFtpXSk7CiAgICAgICAgICAgICAgLy8gY2hlY2sgaWYgb25lIG9mIHRoZSBjbGlja2VkIGxhYmVscyBpcyBsYWJlbGxpbmcgdGhpcyBlbGVtZW50CiAgICAgICAgICAgICAgZm9yIChsZXQgaiA9IDA7IGogPCBvd25lckxhYmVscy5sZW5ndGg7IGorKykgewogICAgICAgICAgICAgICAgY2xpY2tGcm9tTGFiZWwgPSBjbGlja0Zyb21MYWJlbCB8fCBjbGlja2VkTGFiZWxzLmluZGV4T2Yob3duZXJMYWJlbHNbal0pID4gLTE7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBpZiAocGF0aFtpXSA9PT0gUE9JTlRFUlNUQVRFLm1vdX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ZlIFNoYWRvd0RPTSBpcyB1c2VkCiAgICAgIC8vIGlmIHRoZXJlIGlzIGEgc2hhZG93cm9vdCwgaXQgbWF5IGhhdmUgYSBub2RlIGF0IHgveQogICAgICAvLyBpZiB0aGVyZSBpcyBub3QgYSBzaGFkb3dyb290LCBleGl0IHRoZSBsb29wCiAgICAgIHdoaWxlIChuZXh0ICYmIG5leHQuc2hhZG93Um9vdCAmJiAhd2luZG93LlNoYWR5RE9NKSB7CiAgICAgICAgLy8gaWYgdGhlcmUgaXMgYSBub2RlIGF0IHgveSBpbiB0aGUgc2hhZG93cm9vdCwgbG9vayBkZWVwZXIKICAgICAgICBsZXQgb2xkTmV4dCA9IG5leHQ7CiAgICAgICAgbmV4dCA9IG5leHQuc2hhZG93Um9vdC5lbGVtZW50RnJvbVBvaW50KHgsIHkpOwogICAgICAgIC8vIG9uIFNhZmFyaSwgZWxlbWVudEZyb21Qb2ludCBtYXkgcmV0dXJuIHRoZSBzaGFkb3dSb290IGhvc3QKICAgICAgICBpZiAob2xkTmV4dCA9PT0gbmV4dCkgewogICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIGlmIChuZXh0KSB7CiAgICAgICAgICBub2RlID0gbmV4dDsKICAgICAgICB9CiAgICAgIH0KICAgICAgcmV0dXJuIG5vZGU7CiAgICB9LAogICAgLyoqCiAgICAgKiBhIGNoZWFwZXIgY2hlY2sgdGhhbiBldi5jb21wb3NlZFBhdGgoKVswXTsKICAgICAqCiAgICAgKiBAcHJpdmF0ZQogICAgICogQHBhcmFtIHtFdmVudH0gZXYgRXZlbnQuCiAgICAgKiBAcmV0dXJuIHtFdmVudFRhcmdldH0gUmV0dXJucyB0aGUgZXZlbnQgdGFyZ2V0LgogICAgICovCiAgICBfZmluZE9yaWdpbmFsVGFyZ2V0OiBmdW5jdGlvbihldikgewogICAgICAvLyBzaGFkb3dkb20KICAgICAgaWYgKGV2LmNvbXBvc2VkUGF0aCkgewogICAgICAgIGNvbnN0IHRhcmdldHMgPSAvKiogQHR5cGUgeyFBcnJheTwhRXZlbnRUYXJnZXQ+fSAqLyhldi5jb21wb3NlZFBhdGgoKSk7CiAgICAgICAgLy8gSXQgc2hvdWxkbid0IGJlLCBidXQgc29tZXRpbWVzIHRhcmdldHMgaXMgZW1wdHkgKHdpbmRvdyBvbiBTYWZhcmkpLgogICAgICAgIHJldHVybiB0YXJnZXRzLmxlbmd0aCA+IDAgPyB0YXJnZXRzWzBdIDogZXYudGFyZ2V0OwogICAgICB9CiAgICAgIC8vIHNoYWR5ZG9tCiAgICAgIHJldHVybiBldi50YXJnZXQ7CiAgICB9LAoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqIEBwYXJhbSB7RXZlbnR9IGV2IEV2ZW50LgogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgX2hhbmRsZU5hdGl2ZTogZnVuY3Rpb24oZXYpIHsKICAgICAgbGV0IGhhbmRsZWQ7CiAgICAgIGxldCB0eXBlID0gZXYudHlwZTsKICAgICAgbGV0IG5vZGUgPSBldi5jdXJyZW50VGFyZ2V0OwogICAgICBsZXQgZ29iaiA9IG5vZGVbR0VTVFVSRV9LRVldOwogICAgICBpZiAoIWdvYmopIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgbGV0IGdzID0gZ29ialt0eXBlXTsKICAgICAgaWYgKCFncykgewogICAgICAgIHJldHVybjsKICAgICAgfQogICAgICBpZiAoIWV2W0hBTkRMRURfT0JKXSkgewogICAgICAgIGV2W0hBTkRMRURfT0JKXSA9IHt9OwogICAgICAgIGlmICh0eXBlLnNsaWNlKDAsIDUpID09PSAndG91Y2gnKSB7CiAgICAgICAgICBldiA9IC8qKiBAdHlwZSB7VG91Y2hFdmVudH0gKi8oZXYpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLXNlbGYtYXNzaWduCiAgICAgICAgICBsZXQgdCA9IGV2LmNoYW5nZWRUb3VjaGVzWzBdOwogICAgICAgICAgaWYgKHR5cGUgPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgICAgICAvLyBvbmx5IGhhbmRsZSB0aGUgZmlyc3QgZmluZ2VyCiAgICAgICAgICAgIGlmIChldi50b3VjaGVzLmxlbmd0aCA9PT0gMSkgewogICAgICAgICAgICAgIFBPSU5URVJTVEFURS50b3VjaC5pZCA9IHQuaWRlbnRpZmllcjsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKFBPSU5URVJTVEFURS50b3VjaC5pZCAhPT0gdC5pZGVudGlmaWVyKSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0KICAgICAgICAgIGlmICghSEFTX05BVElWRV9UQSkgewogICAgICAgICAgICBpZiAodHlwZSA9PT0gJ3RvdWNoc3RhcnQnIHx8IHR5cGUgPT09ICd0b3VjaG1vdmUnKSB7CiAgICAgICAgICAgICAgR2VzdHVyZXMuX2hhbmRsZVRvdWNoQWN0aW9uKGV2KTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICBoYW5kbGVkID0gZXZbSEFORExFRF9PQkpdOwogICAgICAvLyB1c2VkIHRvIGlnbm9yZSBzeW50aGV0aWMgbW91c2UgZXZlbnRzCiAgICAgIGlmIChoYW5kbGVkLnNraXApIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgLy8gcmVzZXQgcmVjb2duaXplciBzdGF0ZQogICAgICBmb3IgKGxldCBpID0gMCwgcjsgaSA8IEdlc3R1cmVzLnJlY29nbml6ZXJzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgciA9IEdlc3R1cmVzLnJlY29nbml6ZXJzW2ldOwogICAgICAgIGlmIChnc1tyLm5hbWVdICYmICFoYW5kbGVkW3IubmFtZV0pIHsKICAgICAgICAgIGlmIChyLmZsb3cgJiYgci5mbG93LnN0YXJ0LmluZGV4T2YoZXYudHlwZSkgPiAtMSAmJiByLnJlc2V0KSB7CiAgICAgICAgICAgIHIucmVzZXQoKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgLy8gZW5mb3JjZSBnZXN0dXJlIHJlY29nbml6ZXIgb3JkZXIKICAgICAgZm9yIChsZXQgaSA9IDAsIHI7IGkgPCBHZXN0dXJlcy5yZWNvZ25pemVycy5sZW5ndGg7IGkrKykgewogICAgICAgIHIgPSBHZXN0dXJlcy5yZWNvZ25pemVyc1tpXTsKICAgICAgICBpZiAoZ3Nbci5uYW1lXSAmJiAhaGFuZGxlZFtyLm5hbWVdKSB7CiAgICAgICAgICBoYW5kbGVkW3IubmFtZV0gPSB0cnVlOwogICAgICAgICAgclt0eXBlXShldik7CiAgICAgICAgfQogICAgICB9CiAgICB9LAoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqIEBwYXJhbSB7VG91Y2hFdmVudH0gZXYgRXZlbnQuCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBfaGFuZGxlVG91Y2hBY3Rpb246IGZ1bmN0aW9uKGV2KSB7CiAgICAgIGxldCB0ID0gZXYuY2hhbmdlZFRvdWNoZXNbMF07CiAgICAgIGxldCB0eXBlID0gZXYudHlwZTsKICAgICAgaWYgKHR5cGUgPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC54ID0gdC5jbGllbnRYOwogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC55ID0gdC5jbGllbnRZOwogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC5zY3JvbGxEZWNpZGVkID0gZmFsc2U7CiAgICAgIH0gZWxzZSBpZiAodHlwZSA9PT0gJ3RvdWNobW92ZScpIHsKICAgICAgICBpZiAoUE9JTlRFUlNUQVRFLnRvdWNoLnNjcm9sbERlY2lkZWQpIHsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgUE9JTlRFUlNUQVRFLnRvdWNoLnNjcm9sbERlY2lkZWQgPSB0cnVlOwogICAgICAgIGxldCB0YSA9IGZpcnN0VG91Y2hBY3Rpb24oZXYpOwogICAgICAgIGxldCBwcmV2ZW50ID0gZmFsc2U7CiAgICAgICAgbGV0IGR4ID0gTWF0aC5hYnMoUE9JTlRFUlNUQVRFLnRvdWNoLnggLSB0LmNsaWVudFgpOwogICAgICAgIGxldCBkeSA9IE1hdGguYWJzKFBPSU5URVJTVEFURS50b3VjaC55IC0gdC5jbGllbnRZKTsKICAgICAgICBpZiAoIWV2LmNhbmNlbGFibGUpIHsKICAgICAgICAgIC8vIHNjcm9sbGluZyBpcyBoYXBwZW5pbmcKICAgICAgICB9IGVsc2UgaWYgKHRhID09PSAnbm9uZScpIHsKICAgICAgICAgIHByZXZlbnQgPSB0cnVlOwogICAgICAgIH0gZWxzZSBpZiAodGEgPT09ICdwYW4teCcpIHsKICAgICAgICAgIHByZXZlbnQgPSBkeSA+IGR4OwogICAgICAgIH0gZWxzZSBpZiAodGEgPT09ICdwYW4teScpIHsKICAgICAgICAgIHByZXZlbnQgPSBkeCA+IGR5OwogICAgICAgIH0KICAgICAgICBpZiAocHJldmVudCkgewogICAgICAgICAgZXYucHJldmVudERlZmF1bHQoKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgR2VzdHVyZXMucHJldmVudCgndHJhY2snKTsKICAgICAgICB9CiAgICAgIH0KICAgIH0sCgogICAgLyoqCiAgICAgKiBBZGRzIGFuIGV2ZW50IGxpc3RlbmVyIHRvIGEgbm9kZSBmb3IgdGhlIGdpdmVuIGdlc3R1cmUgdHlwZS4KICAgICAqCiAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5HZXN0dXJlcwogICAgICogQHBhcmFtIHshTm9kZX0gbm9kZSBOb2RlIHRvIGFkZCBsaXN0ZW5lciBvbgogICAgICogQHBhcmFtIHtzdHJpbmd9IGV2VHlwZSBHZXN0dXJlIHR5cGU6IGBkb3duYCwgYHVwYCwgYHRyYWNrYCwgb3IgYHRhcGAKICAgICAqIEBwYXJhbSB7IWZ1bmN0aW9uKCFFdmVudCk6dm9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lIEV2ZW50IHR5cGUgdG8gcmVtb3ZlLgogICAgICogQHBhcmFtIHtmdW5jdGlvbihFdmVudD8pfSBoYW5kbGVyIEV2ZW50IGhhbmRsZXIgZnVuY3Rpb24uCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICogQHRoaXMge0dlc3R1cmVzfQogICAgICovCiAgICBfcmVtb3ZlOiBmdW5jdGlvbihub2RlLCBldlR5cGUsIGhhbmRsZXIpIHsKICAgICAgbGV0IHJlY29nbml6ZXIgPSB0aGlzLmdlc3R1cmVzW2V2VHlwZV07CiAgICAgIGxldCBkZXBzID0gcmVjb2duaXplci5kZXBzOwogICAgICBsZXQgbmFtZSA9IHJlY29nbml6ZXIubmFtZTsKICAgICAgbGV0IGdvYmogPSBub2RlW0dFU1RVUkVfS0VZXTsKICAgICAgaWYgKGdvYmopIHsKICAgICAgICBmb3IgKGxldCBpID0gMCwgZGVwLCBnZDsgaSA8IGRlcHMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgIGRlcCA9IGRlcHNbaV07CiAgICAgICAgICBnZCA9IGdvYmpbZGVwXTsKICAgICAgICAgIGlmIChnZCAmJiBnZFtuYW1lXSkgewogICAgICAgICAgICBnZFtuYW1lXSA9IChnZFtuYW1lXSB8fCAxKSAtIDE7CiAgICAgICAgICAgIGdkLl9jb3VudCA9IChnZC5fY291bnQgfHwgMSkgLSAxOwogICAgICAgICAgICBpZiAoZ2QuX2NvdW50ID09PSAwKSB7CiAgICAgICAgICAgICAgbm9kZS5yZW1vdmVFdmVudExpc3RlbmVyKGRlcCwgdGhpcy5faGFuZGxlTmF0aXZlLCBQQVNTSVZFX1RPVUNIKGRlcCkpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICAgIG5vZGUucmVtb3ZlRXZlbnRMaXN0ZW5lcihldlR5cGUsIGhhbmRsZXIpOwogICAgfSwKCiAgICAvKioKICAgICAqIFJlZ2lzdGVycyBhIG5ldyBnZXN0dXJl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Ghpcy5fZmlyZSgndXAnLCBHZXN0dXJlcy5fZmluZE9yaWdpbmFsVGFyZ2V0KGUpLCBlLmNoYW5nZWRUb3VjaGVzWzBdLCBlKTsKICAgIH0sCiAgICAvKioKICAgICAqIEBwYXJhbSB7c3RyaW5nfSB0eXBlCiAgICAgKiBAcGFyYW0geyFFdmVudFRhcmdldH0gdGFyZ2V0CiAgICAgKiBAcGFyYW0ge0V2ZW50fSBldmVudAogICAgICogQHBhcmFtIHtGdW5jdGlvbn0gcHJldmVudGVyCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBfZmlyZTogZnVuY3Rpb24odHlwZSwgdGFyZ2V0LCBldmVudCwgcHJldmVudGVyKSB7CiAgICAgIEdlc3R1cmVzLl9maXJlKHRhcmdldCwgdHlwZSwgewogICAgICAgIHg6IGV2ZW50LmNsaWVudFgsCiAgICAgICAgeTogZXZlbnQuY2xpZW50WSwKICAgICAgICBzb3VyY2VFdmVudDogZXZlbnQsCiAgICAgICAgcHJldmVudGVyOiBwcmV2ZW50ZXIsCiAgICAgICAgcHJldmVudDogZnVuY3Rpb24oZSkgewogICAgICAgICAgcmV0dXJuIEdlc3R1cmVzLnByZXZlbnQoZSk7CiAgICAgICAgfQogICAgICB9KTsKICAgIH0KICB9KTsKCiAgR2VzdHVyZXMucmVnaXN0ZXIoewogICAgbmFtZTogJ3RyYWNrJywKICAgIHRvdWNoQWN0aW9uOiAnbm9uZScsCiAgICBkZXBzOiBbJ21vdXNlZG93bicsICd0b3VjaHN0YXJ0JywgJ3RvdWNobW92ZScsICd0b3VjaGVuZCddLAogICAgZmxvdzogewogICAgICBzdGFydDogWydtb3VzZWRvd24nLCAndG91Y2hzdGFydCddLAogICAgICBlbmQ6IFsnbW91c2V1cCcsICd0b3VjaGVuZCddCiAgICB9LAogICAgZW1pdHM6IFsndHJhY2snXSwKCiAgICBpbmZvOiB7CiAgICAgIHg6IDAsCiAgICAgIHk6IDAsCiAgICAgIHN0YXRlOiAnc3RhcnQnLAogICAgICBzdGFydGVkOiBmYWxzZSwKICAgICAgbW92ZXM6IFtdLAogICAgICAvKiogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfSAqLwogICAgICBhZGRNb3ZlOiBmdW5jdGlvbihtb3ZlKSB7CiAgICAgICAgaWYgKHRoaXMubW92ZXMubGVuZ3RoID4gVFJBQ0tfTEVOR1RIKSB7CiAgICAgICAgICB0aGlzLm1vdmVzLnNoaWZ0KCk7CiAgICAgICAgfQogICAgICAgIHRoaXMubW92ZXMucHVzaChtb3ZlKTsKICAgICAgfSwKICAgICAgbW92ZWZuOiBudWxsLAogICAgICB1cGZuOiBudWxsLAogICAgICBwcmV2ZW50OiBmYWxzZQogICAgfSwKCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIHJlc2V0OiBmdW5jdGlvbigpIHsKICAgICAgdGhpcy5pbmZvLnN0YXRlID0gJ3N0YXJ0JzsKICAgICAgdGhpcy5pbmZvLnN0YXJ0ZWQgPSBmYWxzZTsKICAgICAgdGhpcy5pbmZvLm1vdmVzID0gW107CiAgICAgIHRoaXMuaW5mby54ID0gMDsKICAgICAgdGhpcy5pbmZvLnkgPSAwOwogICAgICB0aGlzLmluZm8ucHJldmVudCA9IGZhbHNlOwogICAgICB1bnRyYWNrRG9jdW1lbnQodGhpcy5pbmZvKTsKICAgIH0sCgogICAgLyoqCiAgICAgKiBAdGhpcyB7R2VzdHVyZVJlY29nbml6ZXJ9CiAgICAgKiBAcGFyYW0ge251bWJlcn0geAogICAgICogQHBhcmFtIHtudW1iZXJ9IHkKICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgKi8KICAgIGhhc01vdmVkRW5vdWdoOiBmdW5jdGlvbih4LCB5KSB7CiAgICAgIGlmICh0aGlzLmluZm8ucHJldmVudCkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgfQogICA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CBvbmx5IGlmIHRyYWNraW5nLCBhbHdheXMgcHJldmVudCB0YXAKICAgICAgICAgICAgR2VzdHVyZXMucHJldmVudCgndGFwJyk7CiAgICAgICAgICB9CiAgICAgICAgICBzZWxmLmluZm8uYWRkTW92ZSh7eDogeCwgeTogeX0pOwogICAgICAgICAgaWYgKCFoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICAgICAgLy8gYWx3YXlzIF9maXJlICJlbmQiCiAgICAgICAgICAgIHNlbGYuaW5mby5zdGF0ZSA9ICdlbmQnOwogICAgICAgICAgICB1bnRyYWNrRG9jdW1lbnQoc2VsZi5pbmZvKTsKICAgICAgICAgIH0KICAgICAgICAgIHNlbGYuX2ZpcmUodCwgZSk7CiAgICAgICAgICBzZWxmLmluZm8uc3RhcnRlZCA9IHRydWU7CiAgICAgICAgfQogICAgICB9OwogICAgICBsZXQgdXBmbiA9IGZ1bmN0aW9uIHVwZm4oZSkgewogICAgICAgIGlmIChzZWxmLmluZm8uc3RhcnRlZCkgewogICAgICAgICAgbW92ZWZuKGUpOwogICAgICAgIH0KCiAgICAgICAgLy8gcmVtb3ZlIHRoZSB0ZW1wb3JhcnkgbGlzdGVuZXJzCiAgICAgICAgdW50cmFja0RvY3VtZW50KHNlbGYuaW5mbyk7CiAgICAgIH07CiAgICAgIC8vIGFkZCB0ZW1wb3JhcnkgZG9jdW1lbnQgbGlzdGVuZXJzIGFzIG1vdXNlIHJldGFyZ2V0cwogICAgICB0cmFja0RvY3VtZW50KHRoaXMuaW5mbywgbW92ZWZuLCB1cGZuKTsKICAgICAgdGhpcy5pbmZvLnggPSBlLmNsaWVudFg7CiAgICAgIHRoaXMuaW5mby55ID0gZS5jbGllbnRZOwogICAgfSwKICAgIC8qKgogICAgICogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfQogICAgICogQHBhcmFtIHtUb3VjaEV2ZW50fSBlCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICB0b3VjaHN0Y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E5hTjsKICAgICAgdGhpcy5pbmZvLnByZXZlbnQgPSBmYWxzZTsKICAgIH0sCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEBwYXJhbSB7TW91c2VFdmVudH0gZQogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgc2F2ZTogZnVuY3Rpb24oZSkgewogICAgICB0aGlzLmluZm8ueCA9IGUuY2xpZW50WDsKICAgICAgdGhpcy5pbmZvLnkgPSBlLmNsaWVudFk7CiAgICB9LAogICAgLyoqCiAgICAgKiBAdGhpcyB7R2VzdHVyZVJlY29nbml6ZXJ9CiAgICAgKiBAcGFyYW0ge01vdXNlRXZlbnR9IGUKICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIG1vdXNlZG93bjogZnVuY3Rpb24oZSkgewogICAgICBpZiAoaGFzTGVmdE1vdXNlQnV0dG9uKGUpKSB7CiAgICAgICAgdGhpcy5zYXZlKGUpOwogICAgICB9CiAgICB9LAogICAgLyoqCiAgICAgKiBAdGhpcyB7R2VzdHVyZVJlY29nbml6ZXJ9CiAgICAgKiBAcGFyYW0ge01vdXNlRXZlbnR9IGUKICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIGNsaWNrOiBmdW5jdGlvbihlKSB7CiAgICAgIGlmIChoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICB0aGlzLmZvcndhcmQoZSk7CiAgICAgIH0KICAgIH0sCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEBwYXJhbSB7VG91Y2hFdmVudH0gZQogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgdG91Y2hzdGFydDogZnVuY3Rpb24oZSkgewogICAgICB0aGlzLnNhdmUoZS5jaGFuZ2VkVG91Y2hlc1swXSwgZSk7CiAgICB9LAogICAgLyoqCiAgICAgKiBAdGhpcyB7R2VzdHVy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x5bWVyLkRpck1peGluID0gUG9seW1lci5kZWR1cGluZ01peGluKChiYXNlKSA9PiB7CgogICAgICBpZiAoIVNISU1fU0hBRE9XKSB7CiAgICAgICAgaWYgKCFvYnNlcnZlcikgewogICAgICAgICAgZ2V0UlRMKCk7CiAgICAgICAgICBvYnNlcnZlciA9IG5ldyBNdXRhdGlvbk9ic2VydmVyKHVwZGF0ZURpcmVjdGlvbik7CiAgICAgICAgICBvYnNlcnZlci5vYnNlcnZlKGRvY3VtZW50LmRvY3VtZW50RWxlbWVudCwge2F0dHJpYnV0ZXM6IHRydWUsIGF0dHJpYnV0ZUZpbHRlcjogWydkaXInXX0pOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEBjb25zdHJ1Y3RvcgogICAgICAgKiBAZXh0ZW5kcyB7YmFzZX0KICAgICAgICogQGltcGxlbWVudHMge1BvbHltZXJfUHJvcGVydHlBY2Nlc3NvcnN9CiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICBjb25zdCBlbGVtZW50QmFzZSA9IFBvbHltZXIuUHJvcGVydHlBY2Nlc3NvcnMoYmFzZSk7CgogICAgICAvKioKICAgICAgICogQHBvbHltZXIKICAgICAgICogQG1peGluQ2xhc3MKICAgICAgICogQGltcGxlbWVudHMge1BvbHltZXJfRGlyTWl4aW59CiAgICAgICAqLwogICAgICBjbGFzcyBEaXIgZXh0ZW5kcyBlbGVtZW50QmFzZSB7CgogICAgICAgIC8qKgogICAgICAgICAqIEBvdmVycmlkZQogICAgICAgICAqIEBzdXBwcmVzcyB7bWlzc2luZ1Byb3BlcnRpZXN9IEludGVyZmFjZXMgaW4gY2xvc3VyZSBkbyBub3QgaW5oZXJpdCBzdGF0aWNzLCBidXQgY2xhc3NlcyBkbwogICAgICAgICAqLwogICAgICAgIHN0YXRpYyBfcHJvY2Vzc1N0eWxlVGV4dChjc3NUZXh0LCBiYXNlVVJJKSB7CiAgICAgICAgICBjc3NUZXh0ID0gc3VwZXIuX3Byb2Nlc3NTdHlsZVRleHQoY3NzVGV4dCwgYmFzZVVSSSk7CiAgICAgICAgICBpZiAoIVNISU1fU0hBRE9XICYmIERJUl9DSEVDSy50ZXN0KGNzc1RleHQpKSB7CiAgICAgICAgICAgIGNzc1RleHQgPSB0aGlzLl9yZXBsYWNlRGlySW5Dc3NUZXh0KGNzc1RleHQpOwogICAgICAgICAgICB0aGlzLl9fYWN0aXZhdGVEaXIgPSB0cnVlOwogICAgICAgICAgfQogICAgICAgICAgcmV0dXJuIGNzc1RleHQ7CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBSZXBsYWNlIGA6ZGlyYCBpbiB0aGUgZ2l2ZW4gQ1NTIHRleHQKICAgICAgICAgKgogICAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB0ZXh0IENTUyB0ZXh0IHRvIHJlcGxhY2UgRElSCiAgICAgICAgICogQHJldHVybiB7c3RyaW5nfSBNb2RpZmllZCBDU1MKICAgICAgICAgKi8KICAgICAgICBzdGF0aWMgX3JlcGxhY2VEaXJJbkNzc1RleHQodGV4dCkgewogICAgICAgICAgbGV0IHJlcGxhY2VkVGV4dCA9IHRleHQ7CiAgICAgICAgICByZXBsYWNlZFRleHQgPSByZXBsYWNlZFRleHQucmVwbGFjZShIT1NUX0RJUiwgSE9TVF9ESVJfUkVQTEFDTUVOVCk7CiAgICAgICAgICByZXBsYWNlZFRleHQgPSByZXBsYWNlZFRleHQucmVwbGFjZShFTF9ESVIsIEVMX0RJUl9SRVBMQUNNRU5UKTsKICAgICAgICAgIHJldHVybiByZXBsYWNlZFRleHQ7CiAgICAgICAgfQoKICAgICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICAgIHN1cGVyKCk7CiAgICAgICAgICAvKiogQHR5cGUge2Jvb2xlYW59ICovCiAgICAgICAgICB0aGlzLl9fYXV0b0Rpck9wdE91dCA9IGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHN1cHByZXNzIHtpbnZhbGlkQ2FzdHN9IENsb3N1cmUgZG9lc24ndCB1bmRlcnN0YW5kIHRoYXQgYHRoaXNgIGlzIGFuIEhUTUxFbGVtZW50CiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICByZWFkeSgpIHsKICAgICAgICAgIHN1cGVyLnJlYWR5KCk7CiAgICAgICAgICB0aGlzLl9fYXV0b0Rpck9wdE91dCA9IC8qKiBAdHlwZSB7IUhUTUxFbGVtZW50fSAqLyh0aGlzKS5oYXNBdHRyaWJ1dGUoJ2RpcicpOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHN1cHByZXNzIHttaXNzaW5nUHJvcGVydGllc30gSWYgaXQgZXhpc3RzIG9uIGVsZW1lbnRCYXNlLCBpdCBjYW4gYmUgc3VwZXInZAogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgY29ubmVjdGVkQ2FsbGJhY2soKSB7CiAgICAgICAgICBpZiAoZWxlbWVudEJhc2UucHJvdG90eXBlLmNvbm5lY3RlZENhbGxiYWNrKSB7CiAgICAgICAgICAgIHN1cGVyLmNvbm5lY3RlZENhbGxiYWNrKCk7CiAgICAgICAgICB9CiAgICAgICAgICBpZiAodGhpcy5jb25zdHJ1Y3Rvci5fX2FjdGl2YXRlRGlyKSB7CiAgICAgICAgICAgIHRha2VSZWNvcmRzKCk7CiAgICAgICAgICAgIERJUl9JTlNUQU5DRVMucHVzaCh0aGlzKTsKICAgICAgICAgICAgc2V0UlRMKHRoaXMpOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHN1cHByZXNzIHttaXNzaW5nUHJvcGVydGllc30gSWYgaXQgZXhpc3RzIG9uIGVsZW1lbnRCYXNlLCBpdCBjYW4gYmUgc3VwZXInZAogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgZGlzY29ubmVj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URJVF9ERUxFVEUpOwogICAgICAgIGktLTsKICAgICAgICBjb250aW51ZTsKICAgICAgfQogICAgICBsZXQgbm9ydGhXZXN0ID0gZGlzdGFuY2VzW2kgLSAxXVtqIC0gMV07CiAgICAgIGxldCB3ZXN0ID0gZGlzdGFuY2VzW2kgLSAxXVtqXTsKICAgICAgbGV0IG5vcnRoID0gZGlzdGFuY2VzW2ldW2ogLSAxXTsKCiAgICAgIGxldCBtaW47CiAgICAgIGlmICh3ZXN0IDwgbm9ydGgpCiAgICAgICAgbWluID0gd2VzdCA8IG5vcnRoV2VzdCA/IHdlc3QgOiBub3J0aFdlc3Q7CiAgICAgIGVsc2UKICAgICAgICBtaW4gPSBub3J0aCA8IG5vcnRoV2VzdCA/IG5vcnRoIDogbm9ydGhXZXN0OwoKICAgICAgaWYgKG1pbiA9PSBub3J0aFdlc3QpIHsKICAgICAgICBpZiAobm9ydGhXZXN0ID09IGN1cnJlbnQpIHsKICAgICAgICAgIGVkaXRzLnB1c2goRURJVF9MRUFWRSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIGVkaXRzLnB1c2goRURJVF9VUERBVEUpOwogICAgICAgICAgY3VycmVudCA9IG5vcnRoV2VzdDsKICAgICAgICB9CiAgICAgICAgaS0tOwogICAgICAgIGotLTsKICAgICAgfSBlbHNlIGlmIChtaW4gPT0gd2VzdCkgewogICAgICAgIGVkaXRzLnB1c2goRURJVF9ERUxFVEUpOwogICAgICAgIGktLTsKICAgICAgICBjdXJyZW50ID0gd2VzdDsKICAgICAgfSBlbHNlIHsKICAgICAgICBlZGl0cy5wdXNoKEVESVRfQUREKTsKICAgICAgICBqLS07CiAgICAgICAgY3VycmVudCA9IG5vcnRoOwogICAgICB9CiAgICB9CgogICAgZWRpdHMucmV2ZXJzZSgpOwogICAgcmV0dXJuIGVkaXRzOwogIH0KCiAgLyoqCiAgICogU3BsaWNlIFByb2plY3Rpb24gZnVuY3Rpb25zOgogICAqCiAgICogQSBzcGxpY2UgbWFw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bnRTdGFydCwgW10sIDApOwogICAgICB3aGlsZSAob2xkU3RhcnQgPCBvbGRFbmQpCiAgICAgICAgc3BsaWNlLnJlbW92ZWQucHVzaChvbGRbb2xkU3RhcnQrK10pOwoKICAgICAgcmV0dXJuIFsgc3BsaWNlIF07CiAgICB9IGVsc2UgaWYgKG9sZFN0YXJ0ID09IG9sZEVuZCkKICAgICAgcmV0dXJuIFsgbmV3U3BsaWNlKGN1cnJlbnRTdGFydCwgW10sIGN1cnJlbnRFbmQgLSBjdXJyZW50U3RhcnQpIF07CgogICAgbGV0IG9wcyA9IHNwbGljZU9wZXJhdGlvbnNGcm9tRWRpdERpc3RhbmNlcygKICAgICAgICBjYWxjRWRpdERpc3RhbmNlcyhjdXJyZW50LCBjdXJyZW50U3RhcnQsIGN1cnJlbnRFbmQsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbGQsIG9sZFN0YXJ0LCBvbGRFbmQpKTsKCiAgICBzcGxpY2UgPSB1bmRlZmluZWQ7CiAgICBsZXQgc3BsaWNlcyA9IFtdOwogICAgbGV0IGluZGV4ID0gY3VycmVudFN0YXJ0OwogICAgbGV0IG9sZEluZGV4ID0gb2xkU3RhcnQ7CiAgICBmb3IgKGxldCBpID0gMDsgaSA8IG9wcy5sZW5ndGg7IGkrKykgewogICAgICBzd2l0Y2gob3BzW2ldKSB7CiAgICAgICAgY2FzZSBFRElUX0xFQVZFOgogICAgICAgICAgaWYgKHNwbGljZSkgewogICAgICAgICAgICBzcGxpY2VzLnB1c2goc3BsaWNlKTsKICAgICAgICAgICAgc3BsaWNlID0gdW5kZWZpbmVkOwogICAgICAgICAgfQoKICAgICAgICAgIGluZGV4Kys7CiAgICAgICAgICBvbGRJbmRleCsrOwogICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSBFRElUX1VQREFURToKICAgICAgICAgIGlmICghc3BsaWNlKQogICAgICAgICAgICBzcGxpY2UgPSBuZXdTcGxpY2UoaW5kZXgsIFtdLCAwKTsKCiAgICAgICAgICBzcGxpY2UuYWRkZWRDb3VudCsrOwogICAgICAgICAgaW5kZXgrKzsKCiAgICAgICAgICBzcGxpY2UucmVtb3ZlZC5wdXNoKG9sZFtvbGRJbmRleF0pOwogICAgICAgICAgb2xkSW5kZXgrKzsKICAgICAgICAgIGJyZWFrOwogICAgICAgIGNhc2UgRURJVF9BREQ6CiAgICAgICAgICBpZiAoIXNwbGljZSkKICAgICAgICAgICAgc3BsaWNlID0gbmV3U3BsaWNlKGluZGV4LCBbXSwgMCk7CgogICAgICAgICAgc3BsaWNlLmFkZGVkQ291bnQrKzsKICAgICAgICAgIGluZGV4Kys7CiAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIEVESVRfREVMRVRFOgogICAgICAgICAgaWYgKCFzcGxpY2UpCiAgICAgICAgICAgIHNwbGljZSA9IG5ld1NwbGljZShpbmRleCwgW10sIDApOwoKICAgICAgICAgIHNwbGljZS5yZW1vdmVkLnB1c2gob2xkW29sZEluZGV4XSk7CiAgICAgICAgICBvbGRJbmRleCsrOwogICAgICAgICAgYnJlYWs7CiAgICAgIH0KICAgIH0KCiAgICBpZiAoc3BsaWNlKSB7CiAgICAgIHNwbGljZXMucHVzaChzcGxpY2UpOwogICAgfQogICAgcmV0dXJuIHNwbGljZXM7CiAgfQoKICBmdW5jdGlvbiBzaGFyZWRQcmVmaXgoY3VycmVudCwgb2xkLCBzZWFyY2hMZW5ndGgpIHsKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgc2VhcmNoTGVuZ3RoOyBpKyspCiAgICAgIGlmICghZXF1YWxzKGN1cnJlbnRbaV0sIG9sZFtpXSkpCiAgICAgICAgcmV0dXJuIGk7CiAgICByZXR1cm4gc2VhcmNoTGVuZ3RoOwogIH0KCiAgZnVuY3Rpb24gc2hhcmVkU3VmZml4KGN1cnJlbnQsIG9sZCwgc2VhcmNoTGVuZ3RoKSB7CiAgICBsZXQgaW5kZXgxID0gY3VycmVudC5sZW5ndGg7CiAgICBsZXQgaW5k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8IUVsZW1lbnQ+LCByZW1vdmVkTm9kZXM6ICFBcnJheTwhRWxlbWVudD4gfSk6dm9pZH0gY2FsbGJhY2sgRnVuY3Rpb24gY2FsbGVkIHdoZW4gdGhlcmUgYXJlIGFkZGl0aW9ucwogICAgICogb3IgcmVtb3ZhbHMgZnJvbSB0aGUgdGFyZ2V0J3MgbGlzdCBvZiBmbGF0dGVuZWQgbm9kZXMuCiAgICAqLwogICAgY29uc3RydWN0b3IodGFyZ2V0LCBjYWxsYmFjaykgewogICAgICAvKioKICAgICAgICogQHR5cGUge011dGF0aW9uT2JzZXJ2ZXJ9CiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICB0aGlzLl9zaGFkeUNoaWxkcmVuT2JzZXJ2ZXIgPSBudWxsOwogICAgICAvKioKICAgICAgICogQHR5cGUge011dGF0aW9uT2JzZXJ2ZXJ9CiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICB0aGlzLl9uYXRpdmVDaGlsZHJlbk9ic2VydmVyID0gbnVsbDsKICAgICAgdGhpcy5fY29ubmVjdGVkID0gZmFsc2U7CiAgICAgIC8qKgogICAgICAgKiBAdHlwZSB7RWxlbWVudH0KICAgICAgICogQHByaXZhdGUKICAgICAgICovCiAgICAgIHRoaXMuX3RhcmdldCA9IHRhcmdldDsKICAgICAgdGhpcy5jYWxsYmFjayA9IGNhbGxiYWNrOwogICAgICB0aGlzLl9lZmZlY3RpdmVOb2RlcyA9IFtdOwogICAgICB0aGlzLl9vYnNlcnZlciA9IG51bGw7CiAgICAgIHRoaXMuX3NjaGVkdWxlZCA9IGZhbHNlOwogICAgICAvKioKICAgICAgICogQHR5cGUge2Z1bmN0aW9uKCl9CiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICB0aGlzLl9ib3VuZFNjaGVkdWxlID0gKCkgPT4gewogICAgICAgIHRoaXMuX3NjaGVkdWxlKCk7CiAgICAgIH07CiAgICAgIHRoaXMuY29ubmVjdCgpOwogICA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GM9YyRbaV0pOyBpKyspIHsKICAgICAgICBpZiAoKGMubm9kZVR5cGUgPT09IE5vZGUuRUxFTUVOVF9OT0RFKSAmJgogICAgICAgICAgICBtYXRjaGVzU2VsZWN0b3IoYywgc2VsZWN0b3IpKSB7CiAgICAgICAgICBsaXN0LnB1c2goYyk7CiAgICAgICAgfQogICAgICB9CiAgICAgIHJldHVybiBsaXN0OwogICAgfQoKICAgIC8qKgogICAgICogRm9yIHNoYWRvdyByb290cywgcmV0dXJucyB0aGUgY3VycmVudGx5IGZvY3VzZWQgZWxlbWVudCB3aXRoaW4gdGhpcwogICAgICogc2hhZG93IHJvb3QuCiAgICAgKgogICAgICogQHJldHVybiB7Tm9kZXx1bmRlZmluZWR9IEN1cnJlbnRseSBmb2N1c2VkIGVsZW1lbnQKICAgICAqLwogICAgZ2V0IGFjdGl2ZUVsZW1lbnQoKSB7CiAgICAgIGxldCBub2RlID0gdGhpcy5ub2RlOwogICAgICByZXR1cm4gbm9kZS5fYWN0aXZlRWxlbWVudCAhPT0gdW5kZWZpbmVkID8gbm9kZS5fYWN0aXZlRWxlbWVudCA6IG5vZGUuYWN0aXZlRWxlbWVudDsKICAgIH0KICB9CgogIGZ1bmN0aW9uIGZvcndhcmRNZXRob2RzKHByb3RvLCBtZXRob2RzKSB7CiAgICBmb3IgKGxldCBpPTA7IGkgPCBtZXRob2RzLmxlbmd0aDsgaSsrKSB7CiAgICAgIGxldCBtZXRob2QgPSBtZXRob2RzW2ldOwogICAgICAvKiBlc2xpbnQtZGlzYWJsZSB2YWxpZC1qc2RvYyAqLwogICAgICBwcm90b1ttZXRob2RdID0gLyoqIEB0aGlzIHtEb21BcGl9ICovIGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aGlzLm5vZGVbbWV0aG9kXS5hcHBseSh0aGlzLm5vZGUsIGFyZ3VtZW50cyk7CiAgICAgIH07CiAgICAgIC8qIGVzbGludC1lbmFibGUgKi8KICAgIH0KICB9CgogIGZ1bmN0aW9uIGZvcndhcmRSZWFkT25seVByb3BlcnRpZXMocHJvdG8sIHByb3BlcnRpZXMpIHsKICAgIGZvciAobGV0IGk9MDsgaSA8IHByb3BlcnRpZXMubGVuZ3RoOyBpKyspIHsKICAgICAgbGV0IG5hbWUgPSBwcm9wZXJ0aWVzW2ldOwogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sIG5hbWUsIHsKICAgICAgICBnZXQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgY29uc3QgZG9tQXBpID0gLyoqIEB0eXBlIHtEb21BcGl9ICovKHRoaXMpOwogICAgICAgICAgcmV0dXJuIGRvbUFwaS5ub2RlW25hbWVdOwogICAgICAgIH0sCiAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgIH0pOwogICAgfQogIH0KCiAgZnVuY3Rpb24gZm9yd2FyZFByb3BlcnRpZXMocHJvdG8sIHByb3BlcnRpZXMpIHsKICAgIGZvciAobGV0IGk9MDsgaSA8IHByb3BlcnRpZXMubGVuZ3RoOyBpKyspIHsKICAgICAgbGV0IG5hbWUgPSBwcm9wZXJ0aWVzW2ldOwogICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sIG5hbWUsIHsKICAgICAgICBnZXQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgY29uc3QgZG9tQXBpID0gLyoqIEB0eXBlIHtEb21BcGl9ICovKHRoaXMpOwogICAgICAgICAgcmV0dXJuIGRvbUFwaS5ub2RlW25hbWVdOwogICAgICAgIH0sCiAgICAgICAgc2V0OiBmdW5jdGlvbih2YWx1ZSkgewogICAgICAgICAgLyoqIEB0eXBlIHtEb21BcGl9ICovICh0aGlzKS5ub2RlW25hbWVdID0gdmFsdWU7CiAgICAgICAgfSwKICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgfSk7CiAgICB9CiAgfQoKICBmb3J3YXJkTWV0aG9kcyhEb21BcGkucHJvdG90eXBlLCBbCiAgICAnY2xvbmVOb2RlJywg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Bjb25zdHJ1Y3RvcgogICAgICogQGV4dGVuZHMge2Jhc2V9CiAgICAgKiBAaW1wbGVtZW50cyB7UG9seW1lcl9FbGVtZW50TWl4aW59CiAgICAgKiBAaW1wbGVtZW50cyB7UG9seW1lcl9HZXN0dXJlRXZlbnRMaXN0ZW5lcnN9CiAgICAgKiBAaW1wbGVtZW50cyB7UG9seW1lcl9EaXJNaXhpbn0KICAgICAqIEBwcml2YXRlCiAgICAgKi8KICAgIGNvbnN0IGxlZ2FjeUVsZW1lbnRCYXNlID0gUG9seW1lci5EaXJNaXhpbihQb2x5bWVyLkdlc3R1cmVFdmVudExpc3RlbmVycyhQb2x5bWVyLkVsZW1lbnRNaXhpbihiYXNlKSkpOwoKICAgIC8qKgogICAgICogTWFwIG9mIHNpbXBsZSBuYW1lcyB0byB0b3VjaCBhY3Rpb24gbmFtZXMKICAgICAqIEBkaWN0CiAgICAgKi8KICAgIGNvbnN0IERJUkVDVElPTl9NQVAgPSB7CiAgICAgICd4JzogJ3Bhbi14JywKICAgICAgJ3knOiAncGFuLXknLAogICAgICAnbm9uZSc6ICdub25lJywKICAgICAgJ2FsbCc6ICdhdXRvJwogICAgfTsKCiAgICAvKioKICAgICAqIEBwb2x5bWVyCiAgICAgKiBAbWl4aW5DbGFzcwogICAgICogQGV4dGVuZHMge2xlZ2FjeUVsZW1lbnRCYXNlfQogICAgICogQGltcGxlbWVudHMge1BvbHltZXJfTGVnYWN5RWxlbWVudE1peGlufQogICAgICogQHVucmVzdHJpY3RlZAogICAgICovCiAgICBjbGFzcyBMZWdhY3lFbGVtZW50IGV4dGVuZHMgbGVnYWN5RWxlbWVudEJhc2UgewoKICAgICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgc3VwZXIoKTsKICAgICAgICAvKiogQHR5cGUge2Jvb2xlYW59ICovCiAgICAgICAgdGhpcy5pc0F0dGFjaGVkOwogICAgICAgIC8qKiBAdHlwZSB7V2Vha01hcDwhRWxlbWVudCwgIU9iamVjdDxzdHJpbmcsICFGdW5jdGlvbj4+fSAqLwogICAgICAgIHRoaXMuX19ib3VuZExpc3RlbmVyczsKICAgICAgICAvKiogQHR5cGUge09iamVjdDxzdHJpbmcsIEZ1bmN0aW9uPn0gKi8KICAgICAgICB0aGlzLl9kZWJvdW5jZXJzOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRm9yd2FyZHMgYGltcG9ydE1ldGFgIGZyb20gdGhlIHByb3RvdHlwZSAoaS5lLiBmcm9tIHRoZSBpbmZvIG9iamVjdAogICAgICAgKiBwYXNzZWQgdG8gYFBvbHltZXIoey4uLn0pYCkgdG8gdGhlIHN0YXRpYyBBUEkuCiAgICAgICAqCiAgICAgICAqIEByZXR1cm4geyFPYmplY3R9IFRoZSBgaW1wb3J0Lm1ldGFgIG9iamVjdCBzZXQgb24gdGhlIHByb3RvdHlwZQogICAgICAgKiBAc3VwcHJlc3Mge21pc3NpbmdQcm9wZXJ0aWVzfSBgdGhpc2AgaXMgYWx3YXlzIGluIHRoZSBpbnN0YW5jZSBpbgogICAgICAgKiAgY2xvc3VyZSBmb3Igc29tZSByZWFzb24gZXZlbiBpbiBhIHN0YXRpYyBtZXRob2QsIHJhdGhlciB0aGFuIHRoZSBjbGFzcwogICAgICAgKi8KICAgICAgc3RhdGljIGdldCBpbXBvcnRNZXRhKCkgewogICAgICAgIHJldHVybiB0aGlzLnByb3RvdHlwZS5pbXBvcnRNZXRhOwogICAgICB9CgogICAgICAvKioKICAgICAgICogTGVnYWN5IGNhbGxiYWNrIGNhbGxlZCBkdXJpbmcgdGhlIGBjb25zdHJ1Y3RvcmAsIGZvciBvdmVycmlkaW5nCiAgICAgICAqIGJ5IHRoZSB1c2VyLgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY3JlYXRlZCgpIHt9CgogICAgICAvKioKICAgICAgICogUHJvdmlkZXMgYW4gaW1wbGVtZW50YXRpb24gb2YgYGNvbm5lY3RlZENhbGxiYWNrYAogICAgICAgKiB3aG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dG8gYSB0YXJnZXQgb2JqZWN0LgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge09iamVjdH0gcHJvdG90eXBlIFRhcmdldCBvYmplY3QgdG8gY29weSBwcm9wZXJ0aWVzIHRvLgogICAgICAgKiBAcGFyYW0ge09iamVjdH0gYXBpIFNvdXJjZSBvYmplY3QgdG8gY29weSBwcm9wZXJ0aWVzIGZyb20uCiAgICAgICAqIEByZXR1cm4ge09iamVjdH0gcHJvdG90eXBlIG9iamVjdCB0aGF0IHdhcyBwYXNzZWQgYXMgZmlyc3QgYXJndW1lbnQuCiAgICAgICAqLwogICAgICBleHRlbmQocHJvdG90eXBlLCBhcGkpIHsKICAgICAgICBpZiAoIShwcm90b3R5cGUgJiYgYXBpKSkgewogICAgICAgICAgcmV0dXJuIHByb3RvdHlwZSB8fCBhcGk7CiAgICAgICAgfQogICAgICAgIGxldCBuJCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzKGFwaSk7CiAgICAgICAgZm9yIChsZXQgaT0wLCBuOyAoaTxuJC5sZW5ndGgpICYmIChuPW4kW2ldKTsgaSsrKSB7CiAgICAgICAgICBsZXQgcGQgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKGFwaSwgbik7CiAgICAgICAgICBpZiAocGQpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvdHlwZSwgbiwgcGQpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gcHJvdG90eXBlOwogICAgICB9CgogICAgICAvKioKICAgICAgICogQ29waWVzIHByb3BzIGZyb20gYSBzb3VyY2Ugb2JqZWN0IHRvIGEgdGFyZ2V0IG9iamVjdC4KICAgICAgICoKICAgICAgICogTm90ZSwgdGhpcyBtZXRob2QgdXNlcyBhIHNpbXBsZSBgZm9yLi4uaW5gIHN0cmF0ZWd5IGZvciBlbnVtZXJhdGluZwogICAgICAgKiBwcm9wZXJ0aWVzLiAgVG8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GF0IHdpbGwgYmUgc2V0IG9uIHRoZSBnaXZlbgogICAgICAgKiBgb2JqZWN0YC4KICAgICAgICogQHJldHVybiB7T2JqZWN0fSBSZXR1cm5zIHRoZSBnaXZlbiBgb2JqZWN0YCB3aXRoIGl0cyBwcm90b3R5cGUgc2V0CiAgICAgICAqIHRvIHRoZSBnaXZlbiBgcHJvdG90eXBlYCBvYmplY3QuCiAgICAgICAqLwogICAgICBjaGFpbk9iamVjdChvYmplY3QsIHByb3RvdHlwZSkgewogICAgICAgIGlmIChvYmplY3QgJiYgcHJvdG90eXBlICYmIG9iamVjdCAhPT0gcHJvdG90eXBlKSB7CiAgICAgICAgICBvYmplY3QuX19wcm90b19fID0gcHJvdG90eXBlOwogICAgICAgIH0KICAgICAgICByZXR1cm4gb2JqZWN0OwogICAgICB9CgogICAgICAvKiAqKioqIEJlZ2luIFRlbXBsYXRlICoqKiogKi8KCiAgICAgIC8qKgogICAgICAgKiBDYWxscyBgaW1wb3J0Tm9kZWAgb24gdGhlIGBjb250ZW50YCBvZiB0aGUgYHRlbXBsYXRlYCBzcGVjaWZpZWQgYW5kCiAgICAgICAqIHJldHVybnMgYSBkb2N1bWVudCBmcmFnbWVudCBjb250YWluaW5nIHRoZSBpbXBvcnRlZCBjb250ZW50LgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge0hUTUxUZW1wbGF0ZUVsZW1lbnR9IHRlbXBsYXRlIEhUTUwgdGVtcGxhdGUgZWxlbWVudCB0byBpbnN0YW5jZS4KICAgICAgICogQHJldHVybiB7IURvY3VtZW50RnJhZ21lbnR9IERvY3VtZW50IGZyYWdtZW50IGNvbnRhaW5pbmcgdGhlIGltcG9ydGVkCiAgICAgICAqICAgdGVtcGxhdGUgY29udGVudC4KICAgICAgKi8KICAgICAgaW5zdGFuY2VUZW1wbGF0ZSh0ZW1wbGF0ZSkgewogICAgICAgIGxldCBjb250ZW50ID0gdGhpcy5jb25zdHJ1Y3Rvci5fY29udGVudEZvclRlbXBsYXRlK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YW1lIG9mIGhhbmRsZXIgbWV0aG9kIG9uIGB0aGlzYCB0byBjYWxsLgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgbGlzdGVuKG5vZGUsIGV2ZW50TmFtZSwgbWV0aG9kTmFtZSkgewogICAgICAgIG5vZGUgPSAvKiogQHR5cGUgeyFFbGVtZW50fSAqLyAobm9kZSB8fCB0aGlzKTsKICAgICAgICBsZXQgaGJsID0gdGhpcy5fX2JvdW5kTGlzdGVuZXJzIHx8CiAgICAgICAgICAodGhpcy5fX2JvdW5kTGlzdGVuZXJzID0gbmV3IFdlYWtNYXAoKSk7CiAgICAgICAgbGV0IGJsID0gaGJsLmdldChub2RlKTsKICAgICAgICBpZiAoIWJsKSB7CiAgICAgICAgICBibCA9IHt9OwogICAgICAgICAgaGJsLnNldChub2RlLCBibCk7CiAgICAgICAgfQogICAgICAgIGxldCBrZXkgPSBldmVudE5hbWUgKyBtZXRob2ROYW1lOwogICAgICAgIGlmICghYmxba2V5XSkgewogICAgICAgICAgYmxba2V5XSA9IHRoaXMuX2FkZE1ldGhvZEV2ZW50TGlzdGVuZXJUb05vZGUoCiAgICAgICAgICAgIG5vZGUsIGV2ZW50TmFtZSwgbWV0aG9kTmFtZSwgdGhpcyk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogQ29udmVuaWVuY2UgbWV0aG9kIHRvIHJlbW92ZSBhbiBldmVudCBsaXN0ZW5lciBmcm9tIGEgZ2l2ZW4gZWxlbWVudCwKICAgICAgICogbGF0ZSBib3VuZCB0byBhIG5hbWVkIG1ldGhvZCBvbiB0aGlzIGVsZW1lbnQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7RWxlbWVudH0gbm9kZSBFbGVtZW50IHRvIHJlbW92ZSBldmVudCBsaXN0ZW5lciBmcm9tLgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gZXZlbnROYW1lIE5hbWUgb2YgZXZlbnQgdG8gc3RvcCBs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0cikgewogICAgICAgIHJldHVybiB0aGlzLnJvb3QucXVlcnlTZWxlY3RvcihzbGN0cik7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBSZXR1cm4gdGhlIGVsZW1lbnQgd2hvc2UgbG9jYWwgZG9tIHdpdGhpbiB3aGljaCB0aGlzIGVsZW1lbnQKICAgICAgICogaXMgY29udGFpbmVkLiBUaGlzIGlzIGEgc2hvcnRoYW5kIGZvcgogICAgICAgKiBgdGhpcy5nZXRSb290Tm9kZSgpLmhvc3RgLgogICAgICAgKiBAdGhpcyB7RWxlbWVudH0KICAgICAgICovCiAgICAgIGdldCBkb21Ib3N0KCkgewogICAgICAgIGxldCByb290ID0gdGhpcy5nZXRSb290Tm9kZSgpOwogICAgICAgIHJldHVybiAocm9vdCBpbnN0YW5jZW9mIERvY3VtZW50RnJhZ21lbnQpID8gLyoqIEB0eXBlIHtTaGFkb3dSb290fSAqLyAocm9vdCkuaG9zdCA6IHJvb3Q7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBGb3JjZSB0aGlzIGVsZW1lbnQgdG8gZGlzdHJpYnV0ZSBpdHMgY2hpbGRyZW4gdG8gaXRzIGxvY2FsIGRvbS4KICAgICAgICogVGhpcyBzaG91bGQgbm90IGJlIG5lY2Vzc2FyeSBhcyBvZiBQb2x5bWVyIDIuMC4yIGFuZCBpcyBwcm92aWRlZCBvbmx5CiAgICAgICAqIGZvciBiYWNrd2FyZHMgY29tcGF0aWJpbGl0eS4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIGRpc3RyaWJ1dGVDb250ZW50KCkgewogICAgICAgIGlmICh3aW5kb3cuU2hhZHlET00gJiYgdGhpcy5zaGFkb3dSb290KSB7CiAgICAgICAgICBTaGFkeURPTS5mbHVzaCgpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBsaXN0IG9mIG5vZGVzIHRoYXQgYXJlIHRoZSBlZmZlY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AgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBsaXN0IG9mIGVsZW1lbnQgY2hpbGRyZW4gZGlzdHJpYnV0ZWQgdG8gdGhpcyBlbGVtZW50J3MKICAgICAgICogYDxzbG90PmAuCiAgICAgICAqCiAgICAgICAqIElmIHRoaXMgZWxlbWVudCBjb250YWlucyBtb3JlIHRoYW4gb25lIGA8c2xvdD5gIGluIGl0cwogICAgICAgKiBsb2NhbCBET00sIGFuIG9wdGlvbmFsIHNlbGVjdG9yIG1heSBiZSBwYXNzZWQgdG8gY2hvb3NlIHRoZSBkZXNpcmVkCiAgICAgICAqIGNvbnRlbnQuICBUaGlzIG1ldGhvZCBkaWZmZXJzIGZyb20gYGdldENvbnRlbnRDaGlsZE5vZGVzYCBpbiB0aGF0IG9ubHkKICAgICAgICogZWxlbWVudHMgYXJlIHJldHVybmVkLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZz19IHNsY3RyIENTUyBzZWxlY3RvciB0byBjaG9vc2UgdGhlIGRlc2lyZWQKICAgICAgICogICBgPGNvbnRlbnQ+YC4gIERlZmF1bHRzIHRvIGBjb250ZW50YC4KICAgICAgICogQHJldHVybiB7IUFycmF5PCFIVE1MRWxlbWVudD59IExpc3Qgb2YgZGlzdHJpYnV0ZWQgbm9kZXMgZm9yIHRoZQogICAgICAgKiAgIGA8c2xvdD5gLgogICAgICAgKiBAc3VwcHJlc3Mge2ludmFsaWRDYXN0c30KICAgICAgICovCiAgICAgIGdldENvbnRlbnRDaGlsZHJlbihzbGN0cikgewogICAgICAgIGxldCBjaGlsZHJlbiA9IC8qKiBAdHlwZSB7IUFycmF5PCFIVE1MRWxlbWVudD59ICovKHRoaXMuZ2V0Q29udGVudENoaWxkTm9kZXMoc2xjdHIpLmZpbHRlcihmdW5jdGlvbihuKSB7CiAgICAgICAgICByZXR1cm4gKG4ubm9kZVR5cGUgPT09IE5vZGUuRUxFTUVOVF9OT0RFKTsKICAgICAgICB9KSk7CiAgICAgICAg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BcnJheX0gQXJyYXkgY29udGFpbmluZyBpdGVtIHJlbW92ZWQuCiAgICAgICAqLwogICAgICBhcnJheURlbGV0ZShhcnJheU9yUGF0aCwgaXRlbSkgewogICAgICAgIGxldCBpbmRleDsKICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShhcnJheU9yUGF0aCkpIHsKICAgICAgICAgIGluZGV4ID0gYXJyYXlPclBhdGguaW5kZXhPZihpdGVtKTsKICAgICAgICAgIGlmIChpbmRleCA+PSAwKSB7CiAgICAgICAgICAgIHJldHVybiBhcnJheU9yUGF0aC5zcGxpY2UoaW5kZXgsIDEpOwogICAgICAgICAgfQogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICBsZXQgYXJyID0gUG9seW1lci5QYXRoLmdldCh0aGlzLCBhcnJheU9yUGF0aCk7CiAgICAgICAgICBpbmRleCA9IGFyci5pbmRleE9mKGl0ZW0pOwogICAgICAgICAgaWYgKGluZGV4ID49IDApIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuc3BsaWNlKGFycmF5T3JQYXRoLCBpbmRleCwgMSk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBudWxsOwogICAgICB9CgogICAgICAvLyBsb2dnaW5nCgogICAgICAvKioKICAgICAgICogRmFjYWRlcyBgY29uc29sZS5sb2dgL2B3YXJuYC9gZXJyb3JgIGFzIG92ZXJyaWRlIHBvaW50LgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gbGV2ZWwgT25lIG9mICdsb2cnLCAnd2FybicsICdlcnJvcicKICAgICAgICogQHBhcmFtIHtBcnJheX0gYXJncyBBcnJheSBvZiBzdHJpbmdzIG9yIG9iamVjdHMgdG8gbG9nCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfbG9nZ2VyKGxldmVsLCBhcmdzKSB7CiAgICAgICAgLy8gYWNjZXB0IFsnZm9vJywgJ2JhciddIGFuZCBbWydmb28nLCAnYmFyJ11dCiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoYXJncykgJiYgYXJncy5sZW5ndGggPT09IDEgJiYgQXJyYXkuaXNBcnJheShhcmdzWzBdKSkgewogICAgICAgICAgYXJncyA9IGFyZ3NbMF07CiAgICAgICAgfQogICAgICAgIHN3aXRjaChsZXZlbCkgewogICAgICAgICAgY2FzZSAnbG9nJzoKICAgICAgICAgIGNhc2UgJ3dhcm4nOgogICAgICAgICAgY2FzZSAnZXJyb3InOgogICAgICAgICAgICBjb25zb2xlW2xldmVsXSguLi5hcmdzKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBGYWNhZGVzIGBjb25zb2xlLmxvZ2AgYXMgYW4gb3ZlcnJpZGUgcG9pbnQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7Li4uKn0gYXJncyBBcnJheSBvZiBzdHJpbmdzIG9yIG9iamVjdHMgdG8gbG9nCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfbG9nKC4uLmFyZ3MpIHsKICAgICAgICB0aGlzLl9sb2dnZXIoJ2xvZycsIGFyZ3MpOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRmFjYWRlcyBgY29uc29sZS53YXJuYCBhcyBhbiBvdmVycmlkZSBwb2ludC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHsuLi4qfSBhcmdzIEFycmF5IG9mIHN0cmluZ3Mgb3Igb2JqZWN0cyB0byBsb2cKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF93YXJuKC4uLmFyZ3MpIHsKICAgICAgICB0aGlzLl9sb2dnZXIoJ3dhcm4nLCBhcmdzKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEZhY2FkZXMgYGNvbnNvbGUuZXJyb3JgIGFzIGFuIG92ZXJyaWRlIHBvaW50LgogICAgICAgKgogICAgICAgKiBAcGFyYW0gey4uLip9IGFyZ3MgQXJyYXkgb2Ygc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JzKSB7CiAgICAgICAgICAgICAgICAgIHRoaXMuY3JlYXRlT2JzZXJ2ZXJzKGIub2JzZXJ2ZXJzLCBiLnByb3BlcnRpZXMpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoaW5mby5wcm9wZXJ0aWVzKSB7CiAgICAgICAgICAgICAgdGhpcy5jcmVhdGVQcm9wZXJ0aWVzKGluZm8ucHJvcGVydGllcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKGluZm8ub2JzZXJ2ZXJzKSB7CiAgICAgICAgICAgICAgdGhpcy5jcmVhdGVPYnNlcnZlcnMoaW5mby5vYnNlcnZlcnMsIGluZm8ucHJvcGVydGllcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLy8gbWFrZSBzdXJlIHRvIHByZXBhcmUgdGhlIGVsZW1lbnQgdGVtcGxhdGUKICAgICAgICAgICAgdGhpcy5fcHJlcGFyZVRlbXBsYXRlKCk7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBzdGF0aWMgZ2V0IHByb3BlcnRpZXMoKSB7CiAgICAgICAgICBjb25zdCBwcm9wZXJ0aWVzID0ge307CiAgICAgICAgICBpZiAoYmVoYXZpb3JMaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGJlaGF2aW9yTGlzdC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgIE9iamVjdC5hc3NpZ24ocHJvcGVydGllcywgYmVoYXZpb3JMaXN0W2ldLnByb3BlcnRpZXMpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBPYmplY3QuYXNzaWduKHByb3BlcnRpZXMsIGluZm8ucHJvcGVydGllcyk7CiAgICAgICAgICByZXR1cm4gcHJvcGVydGllczsKICAgICAgICB9CgogICAgICAgIHN0YXRpYyBnZXQgb2JzZXJ2ZXJzKCkgewogICAgICAgICAgbGV0IG9ic2VydmVycyA9IFtdOwogICAgICAgICAgaWYgKGJlaGF2aW9yTGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTAsIGI7IGkgPCBiZWhhdmlvckxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBiID0gYmVoYXZpb3JMaXN0W2ldOwogICAgICAgICAgICAgIGlmIChiLm9ic2VydmVycykgewogICAgICAgICAgICAgICAgb2JzZXJ2ZXJzID0gb2JzZXJ2ZXJzLmNvbmNhdChiLm9ic2VydmVycyk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBpZiAoaW5mby5vYnNlcnZlcnMpIHsKICAgICAgICAgICAgb2JzZXJ2ZXJzID0gb2JzZXJ2ZXJzLmNvbmNhdChpbmZvLm9ic2VydmVycyk7CiAgICAgICAgICB9CiAgICAgICAgICByZXR1cm4gb2JzZXJ2ZXJzOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICBjcmVhdGVkKCkgewogICAgICAgICAgc3VwZXIuY3JlYXRlZCgpOwogICAgICAgICAgY29uc3QgbGlzdCA9IGxpZmVjeWNsZS5jcmVhdGVkOwogICAgICAgICAgaWYgKGxpc3QpIHsKICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgIGxpc3RbaV0uY2FsbCh0aGlzKTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICBfcmVnaXN0ZXJlZCgpIHsKICAgICAgICAgIC8qIE5PVEU6IGBiZWZvcmVSZWdpc3RlcmAgaXMgY2FsbGVkIGhlcmUgZm9yIGJjLCBidXQgdGhlIGJlaGF2aW9yCiAgICAgICAgICAgIGlzIGRpZmZlcmVudCB0aGFuIGluID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x5bWVyLmxlZ2FjeU9wdGltaXphdGlvbnMpIHsKICAgICAgICAgICAgICBjb3B5UHJvcGVydGllc1RvUHJvdG8oZ2VuZXJhdGVkUHJvdG8pOwogICAgICAgICAgICB9CiAgICAgICAgICAgIC8vIG1ha2Ugc3VyZSBsZWdhY3kgbGlmZWN5Y2xlIGlzIGNhbGxlZCBvbiB0aGUgKmVsZW1lbnQqJ3MgcHJvdG90eXBlCiAgICAgICAgICAgIC8vIGFuZCBub3QgdGhlIGdlbmVyYXRlZCBjbGFzcyBwcm90b3R5cGU7IGlmIHRoZSBlbGVtZW50IGhhcyBiZWVuCiAgICAgICAgICAgIC8vIGV4dGVuZGVkLCB0aGVzZSBhcmUgKm5vdCogdGhlIHNhbWUuCiAgICAgICAgICAgIGNvbnN0IHByb3RvID0gT2JqZWN0LmdldFByb3RvdHlwZU9mKHRoaXMpOwogICAgICAgICAgICBsZXQgbGlzdCA9IGxpZmVjeWNsZS5iZWZvcmVSZWdpc3RlcjsKICAgICAgICAgICAgaWYgKGxpc3QpIHsKICAgICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBsaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgICBsaXN0W2ldLmNhbGwocHJvdG8pOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBsaXN0ID0gbGlmZWN5Y2xlLnJlZ2lzdGVyZWQ7CiAgICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgICAgbGlzdFtpXS5jYWxsKHByb3RvKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgX2FwcGx5TGlzdGVuZXJzKCkgewogICAgICAgICAgc3VwZXIuX2FwcGx5TGlzdGVuZXJzKCk7CiAgICAgICAgICBjb25zdCBsaXN0ID0gbGlmZWN5Y2xlLmxpc3RlbmVyczsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBjb25zdCBsaXN0ZW5lcnMgPSBsaXN0W2ldOwogICAgICAgICAgICAgIGlmIChsaXN0ZW5lcnMpIHsKICAgICAgICAgICAgICAgIGZvciAobGV0IGwgaW4gbGlzdGVuZXJzKSB7CiAgICAgICAgICAgICAgICAgIHRoaXMuX2FkZE1ldGhvZEV2ZW50TGlzdGVuZXJUb05vZGUodGhpcywgbCwgbGlzdGVuZXJzW2xdKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8vIG5vdGU6IGV4Y2VwdGlvbiB0byAic3VwZXIgdGhlbiBtZSIgcnVsZTsKICAgICAgICAvLyBkbyB3b3JrIGJlZm9yZSBjYWxsaW5nIHN1cGVyIHNvIHRoYXQgc3VwZXIgYXR0cmlidXRlcwogICAgICAgIC8vIG9ubHkgYXBwbHkgaWYgbm90IGFscmVhZHkgc2V0LgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgX2Vuc3VyZUF0dHJpYnV0ZXMoKSB7CiAgICAgICAgICBjb25zdCBsaXN0ID0gbGlmZWN5Y2xlLmhvc3RBdHRyaWJ1dGVzOwogICAgICAgICAgaWYgKGxpc3QpIHsKICAgICAgICAgICAgZm9yIChsZXQgaT1saXN0Lmxlbmd0aC0xOyBpID49IDA7IGktLSkgewogICAgICAgICAgICAgIGNvbnN0IGhvc3RBdHRyaWJ1dGVzID0gbGlzdFtpXTsKICAgICAgICAgICAgICBmb3IgKGxldCBhIGluIGhvc3RBdHRyaWJ1dGVzKSB7CiAgICAgICAgICAgICAgICAgIHRoaXMuX2Vuc3VyZUF0dHJpYnV0ZShhLCBob3N0QXR0cmlidXRlc1thXSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIHN1cGVyLl9lbnN1cmVBdHRyaWJ1dGVzKCk7CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIHJlYWR5KCkgewogICAgICAgICAgc3VwZXIucmVhZHkoKTsKICAgICAgICAgIGxldCBsaXN0ID0gbGlmZWN5Y2xlLnJlYWR5OwogICAgICAgICAgaWYgKGxpc3QpIHsKICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgIGxpc3RbaV0uY2FsbCh0aGlzKTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICBhdHRhY2hlZCgpIHsKICAgICAgICAgIHN1cGVyLmF0dGFjaGVkKCk7CiAgICAgICAgICBsZXQgbGlzdCA9IGxpZmVjeWNsZS5hdHRhY2hlZDsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsaXN0W2ldLmNhbGwodGhpcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgZGV0YWNoZWQoKSB7CiAgICAgICAgICBzdXBlci5kZXRhY2hlZCgpOwogICAgICAgICAgbGV0IGxpc3QgPSBsaWZlY3ljbGUuZGV0YWNoZWQ7CiAgICAgICAgICBpZiAobG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ICAgICAgICB9CiAgICAgICAgLy8gRmx1c2ggcHJvcHMgb25seSB3aGVuIHByb3BzIGFyZSBwYXNzZWQgaWYgaW5zdGFuY2UgcHJvcHMgZXhpc3QKICAgICAgICAvLyBvciB3aGVuIHRoZXJlIGlzbid0IGluc3RhbmNlIHByb3BzLgogICAgICAgIGxldCBvcHRpb25zID0gdGhpcy5fX3RlbXBsYXRpemVPcHRpb25zOwogICAgICAgIGlmICgocHJvcHMgJiYgb3B0aW9ucy5pbnN0YW5jZVByb3BzKSB8fCAhb3B0aW9ucy5pbnN0YW5jZVByb3BzKSB7CiAgICAgICAgICB0aGlzLl9lbmFibGVQcm9wZXJ0aWVzKCk7CiAgICAgICAgfQogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDb25maWd1cmUgdGhlIGdpdmVuIGBwcm9wc2AgYnkgY2FsbGluZyBgX3NldFBlbmRpbmdQcm9wZXJ0eWAuIEFsc28KICAgICAgICogc2V0cyBhbnkgcHJvcGVydGllcyBzdG9yZWQgaW4gYF9faG9zdFByb3BzYC4KICAgICAgICogQHByaXZhdGUKICAgICAgICogQHBhcmFtIHtPYmplY3R9IHByb3BzIE9iamVjdCBvZiBwcm9wZXJ0eSBuYW1lLXZhbHVlIHBhaXJzIHRvIHNldC4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF9jb25maWd1cmVQcm9wZXJ0aWVzKHByb3BzKSB7CiAgICAgICAgbGV0IG9wdGlvbnMgPSB0aGlzLl9fdGVtcGxhdGl6ZU9wdGlvbnM7CiAgICAgICAgaWYgKG9wdGlvbnMuZm9yd2FyZEhvc3RQcm9wKSB7CiAgICAgICAgICBmb3IgKGxldCBocHJvcCBpbiB0aGlzLl9faG9zdFByb3BzKSB7CiAgICAgICAgICAgIHRoaXMuX3NldFBlbmRpbmdQcm9wZXJ0eShocHJvcCwgdGhpcy5fX2RhdGFIb3N0WydfaG9zdF8nICsgaHByb3BdKTsKICAgICAgICAgIH0KICAgICAgICB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F0aChwcm9wLCB2YWx1ZSwgZmFsc2UsIHRydWUpKSB7CiAgICAgICAgICB0aGlzLl9fZGF0YUhvc3QuX2VucXVldWVDbGllbnQodGhpcyk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogT3ZlcnJpZGUgcG9pbnQgZm9yIGFkZGluZyBjdXN0b20gb3Igc2ltdWxhdGVkIGV2ZW50IGhhbmRsaW5nLgogICAgICAgKgogICAgICAgKiBAcGFyYW0geyFOb2RlfSBub2RlIE5vZGUgdG8gYWRkIGV2ZW50IGxpc3RlbmVyIHRvCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBldmVudE5hbWUgTmFtZSBvZiBldmVudAogICAgICAgKiBAcGFyYW0ge2Z1bmN0aW9uKCFFdmVudCk6dm9pZH0gaGFuZGxlciBMaXN0ZW5lciBmdW5jdGlvbiB0byBhZGQKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF9hZGRFdmVudExpc3RlbmVyVG9Ob2RlKG5vZGUsIGV2ZW50TmFtZSwgaGFuZGxlcikgewogICAgICAgIGlmICh0aGlzLl9tZXRob2RIb3N0ICYmIHRoaXMuX190ZW1wbGF0aXplT3B0aW9ucy5wYXJlbnRNb2RlbCkgewogICAgICAgICAgLy8gSWYgdGhpcyBpbnN0YW5jZSBzaG91bGQgYmUgY29uc2lkZXJlZCBhIHBhcmVudCBtb2RlbCwgZGVjb3JhdGUKICAgICAgICAgIC8vIGV2ZW50cyB0aGlzIHRlbXBsYXRlIGluc3RhbmNlIGFzIGBtb2RlbGAKICAgICAgICAgIHRoaXMuX21ldGhvZEhvc3QuX2FkZEV2ZW50TGlzdGVuZXJUb05vZGUobm9kZSwgZXZlbnROYW1lLCAoZSkgPT4gewogICAgICAgICAgICBlLm1vZGVsID0gdGhpczsKICAgICAgICAgICAgaGFuZGxlcihlKTsKICAgICAgICAgIH0pOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAvLyBPdGhlcndpc2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Q2hpbGRyZW5fXykpIHsKICAgICAgICAgICAgaWYgKG4ubm9kZVR5cGUgPT09IE5vZGUuVEVYVF9OT0RFKSB7CiAgICAgICAgICAgICAgaWYgKGhpZGUpIHsKICAgICAgICAgICAgICAgIG4uX19wb2x5bWVyVGV4dENvbnRlbnRfXyA9IG4udGV4dENvbnRlbnQ7CiAgICAgICAgICAgICAgICBuLnRleHRDb250ZW50ID0gJyc7CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIG4udGV4dENvbnRlbnQgPSBuLl9fcG9seW1lclRleHRDb250ZW50X187CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAvLyByZW1vdmUgYW5kIHJlcGxhY2Ugc2xvdAogICAgICAgICAgICB9IGVsc2UgaWYgKG4ubG9jYWxOYW1lID09PSAnc2xvdCcpIHsKICAgICAgICAgICAgICBpZiAoaGlkZSkgewogICAgICAgICAgICAgICAgbi5fX3BvbHltZXJSZXBsYWNlZF9fID0gZG9jdW1lbnQuY3JlYXRlQ29tbWVudCgnaGlkZGVuLXNsb3QnKTsKICAgICAgICAgICAgICAgIG4ucGFyZW50Tm9kZS5yZXBsYWNlQ2hpbGQobi5fX3BvbHltZXJSZXBsYWNlZF9fLCBuKTsKICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgY29uc3QgcmVwbGFjZSA9IG4uX19wb2x5bWVyUmVwbGFjZWRfXzsKICAgICAgICAgICAgICAgIGlmIChyZXBsYWNlKSB7CiAgICAgICAgICAgICAgICAgIHJlcGxhY2UucGFyZW50Tm9kZS5yZXBsYWNlQ2hpbGQobiwgcmVwbGFjZSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICBlbHNlIGlmIChuLnN0eWxlKSB7CiAgICAgICAgICAgICAgaWYgKGhpZGUpIHsKICAgICAgICAgICAgICAgIG4uX19wb2x5bWVyRGlzcGxheV9fID0gbi5zdHlsZS5kaX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ICAgICAgIC8vIFdhaXQgdW50aWwgY2hpbGRMaXN0IGNoYW5nZXMgYW5kIHRlbXBsYXRlIHNob3VsZCBiZSB0aGVyZSBieSB0aGVuCiAgICAgICAgICAgIGxldCBvYnNlcnZlciA9IG5ldyBNdXRhdGlvbk9ic2VydmVyKCgpID0+IHsKICAgICAgICAgICAgICB0ZW1wbGF0ZSA9IC8qKiBAdHlwZSB7SFRNTFRlbXBsYXRlRWxlbWVudH0gKi8odGhpcy5xdWVyeVNlbGVjdG9yKCd0ZW1wbGF0ZScpKTsKICAgICAgICAgICAgICBpZiAodGVtcGxhdGUpIHsKICAgICAgICAgICAgICAgIG9ic2VydmVyLmRpc2Nvbm5lY3QoKTsKICAgICAgICAgICAgICAgIHRoaXMucmVuZGVyKCk7CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignZG9tLWJpbmQgcmVxdWlyZXMgYSA8dGVtcGxhdGU+IGNoaWxkJyk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgb2JzZXJ2ZXIub2JzZXJ2ZSh0aGlzLCB7Y2hpbGRMaXN0OiB0cnVlfSk7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0KICAgICAgICAgIHRoaXMucm9vdCA9IHRoaXMuX3N0YW1wVGVtcGxhdGUodGVtcGxhdGUpOwogICAgICAgICAgdGhpcy4kID0gdGhpcy5yb290LiQ7CiAgICAgICAgICB0aGlzLl9fY2hpbGRyZW4gPSBbXTsKICAgICAgICAgIGZvciAobGV0IG49dGhpcy5yb290LmZpcnN0Q2hpbGQ7IG47IG49bi5uZXh0U2libGluZykgewogICAgICAgICAgICB0aGlzLl9fY2hpbGRyZW5bdGhpcy5fX2NoaWxkcmVuLmxlbmd0aF0gPSBuOwogICAgICAgICAgfQogICAgICAgICAgdGhpcy5fZW5hYmxlUHJvcGVydGllcygpOwogICAgICAgIH0KICAgICAgICB0aGlzLl9fa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qCiAgICogPC9kb20tbW9kdWxlPgogICAqIGBgYAogICAqCiAgICogV2l0aCB0aGUgZm9sbG93aW5nIGN1c3RvbSBlbGVtZW50IGRlZmluaXRpb246CiAgICoKICAgKiBgYGBqcwogICAqIGNsYXNzIEVtcGxveWVlTGlzdCBleHRlbmRzIFBvbHltZXIuRWxlbWVudCB7CiAgICogICBzdGF0aWMgZ2V0IGlzKCkgeyByZXR1cm4gJ2VtcGxveWVlLWxpc3QnOyB9CiAgICogICBzdGF0aWMgZ2V0IHByb3BlcnRpZXMoKSB7CiAgICogICAgIHJldHVybiB7CiAgICogICAgICAgZW1wbG95ZWVzOiB7CiAgICogICAgICAgICB2YWx1ZSgpIHsKICAgKiAgICAgICAgICAgcmV0dXJuIFsKICAgKiAgICAgICAgICAgICB7Zmlyc3Q6ICdCb2InLCBsYXN0OiAnU21pdGgnfSwKICAgKiAgICAgICAgICAgICB7Zmlyc3Q6ICdTYWxseScsIGxhc3Q6ICdKb2huc29uJ30sCiAgICogICAgICAgICAgICAgLi4uCiAgICogICAgICAgICAgIF07CiAgICogICAgICAgICB9CiAgICogICAgICAgfQogICAqICAgICB9OwogICAqICAgfQogICAqIH0KICAgKiBgYGAKICAgKgogICAqIE5vdGlmaWNhdGlvbnMgZm9yIGNoYW5nZXMgdG8gaXRlbXMgc3ViLXByb3BlcnRpZXMgd2lsbCBiZSBmb3J3YXJkZWQgdG8gdGVtcGxhdGUKICAgKiBpbnN0YW5jZXMsIHdoaWNoIHdpbGwgdXBkYXRlIHZpYSB0aGUgbm9ybWFsIHN0cnVjdHVyZWQgZGF0YSBub3RpZmljYXRpb24gc3lzdGVtLgogICAqCiAgICogTXV0YXRpb25zIHRvIHRoZSBgaXRlbXNgIGFycmF5IGl0c2VsZiBzaG91bGQgYmUgbWFkZSB1c2luZyB0aGUgQXJyYXkKICAgKiBtdXRhdGlvbiBBUEkncyBvbiBgUG9seW1lci5CYXNlYCAoYHB1c2hgLCBgcG9wYCwgYHNwbGljZWAsIGB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lzIHRvIGEgaGlnaGVyIG51bWJlciBhbGxvd3MgbG93ZXIgbGF0ZW5jeSBhbmQgaGlnaGVyCiAgICAgICAgICogdGhyb3VnaHB1dCBmb3IgZXZlbnQgaGFuZGxlcnMgYW5kIG90aGVyIHRhc2tzLCBidXQgcmVzdWx0cyBpbiBhCiAgICAgICAgICogbG9uZ2VyIHRpbWUgZm9yIHRoZSByZW1haW5pbmcgaXRlbXMgdG8gY29tcGxldGUgcmVuZGVyaW5nLgogICAgICAgICAqLwogICAgICAgIHRhcmdldEZyYW1lcmF0ZTogewogICAgICAgICAgdHlwZTogTnVtYmVyLAogICAgICAgICAgdmFsdWU6IDIwCiAgICAgICAgfSwKCiAgICAgICAgX3RhcmdldEZyYW1lVGltZTogewogICAgICAgICAgdHlwZTogTnVtYmVyLAogICAgICAgICAgY29tcHV0ZWQ6ICdfX2NvbXB1dGVGcmFtZVRpbWUodGFyZ2V0RnJhbWVyYXRlKScKICAgICAgICB9CgogICAgICB9OwoKICAgIH0KCiAgICBzdGF0aWMgZ2V0IG9ic2VydmVycygpIHsKICAgICAgcmV0dXJuIFsgJ19faXRlbXNDaGFuZ2VkKGl0ZW1zLiopJyBdOwogICAgfQoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICBzdXBlcigpOwogICAgICB0aGlzLl9faW5zdGFuY2VzID0gW107CiAgICAgIHRoaXMuX19saW1pdCA9IEluZmluaXR5OwogICAgICB0aGlzLl9fcG9vbCA9IFtdOwogICAgICB0aGlzLl9fcmVuZGVyRGVib3VuY2VyID0gbnVsbDsKICAgICAgdGhpcy5fX2l0ZW1zSWR4VG9JbnN0SWR4ID0ge307CiAgICAgIHRoaXMuX19jaHVua0NvdW50ID0gbnVsbDsKICAgICAgdGhpcy5fX2xhc3RDaHVua1RpbWUgPSBudWxsOwogICAgICB0aGlzLl9fc29ydEZuID0gbnVsbDsKICAgICAgdGhpcy5fX2ZpbHRlckZuID0gbnVsbDsKICAgICAgdGhpcy5fX29ic2VydmVQYX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cKICAgICAgICBsZXQgaW5zdGFuY2VQcm9wcyA9IHt9OwogICAgICAgIGluc3RhbmNlUHJvcHNbdGhpcy5hc10gPSB0cnVlOwogICAgICAgIGluc3RhbmNlUHJvcHNbdGhpcy5pbmRleEFzXSA9IHRydWU7CiAgICAgICAgaW5zdGFuY2VQcm9wc1t0aGlzLml0ZW1zSW5kZXhBc10gPSB0cnVlOwogICAgICAgIHRoaXMuX19jdG9yID0gUG9seW1lci5UZW1wbGF0aXplLnRlbXBsYXRpemUodGVtcGxhdGUsIHRoaXMsIHsKICAgICAgICAgIG11dGFibGVEYXRhOiB0aGlzLm11dGFibGVEYXRhLAogICAgICAgICAgcGFyZW50TW9kZWw6IHRydWUsCiAgICAgICAgICBpbnN0YW5jZVByb3BzOiBpbnN0YW5jZVByb3BzLAogICAgICAgICAgLyoqCiAgICAgICAgICAgKiBAdGhpcyB7dGhpc30KICAgICAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wIFByb3BlcnR5IHRvIHNldAogICAgICAgICAgICogQHBhcmFtIHsqfSB2YWx1ZSBWYWx1ZSB0byBzZXQgcHJvcGVydHkgdG8KICAgICAgICAgICAqLwogICAgICAgICAgZm9yd2FyZEhvc3RQcm9wOiBmdW5jdGlvbihwcm9wLCB2YWx1ZSkgewogICAgICAgICAgICBsZXQgaSQgPSB0aGlzLl9faW5zdGFuY2VzOwogICAgICAgICAgICBmb3IgKGxldCBpPTAsIGluc3Q7IChpPGkkLmxlbmd0aCkgJiYgKGluc3Q9aSRbaV0pOyBpKyspIHsKICAgICAgICAgICAgICBpbnN0LmZvcndhcmRIb3N0UHJvcChwcm9wLCB2YWx1ZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAvKioKICAgICAgICAgICAqIEB0aGlzIHt0aGlzfQogICAgICAgICAgICogQHBhcmFtIHtPYmplY3R9IGluc3QgSW5zdGFuY2UgdG8gbm90aWZ5CiAgICAgICAgICAgKiBAcGFyYW0ge3N0c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YW5jZSB3b3VsZCBhbHNvIGF2b2lkIHRoZSBwcm9ibGVtLgogICAgICB0aGlzLl9fcmVuZGVyRGVib3VuY2VyID0gUG9seW1lci5EZWJvdW5jZXIuZGVib3VuY2UoCiAgICAgICAgICAgIHRoaXMuX19yZW5kZXJEZWJvdW5jZXIKICAgICAgICAgICwgUG9seW1lci5Bc3luYy5taWNyb1Rhc2sKICAgICAgICAgICwgKCkgPT4gdGhpcy5fX3JlbmRlcigpKTsKICAgICAgUG9seW1lci5lbnF1ZXVlRGVib3VuY2VyKHRoaXMuX19yZW5kZXJEZWJvdW5jZXIpOwogICAgfQoKICAgIC8qKgogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgZGlzY29ubmVjdGVkQ2FsbGJhY2soKSB7CiAgICAgIHN1cGVyLmRpc2Nvbm5lY3RlZENhbGxiYWNrKCk7CiAgICAgIGlmICghdGhpcy5wYXJlbnROb2RlIHx8CiAgICAgICAgICAodGhpcy5wYXJlbnROb2RlLm5vZGVUeXBlID09IE5vZGUuRE9DVU1FTlRfRlJBR01FTlRfTk9ERSAmJgogICAgICAgICAgICF0aGlzLnBhcmVudE5vZGUuaG9zdCkpIHsKICAgICAgICB0aGlzLl9fdGVhcmRvd25JbnN0YW5jZSgpOwogICAgICB9CiAgICB9CgogICAgLyoqCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBjb25uZWN0ZWRDYWxsYmFjaygpIHsKICAgICAgc3VwZXIuY29ubmVjdGVkQ2FsbGJhY2soKTsKICAgICAgdGhpcy5zdHlsZS5kaXNwbGF5ID0gJ25vbmUnOwogICAgICBpZiAodGhpcy5pZikgewogICAgICAgIHRoaXMuX19kZWJvdW5jZVJlbmRlcigpOwogICAgICB9CiAgICB9CgogICAgLyoqCiAgICAgKiBGb3JjZXMgdGhlIGVsZW1lbnQgdG8gcmVuZGVyIGl0cyBjb250ZW50LiBOb3JtYWxseSByZW5kZXJpbmcgaXMKICAgICAqIGFzeW5jaHJ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dG9yID0gUG9seW1lci5UZW1wbGF0aXplLnRlbXBsYXRpemUodGVtcGxhdGUsIHRoaXMsIHsKICAgICAgICAgICAgLy8gZG9tLWlmIHRlbXBsYXRpemVyIGluc3RhbmNlcyByZXF1aXJlIGBtdXRhYmxlOiB0cnVlYCwgYXMKICAgICAgICAgICAgLy8gYF9fc3luY0hvc3RQcm9wZXJ0aWVzYCByZWxpZXMgb24gdGhhdCBiZWhhdmlvciB0byBzeW5jIG9iamVjdHMKICAgICAgICAgICAgbXV0YWJsZURhdGE6IHRydWUsCiAgICAgICAgICAgIC8qKgogICAgICAgICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcCBQcm9wZXJ0eSB0byBmb3J3YXJkCiAgICAgICAgICAgICAqIEBwYXJhbSB7Kn0gdmFsdWUgVmFsdWUgb2YgcHJvcGVydHkKICAgICAgICAgICAgICogQHRoaXMge3RoaXN9CiAgICAgICAgICAgICAqLwogICAgICAgICAgICBmb3J3YXJkSG9zdFByb3A6IGZ1bmN0aW9uKHByb3AsIHZhbHVlKSB7CiAgICAgICAgICAgICAgaWYgKHRoaXMuX19pbnN0YW5jZSkgewogICAgICAgICAgICAgICAgaWYgKHRoaXMuaWYpIHsKICAgICAgICAgICAgICAgICAgdGhpcy5fX2luc3RhbmNlLmZvcndhcmRIb3N0UHJvcChwcm9wLCB2YWx1ZSk7CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAvLyBJZiB3ZSBoYXZlIGFuIGluc3RhbmNlIGJ1dCBhcmUgc3F1ZWxjaGluZyBob3N0IHByb3BlcnR5CiAgICAgICAgICAgICAgICAgIC8vIGZvcndhcmRpbmcgZHVlIHRvIGlmIGJlaW5nIGZhbHNlLCBub3RlIHRoZSBpbnZhbGlkYXRlZAogICAgICAgICAgICAgICAgICAvLyBwcm9wZXJ0aWVzIHNvIGBfX3N5bmNIb3N0UHJvcGVydGllc2AgY2FuIHN5bmMgdGhlbSB0aGUgbmV4dAogICAgICAgICAgICAgICAgICAvLyB0aW1lIGBpZmAgYmVjb21lcyB0cnVlCiAgICAgICAgICAgICAgICAgIHRoaXMuX19pbnZhbGlkUHJvcHMgPSB0aGlzLl9faW52YWxpZFByb3BzIHx8IE9iamVjdC5jcmVhdGUobnVsbCk7CiAgICAgICAgICAgICAgICAgIHRoaXMuX19pbnZhbGlkUHJvcHNbUG9seW1lci5QYXRoLnJvb3QocHJvcCldID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgICBpZiAoIXRoaXMuX19pbnN0YW5jZSkgewogICAgICAgICAgdGhpcy5fX2luc3RhbmNlID0gbmV3IHRoaXMuX19jdG9yKCk7CiAgICAgICAgICBwYXJlbnROb2RlLmluc2VydEJlZm9yZSh0aGlzLl9faW5zdGFuY2Uucm9vdCwgdGhpcyk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX19zeW5jSG9zdFByb3BlcnRpZXMoKTsKICAgICAgICAgIGxldCBjJCA9IHRoaXMuX19pbnN0YW5jZS5jaGlsZHJlbjsKICAgICAgICAgIGlmIChjJCAmJiBjJC5sZW5ndGgpIHsKICAgICAgICAgICAgLy8gRGV0ZWN0IGNhc2Ugd2hlcmUgZG9tLWlmIHdhcyByZS1hdHRhY2hlZCBpbiBuZXcgcG9zaXRpb24KICAgICAgICAgICAgbGV0IGxhc3RDaGlsZCA9IHRoaXMucHJldmlvdXNTaWJsaW5nOwogICAgICAgICAgICBpZiAobGFzdENoaWxkICE9PSBjJFtjJC5sZW5ndGgtMV0pIHsKICAgICAgICAgICAgICBmb3IgKGxldCBpPTAsIG47IChpPGMkLmxlbmd0aCkgJiYgKG49YyRbaV0pOyBpKyspIHsKICAgICAgICAgICAgICAgIHBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKG4sIHRoaXMpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICByZXR1cm4gdHJ1ZTsKICAgIH0KCiAgICBfX3N5bmNIb3N0UHJvcGVydGllcygpIHsKICAgICAgbGV0IHByb3BzID0gdGhpcy5fX2ludmFsaWRQcm9wczsKICAgICAgaWYgKHByb3BzKSB7CiAgICAgICAgZm9yIChsZXQgcHJvcCBpbiBwcm9wcykgewogICAgICAgICAgdGhpcy5fX2luc3RhbmNlLl9zZXRQZW5kaW5nUHJvcGVydHkocHJvcCwgdGhpcy5fX2RhdGFIb3N0W3Byb3BdKTsKICAgICAgICB9CiAgICAgICAgdGhpcy5fX2ludmFsaWRQcm9wcyA9IG51bGw7CiAgICAgICAgdGhpcy5fX2luc3RhbmNlLl9mbHVzaFByb3BlcnRpZXMoKTsKICAgICAgfQogICAgfQoKICAgIF9fdGVhcmRvd25JbnN0YW5jZSgpIHsKICAgICAgaWYgKHRoaXMuX19pbnN0YW5jZSkgewogICAgICAgIGxldCBjJCA9IHRoaXMuX19pbnN0YW5jZS5jaGlsZHJlbjsKICAgICAgICBpZiAoYyQgJiYgYyQubGVuZ3RoKSB7CiAgICAgICAgICAvLyB1c2UgZmlyc3QgY2hpbGQgcGFyZW50LCBmb3IgY2FzZSB3aGVuIGRvbS1pZiBtYXkgaGF2ZSBiZWVuIGRldGFjaGVkCiAgICAgICAgICBsZXQgcGFyZW50ID0gYyRbMF0ucGFyZW50Tm9kZTsKICAgICAgICAgIC8vIEluc3RhbmNlIGNoaWxkcmVuIG1heSBiZSBkaXNjb25uZWN0ZWQgZnJvbSBwYXJlbnRzIHdoZW4gZG9tLWlmCiAgICAgICAgICAvLyBkZXRhY2hlcyBpZiBhIHRyZWUgd2FzIGlubmVySFRNTCdlZAogICAgICAgICAgaWYgKHBhcmVudCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTAsIG47IChpPGMkLmxlbmd0aCkgJiYgKG49YyRbaV0pOyBpKyspIHsKICAgICAgICAgICAgICBwYXJlbnQucmVtb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GlzIGFuIGFycmF5IG9mIGN1cnJlbnRseSBzZWxlY3RlZCBpdGVtcykuICBXaGVuIGBmYWxzZWAsCiAgICAgICAgICAgKiBvbmx5IG9uZSBpdGVtIG1heSBiZSBzZWxlY3RlZCBhdCBhIHRpbWUuCiAgICAgICAgICAgKi8KICAgICAgICAgIG11bHRpOiB7CiAgICAgICAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgICAgICAgIHZhbHVlOiBmYWxzZSwKICAgICAgICAgIH0sCgogICAgICAgICAgLyoqCiAgICAgICAgICAgKiBXaGVuIGBtdWx0aWAgaXMgdHJ1ZSwgdGhpcyBpcyBhbiBhcnJheSB0aGF0IGNvbnRhaW5zIGFueSBzZWxlY3RlZC4KICAgICAgICAgICAqIFdoZW4gYG11bHRpYCBpcyBmYWxzZSwgdGhpcyBpcyB0aGUgY3VycmVudGx5IHNlbGVjdGVkIGl0ZW0sIG9yIGBudWxsYAogICAgICAgICAgICogaWYgbm8gaXRlbSBpcyBzZWxlY3RlZC4KICAgICAgICAgICAqIEB0eXBlIHs/KE9iamVjdHxBcnJheTwhT2JqZWN0Pil9CiAgICAgICAgICAgKi8KICAgICAgICAgIHNlbGVjdGVkOiB7CiAgICAgICAgICAgIHR5cGU6IE9iamVjdCwKICAgICAgICAgICAgbm90aWZ5OiB0cnVlCiAgICAgICAgICB9LAoKICAgICAgICAgIC8qKgogICAgICAgICAgICogV2hlbiBgbXVsdGlgIGlzIGZhbHNlLCB0aGlzIGlzIHRoZSBjdXJyZW50bHkgc2VsZWN0ZWQgaXRlbSwgb3IgYG51bGxgCiAgICAgICAgICAgKiBpZiBubyBpdGVtIGlzIHNlbGVjdGVkLgogICAgICAgICAgICogQHR5cGUgez9PYmplY3R9CiAgICAgICAgICAgKi8KICAgICAgICAgIHNlbGVjdGVkSXRlbTogewogICAgICAgICAgICB0eXBlOiBPYmplY3QsCiAgICAgICAgICAgIG5vdGlmeTogdHJ1ZQogICAgICAgICAgfSwKCiAgICAgICAgICAvK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AgIGxldCBpZHggPSBwYXJzZUludChwYXJ0LCAxMCk7CiAgICAgICAgICBpZiAoKHBhcnQuaW5kZXhPZignLicpIDwgMCkgJiYgcGFydCA9PSBpZHgpIHsKICAgICAgICAgICAgdGhpcy5fX2Rlc2VsZWN0Q2hhbmdlZElkeChpZHgpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQoKICAgICAgX19hcHBseVNwbGljZXMoc3BsaWNlcykgewogICAgICAgIGxldCBzZWxlY3RlZCA9IHRoaXMuX19zZWxlY3RlZE1hcDsKICAgICAgICAvLyBBZGp1c3Qgc2VsZWN0ZWQgaW5kaWNlcyBhbmQgbWFyayByZW1vdmFscwogICAgICAgIGZvciAobGV0IGk9MDsgaTxzcGxpY2VzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICBsZXQgcyA9IHNwbGljZXNbaV07CiAgICAgICAgICBzZWxlY3RlZC5mb3JFYWNoKChpZHgsIGl0ZW0pID0+IHsKICAgICAgICAgICAgaWYgKGlkeCA8IHMuaW5kZXgpIHsKICAgICAgICAgICAgICAvLyBubyBjaGFuZ2UKICAgICAgICAgICAgfSBlbHNlIGlmIChpZHggPj0gcy5pbmRleCArIHMucmVtb3ZlZC5sZW5ndGgpIHsKICAgICAgICAgICAgICAvLyBhZGp1c3QgaW5kZXgKICAgICAgICAgICAgICBzZWxlY3RlZC5zZXQoaXRlbSwgaWR4ICsgcy5hZGRlZENvdW50IC0gcy5yZW1vdmVkLmxlbmd0aCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgLy8gcmVtb3ZlIGluZGV4CiAgICAgICAgICAgICAgc2VsZWN0ZWQuc2V0KGl0ZW0sIC0xKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgICBmb3IgKGxldCBqPTA7IGo8cy5hZGRlZENvdW50OyBqKyspIHsKICAgICAgICAgICAgbGV0IGlkeCA9IHMuaW5kZXggKyBqOwogICAgICAgICAgICBpZiAoc2VsZWN0ZWQuaGFzKHRoaXMuaXRlbXNbaWR4XSkpIHsKICAgICAgICAgICAgICBzZWxlY3RlZC5zZXQodGhpcy5pdGVtc1tpZHhdLCBpZHgpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIC8vIFVwZGF0ZSBsaW5rZWQgcGF0aHMKICAgICAgICB0aGlzLl9fdXBkYXRlTGlua3MoKTsKICAgICAgICAvLyBSZW1vdmUgc2VsZWN0ZWQgaXRlbXMgdGhhdCB3ZXJlIHJlbW92ZWQgZnJvbSB0aGUgaXRlbXMgYXJyYXkKICAgICAgICBsZXQgc2lkeCA9IDA7CiAgICAgICAgc2VsZWN0ZWQuZm9yRWFjaCgoaWR4LCBpdGVtKSA9PiB7CiAgICAgICAgICBpZiAoaWR4IDwgMCkgewogICAgICAgICAgICBpZiAodGhpcy5tdWx0aSkgewogICAgICAgICAgICAgIHRoaXMuc3BsaWNlKCdzZWxlY3RlZCcsIHNpZHgsIDEpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWQgPSB0aGlzLnNlbGVjdGVkSXRlbSA9IG51bGw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgc2VsZWN0ZWQuZGVsZXRlKGl0ZW0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgc2lkeCsrOwogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9CgogICAgICBfX3VwZGF0ZUxpbmtzKCkgewogICAgICAgIHRoaXMuX19kYXRhTGlua2VkUGF0aHMgPSB7fTsKICAgICAgICBpZiAodGhpcy5tdWx0aSkgewogICAgICAgICAgbGV0IHNpZHggPSAwOwogICAgICAgICAgdGhpcy5fX3NlbGVjdGVkTWFwLmZvckVhY2goaWR4ID0+IHsKICAgICAgICAgICAgaWYgKGlkeCA+PSAwKSB7CiAgICAgICAgICAgICAgdGhpcy5saW5rUGF0aHMoJ2l0ZW1zLicgKyBpZHgsICdzZWxlY3RlZC4nICsgc2lkeCsrKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX19zZWxlY3RlZE1hcC5mb3JFYWNoKGlkeCA9PiB7CiAgICAgICAgICAgIHRoaXMubGlua1BhdGhzKCdzZWxlY3RlZCcsICdpdGVtcy4nICsgaWR4KTsKICAgICAgICAgICAgdGhpcy5saW5rUGF0aHMoJ3NlbGVjdGVkSXRlbScsICdpdGVtcy4nICsgaWR4KTsKICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENsZWFycyB0aGUgc2VsZWN0aW9uIHN0YXRlLgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2xlYXJTZWxlY3Rpb24oKSB7CiAgICAgICAgLy8gVW5iaW5kIHByZXZpb3VzIHNlbGVjdGlvbgogICAgICAgIHRoaXMuX19kYXRhTGlua2VkUGF0aHMgPSB7fTsKICAgICAgICAvLyBUaGUgc2VsZWN0ZWQgbWFwIHN0b3JlcyAzIHBpZWNlcyBvZiBpbmZvcm1hdGlvbjoKICAgICAgICAvLyBrZXk6IGl0ZW1zIGFycmF5IG9iamVjdAogICAgICAgIC8vIHZhbHVlOiBpdGVtcyBhcnJheSBpbmRleAogICAgICAgIC8vIG9yZGVyOiBzZWxlY3RlZCBhcnJheSBpbmRleAogICAgICAgIHRoaXMuX19zZWxlY3RlZE1hcCA9IG5ldyBNYXAoKTsKICAgICAgICAvLyBJbml0aWFsaXplIHNlbGVjdGlvbgogICAgICAgIHRoaXMuc2VsZWN0ZWQgPSB0aGlzLm11bHRpID8gW10gOiBudWxsOwogICAgICAgIHRoaXMuc2VsZWN0ZWRJdGVtID0gbnVsbDsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgd2hldGhlciB0aGUgaXRlbSBpcyBjdXJyZW50bHkgc2VsZWN0ZWQuCiAgICAgICAqCiAgIC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ICAgICA8L3RlbXBsYXRlPgogICAqICAgICA8L2RvbS1yZXBlYXQ+CiAgICoKICAgKiAgIDwvdGVtcGxhdGU+CiAgICoKICAgKiA8L2RvbS1tb2R1bGU+CiAgICogYGBgCiAgICoKICAgKiBgYGBqcwogICAqY2xhc3MgRW1wbG95ZWVMaXN0IGV4dGVuZHMgUG9seW1lci5FbGVtZW50IHsKICAgKiAgc3RhdGljIGdldCBpcygpIHsgcmV0dXJuICdlbXBsb3llZS1saXN0JzsgfQogICAqICBzdGF0aWMgZ2V0IHByb3BlcnRpZXMoKSB7CiAgICogICAgcmV0dXJuIHsKICAgKiAgICAgIGVtcGxveWVlczogewogICAqICAgICAgICB2YWx1ZSgpIHsKICAgKiAgICAgICAgICByZXR1cm4gWwogICAqICAgICAgICAgICAge2ZpcnN0OiAnQm9iJywgbGFzdDogJ1NtaXRoJ30sCiAgICogICAgICAgICAgICB7Zmlyc3Q6ICdTYWxseScsIGxhc3Q6ICdKb2huc29uJ30sCiAgICogICAgICAgICAgICAuLi4KICAgKiAgICAgICAgICBdOwogICAqICAgICAgICB9CiAgICogICAgICB9CiAgICogICAgfTsKICAgKiAgfQogICAqICB0b2dnbGVTZWxlY3Rpb24oZSkgewogICAqICAgIGxldCBpdGVtID0gdGhpcy4kLmVtcGxveWVlTGlzdC5pdGVtRm9yRWxlbWVudChlLnRhcmdldCk7CiAgICogICAgdGhpcy4kLnNlbGVjdG9yLnNlbGVjdChpdGVtKTsKICAgKiAgfQogICAqfQogICAqIGBgYAogICAqCiAgICogQHBvbHltZXIKICAgKiBAY3VzdG9tRWxlbWVudAogICAqIEBleHRlbmRzIHtiYXNlQXJyYXlTZWxlY3Rvcn0KICAgKiBAYXBwbGllc01peGluIFBvbHltZXIuQXJyYXlTZWxlY3Rvck1peGluCiAgICogQG1lbWJlcm9mIFBvbHltZXIKICAgKiBAc3VtbWFyeSBDdXN0b20gZWxlbWVudCB0aGF0IGxpbmtzIHBhdGhzIGJldHdlZW4gYW4gaW5wd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bWwiPgogICAqIDwhLS0gaW1wb3J0IGN1c3RvbS1zdHlsZSBlbGVtZW50IC0tPgogICAqIDxsaW5rIHJlbD0iaW1wb3J0IiBocmVmPSJib3dlcl9jb21wb25lbnRzL3BvbHltZXIvbGliL2VsZW1lbnRzL2N1c3RvbS1zdHlsZS5odG1sIj4KICAgKgogICAqIDxjdXN0b20tc3R5bGU+CiAgICogICA8c3R5bGU+CiAgICogICAgIGh0bWwgewogICAqICAgICAgIC0tY3VzdG9tLWNvbG9yOiBibHVlOwogICAqICAgICAgIC0tY3VzdG9tLW1peGluOiB7CiAgICogICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgKiAgICAgICAgIGNvbG9yOiByZWQ7CiAgICogICAgICAgfTsKICAgKiAgICAgfQogICAqICAgPC9zdHlsZT4KICAgKiA8L2N1c3RvbS1zdHlsZT4KICAgKiBgYGAKICAgKgogICAqIEBjdXN0b21FbGVtZW50CiAgICogQGV4dGVuZHMgSFRNTEVsZW1lbnQKICAgKiBAbWVtYmVyb2YgUG9seW1lcgogICAqIEBzdW1tYXJ5IEN1c3RvbSBlbGVtZW50IGZvciBkZWZpbmluZyBzdHlsZXMgaW4gdGhlIG1haW4gZG9jdW1lbnQgdGhhdCBjYW4KICAgKiAgIHRha2UgYWR2YW50YWdlIG9mIFBvbHltZXIncyBzdHlsZSBzY29waW5nIGFuZCBjdXN0b20gcHJvcGVydGllcyBzaGltcy4KICAgKi8KICBjbGFzcyBDdXN0b21TdHlsZSBleHRlbmRzIEhUTUxFbGVtZW50IHsKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICBzdXBlcigpOwogICAgICB0aGlzLl9zdHlsZSA9IG51bGw7CiAgICAgIEN1c3RvbVN0eWxlSW50ZXJmYWNlLmFkZEN1c3RvbVN0eWxlKHRoaXMpOwogICAgfQogICAgLyoqCiAgICAgKiBSZXR1cm5zIHRoZSBsaWdodC1ET00gYDxzdHlsZT5gIGNoaWxkIHRoaXMgZWxlbWVudCB3cmFwcy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gLW1zLWZsZXgtd3JhcDogd3JhcC1yZXZlcnNlOwogICAgICAgIC13ZWJraXQtZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgICAgZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LWF1dG86IHsKICAgICAgICAtbXMtZmxleDogMSAxIGF1dG87CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxIDEgYXV0bzsKICAgICAgICBmbGV4OiAxIDEgYXV0bzsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtbm9uZTogewogICAgICAgIC1tcy1mbGV4OiBub25lOwogICAgICAgIC13ZWJraXQtZmxleDogbm9uZTsKICAgICAgICBmbGV4OiBub25lOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleDogewogICAgICAgIC1tcy1mbGV4OiAxIDEgMC4wMDAwMDAwMDFweDsKICAgICAgICAtd2Via2l0LWZsZXg6IDE7CiAgICAgICAgZmxleDogMTsKICAgICAgICAtd2Via2l0LWZsZXgtYmFzaXM6IDAuMDAwMDAwMDAxcHg7CiAgICAgICAgZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtMjogewogICAgICAgIC1tcy1mbGV4OiAyOwogICAgICAgIC13ZWJraXQtZmxleDogMjsKICAgICAgICBmbGV4OiAyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC0zOiB7CiAgICAgICAgLW1zLWZsZXg6IDM7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAzOwogICAgICAgIGZsZXg6IDM7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTQ6IHsKICAgICAgICAtbXMtZmxleDogNDsKICAgICAgICAtd2Via2l0LWZsZXg6IDQ7CiAgICAgICAgZmxleDogNDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtNTogewogICAgICAgIC1tcy1mbGV4OiA1OwogICAgICAgIC13ZWJraXQtZmxleDogNTsKICAgICAgICBmbGV4OiA1OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC02OiB7CiAgICAgICAgLW1zLWZsZXg6IDY7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA2OwogICAgICAgIGZsZXg6IDY7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTc6IHsKICAgICAgICAtbXMtZmxleDogNzsKICAgICAgICAtd2Via2l0LWZsZXg6IDc7CiAgICAgICAgZmxleDogNzsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtODogewogICAgICAgIC1tcy1mbGV4OiA4OwogICAgICAgIC13ZWJraXQtZmxleDogODsKICAgICAgICBmbGV4OiA4OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC05OiB7CiAgICAgICAgLW1zLWZsZXg6IDk7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA5OwogICAgICAgIGZsZXg6IDk7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTEwOiB7CiAgICAgICAgLW1zLWZsZXg6IDEwOwogICAgICAgIC13ZWJraXQtZmxleDogMTA7CiAgICAgICAgZmxleDogMTA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTExOiB7CiAgICAgICAgLW1zLWZsZXg6IDExOwogICAgICAgIC13ZWJraXQtZmxleDogMTE7CiAgICAgICAgZmxleDogMTE7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTEyOiB7CiAgICAgICAgLW1zLWZsZXg6IDEyOwogICAgICAgIC13ZWJraXQtZmxleDogMTI7CiAgICAgICAgZmxleDogMTI7CiAgICAgIH07CgogICAgICAvKiBhbGlnbm1lbnQgaW4gY3Jvc3MgYXhpcyAqLwoKICAgICAgLS1sYXlvdXQtc3RhcnQ6IHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogc3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1pdGVtczogZmxleC1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xleC1wYWNrOiBlbmQ7CiAgICAgICAgLXdlYmtpdC1qdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1hcm91bmQtanVzdGlmaWVkOiB7CiAgICAgICAgLW1zLWZsZXgtcGFjazogZGlzdHJpYnV0ZTsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtanVzdGlmaWVkOiB7CiAgICAgICAgLW1zLWZsZXgtcGFjazoganVzdGlmeTsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH07CgogICAgICAtLWxheW91dC1jZW50ZXItY2VudGVyOiB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtY2VudGVyLWp1c3RpZmllZDsKICAgICAgfTsKCiAgICAgIC8qIHNlbGYgYWxpZ25tZW50ICovCgogICAgICAtLWxheW91dC1zZWxmLXN0YXJ0OiB7CiAgICAgICAgLW1zLWFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICAgIGFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1zZWxmLWNlbnRlcjogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgYWxpZ24tc2VsZjogY2VudGVyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtc2VsZi1lbmQ6IHsKICAgICAgICAtbXMtYWxpZ24tc2VsZjogZmxleC1lbmQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LXNlbGYtc3RyZXRjaDogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBzdHJldGNoOwogICAgICAgIC13ZWJraXQtYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgICBhbGlnbi1zZWxmOiBzdHJldGNoOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtc2VsZi1iYXNlbGluZTogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICAgIGFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICB9OwoKICAgICAgLyogbXVsdGktbGluZSBhbGlnbm1lbnQgaW4gbWFpbiBheGlzICovCgogICAgICAtLWxheW91dC1zdGFydC1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBzdGFydDsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IGZsZXgtc3RhcnQ7CiAgICAgICAgYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWVuZC1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBlbmQ7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgICAgYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1jZW50ZXItYWxpZ25lZDogewogICAgICAgIC1tcy1mbGV4LWxpbmUtcGFjazogY2VudGVyOyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgYWxpZ24tY29udGVudDogY2VudGVyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtYmV0d2Vlbi1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBqdXN0aWZ5OyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBhbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtYXJvdW5kLWFsaWduZWQ6IHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IGRpc3RyaWJ1dGU7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgICBhbGlnbi1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgIH07CgogICAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgICAgICAgICAgICAgT3RoZXIgTGF5b3V0CiAgICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogICAgICAtLWxheW91dC1ibG9jazogewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtaW52aXNpYmxlOiB7CiAgICAgICAgdmlzaWJpbGl0eTogaGlkZGVuICFpbXBvcnRhbnQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1yZWxhdGl2ZTogewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZpdDogewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1zY3JvbGw6IHsKICAgICAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH07CgogICAgICAtLWxheW91dC1mdWxsYmxlZWQ6IHsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgaGVpZ2h0OiAxMDB2aDsKICAgICAgfTsKCiAgICAgIC8qIGZpeGVkIHBvc2l0aW9uICovCgogICAgICAtLWxheW91dC1maXhlZC10b3A6IHsKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1maXhlZC1yaWdodDogewogICAgICAgIHBvc2l0aW9uOiBmaXhlZDsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZml4ZWQtYm90dG9tOiB7CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZml4ZWQtbGVmdDogewogICAgICAgIHBvc2l0aW9uOiBmaXhlZDsKICAgICAgICB0b3A6IDA7CiAgICAgICA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GVyZSB0aGUKICAgICAgICAgICByaXBwbGUgaXMgbm90IHByb3Blcmx5IGNsaXBwZWQgYnkgaXRzIHBhcmVudCAod2hpY2ggbWF5IGhhdmUKICAgICAgICAgICByb3VuZGVkIGNvcm5lcnMpLiBTZWU6IGh0dHA6Ly9qc2Jpbi5jb20vdGVtZXhhLzQKCiAgICAgICAgICAgTm90ZTogV2Ugb25seSBhcHBseSB0aGlzIHN0eWxlIGNvbmRpdGlvbmFsbHkuIE90aGVyd2lzZSwgdGhlIGJyb3dzZXIKICAgICAgICAgICB3aWxsIGNyZWF0ZSBhIG5ldyBjb21wb3NpdGluZyBsYXllciBmb3IgZXZlcnkgcmlwcGxlIGVsZW1lbnQgb24gdGhlCiAgICAgICAgICAgcGFnZSwgYW5kIHRoYXQgd291bGQgYmUgYmFkLiAqLwogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoMCwgMCk7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgwLCAwLCAwKTsKICAgICAgfQoKICAgICAgI2JhY2tncm91bmQsCiAgICAgICN3YXZlcywKICAgICAgLndhdmUtY29udGFpbmVyLAogICAgICAud2F2ZSB7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQoKICAgICAgI2JhY2tncm91bmQsCiAgICAgIC53YXZlIHsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICB9CgogICAgICAjd2F2ZXMsCiAgICAgIC53YXZlIHsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAud2F2ZS1jb250YWluZXIsCiAgICAgIC53YXZlIHsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgIH0KCiAgICAgIDpob3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bWVyLklyb25CdXR0b25TdGF0ZSxQb2x5bWVyLklyb25Db250cm9sU3RhdGUsUG9seW1lci5QYXBlclJpcHBsZUJlaGF2aW9yLFBvbHltZXIuUGFwZXJCdXR0b25CZWhhdmlvckltcGxdOwo8L3NjcmlwdD4KCgoKCjxjdXN0b20tc3R5bGU+CiAgPHN0eWxlIGlzPSJjdXN0b20tc3R5bGUiPgogICAgaHRtbCB7CgogICAgICAtLXNoYWRvdy10cmFuc2l0aW9uOiB7CiAgICAgICAgdHJhbnNpdGlvbjogYm94LXNoYWRvdyAwLjI4cyBjdWJpYy1iZXppZXIoMC40LCAwLCAwLjIsIDEpOwogICAgICB9OwoKICAgICAgLS1zaGFkb3ctbm9uZTogewogICAgICAgIGJveC1zaGFkb3c6IG5vbmU7CiAgICAgIH07CgogICAgICAvKiBmcm9tIGh0dHA6Ly9jb2RlcGVuLmlvL3NoeW5kbWFuL3Blbi9jNTM5NGRkZjJlOGIyYTVjOTE4NTkwNGI1NzQyMWNkYiAqLwoKICAgICAgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDogewogICAgICAgIGJveC1zaGFkb3c6IDAgMnB4IDJweCAwIHJnYmEoMCwgMCwgMCwgMC4xNCksCiAgICAgICAgICAgICAgICAgICAgMCAxcHggNXB4IDAgcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDNweCAxcHggLTJweCByZ2JhKDAsIDAsIDAsIDAuMik7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tM2RwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCAzcHggNHB4IDAgcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDFweCA4cHggMCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgM3B4IDNweCAtMnB4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi00ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDRweCA1cHggMCByZ2JhKDAsIDAsIDAsIDAuMTQpLAogICAgICAgICAgICAgICAgICAgIDAgMXB4IDEwcHggMCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgMnB4IDRweCAtMXB4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi02ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDZweCAxMHB4IDAgcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDFweCAxOHB4IDAgcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDNweCA1cHggLTFweCByZ2JhKDAsIDAsIDAsIDAuNCk7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tOGRwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCA4cHggMTBweCAxcHggcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDNweCAxNHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgNXB4IDVweCAtM3B4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi0xMmRwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCAxMnB4IDE2cHggMXB4IHJnYmEoMCwgMCwgMCwgMC4xNCksCiAgICAgICAgICAgICAgICAgICAgMCA0cHggMjJweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDZweCA3cHggLTRweCByZ2JhKDAsIDAsIDAsIDAuNCk7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tMTZkcDogewogICAgICAgIGJveC1zaGFkb3c6IDAgMTZweCAyNHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMTQpLAogICAgICAgICAgICAgICAgICAgIDAgIDZweCAzMHB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgIDhweCAxMHB4IC01cHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICB9OwoKICAgICAgLS1zaGFkb3ctZWxldmF0aW9uLTI0ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDI0cHggMzhweCAzcHggcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDlweCA0NnB4IDhweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgMTFweCAxNXB4IC03cHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICB9OwogICAgfQogIDwvc3R5bGU+CjwvY3VzdG9tLXN0eWxlPgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLW1hdGVyaWFsLXN0eWxlcyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCwgaHRtbCB7CiAgICAgICAgLS1wYXBlci1tYXRlcmlhbDogewogICAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgfTsKICAgICAgICAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi0xOiB7CiAgICAgICAgICBAYXBwbHkgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDsKICAgICAgICB9OwogICAgICAgIC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTI6IHsKICAgICAgICAgIEBhcHBseSAtLXNoYWRvdy1lbGV2YXRpb24tNGRwOwogICAgICAgIH07CiAgICAgICAgLS1wYXBlci1tYXRlcmlhbC1lbGV2YXRpb24tMzogewogICAgICAgICAgQGFwcGx5IC0tc2hhZG93LWVsZXZhdGlvbi02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Q6IG5vbmU7CiAgICAgICAgLW1zLXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIHotaW5kZXg6IDA7CiAgICAgICAgcGFkZGluZzogMC43ZW0gMC41N2VtOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWJ1dHRvbjsKICAgICAgfQoKICAgICAgOmhvc3QoW2VsZXZhdGlvbj0iMSJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTE7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjIiXSkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi0yOwogICAgICB9CgogICAgICA6aG9zdChbZWxldmF0aW9uPSIzIl0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1tYXRlcmlhbC1lbGV2YXRpb24tMzsKICAgICAgfQoKICAgICAgOmhvc3QoW2VsZXZhdGlvbj0iNCJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjUiXSkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi01OwogICAgICB9CgogICAgICA6aG9zdChbaGlkZGVuXSkgewogICAgICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgOmhvc3QoW3JhaXNlZF0ua2V5Ym9hcmQtZm9jdXMpIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICBAYXBwbHkgLS1wYXBlci1idXR0b24tc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hdGVkLXBhcGVyLWNoZWNrYm94LWluay1zaXplOiB2YXIoLS1wYXBlci1jaGVja2JveC1pbmstc2l6ZSwgLTFweCk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBsaW5lLWhlaWdodDogMDsKICAgICAgICAtd2Via2l0LXRhcC1oaWdobGlnaHQtY29sb3I6IHRyYW5zcGFyZW50OwogICAgICB9CgogICAgICA6aG9zdChbaGlkZGVuXSkgewogICAgICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgOmhvc3QoOmZvY3VzKSB7CiAgICAgICAgb3V0bGluZTogbm9uZTsKICAgICAgfQoKICAgICAgLmhpZGRlbiB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgI2NoZWNrYm94Q29udGFpbmVyIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiB2YXIoLS1jYWxjdWxhdGVkLXBhcGVyLWNoZWNrYm94LXNpemUpOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKTsKICAgICAgICBtaW4td2lkdGg6IHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtc2l6ZSk7CiAgICAgICAgbWFyZ2luOiB2YXIoLS1wYXBlci1jaGVja2JveC1tYXJnaW4sIGluaXRpYWwpOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiB2YXIoLS1wYXBlci1jaGVja2JveC12ZXJ0aWNhbC1hbGlnbiwgbWlkZGxlKTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtYmFja2dyb3VuZC1jb2xvciwgdHJhbnNwYXJlbnQpOwogICAgICB9CgogICAgICAjaW5rIHsKICAgIC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S1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvciwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwogICAgICB9CgogICAgICAjY2hlY2tib3ggewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBib3JkZXI6IHNvbGlkIDJweDsKICAgICAgICBib3JkZXItY29sb3I6IHZhcigtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvciwgdmFyKC0tcHJpbWFyeS10ZXh0LWNvbG9yKSk7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIC13ZWJraXQtdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAxNDBtcywgYm9yZGVyLWNvbG9yIDE0MG1zOwogICAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMTQwbXMsIGJvcmRlci1jb2xvciAxNDBtczsKICAgICAgfQoKICAgICAgLyogY2hlY2tib3ggY2hlY2tlZCBhbmltYXRpb25zICovCiAgICAgICNjaGVja2JveC5jaGVja2VkICNjaGVja21hcmsgewogICAgICAgIC13ZWJraXQtYW5pbWF0aW9uOiBjaGVja21hcmstZXhwYW5kIDE0MG1zIGVhc2Utb3V0IGZvcndhcmRzOwogICAgICAgIGFuaW1hdGlvbjogY2hlY2ttYXJrLWV4cGFuZCAxNDBtcyBlYXNlLW91dCBmb3J3YXJkczsKICAgICAgfQoKICAgICAgQC13ZWJraXQta2V5ZnJhbWVzIGNoZWNrbWFyay1leHBhbmQgewogICAgICAgIDAlIHsKICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgwLCAwKSByb3RhdGUoNDVkZWcpOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgxLCAxKSByb3RhdGUoNDVkZWcpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBjaGVja21hcmstZXhwYW5kIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDAsIDApIHJvdGF0ZSg0NWRlZyk7CiAgICAgICAgfQogICAgICAgIDEwMCUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLCAxKSByb3RhdGUoNDVkZWcpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgI2NoZWNrYm94LmNoZWNrZWQgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKICAgICAgICBib3JkZXItY29sb3I6IHZhcigtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKICAgICAgfQoKICAgICAgI2NoZWNrbWFyayB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHdpZHRoOiAzNiU7CiAgICAgICAgaGVpZ2h0OiA3MCU7CiAgICAgICAgYm9yZGVyLXN0eWxlOiBzb2xpZDsKICAgICAgICBib3JkZXItdG9wOiBub25lOwogICAgICAgIGJvcmRlci1sZWZ0OiBub25lOwogICAgICAgIGJvcmRlci1yaWdodC13aWR0aDogY2FsYygyLzE1ICogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKSk7CiAgICAgICAgYm9yZGVyLWJvdHRvbS13aWR0aDogY2FsYygyLzE1ICogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKSk7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1jaGVja2JveC1jaGVja21hcmstY29sb3IsIHdoaXRlKTsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcml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ICAgIH0KCiAgICAgICNjaGVja2JveExhYmVsOmRpcihydGwpIHsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiB2YXIoLS1wYXBlci1jaGVja2JveC1sYWJlbC1zcGFjaW5nLCA4cHgpOwogICAgICAgIHBhZGRpbmctbGVmdDogMDsKICAgICAgfQoKICAgICAgI2NoZWNrYm94TGFiZWxbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgLyogZGlzYWJsZWQgc3RhdGUgKi8KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pICNjaGVja2JveCB7CiAgICAgICAgb3BhY2l0eTogMC41OwogICAgICAgIGJvcmRlci1jb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWNvbG9yLCB2YXIoLS1wcmltYXJ5LXRleHQtY29sb3IpKTsKICAgICAgfQoKICAgICAgOmhvc3QoW2Rpc2FibGVkXVtjaGVja2VkXSkgI2NoZWNrYm94IHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIG9wYWNpdHk6IDAuNTsKICAgICAgfQoKICAgICAgOmhvc3QoW2Rpc2FibGVkXSkgI2NoZWNrYm94TGFiZWwgIHsKICAgICAgICBvcGFjaXR5OiAwLjY1OwogICAgICB9CgogICAgICAvKiBpbnZhbGlkIHN0YXRlICovCiAgICAgICNjaGVja2JveC5pbnZhbGlkOm5vdCguY2hlY2tlZCkgewogICAgICAgIGJvcmRlci1jb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtZXJyb3ItY29sb3IsIHZhcigtLWVycm9yLWNvbG9yKSk7CiAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPGRpdiBpZD0iY2hlY2tib3hDb250YWluZXIiPgogICAgICA8ZGl2IGlkPSJjaGVja2JveCIgY2xhc3M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aW9ySW1wbF07Cjwvc2NyaXB0PgoKCgoKCgo8Y3VzdG9tLXN0eWxlPgogIDxzdHlsZSBpcz0iY3VzdG9tLXN0eWxlIj4KICAgIGh0bWwgewoKICAgICAgLyogU2hhcmVkIFN0eWxlcyAqLwogICAgICAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U6IHsKICAgICAgICBmb250LWZhbWlseTogJ1JvYm90bycsICdOb3RvJywgc2Fucy1zZXJpZjsKICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb21tb24tY29kZTogewogICAgICAgIGZvbnQtZmFtaWx5OiAnUm9ib3RvIE1vbm8nLCAnQ29uc29sYXMnLCAnTWVubG8nLCBtb25vc3BhY2U7CiAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtY29tbW9uLWV4cGVuc2l2ZS1rZXJuaW5nOiB7CiAgICAgICAgdGV4dC1yZW5kZXJpbmc6IG9wdGltaXplTGVnaWJpbGl0eTsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb21tb24tbm93cmFwOiB7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICB9OwoKICAgICAgLyogTWF0ZXJpYWwgRm9udCBTdHlsZXMgKi8KCiAgICAgIC0tcGFwZXItZm9udC1kaXNwbGF5NDogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tbm93cmFwOwoKICAgICAgICBmb250LXNpemU6IDExMnB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDQ0ZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDEyMHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWRpc3BsYXkzOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogNTZweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAtLjAyNmVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiA2MHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWRpc3BsYXkyOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiA0NXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDE4ZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDQ4cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtZGlzcGxheTE6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwoKICAgICAgICBmb250LXNpemU6IDM0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsZXR0ZXItc3BhY2luZzogLS4wMWVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiA0MHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWhlYWRsaW5lOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiAyNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDEyZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDMycHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtdGl0bGU6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLW5vd3JhcDsKCiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI4cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtc3ViaGVhZDogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CgogICAgICAgIGZvbnQtc2l6ZTogMTZweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyNHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWJvZHkyOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI0cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtYm9keTE6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwoKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jYXB0aW9uOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjAxMWVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LW1lbnU6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLW5vd3JhcDsKCiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI0cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtYnV0dG9uOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjAxOGVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyNHB4OwogICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtY29kZTI6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1jb2RlOwoKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb2RlMTogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWNvZGU7CgogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4OwogICAgICB9Owo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bnQtc3ViaGVhZDsKICAgICAgfTsKICAgIH0KICA8L3N0eWxlPgo8L2N1c3RvbS1zdHlsZT4KCjxkb20tbW9kdWxlIGlkPSJwYXBlci1pbnB1dC1jb250YWluZXIiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBhZGRpbmc6IDhweCAwOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lcjsKICAgICAgfQoKICAgICAgOmhvc3QoW2lubGluZV0pIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICBvcGFjaXR5OiAwLjMzOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFtoaWRkZW5dKSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuZmxvYXRlZC1sYWJlbC1wbGFjZWhvbGRlciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jYXB0aW9uOwogICAgICB9CgogICAgICAudW5kZXJsaW5lIHsKICAgICAgICBoZWlnaHQ6IDJweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5mb2N1c2VkLWxpbmUgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMnB4IHNvbGlkIHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvciwgdmFyKC0tcHJp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WxpbmUgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1jb2xvciwgdmFyKC0tc2Vjb25kYXJ5LXRleHQtY29sb3IpKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItdW5kZXJsaW5lOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAudW5mb2N1c2VkLWxpbmUgewogICAgICAgIGJvcmRlci1ib3R0b206IDFweCBkYXNoZWQ7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLXVuZGVybGluZS1kaXNhYmxlZDsKICAgICAgfQoKICAgICAgLmlucHV0LXdyYXBwZXIgewogICAgICAgIEBhcHBseSAtLWxheW91dC1ob3Jpem9udGFsOwogICAgICAgIEBhcHBseSAtLWxheW91dC1jZW50ZXI7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXgtYXV0bzsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtcmVsYXRpdmU7CiAgICAgICAgbWF4LXdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQobGFiZWwpLAogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQoLnBhcGVyLWlucHV0LWxhYmVsKSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGZv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ewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC1pbnZhbGlkOwogICAgICB9CgogICAgICAucHJlZml4IDo6c2xvdHRlZCgqKSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtc3ViaGVhZDsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZmxleC1ub25lOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LXByZWZpeDsKICAgICAgfQoKICAgICAgLnN1ZmZpeCA6OnNsb3R0ZWQoKikgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LXN1YmhlYWQ7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXgtbm9uZTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtc3VmZml4OwogICAgICB9CgogICAgICAvKiBGaXJlZm94IHNldHMgYSBtaW4td2lkdGggb24gdGhlIGlucHV0LCB3aGljaCBjYW4gY2F1c2UgbGF5b3V0IGlzc3VlcyAqLwogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQoaW5wdXQpIHsKICAgICAgICBtaW4td2lkdGg6IDA7CiAgICAgIH0KCiAgICAgIC5pbnB1dC1jb250ZW50IDo6c2xvdHRlZCh0ZXh0YXJlYSkgewogICAgICAgIHJlc2l6ZTogbm9uZTsKICAgICAgfQoKICAgICAgLmFkZC1vbi1jb250ZW50IHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5hZGQtb24tY29udGVudC5pcy1pbnZhbGlkIDo6c2xvdHRlZCgqKSB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnZhbGlkLWNvbG9yLCB2YXIoLS1lcnJvci1jb2xvcikpOwogICAgICB9CgogICAgICAuYWR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HV0LCB3aGljaCBjYW4gY2F1c2UgbGF5b3V0IGlzc3VlcyAqLwogICAgICAgIG1pbi13aWR0aDogMDsKICAgICAgfQoKICAgICAgLyogSW4gMS54LCB0aGUgPGlucHV0PiBpcyBkaXN0cmlidXRlZCB0byBwYXBlci1pbnB1dC1jb250YWluZXIsIHdoaWNoIHN0eWxlcyBpdC4KICAgICAgSW4gMi54IHRoZSA8aXJvbi1pbnB1dD4gaXMgZGlzdHJpYnV0ZWQgdG8gcGFwZXItaW5wdXQtY29udGFpbmVyLCB3aGljaCBzdHlsZXMKICAgICAgaXQsIGJ1dCBpbiBvcmRlciBmb3IgdGhpcyB0byB3b3JrIGNvcnJlY3RseSwgd2UgbmVlZCB0byByZXNldCBzb21lCiAgICAgIG9mIHRoZSBuYXRpdmUgaW5wdXQncyBwcm9wZXJ0aWVzIHRvIGluaGVyaXQgKGZyb20gdGhlIGlyb24taW5wdXQpICovCiAgICAgIGlyb24taW5wdXQgPiBpbnB1dCB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLXNoYXJlZC1pbnB1dC1zdHlsZTsKICAgICAgICBmb250LWZhbWlseTogaW5oZXJpdDsKICAgICAgICBmb250LXdlaWdodDogaW5oZXJpdDsKICAgICAgICBmb250LXNpemU6IGluaGVyaXQ7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IGluaGVyaXQ7CiAgICAgICAgd29yZC1zcGFjaW5nOiBpbmhlcml0OwogICAgICAgIGxpbmUtaGVpZ2h0OiBpbmhlcml0OwogICAgICAgIHRleHQtc2hhZG93OiBpbmhlcml0OwogICAgICAgIGNvbG9yOiBpbmhlcml0OwogICAgICAgIGN1cnNvcjogaW5oZXJpdDsKICAgICAgfQoKICAgICAgaW5wdXQ6ZGlzYWJsZWQgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC1kaXNhYmxlZDsKICAgICAgfQoKICAgICAgaW5wdXQ6Oi13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xsaXBzaXM7CiAgICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIH07CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1kcm9wZG93bi1tZW51LWRpc2FibGVkOwogICAgICB9CgogICAgICA6aG9zdChbbm9pbmtdKSBwYXBlci1yaXBwbGUgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtuby1sYWJlbC1mbG9hdF0pIHBhcGVyLXJpcHBsZSB7CiAgICAgICAgdG9wOiA4cHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLXJpcHBsZSB7CiAgICAgICAgdG9wOiAxMnB4OwogICAgICAgIGxlZnQ6IDBweDsKICAgICAgICBib3R0b206IDhweDsKICAgICAgICByaWdodDogMHB4OwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1kcm9wZG93bi1tZW51LXJpcHBsZTsKICAgICAgfQoKICAgICAgcGFwZXItbWVudS1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBhZGRpbmc6IDA7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnUtYnV0dG9uOwogICAgICB9CgogICAgICBwYXBlci1pbnB1dCB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZHJvcGRvd24tbWVudS1pbnB1dDsKICAgICAgfQoKICAgICAgaXJvbi1pY29uIHsKICAgICAgICBjb2xvcjogdmFyKC0tZGlzYWJsZWQtdGV4dC1jb2xvcik7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnUtaWNvbjsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3Rlb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xleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICAubGF5b3V0LndyYXAgewogICAgICAgIC1tcy1mbGV4LXdyYXA6IHdyYXA7CiAgICAgICAgLXdlYmtpdC1mbGV4LXdyYXA6IHdyYXA7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICB9CgogICAgICAubGF5b3V0Lm5vLXdyYXAgewogICAgICAgIC1tcy1mbGV4LXdyYXA6IG5vd3JhcDsKICAgICAgICAtd2Via2l0LWZsZXgtd3JhcDogbm93cmFwOwogICAgICAgIGZsZXgtd3JhcDogbm93cmFwOwogICAgICB9CgogICAgICAubGF5b3V0LmNlbnRlciwKICAgICAgLmxheW91dC5jZW50ZXItY2VudGVyIHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogY2VudGVyOwogICAgICAgIC13ZWJraXQtYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICB9CgogICAgICAubGF5b3V0LmNlbnRlci1qdXN0aWZpZWQsCiAgICAgIC5sYXlvdXQuY2VudGVyLWNlbnRlciB7CiAgICAgICAgLW1zLWZsZXgtcGFjazogY2VudGVyOwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgIH0KCiAgICAgIC5mbGV4IHsKICAgICAgICAtbXMtZmxleDogMSAxIDAuMDAwMDAwMDAxcHg7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxOwogICAgICAgIGZsZXg6IDE7CiAgICAgICAgLXdlYmtpdC1mbGV4LWJhc2lzOiAwLjAwMDAwMDAwMXB4OwogICAgICAgIGZsZXgtYmFzaXM6IDAuMDAwMDAwMDAxcHg7CiAgICAgIH0KCiAgICAgIC5mbGV4LWF1dG8gewogICAgICAgIC1tcy1mbGV4OiAxIDEgYXV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c3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICAgIGFsaWduLWNvbnRlbnQ6IGZsZXgtc3RhcnQ7CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuZW5kLWFsaWduZWQgewogICAgICAgIC1tcy1mbGV4LWxpbmUtcGFjazogZW5kOyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIGFsaWduLWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICB9CgogICAgICAubGF5b3V0LmNlbnRlci1hbGlnbmVkIHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IGNlbnRlcjsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogY2VudGVyOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogY2VudGVyOwogICAgICAgIGFsaWduLWNvbnRlbnQ6IGNlbnRlcjsKICAgICAgfQoKICAgICAgLmxheW91dC5iZXR3ZWVuLWFsaWduZWQgewogICAgICAgIC1tcy1mbGV4LWxpbmUtcGFjazoganVzdGlmeTsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgYWxpZ24tY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgfQoKICAgICAgLmxheW91dC5hcm91bmQtYWxpZ25lZCB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBkaXN0cmlidXRlOyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgICAgYWxpZ24tY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCjxkb20tbW9kdWxlIGlkPSJpcm9uLWZsZXgtZmFjdG9ycyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAuZmxleCwKICAgICAgLmZsZXgtMSB7CiAgICAgICAgLW1zLWZsZXg6IDEgMSAwLjAwMDAwMDAwMXB4OwogICAgICAgIC13ZWJraXQtZmxleDogMTsKICAgICAgICBmbGV4OiAxOwogICAgICAgIC13ZWJraXQtZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgICBmbGV4LWJhc2lzOiAwLjAwMDAwMDAwMXB4OwogICAgICB9CgogICAgICAuZmxleC0yIHsKICAgICAgICAtbXMtZmxleDogMjsKICAgICAgICAtd2Via2l0LWZsZXg6IDI7CiAgICAgICAgZmxleDogMjsKICAgICAgfQoKICAgICAgLmZsZXgtMyB7CiAgICAgICAgLW1zLWZsZXg6IDM7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAzOwogICAgICAgIGZsZXg6IDM7CiAgICAgIH0KCiAgICAgIC5mbGV4LTQgewogICAgICAgIC1tcy1mbGV4OiA0OwogICAgICAgIC13ZWJraXQtZmxleDogNDsKICAgICAgICBmbGV4OiA0OwogICAgICB9CgogICAgICAuZmxleC01IHsKICAgICAgICAtbXMtZmxleDogNTsKICAgICAgICAtd2Via2l0LWZsZXg6IDU7CiAgICAgICAgZmxleDogNTsKICAgICAgfQoKICAgICAgLmZsZXgtNiB7CiAgICAgICAgLW1zLWZsZXg6IDY7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA2OwogICAgICAgIGZsZXg6IDY7CiAgICAgIH0KCiAgICAgIC5mbGV4LTcgewogICAgICAgIC1tcy1mbGV4OiA3OwogICAgICAgIC13ZWJraXQtZmxleDogNzsKICAgICAgICBmbGV4OiA3OwogICAgICB9CgogICAgICAuZmxleC04IHsKICAgICAgICAtbXMtZmxleDogODsKICAgICAgICAtd2Via2l0LWZsZXg6IDg7CiAgICAgICAgZmxleDogODsKICAgICAgfQoKICAgICAgLmZsZXgtOSB7CiAgICAgICAgLW1zLWZsZXg6IDk7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA5OwogICAgICAgIGZsZXg6IDk7CiAgICAgIH0KCiAgICAgIC5mbGV4LTEwIHsKICAgICAgICAtbXMtZmxleDogMTA7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxMDsKICAgICAgICBmbGV4OiAxMDsKICAgICAgfQoKICAgICAgLmZsZXgtMTEgewogICAgICAgIC1tcy1mbGV4OiAxMTsKICAgICAgICAtd2Via2l0LWZsZXg6IDExOwogICAgICAgIGZsZXg6IDExOwogICAgICB9CgogICAgICAuZmxleC0xMiB7CiAgICAgICAgLW1zLWZsZXg6IDEyOwogICAgICAgIC13ZWJraXQtZmxleDogMTI7CiAgICAgICAgZmxleDogMTI7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLXBvc2l0aW9uaW5nIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIC5ibG9jayB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KCiAgICAgIFtoaWRkZW5dIHsKICAgICAgICBkaXNwbGF5OiBub25lICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIC5pbnZpc2libGUgewogICAgICAgIHZpc2liaWxpdHk6IGhpZGRlbiAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAucmVsYXRpdmUgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgLmZpdCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICByaWdodDogMDsKICA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wogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CgogICAgICAuc2VhcmNoLWlucHV0IHsKICAgICAgICBtYXJnaW46IDEwcHggNXB4IDAgMTBweDsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbiB7CiAgICAgICAgYm9yZGVyLXRvcDogc29saWQgMXB4IHJnYmEoMCwgMCwgMCwgMC4xMik7CiAgICAgICAgcGFkZGluZzogdmFyKC0tc2lkZWJhci12ZXJ0aWNhbC1wYWRkaW5nKSAwCiAgICAgICAgICB2YXIoLS1zaWRlYmFyLXZlcnRpY2FsLXBhZGRpbmcpIHZhcigtLXNpZGViYXItbGVmdC1wYWRkaW5nKTsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5zaWRlYmFyLXNlY3Rpb246Zmlyc3Qtb2YtdHlwZSB7CiAgICAgICAgYm9yZGVyOiBub25lOwogICAgICB9CgogICAgICAuc2lkZWJhci1zZWN0aW9uOmxhc3Qtb2YtdHlwZSB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KCiAgICAgIC5zaWRlYmFyLXNlY3Rpb24gcGFwZXItYnV0dG9uIHsKICAgICAgICBtYXJnaW46IDVweDsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbiBwYXBlci1idXR0b246Zmlyc3Qtb2YtdHlwZSB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDAgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbiBwYXBlci1idXR0b246bGFzdC1vZi10eXBlIHsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDAgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbiA+IDpmaXJzdC1jaGlsZCB7CiAgICAgICAgbWFyZ2luLXRvcDogMDsKICAgICAgICBwYWRkaW5nLXRvcDogMDsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbiA+IDpsYXN0LWNoaWxkIHsKICAgICAgICBtYXJnaW4tYm90dG9tOiAwOwogICAgICAgIHBhZGRpbmctYm90dG9tOiAwOwogICAgICB9CgogICAgICAuc2lkZWJhci1zZWN0aW9uIGgzIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIG1hcmdpbjogMTBweCAwIDVweDsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWNvbG9yOiB2YXIoLS10Yi11aS1kYXJrLWFjY2VudCk7CiAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgo8L2RvbS1tb2R1bGU+CgoKCgoKPGRvbS1tb2R1bGUgaWQ9InNjcm9sbGJhci1zdHlsZSI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAuc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7CiAgICAgICAgdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICB9CgogICAgICAuc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhciB7CiAgICAgICAgd2lkdGg6IDEwcHg7CiAgICAgIH0KCiAgICAgIC5zY3JvbGxiYXI6Oi13ZWJraXQtc2Nyb2x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pdj4KICAgIDxzdHlsZT4KICAgICAgLmNvbnRlbnQtd3JhcHBlciA6OnNsb3R0ZWQoKikgewogICAgICAgIGJhY2tncm91bmQ6IG5vbmU7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgbWFyZ2luLXRvcDogMTBweDsKICAgICAgfQoKICAgICAgLmNvbnRlbnQtd3JhcHBlciA6OnNsb3R0ZWQoKikgewogICAgICAgIGJhY2tncm91bmQ6IG5vbmU7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgbWFyZ2luLXRvcDogMTBweDsKICAgICAgfQoKICAgICAgLmNvbnRlbnQtd3JhcHBlciA6OnNsb3R0ZWQoLnNlbGVjdGVkKSB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICBoMyB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWdyZXktODAwKTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IG5vcm1hbDsKICAgICAgICBtYXJnaW46IDAgMCA1cHg7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICA8c2NyaXB0Pi8vfn5XRUJQQVRIfn4vdGYtZGFzaGJvYXJkLWNvbW1vbi90Zi1vcHRpb24tc2VsZWN0b3IuaHRtbC5qcwpQb2x5bWVyKHtpczoidGYtb3B0aW9uLXNlbGVjdG9yIixwcm9wZXJ0aWVzOntuYW1lOlN0cmluZyxzZWxlY3RlZElkOnt0eXBl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YXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICA6aG9zdCg6bGFzdC1vZi10eXBlKSB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMjBweDsKICAgICAgfQoKICAgICAgLmhlYWRpbmcgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogICAgICAgIGJvcmRlcjogbm9uZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxOwogICAgICAgIGJveC1zaGFkb3c6IDAgMXB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMik7CiAgICAgICAgcGFkZGluZzogMTBweCAxNXB4OwogICAgICB9CgogICAgICAuaGVhZGluZzo6LW1vei1mb2N1cy1pbm5lciB7CiAgICAgICAgcGFkZGluZzogMTBweCAxNXB4OwogICAgICB9CgogICAgICBbb3Blbi1idXR0b25dIHsKICAgICAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiAwICFpbXBvcnRhbnQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLm5hbWUgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OwogICAgICAgIGZsb2F0OiBsZWZ0OwogICAgICB9CgogICAgICAubGlnaHQgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTUwMCk7CiAgICAgIH0KCiAgICAgIC5jYXRlZ29yeS1uYW1lIHsKICAgICAgICB3aGl0ZS1zcGFjZTogcHJlOwogICAgICB9CgogICAgICAuY291bnQgewogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDVweDsKICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWdyZXktNTAwKTsKICAgICAgfQoKICAgICAgLmhlYWRpbmc6Oi1tb3otZm9jdXMtaW5uZXIgewogICAgICAgIHBhZGRpbmc6IDEwcHggMTVweDsKICAgICAgfQoKICAgICAgLmNvbnRlbnQgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBiYWNrZ3JvdW5kOiB3aGl0ZTsKICAgICAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiAycHg7CiAgICAgICAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDJweDsKICAgICAgICBib3JkZXItdG9wOiBub25lOwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkZWRlZGU7CiAgICAgICAgcGFkZGluZzogMTVweDsKICAgICAgfQoKICAgICAgLm5hbWUgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OwogICAgICAgIGZsb2F0OiBsZWZ0OwogICAgICB9CgogICAgICAubGlnaHQgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTUwMCk7CiAgICAgIH0KCiAgICAgICNjb250cm9scy1jb250YWluZXIgewogICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgICNjb250cm9scy1jb250YWluZXIgcGFwZXItYnV0dG9uIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIC5iaWctcGFnZS1idXR0b25zIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CgogICAgICAuYmlnLXBhZ2UtYnV0dG9ucyBwYXBlci1idXR0b24gewogICAgICAgIGJhY2tncm91bmQtY29sb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QtaW5rLWNvbG9yOiB2YXIoLS1wYXBlci1saWdodC1ibHVlLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLWxpZ2h0LWJsdWUtOTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLWxpZ2h0LWJsdWUtOTAwKTsKICAgICAgfQogICAgICBbY29sb3ItY2xhc3M9J3JlZCddIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLXJlZC01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLXJlZC01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWNvbG9yOiB2YXIoLS1wYXBlci1yZWQtOTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLXJlZC05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0nZ3JlZW4nXSBwYXBlci1jaGVja2JveCB7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWNvbG9yOiB2YXIoLS1wYXBlci1ncmVlbi01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLWdyZWVuLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLWdyZWVuLTkwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtaW5rLWNvbG9yOiB2YXIoLS1wYXBlci1ncmVlbi05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0ncHVycGxlJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItcHVycGxlLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItcHVycGxlLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLXB1cnBsZS05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItcHVycGxlLTkwMCk7CiAgICAgIH0KICAgICAgW2NvbG9yLWNsYXNzPSd0ZWFsJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItdGVhbC01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLXRlYWwtNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItdGVhbC05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItdGVhbC05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0ncGluayddIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLXBpbmstNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtaW5rLWNvbG9yOiB2YXIoLS1wYXBlci1waW5rLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLXBpbmstOTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLXBpbmstOTAwKTsKICAgICAgfQogICAgICBbY29sb3ItY2xhc3M9J29yYW5nZSddIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLW9yYW5nZS01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLW9yYW5nZS01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWNvbG9yOiB2YXIoLS1wYXBlci1vcmFuZ2UtOTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLW9yYW5nZS05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0nYnJvd24nXSBwYXBlci1jaGVja2JveCB7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWNvbG9yOiB2YXIoLS1wYXBlci1icm93bi01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLWJyb3duLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLWJyb3duLTkwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtaW5rLWNvbG9yOiB2YXIoLS1wYXBlci1icm93bi05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0naW5kaWdvJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItaW5kaWdvLTUwMCk7CiAgICAgICAgLS1wYXBl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AgIH0KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQogICAgICAjb3V0ZXItY29udGFpbmVyIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICB9CiAgICAgIC5uYW1lLXJvdyB7CiAgICAgICAgcGFkZGluZy10b3A6IDVweDsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogNXB4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgd29yZC1icmVhazogYnJlYWstYWxsOyAvKiBtYWtlcyB3cmFwcGluZyBvZiBoeXBlcnBhcmFtIHN0cmluZ3MgYmV0dGVyICovCiAgICAgIH0KICAgICAgLmljb24tY29udGFpbmVyIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAycHg7CiAgICAgIH0KICAgICAgLmNoZWNrYm94IHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDJweDsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgIH0KICAgICAgLmlzb2xhdG9yIHsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgICAgcGFkZGluZzogMHB4OwogICAgICB9CiAgICAgIC5pc29sYXRvci1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogNnB4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgfQogICAgICAuY2hlY2tib3gtY29udGFpbmVyIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDJweDsKICAgICAgfQogICAgICAuaXRlbS1sYWJlbC1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogNXB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICB3aWR0aDogMHB4OyAvKiBoYWNrIHRvIGdldCB0aGUgZmxleC1ncm93IHRvIHdvcmsgcHJvcGVybHkgKi8KICAgICAgfQogICAgICAudG9vbHRpcC12YWx1ZS1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIHBhZGRpbmctbGVmdDogMnB4OwogICAgICB9CiAgICAgIC52ZXJ0aWNhbC1hbGlnbi1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgIH0KICAgICAgLnZlcnRpY2FsLWFsaWduLWNvbnRhaW5lciAudmVydGljYWwtYWxpZ24tY2VudGVyIHsKICAgICAgICBhbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgIH0KICAgICAgLnZlcnRpY2FsLWFsaWduLWNvbnRhaW5lciAudmVydGljYWwtYWxpZ24tdG9wIHsKICAgICAgICBhbGlnbi1zZWxmOiBzdGFydDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIDxzY3JpcHQ+Ly9+fldFQlBBVEh+fi90Zi1kYXNoYm9hcmQtY29tbW9uL3RmLW11bHRpLWNoZWN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gZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIHBhZGRpbmctYm90dG9tOiAxMHB4OwogICAgICB9CiAgICAgICN0b3AtdGV4dCB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDE2cHg7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICB9CiAgICAgIHRmLW11bHRpLWNoZWNrYm94IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CiAgICAgIC54LWJ1dHRvbiB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgfQogICAgICAjdG9vbHRpcC1oZWxwIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgIH0KICAgICAgcGFwZXItYnV0dG9uIHsKICAgICAgICBtYXJnaW4tbGVmdDogMDsKICAgICAgfQogICAgICAjZGF0YS1sb2NhdGlvbiB7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgbWFyZ2luO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8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIC8qCiAgICAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKi8KICAgICAgLyogU1RZTEVTIEZPUiBUSEUgU1BJTk5FUiAqLwogICAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogICAgICAvKgogICAgICAgKiBDb25zdGFudHM6CiAgICAgICAqICAgICAgQVJDU0laRSAgICAgPSAyNzAgZGVncmVlcyAoYW1vdW50IG9mIGNpcmNsZSB0aGUgYXJjIHRha2VzIHVwKQogICAgICAgKiAgICAgIEFSQ1RJTUUgICAgID0gMTMzM21zICh0aW1lIGl0IHRha2VzIHRvIGV4cGFuZCBhbmQgY29udHJhY3QgYXJjKQogICAgICAgKiAgICAgIEFSQ1NUQVJUUk9UID0gMjE2IGRlZ3JlZXMgKGhvdyBtdWNoIHRoZSBzdGFydCBsb2NhdGlvbiBvZiB0aGUgYXJjCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaG91bGQgcm90YXRlIGVhY2ggdGltZSwgMjE2IGdpdmVzIHVzIGEKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUgcG9pbnRlZCBzdGFyIHNoYXBlIChpdCdzIDM2MC81ICogMykuCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBGb3IgYSA3IHBvaW50ZWQgc3Rhciwgd2UgbWlnaHQgZG8KICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDM2MC83ICogMyA9IDE1NC4yODYpCiAgICAgICAqICAgICAgU0hSSU5LX1RJTUUgPSA0MDBtcwogICAgICAgKi8KCiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAyOHB4OwogICAgICAgIGhlaWdodDogMjhweDsKCiAgICAgICAgLyogMzYwICogQVJDVElNRSAvIChBUkNTVEFSVFJPVCArICgzNjAtQVJDU0laRSkpICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvbnRhaW5lci1yb3RhdGlvbi1kdXJhdGlvbjogMTU2OG1zOwoKICAgICAgICAvKiBBUkNUSU1FICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWV4cGFuZC1jb250cmFjdC1kdXJhdGlvbjogMTMzM21zOwoKICAgICAgICAvKiA0ICogQVJDVElNRSAqLwogICAgICAgIC0tcGFwZXItc3Bpbm5lci1mdWxsLWN5Y2xlLWR1cmF0aW9uOiA1MzMybXM7CgogICAgICAgIC8qIFNIUklOS19USU1FICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvb2xkb3duLWR1cmF0aW9uOiA0MDBtczsKICAgICAgfQoKICAgICAgI3NwaW5uZXJDb250YWluZXIgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKCiAgICAgICAgLyogVGhlIHNwaW5uZXIgZG9lcyBub3QgaGF2ZSBhbnkgY29udGVudHMgdGhhdCB3b3VsZCBoYXZlIHRvIGJlCiAgICAgICAgICogZmxpcHBlZCBpZiB0aGUgZGlyZWN0aW9uIGNoYW5nZXMuIEFsd2F5cyB1c2UgbHRyIHNvIHRoYXQgdGhlCiAgICAgICAgICogc3R5bGUgd29ya3Mgb3V0IGNvcnJlY3RseSBpbiBib3RoIGNhc2VzLiAqLwogICAgICAgIGRpcmVjdGlvbjogbHRyOwogICAgICB9CgogICAgICAjc3Bpbm5lckNvbnRhaW5lci5hY3RpdmUgewogICAgICAgIC13ZWJraXQtYW5pbWF0aW9uOiBjb250YWluZXItcm90YXRlIHZhcigtLXBhcGVyLXNwaW5uZXItY29udGFpbmVyLXJvdGF0aW9uLWR1cmF0aW9uKSBsaW5lYXIgaW5maW5pdGU7CiAgICAgICAgYW5pbWF0aW9uOiBjb250YWluZXItcm90YXRlIHZhcigtLXBhcGVyLXNwaW5uZXItY29udGFpbmVyLXJvdGF0aW9uLWR1cmF0aW9uKSBsaW5lYXIgaW5maW5pdGU7CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBjb250YWluZXItcm90YXRlIHsKICAgICAgICB0byB7IC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKSB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgY29udGFpbmVyLXJvdGF0ZSB7CiAgICAgICAgdG8geyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpIH0KICAgICAgfQoKICAgICAgLnNwaW5uZXItbGF5ZXIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1zcGlubmVyLWNvbG9yLCB2YXIoLS1nb29nbGUtYmx1ZS01MDApKTsKICAgICAgfQoKICAgICAgLmxheWVyLTEgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1zcGlubmVyLWxheWVyLTEtY29sb3IsIHZhcigtLWdvb2dsZS1ibHVlLTUwMCkpOwogICAgICB9CgogICAgICAubGF5ZXItMiB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXNwaW5uZXItbGF5ZXItMi1jb2xvciwgdmFyKC0tZ29vZ2xlLXJlZC01MDApKTsKICAgICAgfQoKICAgICAgLmxheWVyLTMgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1zcGlubmVyLWxheWVyLTMtY29sb3IsIHZhcigtLWdvb2dsZS15ZWxsb3ctNTAwKSk7CiAgICAgIH0KCiAgICAgIC5sYXllci00IHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItc3Bpbm5lci1sYXllci00LWNvbG9yLCB2YXIoLS1nb29nbGUtZ3JlZW4tNTAwKSk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gICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgIH0KICAgICAgZGl2IHsKICAgICAgICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC1tb3otdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICB9CgogICAgICAjY2hhcnRkaXYgLm1haW4gewogICAgICAgIGN1cnNvcjogY3Jvc3NoYWlyOwogICAgICB9CgogICAgICA6aG9zdCgucGFua2V5KSAjY2hhcnRkaXYgOm5vdCguZHJhZy16b29taW5nKSAubWFpbiB7CiAgICAgICAgY3Vyc29yOiAtd2Via2l0LWdyYWI7CiAgICAgICAgY3Vyc29yOiBncmFiOwogICAgICB9CgogICAgICA6aG9zdCgubW91c2Vkb3duKSAjY2hhcnRkaXYgLnBhbm5pbmcgLm1haW4gewogICAgICAgIGN1cnNvcjogLXdlYmtpdC1ncmFiYmluZzsKICAgICAgICBjdXJzb3I6IGdyYWJiaW5nOwogICAgICB9CgogICAgICAjY2hhcnRkaXYgbGluZS5ndWlkZS1saW5lIHsKICAgICAgICBzdHJva2U6ICM5OTk7CiAgICAgICAgc3Ryb2tlLXdpZHRoOiAxLjVweDsKICAgICAgfQogICAgICAjY2hhcnRkaXY6aG92ZXIgewogICAgICAgIHdpbGwtY2hhbmdlOiB0cmFuc2Zvcm07CiAgICAgIH0KCiAgICAgIC5naG9zdCB7CiAgICAgICAgb3BhY2l0eTogMC4yOwogICAgICAgIHN0cm9rZS13aWR0aDogMXB4OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgPHNjcmlwdD4vL35+V0VCUEFUSH5+L3Z6LWxpbmUtY2hhcnQyL3RmLXNjYWxlLmpzCihmdW5jdGlvbihhKXtjbGFzcyBjIGV4dGVuZHMgUGxvdHRhYmxlLlF1YW50aXRhdGl2Z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GFibGU+CiAgICAgICAgPHRoZWFkPjwvdGhlYWQ+CiAgICAgICAgPHRib2R5PjwvdGJvZHk+CiAgICAgIDwvdGFibGU+CiAgICA8L2Rpdj4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAuY29udGVudCB7CiAgICAgICAgYmFja2dyb3VuZDogcmdiYSgwLCAwLCAwLCAwLjgpOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDRweDsKICAgICAgICBjb2xvcjogI2ZmZjsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICB0YWJsZSB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxLjRlbTsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICAgIHBhZGRpbmc6IDhweDsKICAgICAgfQoKICAgICAgdGhlYWQgewogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgfQoKICAgICAgdGJvZHkgewogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBsaW5lLWhlaWdodDogMjFweDsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICB9CgogICAgICB0ZCB7CiAgICAgICAgcGFkZGluZzogMCA1cHg7CiAgICAgIH0KCiAgICAgIC5zd2F0Y2ggewogICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgICAgd2lkdGg6IDE4cHg7CiAgICAgIH0KCiAgICAgIC5jbG9zZXN0IC5zd2F0Y2ggewogICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAwIDJweCAjZmZmOwogICAgICB9CgogICAgICB0aCB7CiAgICAgICAgcGFkZGluZzogMCA1cHg7CiAgICA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dCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LXJlbGF0aXZlOwogICAgICB9CgogICAgICA6aG9zdCguaXMtc2Nyb2xsZWQ6bm90KDpmaXJzdC1jaGlsZCkpOjpiZWZvcmUgewogICAgICAgIGNvbnRlbnQ6ICcnOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBoZWlnaHQ6IDFweDsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS1kaXZpZGVyLWNvbG9yKTsKICAgICAgfQoKICAgICAgOmhvc3QoLmNhbi1zY3JvbGw6bm90KC5zY3JvbGxlZC10by1ib3R0b20pOm5vdCg6bGFzdC1jaGlsZCkpOjphZnRlciB7CiAgICAgICAgY29udGVudDogJyc7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGhlaWdodDogMXB4OwogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLWRpdmlkZXItY29sb3IpOwogICAgICB9CgogICAgICAuc2Nyb2xsYWJsZSB7CiAgICAgICAgcGFkZGluZzogMCAyNHB4OwoKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtc2Nyb2xsOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWRpYWxvZy1zY3JvbGxhYmxlOwogICAgICB9CgogICAgICAuZml0IHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZml0OwogICAgICB9CiAgICA8L3N0eWxlPgoKICAgIDxkaXYgaWQ9InNjcm9sbGFibGUiIGNsYXNzPSJzY3JvbGxhYmxlIiBvbi1zY3JvbGw9InVwZGF0ZVNjcm9sbFN0YXRlIj4KICAgICAgPHNsb3Q+PC9zbG90PgogICAgPC9kaXY+CiAgPC90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3JhcGggYnJlYWtzIGFuZCBvbmx5IGNoYW5nZSB0aGUgcGFkZGluZyBhZ2FpbnN0IHRoZQogICAgICAgKiBjb21wb25lbnQgZWRnZXMuCiAgICAgICAqLwogICAgICAjbWFya2Rvd24gPiBwOmZpcnN0LWNoaWxkIHsKICAgICAgICBtYXJnaW4tdG9wOiAwLjNlbTsKICAgICAgfQogICAgICAjbWFya2Rvd24gPiBwOmxhc3QtY2hpbGQgewogICAgICAgIG1hcmdpbi1ib3R0b206IDAuM2VtOwogICAgICB9CgogICAgICAvKiBQbGVhc2FudCBzdHlsZXMgZm9yIE1hcmtkb3duIHRhYmxlcy4gKi8KICAgICAgI21hcmtkb3duIHRhYmxlIHsKICAgICAgICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlOwogICAgICB9CiAgICAgICNtYXJrZG93biB0YWJsZSB0aCB7CiAgICAgICAgZm9udC13ZWlnaHQ6IDYwMDsKICAgICAgfQogICAgICAjbWFya2Rvd24gdGFibGUgdGgsCiAgICAgICNtYXJrZG93biB0YWJsZSB0ZCB7CiAgICAgICAgcGFkZGluZzogNnB4IDEzcHg7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2RmZTJlNTsKICAgICAgfQogICAgICAjbWFya2Rvd24gdGFibGUgdHIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7CiAgICAgICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICNjNmNiZDE7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICA8c2NyaXB0Pi8vfn5XRUJQQVRIfn4vdGYtbWFya2Rvd24tdmlldy90Zi1tYXJrZG93bi12aWV3Lmh0bWwuanMKUG9seW1lcih7aXM6InRmLW1hcmtkb3duLXZpZXciLHByb3BlcnRpZXM6e2h0bWw6e3R5cGU6U3RyaW5nLHZhbHVlOiIifX0sYXR0YWNoZWQoKXt3aW5kb3cucmVxdWVzdEFuaW1hdGlvbkZyYW1lKCgpPT57dG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3JpcHRpb25dXSI+PC90Zi1tYXJrZG93bi12aWV3PgogICAgICAgIDwvcGFwZXItZGlhbG9nLXNjcm9sbGFibGU+CiAgICAgIDwvcGFwZXItZGlhbG9nPgogICAgPC9kaXY+CiAgICA8c3R5bGUgaW5jbHVkZT0idGYtY2FyZC1oZWFkaW5nLXN0eWxlIj4KICAgICAgLmNvbnRhaW5lciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQogICAgICAuY29udGVudCB7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAubmFtZSB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICB9CiAgICAgIC5ydW4gewogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgICB3aWR0aDogYXV0bzsKICAgICAgICBib3JkZXItcmFkaXVzOiAzcHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgICAgcGFkZGluZzogMXB4IDRweCAycHg7CiAgICAgIH0KICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICBwYXBlci1kaWFsb2ctc2Nyb2xsYWJsZSB7CiAgICAgICAgbWF4LXdpZHRoOiA2NDBweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIDxzY3JpcHQ+Ly9+fldFQlBBVEh+fi90Zi1jYXJkLWhlYWRpbmcvdGYtY2FyZC1oZWFkaW5nLmh0bWwuanMKUG9seW1lcih7aXM6InRmLWNhcmQtaGVhZGluZyIscHJvcGVydGllczp7ZGlzcGxheU5hbWU6e3R5cGU6U3RyaW5nLHZhbHVlOm51bGx9LHRhZzp7dHlwZTpTdHJpbmcsdmFsdWU6bnVsbH0scnVuOnt0eXBlOlN0cmluZyx2YWx1ZTpudWxsfSxkZXNjcmlwdGlvbjp7dHlwZTpTdHJpbmcsdmFsdWU6bnVs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Ww9Int7X3J1bn19Ij4KICAgICAgPHBhcGVyLWxpc3Rib3ggc2xvdD0iZHJvcGRvd24tY29udGVudCI+CiAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tydW5zXV0iPgogICAgICAgICAgPHBhcGVyLWl0ZW0gbm8tbGFiZWwtZmxvYXQ9InRydWUiPltbaXRlbV1dPC9wYXBlci1pdGVtPgogICAgICAgIDwvdGVtcGxhdGU+CiAgICAgIDwvcGFwZXItbGlzdGJveD4KICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgIDxhIGRvd25sb2FkPSJbW19jc3ZOYW1lKHRhZywgX3J1bildXSIgaHJlZj0iW1tfY3N2VXJsKHRhZywgX3J1biwgdXJsRm4pXV0iPkNTVjwvYT48YSBkb3dubG9hZD0iW1tfanNvbk5hbWUodGFnLCBfcnVuKV1dIiBocmVmPSJbW19qc29uVXJsKHRhZywgX3J1biwgdXJsRm4pXV0iPkpTT048L2E+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICB9CiAgICAgIHBhcGVyLWRyb3Bkb3duLW1lbnUgewogICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1sYWJlbDogewogICAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIH0KICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDogewogICAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIH0KICAgICAgfQogICAgICBhIHsKICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgbWFyZ2luOiAwIDAuMmVtOwogICAgICB9CiAgICAgIHBhcGVyLWlucHV0IHsKICAgICAgICBmb250LXNpemU6IDIycHg7CiAgICA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kb20taWYiIGlmPSJbW3Nob3dEb3dubG9hZExpbmtzXV0iPgogICAgICAgIDxkaXYgY2xhc3M9ImRvd25sb2FkLWxpbmtzIj4KICAgICAgICAgIDx0Zi1kb3dubG9hZGVyIHJ1bnM9IltbX3J1bnNGcm9tRGF0YShkYXRhVG9Mb2FkKV1dIiB0YWc9IltbdGFnXV0iIHVybC1mbj0iW1tfZG93bmxvYWRVcmxGbl1dIj48L3RmLWRvd25sb2FkZXI+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvdGVtcGxhdGU+CiAgICA8L2Rpdj4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIG1hcmdpbjogNXB4OwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHdpZHRoOiAzMzBweDsKICAgICAgfQoKICAgICAgOmhvc3QoW19leHBhbmRlZF0pIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgOmhvc3QoW19leHBhbmRlZF0pICN0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiA0MDBweDsKICAgICAgfQoKICAgICAgI3RmLWxpbmUtY2hhcnQtZGF0YS1sb2FkZXItY29udGFpbmVyIHsKICAgICAgICBoZWlnaHQ6IDIwMHB4OwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICB0Zi1jYXJkLWhlYWRpbmcgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIG1hcmdpbi1ib3R0b206IDEwcHg7CiAgICAgIH0KCiAgICAgICNidXR0b25zIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7CiAgICAgIH0KCiAgICAgIHBhcGVyLWljb24tYnV0dG9uIHsKICAgICAgICBjb2xvcjogIzIxOTZmMzsKICAgICAgICBib3JkZXItcmFkaXVzOiAxMDAlOwogICAgICAgIHdpZHRoOiAzMnB4OwogICAgICAgIGhlaWdodDogMzJweDsKICAgICAgICBwYWRkaW5nOiA0cHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLWljb24tYnV0dG9uW3NlbGVjdGVkXSB7CiAgICAgICAgYmFja2dyb3VuZDogdmFyKC0tdGItdWktbGlnaHQtYWNjZW50KTsKICAgICAgfQoKICAgICAgLmRvd25sb2FkLWxpbmtzIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGhlaWdodDogMzJweDsKICAgICAgfQoKICAgICAgLmRvd25sb2FkLWxpbmtzIGEgewogICAgICAgIGFsaWduLXNlbGY6IGNlbnRlcjsKICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgbWFyZ2luOiAycHg7CiAgICAgIH0KCiAgICAgIC5kb3dubG9hZC1saW5rcyBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICB3aWR0aDogMTAwcHg7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItbGFiZWw6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHBhcGVyLW1lbnUtYnV0dG9uIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CiAgICAgIHBhcGVyLWl0ZW0gYSB7CiAgICAgICAgY29sb3I6IGluaGVyaXQ7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICA8c2NyaXB0Pi8vfn5XRUJQQVRIfn4vdGYtc2NhbGFyLWRhc2hib2FyZC90Zi1zY2FsYXItY2FyZC5odG1sLmpzClBvbHltZXIoe2lzOiJ0Zi1zY2FsYXItY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dyZXNzIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMjAwcHg7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIDpob3N0KFtoaWRkZW5dKSwgW2hpZGRlbl0gewogICAgICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzQ29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1wcm9ncmVzcy1jb250YWluZXI7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAjcHJvZ3Jlc3NDb250YWluZXIsCiAgICAgIC8qIHRoZSBzdHJpcGUgZm9yIHRoZSBpbmRldGVybWluYXRlIGFuaW1hdGlvbiovCiAgICAgIC5pbmRldGVybWluYXRlOjphZnRlciB7CiAgICAgICAgaGVpZ2h0OiB2YXIoLS1wYXBlci1wcm9ncmVzcy1oZWlnaHQsIDRweCk7CiAgICAgIH0KCiAgICAgICNwcmltYXJ5UHJvZ3Jlc3MsCiAgICAgICNzZWNvbmRhcnlQcm9ncmVzcywKICAgICAgLmluZGV0ZXJtaW5hdGU6OmFmdGVyIHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZml0OwogICAgICB9CgogICAgICAjcHJvZ3Jlc3NDb250YWluZXIsCiAgICAgIC5pbmRldGVybWluYXRlOjphZnRlciB7CiAgICAgICAgYmFja2dyb3VuZDogdmFyKC0tcGFwZXItcHJvZ3Jlc3MtY29udGFpbmVyLWNvbG9yLCB2YXIoLS1nb29nbGUtZ3JleS0zMDApKTsKICAgICAgfQoKICAgICAgOmhvc3QoLnRyYW5zaXRpbmcpICNwcmltYXJ5UHJvZ3Jlc3MsCiAgICAgIDpob3N0KC50cmFuc2l0aW5nKSAjc2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mUgc3VwcG9ydGVkKQogICAgICAgKiB0byBzdXBwb3J0IExUUiBzbGlkZXJzIGluIFJUTCBwYWdlcy4KICAgICAgICovCiAgICAgIDpob3N0KFtkaXI9Imx0ciJdKSAjc2xpZGVyQ29udGFpbmVyIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGVYKDEpOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGVYKDEpOwogICAgICB9CgogICAgICAjc2xpZGVyQ29udGFpbmVyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiBjYWxjKDMwcHggKyB2YXIoLS1jYWxjdWxhdGVkLXBhcGVyLXNsaWRlci1oZWlnaHQpKTsKICAgICAgICBtYXJnaW4tbGVmdDogY2FsYygxNXB4ICsgdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1zbGlkZXItaGVpZ2h0KS8yKTsKICAgICAgICBtYXJnaW4tcmlnaHQ6IGNhbGMoMTVweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkvMik7CiAgICAgIH0KCiAgICAgICNzbGlkZXJDb250YWluZXI6Zm9jdXMgewogICAgICAgIG91dGxpbmU6IDA7CiAgICAgIH0KCiAgICAgICNzbGlkZXJDb250YWluZXIuZWRpdGFibGUgewogICAgICAgIG1hcmdpbi10b3A6IDEycHg7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTJweDsKICAgICAgfQoKICAgICAgLmJhci1jb250YWluZXIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLnJpbmcgPiAuYmFyLWNvbnRhaW5lciB7CiAgICAgICAgbGV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Bib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIEBhcHBseSAtLWxheW91dC1ob3Jpem9udGFsOwogICAgICB9CgogICAgICAuc2xpZGVyLW1hcmtlciB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXg7CiAgICAgIH0KICAgICAgLnNsaWRlci1tYXJrZXJzOjphZnRlciwKICAgICAgLnNsaWRlci1tYXJrZXI6OmFmdGVyIHsKICAgICAgICBjb250ZW50OiAiIjsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBtYXJnaW4tbGVmdDogLTFweDsKICAgICAgICB3aWR0aDogMnB4OwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1zbGlkZXItaGVpZ2h0KTsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItc2xpZGVyLW1hcmtlcnMtY29sb3IsICMwMDApOwogICAgICB9CgogICAgICAuc2xpZGVyLWtub2IgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHRvcDogMDsKICAgICAgICBtYXJnaW4tbGVmdDogY2FsYygtMTVweCAtIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkvMik7CiAgICAgICAgd2lkdGg6IGNhbGMoMzBweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkpOwogICAgICAgIGhlaWdodDogY2FsYygzMHB4ICsgdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1zbGlkZXItaGVpZ2h0KSk7CiAgICAgIH0KCiAgICAgIC50cmFuc2l0aW5nID4gLnNsaWRlci1rbm9iIHsKICAgICAgICB0cmFuc2l0aW9uOiBsZWZ0IDAuMDhzIGVhc2U7CiAgICAgIH0KCiAgIC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1mdW5jdGlvbjogZWFzZTsKICAgICAgfQoKICAgICAgLmV4cGFuZDpub3QoLnBpbikgPiAuc2xpZGVyLWtub2IgPiAuc2xpZGVyLWtub2ItaW5uZXIgewogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgxLjUpOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMS41KTsKICAgICAgfQoKICAgICAgLnJpbmcgPiAuc2xpZGVyLWtub2IgPiAuc2xpZGVyLWtub2ItaW5uZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLXNsaWRlci1rbm9iLXN0YXJ0LWNvbG9yLCB0cmFuc3BhcmVudCk7CiAgICAgICAgYm9yZGVyOiAycHggc29saWQgdmFyKC0tcGFwZXItc2xpZGVyLWtub2Itc3RhcnQtYm9yZGVyLWNvbG9yLCB2YXIoLS1wYXBlci1ncmV5LTQwMCkpOwogICAgICB9CgogICAgICAuc2xpZGVyLWtub2ItaW5uZXI6OmJlZm9yZSB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItc2xpZGVyLXBpbi1jb2xvciwgdmFyKC0tZ29vZ2xlLWJsdWUtNzAwKSk7CiAgICAgIH0KCiAgICAgIC5waW4gPiAuc2xpZGVyLWtub2IgPiAuc2xpZGVyLWtub2ItaW5uZXI6OmJlZm9yZSB7CiAgICAgICAgY29udGVudDogIiI7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiA1MCU7CiAgICAgICAgbWFyZ2luLWxlZnQ6IC0xM3B4OwogICAgICAgIHdpZHRoOiAyNnB4OwogICAgICAgIGhlaWdodDogMjZweDsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCUgNTAlIDUwJSAwOwoKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKC00NWRlZykgc2NhbGUoMCkgdHJhbnNsYXRlKDApOwogICAgICAgIHR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ICAgICB3aWR0aDogMzJweDsKICAgICAgICBoZWlnaHQ6IDI2cHg7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1zbGlkZXItZm9udC1jb2xvciwgI2ZmZik7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwoKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMCkgdHJhbnNsYXRlKDApOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMCkgdHJhbnNsYXRlKDApOwogICAgICB9CgogICAgICAucGluLmV4cGFuZCA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm5lcjo6YWZ0ZXIgewogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgxKSB0cmFuc2xhdGUoMCwgLTE3cHgpOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMSkgdHJhbnNsYXRlKDAsIC0xN3B4KTsKICAgICAgfQoKICAgICAgLyogcGFwZXItaW5wdXQgKi8KICAgICAgLnNsaWRlci1pbnB1dCB7CiAgICAgICAgd2lkdGg6IDUwcHg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDogewogICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgICAgQGFwcGx5IC0tcGFwZXItc2xpZGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDsKICAgICAgICB9OwogICAgICAgIEBhcHBseSAtLXBhcGVyLXNsaWRlci1pbnB1dDsKICAgICAgfQoKICAgICAgLyogZGlzYWJsZWQgc3RhdGUgKi8KICAgICAgI3NsaWRlckNvbnRhaW5lci5kaXNhYmxlZCB7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KCiAgICAgIC5kaXNhYmxlZCA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm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1pbnB1dD4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAudGl0bGUgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTgwMCk7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1hcmdpbi1ib3R0b206IDVweDsKICAgICAgfQoKICAgICAgLnNtb290aGluZy1ibG9jayB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQoKICAgICAgcGFwZXItc2xpZGVyIHsKICAgICAgICAtLXBhcGVyLXNsaWRlci1hY3RpdmUtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLWtub2ItY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLWtub2Itc3RhcnQtYm9yZGVyLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1rbm9iLXN0YXJ0LWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1tYXJrZXJzLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1waW4tY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLXBpbi1zdGFydC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgZmxleC1ncm93OiAyOwogICAgICB9CgogICAgICBwYXBlci1pbnB1dCB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItZm9jdXMtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgIC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ICBoMSB7CiAgICAgICAgZm9udC1zaXplOiAxOXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KCiAgICAgICN0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiAyMDBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI2J1dHRvbnMgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CgogICAgICAuZG93bmxvYWQtbGlua3MgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICB9CgogICAgICAuZG93bmxvYWQtbGlua3MgYSB7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIGFsaWduLXNlbGY6IGNlbnRlcjsKICAgICAgICBtYXJnaW46IDJweDsKICAgICAgfQoKICAgICAgLmRvd25sb2FkLWxpbmtzIHBhcGVyLWRyb3Bkb3duLW1lbnUgewogICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1sYWJlbDogewogICAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIH0KICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDogewogICAg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zaWJsZS10aXRsZS10ZXh0Ij4KICAgICAgICAgIDxpcm9uLWljb24gaWNvbj0iaWNvbnM6ZXJyb3IiPjwvaXJvbi1pY29uPiBNaXNzaW5nIFRhZ3MKICAgICAgICA8L3NwYW4+CiAgICAgIDwvZGl2PgogICAgICA8aXJvbi1jb2xsYXBzZSBvcGVuZWQ9IltbX21pc3NpbmdUYWdzQ29sbGFwc2libGVPcGVuZWRdXSI+CiAgICAgICAgPGRpdiBjbGFzcz0iZXJyb3ItY29udGVudCI+CiAgICAgICAgICA8aXJvbi1pY29uIGNsYXNzPSJlcnJvci1pY29uIiBpY29uPSJpY29uczplcnJvciI+PC9pcm9uLWljb24+CiAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW19taXNzaW5nVGFnc11dIiBhcz0ibWlzc2luZ0VudHJ5Ij4KICAgICAgICAgICAgPGRpdiBjbGFzcz0ibWlzc2luZy10YWdzLWZvci1ydW4tY29udGFpbmVyIj4KICAgICAgICAgICAgICBSdW4gIltbbWlzc2luZ0VudHJ5LnJ1bl1dIiBsYWNrcyBkYXRhIGZvciB0YWdzCiAgICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1ttaXNzaW5nRW50cnkudGFnc11dIiBhcz0idGFnIj4KICAgICAgICAgICAgICAgICAgPGxpPltbdGFnXV08L2xpPgogICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICA8L3VsPgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgIDwvdGVtcGxhdGU+CgogICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW190YWdGaWx0ZXJJbnZhbGlkXV0iPgogICAgICA8ZGl2IGNsYXNzPSJlcnJvci1jb250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bX3Nlcmllc05hbWVzXV0iIGFzPSJzZXJpZXNOYW1lIj4KICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJtYXRjaC1saXN0LWVudHJ5IiBzdHlsZT0iY29sb3I6IFtbX2RldGVybWluZUNvbG9yKF9jb2xvclNjYWxlLCBzZXJpZXNOYW1lKV1dOyI+CiAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz0ibWF0Y2gtZW50cnktc3ltYm9sIj4KICAgICAgICAgICAgICAgICAgW1tfZGV0ZXJtaW5lU3ltYm9sKF9uYW1lVG9EYXRhU2VyaWVzLCBzZXJpZXNOYW1lKV1dCiAgICAgICAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICAgICAgICBbW3Nlcmllc05hbWVdXQogICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgPC9kaXY+CiAgICAgICAgPC9pcm9uLWNvbGxhcHNlPgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CgogICAgPHN0eWxlIGluY2x1ZGU9InRmLWN1c3RvbS1zY2FsYXItY2FyZC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgLmVycm9yLWNvbnRlbnQgewogICAgICAgIGJhY2tncm91bmQ6ICNmMDA7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4OwogICAgICAgIGNvbG9yOiAjZmZmOwogICAgICAgIG1hcmdpbjogMTBweCAwIDAgMDsKICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICB9CgogICAgICAuZXJyb3ItaWNvbiB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgZmlsbDogI2ZmZjsKICAgICAgICBtYXJnaW46IDAgYXV0byA1cHggYXV0bzsKICAgICAgfQoKICAgICAgLmludmFsaWQtcmVnZXggewogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CgogICAgICAuZXJyb3ItY29udGVudCB1bCB7CiAgICAgICAgbWFyZ2luOiAxcHggMCAwIDA7CiAgICAgICAgcGFkZGluZzogMCAwIDAgMTlweDsKICAgICAgfQoKICAgICAgLnRhZy1uYW1lIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQoKICAgICAgLmNvbGxhcHNpYmxlLWxpc3QtdGl0bGUgewogICAgICAgIG1hcmdpbjogMTBweCAwIDVweCAwOwogICAgICB9CgogICAgICAuY29sbGFwc2libGUtdGl0bGUtdGV4dCB7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgfQoKICAgICAgI21hdGNoZXMtbGlzdCB7CiAgICAgICAgbWF4LWhlaWdodDogMjAwcHg7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgfQoKICAgICAgLm1hdGNoLWxpc3QtZW50cnkgewogICAgICAgIG1hcmdpbjogMCAwIDVweCAwOwogICAgICB9CgogICAgICAubWF0Y2gtZW50cnktc3ltYm9sIHsKICAgICAgICBmb250LWZhbWlseTogYXJpYWwsIHNhbnMtc2VyaWY7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHdpZHRoOiAxMHB4OwogICAgICB9CgogICAgICAubWlzc2luZy10YWdzLWZvci1ydW4tY29udGFpbmVyIHsKICAgICAgICBtYXJnaW46IDhweCAwIDAgMDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIDxzY3JpcHQ+Ly9+fldFQlBBVEh+fi90Zi1jdXN0b20tc2NhbGFyLWRhc2hib2FyZC90Zi1jdXN0b20tc2NhbGFyLW1hcmdpbi1jaGFydC1jYXJkLmh0bWwuanMKUG9seW1lcih7aXM6InRmLWN1c3RvbS1zY2FsYXItbWFyZ2luLWNoYXJ0LWNhcmQiLHByb3BlcnRpZXM6e3J1bnM6QXJyYXkseFR5cGU6U3RyaW5nLGFjdGl2ZTp7dHlwZTpCb29sZWFuLHZhbHVlOiEwLHJlYWRPbmx5OiEwfSx0aXRsZ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F5b3V0X3BiMi5MYXlvdXQoCiAgY2F0ZWdvcnk9WwogICAgbGF5b3V0X3BiMi5DYXRlZ29yeSgKICAgICAgdGl0bGU9J2xvc3NlcycsCiAgICAgIGNoYXJ0PVsKICAgICAgICAgIGxheW91dF9wYjIuQ2hhcnQoCiAgICAgICAgICAgICAgdGl0bGU9J2xvc3NlcycsCiAgICAgICAgICAgICAgbXVsdGlsaW5lPWxheW91dF9wYjIuTXVsdGlsaW5lQ2hhcnRDb250ZW50KAogICAgICAgICAgICAgICAgdGFnPVtyJ2xvc3MuKiddLAogICAgICAgICAgICAgICkpLAogICAgICAgICAgbGF5b3V0X3BiMi5DaGFydCgKICAgICAgICAgICAgICB0aXRsZT0nYmF6JywKICAgICAgICAgICAgICBtYXJnaW49bGF5b3V0X3BiMi5NYXJnaW5DaGFydENvbnRlbnQoCiAgICAgICAgICAgICAgICBzZXJpZXM9WwogICAgICAgICAgICAgICAgICBsYXlvdXRfcGIyLk1hcmdpbkNoYXJ0Q29udGVudC5TZXJpZXMoCiAgICAgICAgICAgICAgICAgICAgdmFsdWU9J2xvc3MvYmF6L3NjYWxhcl9zdW1tYXJ5JywKICAgICAgICAgICAgICAgICAgICBsb3dlcj0nYmF6X2xvd2VyL2Jhei9zY2FsYXJfc3VtbWFyeScsCiAgICAgICAgICAgICAgICAgICAgdXBwZXI9J2Jhel91cHBlci9iYXovc2NhbGFyX3N1bW1hcnknKSwKICAgICAgICAgICAgICAgIF0sCiAgICAgICAgICAgICAgKSksCiAgICAgIF0pLAogICAgbGF5b3V0X3BiMi5DYXRlZ29yeSgKICAgICAgdGl0bGU9J3RyaWcgZnVuY3Rpb25zJywKICAgICAgY2hhcnQ9WwogICAgICAgICAgbGF5b3V0X3BiMi5DaGFydCgKICAgICAgICAgICAgICB0aXRsZT0nd2F2ZSB0cmlnIGZ1bmN0aW9ucycsCiAgICAgICAgICAgICAgbXVsdGlsaW5lPWxheW91dF9wYjIuTXVsdGlsaW5lQ2hhcnRDb250ZW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ICAgICAgIGJvcmRlcjogMDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAvKiogRmlyZWZveDogU2ltdWxhdGUgQ2hyb21lJ3Mgb3V0ZXIgZ2xvdyBvbiBidXR0b24gd2hlbiBmb2N1c2VkLiAqLwogICAgICBidXR0b246LW1vei1mb2N1c3JpbmcgewogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgYm94LXNoYWRvdzogMHB4IDBweCAxcHggMnB4IEhpZ2hsaWdodDsKICAgICAgfQoKICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHdpZHRoOiAzNTBweDsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIG1hcmdpbjogMCAxNXB4IDQwcHggMDsKICAgICAgICBvdmVyZmxvdy14OiBhdXRvOwogICAgICB9CgogICAgICAvKiogV2hlbiBhY3R1YWwgc2l6ZSBzaG93biBpcyBvbiwgdXNlIHRoZSBhY3R1YWwgaW1hZ2Ugd2lkdGguICovCiAgICAgIDpob3N0KFthY3R1YWwtc2l6ZV0pIHsKICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgd2lkdGg6IGF1dG87CiAgICAgIH0KCiAgICAgIDpob3N0KFthY3R1YWwtc2l6ZV0pICNtYWluLWltYWdlLWNvbnRhaW5lciB7CiAgICAgICAgbWF4LWhlaWdodDogbm9uZTsKICAgICAgICB3aWR0aDogYXV0bzsKICAgICAgfQoKICAgICAgOmhvc3QoW2FjdHVhbC1zaXplXSkgI21haW4taW1hZ2UtY29udGFpbmVyIGltZyB7CiAgICAgICAgd2lkdGg6IGF1dG87CiAgICAgIH0KCiAgICAgIHBhcGVyLXNwaW5uZXItbGl0ZSB7CiAgICAgICAgd2lkdGg6IDE0cHg7CiAgICAgICAgaGVpZ2h0OiAxNHB4OwogICAgICAgIHZlcnRpY2FsLWFsaWduOiB0ZXh0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3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1waW4tY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLXBpbi1zdGFydC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgIH0KCiAgICAgICNtYWluLWltYWdlLWNvbnRhaW5lciB7CiAgICAgICAgbWF4LWhlaWdodDogMTAyNHB4OwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CgogICAgICAjbWFpbi1pbWFnZS1jb250YWluZXIgaW1nIHsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgaW1hZ2UtcmVuZGVyaW5nOiAtbW96LWNyaXNwLWVkZ2VzOwogICAgICAgIGltYWdlLXJlbmRlcmluZzogcGl4ZWxhdGVkOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQogICAgICBwYXBlci1pY29uLWJ1dHRvbltzZWxlY3RlZF0gewogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgIH0KICAgICAgW2hpZGRlbl0gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICA8c2NyaXB0Pi8vfn5XRUJQQVRIfn4vdGYtaW1hZ2UtZGFzaGJvYXJkL3RmLWltYWdlLWxvYWRlci5odG1sLmpzClBvbHltZXIoe2lzOiJ0Z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kYXNoYm9hcmQtc3R5bGUiPjwvc3R5bGU+CiAgICA8c3R5bGU+CiAgICAgIC5yZXNldHRhYmxlLXNsaWRlci1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KICAgICAgLnJlc2V0dGFibGUtc2xpZGVyLWNvbnRhaW5lciBwYXBlci1zbGlkZXIgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAucmVzZXR0YWJsZS1zbGlkZXItY29udGFpbmVyIHBhcGVyLWJ1dHRvbiB7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICB9CiAgICAgIC5yZXNldHRhYmxlLXNsaWRlci1jb250YWluZXIgcGFwZXItYnV0dG9uW2Rpc2FibGVkXSB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdW5zZXQ7CiAgICAgIH0KICAgICAgLngtYnV0dG9uIHsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdGItdWktbGlnaHQtYWNjZW50KTsKICAgICAgICBjb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICB9CiAgICAgIGgzIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KICAgICAgLm5vLWRhdGEtd2FybmluZyB7CiAgICAgICAgbWF4LXdpZHRoOiA1NDBweDsKICAgICAgICBtYXJnaW46IDgwcHggYXV0byAwIGF1dG87CiAgICAgIH0KICAgICAgcGFwZXItc2xpZGVyIHsKICAgICAgICAtLXBhcGVyLXNsaWRlci1hY3Rpdm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YtY2FyZC1oZWFkaW5nLXN0eWxlIj4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHdpZHRoOiAzNTBweDsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIC0tc3RlcC1zbGlkZXIta25vYi1jb2xvcjogIzQyNDI0MjsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDE1cHg7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgfQoKICAgICAgI3N0ZXBzIHsKICAgICAgICBoZWlnaHQ6IDE1cHg7CiAgICAgICAgbWFyZ2luOiAwIDAgMCAtMTVweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIHBhZGRpbmc6IDAgNXB4OyAvKiBzbyB0aGUgc2xpZGVyIGtub2IgZG9lc24ndCBidXR0IG91dCAqLwogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgICAtLXBhcGVyLXNsaWRlci1hY3RpdmUtY29sb3I6IHZhcigtLXN0ZXAtc2xpZGVyLWtub2ItY29sb3IpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLWtub2ItY29sb3I6IHZhcigtLXN0ZXAtc2xpZGVyLWtub2ItY29sb3IpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLXBpbi1jb2xvcjogdmFyKC0tc3RlcC1zbGlkZXIta25vYi1jb2xvcik7CiAgICAgICAgLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1jb2xvcjogdmFyKC0tc3RlcC1zbGlkZXIta25vYi1jb2xvcik7CiAgICAgICAgLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1ib3JkZXItY29sb3I6IHZhcigtLXN0ZXAtc2xpZGVyLWtub2ItY29sb3IpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLXBpbi1zdGFydC1jb2xvcjogdmFyKC0tc3R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IGlkPSJpcm9uLWF1dG9ncm93LXRleHRhcmVhIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiA0MDBweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZDsKICAgICAgICBwYWRkaW5nOiAycHg7CiAgICAgICAgLW1vei1hcHBlYXJhbmNlOiB0ZXh0YXJlYTsKICAgICAgICAtd2Via2l0LWFwcGVhcmFuY2U6IHRleHRhcmVhOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIC5taXJyb3ItdGV4dCB7CiAgICAgICAgdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgICBAYXBwbHkgLS1pcm9uLWF1dG9ncm93LXRleHRhcmVhOwogICAgICB9CgogICAgICAuZml0IHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZml0OwogICAgICB9CgogICAgICB0ZXh0YXJlYSB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgYm9yZGVyOiBub25lOwogICAgICAgIHJlc2l6ZTogbm9uZTsKICAgICAgICBiYWNrZ3JvdW5kOiBpbmhlcml0OwogICAgICAgIGNvbG9yOiBpbmhlcml0OwogICAgICAgIC8qIHNlZSBjb21tZW50cyBpbiB0ZW1wbGF0ZSAqLwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBmb250LXNpemU6IGluaGVyaXQ7CiAgICAgICAgZm9udC1mYW1pbHk6IGluaGVyaXQ7CiAgICAgICAgbGluZS1oZWlnaHQ6IGluaGVyaXQ7CiAgICAgICAgdGV4dC1hbGlnbjogaW5oZXJpdDsKICAgICAg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X2ZvY3VzYWJsZUVsZW1lbnQoKXtyZXR1cm4gdGhpcy5pbnB1dEVsZW1lbnQudGV4dGFyZWF9fSk7Cjwvc2NyaXB0PgoKCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJwYXBlci10b2FzdCI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLXRvYXN0LWJhY2tncm91bmQtY29sb3IsICMzMjMyMzIpOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci10b2FzdC1jb2xvciwgI2YxZjFmMSk7CiAgICAgICAgbWluLWhlaWdodDogNDhweDsKICAgICAgICBtaW4td2lkdGg6IDI4OHB4OwogICAgICAgIHBhZGRpbmc6IDE2cHggMjRweDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGJveC1zaGFkb3c6IDAgMnB4IDVweCAwIHJnYmEoMCwgMCwgMCwgMC4yNik7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4OwogICAgICAgIG1hcmdpbjogMTJweDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgY3Vyc29yOiBkZWZhdWx0OwogICAgICAgIC13ZWJraXQtdHJhbnNpdGlvbjogLXdlYmtpdC10cmFuc2Zvcm0gMC4zcywgb3BhY2l0eSAwLjNzOwogICAgICAgIHRyYW5zaXRpb246IHRyYW5zZm9ybSAwLjNzLCBvcGFjaXR5IDAuM3M7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDBweCk7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHB4KTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICA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c2U7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgOmhvc3QoOmZvY3VzKSB7CiAgICAgICAgb3V0bGluZTpub25lOwogICAgICB9CgogICAgICAudG9nZ2xlLWJhciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgb3BhY2l0eTogMC40OwogICAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgbGluZWFyIC4wOHM7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItdG9nZ2xlLWJ1dHRvbi11bmNoZWNrZWQtYmFyLWNvbG9yLCAjMDAwMDAwKTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9nZ2xlLWJ1dHRvbi11bmNoZWNrZWQtYmFyOwogICAgICB9CgogICAgICAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogLTNweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIGhlaWdodDogMjBweDsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgICAgYm94LXNoYWRvdzogMCAxcHggNXB4IDAgcmdiYSgwLCAwLCAwLCAwLjYpOwogICAgICAgIHRyYW5zaXRpb246IC13ZWJraXQtdHJhbnNmb3JtIGxpbmVhciAuMDhzLCBiYWNrZ3JvdW5kLWNvbG9yIGxpbmVhciAuMDhzOwogICAgICAgIHRyYW5zaXRpb246IHRyYW5zZm9ybSBsaW5lYXIgLjA4cywgYmFja2dyb3VuZC1jb2xvciBsaW5lYXIgLjA4czs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RhdGlvbi1ub2RlIGNsYXNzZXMuCiAqLwogICAgICAuc2VyaWVzID4gLm5vZGVzaGFwZSA+IHVzZSwKICAgICAgLnNlcmllcyA+IC5hbm5vdGF0aW9uLW5vZGUgPiB1c2UgewogICAgICAgIHN0cm9rZTogI2NjYzsKICAgICAgfQogICAgICAuc2VyaWVzLmhpZ2hsaWdodGVkID4gLm5vZGVzaGFwZSA+IHVzZSwKICAgICAgLnNlcmllcy5oaWdobGlnaHRlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiB1c2UgewogICAgICAgIHN0cm9rZS13aWR0aDogMjsKICAgICAgfQogICAgICAuc2VyaWVzLnNlbGVjdGVkID4gLm5vZGVzaGFwZSA+IHVzZSwKICAgICAgLnNlcmllcy5zZWxlY3RlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiB1c2UgewogICAgICAgIHN0cm9rZTogcmVkOwogICAgICAgIHN0cm9rZS13aWR0aDogMjsKICAgICAgfQoKICAgICAgLnNlcmllcy5zZWxlY3RlZCA+IC5ub2Rlc2hhcGUgPiByZWN0IHsKICAgICAgICBzdHJva2U6IHJlZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDI7CiAgICAgIH0KCiAgICAgIC5hbm5vdGF0aW9uLnNlcmllcy5zZWxlY3RlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiB1c2UgewogICAgICAgIHN0cm9rZTogcmVkOwogICAgICAgIHN0cm9rZS13aWR0aDogMjsKICAgICAgfQoKICAgICAgLyogLS0tIEJyaWRnZSBOb2RlIC0tLSAqLwogICAgICAuYnJpZGdlID4gLm5vZGVzaGFwZSA+IHJlY3QgewogICAgICAgIHN0cm9rZTogI2YwZjsKICAgICAgICBvcGFjaXR5OiAwLjI7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgLyogLS0tIFN0cnVjdHVyYWwgRWxlbWVudHMgLS0tICovCiAgICAgIC5lZGdlID4gcGF0aC5lZGdlbGluZS5zdHJ1Y3R1c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GVkIG1ldGEgbm9kZXMgc2luY2UgdGhleSdyZSByZWR1bmRhbnQuICovCiAgICAgIC5leHBhbmRlZCA+IC5pbi1hbm5vdGF0aW9ucywKICAgICAgLmV4cGFuZGVkID4gLm91dC1hbm5vdGF0aW9ucyB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgLyogLS0tIEFubm90YXRpb246IENvbnN0YW50IC0tLSAqLwoKICAgICAgLmNvbnN0YW50ID4gLmFubm90YXRpb24tbm9kZSA+IGVsbGlwc2UgewogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBmaWxsOiB3aGl0ZTsKICAgICAgICBzdHJva2U6ICM4NDg0ODQ7CiAgICAgIH0KCiAgICAgIC5jb25zdGFudC5zZWxlY3RlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiBlbGxpcHNlIHsKICAgICAgICBmaWxsOiB3aGl0ZTsKICAgICAgICBzdHJva2U6IHJlZDsKICAgICAgfQoKICAgICAgLmNvbnN0YW50LmhpZ2hsaWdodGVkID4gLmFubm90YXRpb24tbm9kZSA+IGVsbGlwc2UgewogICAgICAgIHN0cm9rZS13aWR0aDogMS41OwogICAgICB9CgogICAgICAvKiAtLS0gQW5ub3RhdGlvbjogU3VtbWFyeSAtLS0gKi8KCiAgICAgIC5zdW1tYXJ5ID4gLmFubm90YXRpb24tbm9kZSA+IGVsbGlwc2UgewogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBmaWxsOiAjZGI0NDM3OwogICAgICAgIHN0cm9rZTogI2RiNDQzNzsKICAgICAgfQoKICAgICAgLnN1bW1hcnkuc2VsZWN0ZWQgPiAuYW5ub3RhdGlvbi1ub2RlID4gZWxsaXBzZSB7CiAgICAgICAgZmlsbDogI2E1MjcxNDsKICAgICAgICBzdHJva2U6ICNhNTI3MTQ7CiAgICAgIH0KCiAgICAgIC5zdW1tYXJ5LmhpZ2hsaWdodGVkID4gLmFubm90YXRpb24tbm9kZSA+IGV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vaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CiAgICAgIC8qIE9ubHkgc2hvdyB0aGUgZXhwYW5kIGJ1dHRvbiB3aGVuIGEgbm9kZSBpcyBjb2xsYXBzZWQgYW5kIG9ubHkgc2hvdyB0aGUKICAgY29sbGFwc2UgYnV0dG9uIHdoZW4gYSBub2RlIGlzIGV4cGFuZGVkLiAqLwogICAgICAubm9kZS5leHBhbmRlZCA+IC5ub2Rlc2hhcGUgPiAuYnV0dG9uY29udGFpbmVyID4gLmV4cGFuZGJ1dHRvbiB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQogICAgICAubm9kZTpub3QoLmV4cGFuZGVkKSA+IC5ub2Rlc2hhcGUgPiAuYnV0dG9uY29udGFpbmVyID4gLmNvbGxhcHNlYnV0dG9uIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtc3RhdHMgewogICAgICAgIGZvbnQtc2l6ZTogNHB4OwogICAgICAgIHRleHQtYW5jaG9yOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIC5oZWFsdGgtcGlsbCByZWN0IHsKICAgICAgICBmaWx0ZXI6IHVybCgjaGVhbHRoLXBpbGwtc2hhZG93KTsKICAgICAgICByeDogMzsKICAgICAgICByeTogMzsKICAgICAgfQoKICAgICAgLnRpdGxlQ29udGFpbmVyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgdG9wOiAyMHB4OwogICAgICB9CgogICAgICAudGl0bGUsCiAgICAgIC5hdXhUaXRsZSwKICAgICAgLmZ1bmN0aW9uTGlicmFyeVRpdGxlIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgIH0KCiAgICAgICNtaW5pbWFwIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgcmlnaHQ6IDIwcHg7CiAgICAgICAgYm90dG9tOiAyMHB4OwogICAgICB9CgogICAgICAuY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gICAgICAgPC9kaXY+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvdGVtcGxhdGU+CiAgICA8L3BhcGVyLWRpYWxvZz4KICAgIDxzdHlsZT4KICAgICAgLyoqIFdlIHJlbHkgb24gYSBzZXBhcmF0ZSBgX2hpZGRlbmAgcHJvcGVydHkgaW5zdGVhZCBvZiBkaXJlY3RseSBtYWtpbmcgdXNlCiAgICAgICAgICBvZiB0aGUgYF9vcGVuYCBhdHRyaWJ1dGUgYmVjYXVzZSB0aGlzIENTUyBzcGVjaWZpY2F0aW9uIG1heSBzdHJhbmdlbHkKICAgICAgICAgIGFmZmVjdCBvdGhlciBlbGVtZW50cyB0aHJvdWdob3V0IFRlbnNvckJvYXJkLiBTZWUgIzg5OS4gKi8KICAgICAgOmhvc3QoW19oaWRkZW5dKSB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQogICAgICA6aG9zdCwKICAgICAgI2Rhc2hib2FyZC1iYWNrZHJvcCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgfQoKICAgICAgI2Rhc2hib2FyZC1iYWNrZHJvcCB7CiAgICAgICAgYmFja2dyb3VuZDogcmdiYSgwLCAwLCAwLCAwLjYpOwogICAgICB9CgogICAgICAuY29kZS1leGFtcGxlIHsKICAgICAgICBtYXJnaW46IDEwcHg7CiAgICAgICAgZm9udC1mYW1pbHk6IG1vbm9zcGFjZTsKICAgICAgfQogICAgICAuY29kZS1leGFtcGxlLXNlY3Rpb24gewogICAgICAgIHBhZGRpbmctYm90dG9tOiAxNXB4OwogICAgICB9CiAgICAgIC5jb2RlLWV4YW1wbGUtc2VjdGlvbi10aXRsZSB7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KICAgICAgLmNvZGUtc25pcHBldCB7CiAgICAgICAgcGFkZGluZy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ICAgICBoZWlnaHQ6IDEwcHg7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgfQoKICAgICAgOmhvc3QoW19pcy12ZXJ0aWNhbF0pIHsKICAgICAgICBjdXJzb3I6IGNvbC1yZXNpemU7CiAgICAgICAgcmlnaHQ6IC0xNXB4OwogICAgICAgIHRvcDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgd2lkdGg6IDEwcHg7CiAgICAgIH0KCiAgICAgIC5iYXJzIHsKICAgICAgICB3aWR0aDogODAlOwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiA1MCU7CiAgICAgICAgbGVmdDogNTAlOwogICAgICAgIGZvbnQtc2l6ZTogNXB4OwogICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpOwogICAgICB9CgogICAgICAvKiogVGhpcyBibG9jayBwcmV2ZW50cyB0aGUgYmFycyByb3RhdG9yIGZyb20gaGF2aW5nIGEgaGVpZ2h0IHRoYXQgaXMKICAgICAgICAgIHRoZSBlbnRpcmUgdmlld3BvcnQsIHRodXMgb2NjbHVkaW5nIGl0IGFuZCBnaXZpbmcgaXQgYW4gdW5kZXNpcmVkIGN1cnNvcgogICAgICAgICAgdmFsdWUuICovCiAgICAgIC5iYXJzLXJvdGF0b3IgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgOmhvc3QoW2lzLWhvcml6b250YWxdKSAuYmFycy1yb3RhdG9yIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSg5MGRlZyk7CiAgICAgIH0KCiAgICAgIC5iYXJzLXRleHQgewogICAgICAgIHRyYW5zZm9ybTogc2NhbGVZKDE1KTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGZvbnQtd2V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1jb250YWluZXIgLmNvbnRlbnQtY29udGFpbmVyIHsKICAgICAgICBtYXJnaW46IDAgMCAwIDIwcHg7CiAgICAgIH0KCiAgICAgIC5sZXZlbC1jb250YWluZXIgaXJvbi1jb2xsYXBzZSB7CiAgICAgICAgcGFkZGluZzogMCAwIDAgMjBweDsKICAgICAgfQoKICAgICAgcGFwZXItY2hlY2tib3ggewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgICAgbWFyZ2luOiAwIDhweCAwIDA7CiAgICAgIH0KCiAgICAgIC5vcC10eXBlIHsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAxMHB4OwogICAgICAgIGNvbG9yOiAjNDQ0OwogICAgICB9CgogICAgICAub3AtdGl0bGUtbGVhZiB7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CgogICAgICAub3AtdGl0bGUtbGVhZjpob3ZlciB7CiAgICAgICAgY29sb3I6IGJsdWU7CiAgICAgIH0KCiAgICAgIC5wYXJ0aWFsLWNoZWNrYm94IHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZjU3YzAwOwogICAgICB9CgogICAgICAubm9kZS1leHBhbmQtYnV0dG9uIHsKICAgICAgICBtYXJnaW46IDAgMCAwIC0xM3B4OwogICAgICB9CgogICAgICAubGV2ZWwtdGl0bGUtdGV4dCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGZvbnQtd2VpZ2h0OiA4MDA7CiAgICAgICAgbWFyZ2luOiAwIDAgMCAtMXB4OwogICAgICB9CgogICAgICAub3AtZGVzY3JpcHRpb24gewogICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgbWFyZ2luOiAwIDAgMCAyN3B4OwogICAgICAgIHBhZGRpbmc6IDEwcHggMDs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lZWRzPC90aD4KICAgICAgICAgIDx0aD5GZXRjaGVzPC90aD4KICAgICAgICAgIDx0aD5UYXJnZXRzPC90aD4KICAgICAgICAgIDx0aD4jKERldmljZXMpPC90aD4KICAgICAgICAgIDx0aD5Db3VudDwvdGg+CiAgICAgICAgPC90cj4KICAgICAgPC90YWJsZT4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogMjBweCAwOwogICAgICB9CgogICAgICAuc2VjdGlvbi10aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CiAgICAgIDpob3N0IC5pbmRlbnRlZC1sZXZlbC1jb250YWluZXIgLmNvbnRlbnQtY29udGFpbmVyIHsKICAgICAgICBtYXJnaW46IDAgMCAwIDEwcHg7CiAgICAgIH0KCiAgICAgIC8qIFRPRE8oY2Fpcyk6IFRoaXMgbmVlZHMgd29yazogdGhlIHRhYmxlIHNob3VsZG4ndCBnZXQgdG9vIHdpZGUgd2hlbgogICAgICAgICB0aGVyZSBhcmUgbWFueSBmZWVkcy9mZXRjaGVzL3Rhcmd0ZSBuYW1lcy4gKi8KICAgICAgLnNlc3Npb24tcnVucy10YWJsZSB7CiAgICAgICAgYWxpZ24tY29udGVudDogbGVmdDsKICAgICAgICBhbGlnbi1pdGVtczogbGVmdDsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICAgIGZvbnQtc2l6ZTogOTAlOwogICAgICAgIGJvcmRlci1zdHlsZTogc29saWQgMXB4IGJsYWNrOwogICAgICAgIHRhYmxlLWxheW91dDogZml4ZWQ7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgd29yZC1icmVhazogYnJlYWstYWxsOwogICAgICAgIHBhZGRpbmctdG9wOiAzcHg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAzcHg7CiAg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GNsYXNzJD0ie3tpdGVtLnNvdXJjZUNsYXNzfX0iIGlkPSJzb3VyY2UtbGluZS1bW2l0ZW0ubGluZW5vXV0iPgogICAgICAgICAgPHNwYW4gY2xhc3M9InNvdXJjZS1saW5lLW51bWJlciIgaWQ9InNvdXJjZS1saW5lbm8tW1tpdGVtLmxpbmVub11dIj4KICAgICAgICAgICAgW1tpdGVtLmxpbmVub11dCiAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICA8c3BhbiBjbGFzcz0ic291cmNlLWxpbmUtbm9kZS10b2dnbGUiIGlkPSJzb3VyY2UtbGluZS1ub2RlLXRvZ2dsZS1bW2l0ZW0ubGluZW5vXV0iPgogICAgICAgICAgICBbW2l0ZW0ubnVtTm9kZXNdXQogICAgICAgICAgPC9zcGFuPgogICAgICAgICAgPHNwYW4gY2xhc3M9InNvdXJjZS1saW5lLXRleHQiIGlkPSJzb3VyY2UtbGluZS10ZXh0LVtbaXRlbS5saW5lbm9dXSI+CiAgICAgICAgICAgIFtbaXRlbS50ZXh0XV0KICAgICAgICAgIDwvc3Bhbj4KICAgICAgICAgIDxkaXYgY2xhc3M9InNvdXJjZS1saW5lLW5vZGVzIiBpZD0ic291cmNlLWxpbmUtbm9kZXMtW1tpdGVtLmxpbmVub11dIj48L2Rpdj4KICAgICAgICA8L2Rpdj4KICAgICAgPC90ZW1wbGF0ZT4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAjc291cmNlLWZpbGVzLXRhYnMgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDglOwogICAgICB9CiAgICAgIC5zb3VyY2UtY29udGVudCB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogOTAlOwogICAgICAgIGZvbnQtZmFtaWx5OiBtb25vc3BhY2U7CiAgICAgICAgZm9udC1zaXplOiA5MCU7CiAgICAgICAgb3ZlcmZsb3cteDogc2Nyb2xsOwogICAgICAgIG92ZXJmbG93LXk6IHNjcm9sbDsKICAgICAgfQogICAgICAuc291cmNlLWNvbnRlbnQgOmhvdmVyIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmZjAwOwogICAgICB9CiAgICAgIC5oaWdobGlnaHRlZC1zb3VyY2UtbGluZSB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZlMDsKICAgICAgfQogICAgICAuc291cmNlLWxpbmUtbnVtYmVyIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgY29sb3I6IGxpZ2h0Ymx1ZTsKICAgICAgICB3aWR0aDogMmVtOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDFlbTsKICAgICAgfQogICAgICAuc291cmNlLWxpbmUtbm9kZS10b2dnbGUgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgICB3aWR0aDogNWVtOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDFlbTsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KICAgICAgLnNvdXJjZS1saW5lLW5vZGVzIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDRlbTsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgY29sb3I6IGJsdWU7CiAgICAgICAgbWFyZ2luLXRvcDogMGVtOwogICAgICAgIG1hcmdpbi1ib3R0b206IDBlbTsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDFlbTsKICAgICAgfQogICAgICAuc291cmNlLWxpbmUtbm9kZS1lbnRyeSB7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAxZW07CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogeWVsbG93OwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1ub2RlcyBzcGFuIHsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogeWVsbG93OwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS10ZXh0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmU7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICB9CiAgICAgICNmdWxsU3RhY2tEaWFsb2cgewogICAgICAgIHotaW5kZXg6IDEwMDA7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMTAlOwogICAgICAgIGxlZnQ6IDUwJTsKICAgICAgICB3aWR0aDogNDUlOwogICAgICAgIGhlaWdodDogODUlOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIGdyYXk7CiAgICAgICAgZm9udC1mYW1pbHk6IG1vbm9zcGFjZTsKICAgICAgICBib3gtc2hhZG93OiAzcHggM3B4ICNkZGQ7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgfQogICAgICAjZnVsbC1zdGFjay10aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZWVlOwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAjZnVsbC1zdGFjay1ub2RlLW5hbWUgewogICAgICAgIGNvbG9yOiBibHVlOwogICAgICB9CiAgICAgIDpob3N0ICNmdWxsLXN0YWNrLWNvbnRlbnQgewogICAgICAgIHBhZGRpbmctdG9wOiAxZW07CiAgIC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ImxlZnQiIGNsYXNzPSJ0ZW5zb3ItZGF0YS10YWJsZSI+CiAgICAgICAgPHRoZWFkPgogICAgICAgICAgPHRyIGFsaWduPSJsZWZ0Ij4KICAgICAgICAgICAgPHRoPlRlbnNvcjwvdGg+CiAgICAgICAgICAgIDx0aD5Db3VudDwvdGg+CiAgICAgICAgICAgIDx0aD5EVHlwZTwvdGg+CiAgICAgICAgICAgIDx0aD5TaGFwZTwvdGg+CiAgICAgICAgICAgIDx0aCB3aWR0aD0iMjUlIj5WYWx1ZTwvdGg+CiAgICAgICAgICAgIDx0aCB3aWR0aD0iMjUlIj4KICAgICAgICAgICAgICBIZWFsdGggUGlsbAogICAgICAgICAgICAgIDxwYXBlci10b2dnbGUtYnV0dG9uIGlkPSJzaG93LWhlYWx0aC1waWxscyIgY2hlY2tlZD0ie3tfaGVhbHRoUGlsbHNFbmFibGVkfX0iPgogICAgICAgICAgICAgIDwvcGFwZXItdG9nZ2xlLWJ1dHRvbj4KICAgICAgICAgICAgICA8cGFwZXItY2FyZD4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImhlYWx0aC1waWxsLWxlZ2VuZCIgaWQ9ImhlYWx0aC1waWxsLWxlZ2VuZCI+PC9kaXY+CiAgICAgICAgICAgICAgPC9wYXBlci1jYXJkPgogICAgICAgICAgICA8L3RoPgogICAgICAgICAgICA8dGggd2lkdGg9IjUlIj48L3RoPgogICAgICAgICAgPC90cj4KICAgICAgICA8L3RoZWFkPgogICAgICAgIDx0Ym9keT48L3Rib2R5PgogICAgICA8L3RhYmxlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0ICN0ZW5zb3ItZGF0YS1kaXYgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CiAgICAgIC5zZWN0aW9uLXRpdGxlIHsKICAgICAgICBmb250LXNpemU6IDExMCU7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KICAgICAgOmhvc3QgLmluZGVudGVkLWxldmVsLWNvbnRhaW5lciAuY29udGVudC1jb250YWluZXIgewogICAgICAgIG1hcmdpbjogMCAwIDAgMTBweDsKICAgICAgfQogICAgICA6aG9zdCAudGVuc29yLWRhdGEtdGFibGUgewogICAgICAgIGFsaWduLWNvbnRlbnQ6IGxlZnQ7CiAgICAgICAgYWxpZ24taXRlbXM6IGxlZnQ7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIHBhZGRpbmctdG9wOiAzcHg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAzcHg7CiAgICAgICAgcGFkZGluZy1yaWdodDogM3B4OwogICAgICAgIGJveC1zaGFkb3c6IDNweCAzcHggI2RkZDsKICAgICAgfQogICAgICA6aG9zdCAjdGVuc29yLWRhdGEtdGFibGUgdGggewogICAgICAgIHZlcnRpY2FsLWFsaWduOiB0b3A7CiAgICAgIH0KICAgICAgOmhvc3QgLmFjdGl2ZS10ZW5zb3IgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmZmZTA7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgICAgYm9yZGVyOiBzb2xpZCAxcHggIzg4ODsKICAgICAgfQogICAgICA6aG9zdCAuaGlnaGxpZ2h0ZWQgewogICAgICAgIGNvbG9yOiByZWQ7CiAgICAgIH0KICAgICAgOmhvc3QgLmhlYWx0aC1waWxsLWxlZ2VuZCB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KICAgICAgOmhvc3QgI3Nob3ctaGVhbHRoLXBpbGxzIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KICAgICAgLn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kdGg9IjI1MHB4IiBzcmMkPSJbW19kYXRhSW1hZ2VTcmNdXSI+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIAogICAgICAgICAgCiAgICAgICAgCiAgICAgIDwvdHI+CiAgICA8L3RhYmxlPgoKICAgIDxzdHlsZSBpbmNsdWRlPSJ0ZW5zb3Itd2lkZ2V0LXN0eWxlIj48L3N0eWxlPgogICAgPHN0eWxlPgogICAgICAudGVuc29yLXZhbHVlLWJ1dHRvbnMgewogICAgICAgIGhlaWdodDogNzUlOwogICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgfQogICAgICAudGVuc29yLXZhbHVlLXZpZXctdGFibGUgewogICAgICAgIHdpZHRoOiA1MDBweDsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtdGFibGU7CiAgICAgICAgYm9yZGVyLXNwYWNpbmc6IDVweDsKICAgICAgICBwYWRkaW5nLXRvcDogM3B4OwogICAgICAgIHBhZGRpbmctYm90dG9tOiAzcHg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAzcHg7CiAgICAgICAgcGFkZGluZy1yaWdodDogM3B4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmOGY4Zjg7CiAgICAgICAgYm94LXNoYWRvdzogM3B4IDNweCAxcHggMXB4ICNkOGQ4ZDg7CiAgICAgIH0KICAgICAgLnRlbnNvci12YWx1ZS12aWV3LXRkIHsKICAgICAgICB3aWR0aDogMzUwcHg7CiAgICAgIH0KICAgICAgLnZhbHVlLWNhcmQtaW5wdXQgewogICAgICAgIHdpZHRoOiAxNTBweDsKICAgICAgfQogICAgICAjdGVuc29yLW5hbWUgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDUwJTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KICAgICAgLnRlbnNvci1uYW1lLXRleHQgewogICAgICAgIGNvbG9yOiBibHVlOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICB9CiAgICAgICNkZWJ1Zy1vcCB7CiAgICAgICAgZm9udC1zaXplOiA5MCU7CiAgICAgIH0KICAgICAgLnZhbHVlLWltYWdlIHsKICAgICAgICBpbWFnZS1yZW5kZXJpbmc6IHBpeGVsYXRlZDsKICAgICAgfQogICAgICAudmFsdWUtdmlldy1pY29uLWJ1dHRvbiB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgICB3aWR0aDogMjAlOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBmb250LXNpemU6IDkwJTsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgfQogICAgICAjdGVuc29yLXdpZGdldCB7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgcmdiKDE2MCwgMTYwLCAxNjApOwogICAgICAgIC8qIGJveC1zaXppbmc6IGNvbnRlbnQtYm94OwogICAgICAgIC1tb3otYm94LXNpemluZzogY29udGVudC1ib3g7CiAgICAgICAgLXdlYmtpdC1ib3gtc2l6aW5nOiBjb250ZW50LWJveDsgKi8KICAgICAgICBoZWlnaHQ6IDI4MHB4OwogICAgICAgIHdpZHRoOiA0ODRweDsKICAgICAgfQogICAgICAjc2xpY2luZywKICAgICAgI3RpbWUtaW5kaWNlcyB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbnQtZmFtaWx5OiBtb25vc3BhY2U7CiAgICAgICAgfQogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgPHNjcmlwdD4vL35+V0VCUEFUSH5+L3RmLWRl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ZGViYXItYmFzaXM6IGF1dG87CiAgICAgICAgLS10Zi1kYXNoYm9hcmQtbGF5b3V0LXNpZGViYXItbWF4LXdpZHRoOiBub25lOwogICAgICAgIC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLW1pbi13aWR0aDogbm9uZTsKICAgICAgfQogICAgICAuZGVidWdnZXItc2VjdGlvbi10aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CiAgICAgIHBhcGVyLXRhYnMgewogICAgICAgIGNvbG9yOiAjNTU1OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KICAgICAgcGFwZXItdGFiLmlyb24tc2VsZWN0ZWQgewogICAgICAgIGNvbG9yOiBibGFjazsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAjaW5pdGlhbERpYWxvZyB7CiAgICAgICAgLyoqIFRoaXMgbWF0Y2hlcyB0aGUgZGVmYXVsdCB6LWluZGV4IG9mIHBhcGVyLWRpYWxvZyBiYWNrZHJvcHMuICovCiAgICAgICAgei1pbmRleDogMTAyOwogICAgICB9CiAgICAgIC8qKiBSZXNpemUgdGhlIHJlZ2lvbiBmb3IgdGhlIGdyYXBoIGFzIHRoZSB1c2VyIHJlc2l6ZXMgdGhlIHJlZ2lvbi4gKi8KICAgICAgI2dyYXBoLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiBjYWxjKDEwMCUgLSAxMjBweCk7CiAgICAgICAgLyoqIENsaXAgdGhlIG1pbmltYXAgaWYgdGhlIGhlaWdodCBvZiB0aGUgZ3JhcGggY29udGFpbmVyIGlzIHNtYWxsLiAqLwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CiAgICAgICNncmFwaCB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQogICAgICAjdG9vbHRpcC1zb3J0aW5nIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tdG9wOiA1cHg7CiAgICAgIH0KICAgICAgI3Rvb2x0aXAtc29ydGluZy1sYWJlbCB7CiAgICAgICAgbWFyZ2luLXRvcDogMTNweDsKICAgICAgfQogICAgICAjdG9vbHRpcC1zb3J0aW5nIHBhcGVyLWRyb3Bkb3duLW1lbnUgewogICAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWZvY3VzLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICB3aWR0aDogMTA1cHg7CiAgICAgIH0KICAgICAgI3gtdHlwZS1zZWxlY3RvciBwYXBlci1idXR0b24gewogICAgICAgIG1hcmdpbjogNXB4IDNweDsKICAgICAgfQogICAgICAucnVudGltZS1ncmFwaC1kZXZpY2UgewogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LXdyYXA6IHdyYXA7CiAgICAgIH0KICAgICAgI3J1bnRpbWUtZ3JhcGgtZGV2aWNlLW5hbWUgewogICAgICAgIGZvbnQtc2l6ZTogODUlOwogICAgICAgIHdvcmQtYnJlYWs6IGJyZWFrLWFsbDsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KICAgICAgI2FjdGl2ZS1ydW50aW1lLWdyYXBoLWRldmljZS1uYW1lIHsKICAgICAgICBmb250LXNpemU6IDg1JTsKICAgICAgICB3aWR0aDogMzUwcHg7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CiAgICAgICN0b3AtcmlnaHQtcHJvZ3Jlc3MtYmFyIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgfQogICAgICAubGluZS1pdGVtIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwYWRkaW5nLXRvcDogNXB4OwogICAgICB9CiAgICAgIC5uby1kYXRhLXdhcm5pbmcgewogICAgICAgIG1heC13aWR0aDogNTQwcHg7CiAgICAgICAgbWFyZ2luOiA4MHB4IGF1dG8gMCBhdXRvOwogICAgICB9CiAgICAgIC5zaWRlYmFyIHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3cteDogdmlzaWJsZTsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KICAgICAgLmNlbnRlciB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQogICAgICB0Zi1kZWJ1Z2dlci1yZXNpemVyIHsKICAgICAgICByaWdodDogLTEwcHg7CiAgICAgIH0KICAgICAgI2NlbnRlci1jb250ZW50IHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgIH0KICAgICAgLyoqIFRoZSByZXNpemVyIHNob3VsZCBoYXZlIG5vIHNwYWNlIHRvIHRoZSBsZWZ0IG9mIGl0LiAqLwogICAgICAjY2VudGVyLWNvbnRlbnQgdGYtZGVidWdnZXItcmVzaXplcltpcy1ob3Jpem9udGFsXSB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IC0yM3B4OwogICAgICB9CiAgICAgIC5jb250ZXh0LW1lbnUgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlMmUyZTI7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4OwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtaW4td2lkdGg6IDE1MHB4OwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkNGQ0ZDQ7CiAgICAgIH0KICAgICAgLnNwaW5uZXIgewogICAgICAgIHdpZHRoOiAyMHB4OwogICAgICAgIGhlaWdodDogMjBweDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwogICAgICB9CiAgICAgIC5ub2RlLWVudHJpZXMgewogICAgICAgIGJveC1zaGFkb3c6IDNweCAzcHggI2RkZDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGhlaWdodDogODAlOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICAgIHBhZGRpbmctbGVmdDogM3B4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgICBwYWRkaW5nLXRvcDogM3B4OwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CiAgICAgIC5zb3VyY2UtY29kZS12aWV3LWRpdiB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogNDAlOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiB0b3A7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICBwYWRkaW5nLXRvcDogM3B4OwogICAgICAgIHBhZGRpbmctbGVmdDogM3B4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgICBib3gtc2hhZG93OiAzcHggM3B4ICNkZGQ7CiAgICAgIH0KICAgICAgI3Nlc3Npb25SdW5zVmlldyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICAgIG1heC1oZWlnaHQ6IDI1dmg7CiAgICAgIH0KICAgICAgLmJ1dHRvbnMtY29udGFpbmVyIHsKICAgICAgICBwYWRkaW5nOiAyMHB4IDA7CiAgICAgIH0KICAgICAgI3RlbnNvci1kYXRhIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgcGFkZGluZzogMjBweCAwOwogICAgICAgIG1hcmdpbjogMCAwIDIwcHggMDsKICAgICAgfQogICAgICAjdGVuc29yRGF0YVN1bW1hcnkgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICB0b3A6IDA7CiAgICAgIH0KICAgICAgI3RvcC1yaWdodC1xdWFkcmFudCB7CiAgICAgICAgaGVpZ2h0OiA2NiU7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH0KICAgICAgLnRvZ2dsZS1zb3VyY2UtY29kZSB7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAxZW07CiAgICAgICAgZm9udC1zaXplOiA4MCU7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICB9CiAgICAgIC5jb250ZXh0LW1lbnUgdWwgewogICAgICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBjdXJzb3I6IGRlZmF1bHQ7CiAgICAgIH0KICAgICAgLmNvbnRleHQtbWVudSB1bCBsaSB7CiAgICAgICAgcGFkZGluZzogNHB4IDE2cHg7CiAgICAgIH0KICAgICAgLmNvbnRleHQtbWVudSB1bCBsaTpob3ZlciB7CiAgIC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goKCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1ncmFwaC1kZWJ1Z2dlci1kYXRhLWNhcmQiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQoKICAgICAgaDIgewogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgfQoKICAgICAgLmhlYWx0aC1waWxsLWxlZ2VuZCB7CiAgICAgICAgcGFkZGluZzogMTVweDsKICAgICAgfQoKICAgICAgLmhlYWx0aC1waWxsLWxlZ2VuZCBoMiB7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKICAgICAgfQoKICAgICAgLmhlYWx0aC1waWxsLWVudHJ5IHsKICAgICAgICBtYXJnaW46IDEwcHggMTBweCAxMHB4IDA7CiAgICAgIH0KCiAgICAgIC5oZWFsdGgtcGlsbC1lbnRyeSAuY29sb3ItcHJldmlldyB7CiAgICAgICAgd2lkdGg6IDI2cHg7CiAgICAgICAgaGVpZ2h0OiAyNnB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDNweDsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgbWFyZ2luOiAwIDEwcHggMCAwOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtZW50cnkgLmNvbG9yLWxhYmVsLAogICAgICAuaGVhbHRoLXBpbGwtZW50cnkgLnRlbnNvci1jb3VudCB7CiAgICAgICAgY29sb3I6ICM3Nzc7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGhlaWdodDogMjZweDsKICAgICAgICBmb250LXNpemU6IDIycHg7CiAgICAgICAgbGluZS1oZWlna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cmljLWFsZXJ0cy10YWJsZS1jb250YWluZXIgewogICAgICAgIG1heC1oZWlnaHQ6IDQwMHB4OwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CgogICAgICAjbnVtZXJpYy1hbGVydHMtdGFibGUgewogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgIH0KCiAgICAgICNudW1lcmljLWFsZXJ0cy10YWJsZSB0ZCB7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRvcDsKICAgICAgfQoKICAgICAgI251bWVyaWMtYWxlcnRzLXRhYmxlIC5maXJzdC1vZmZlbnNlLXRkIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIC5maXJzdC1vZmZlbnNlLXRkIHsKICAgICAgICB3aWR0aDogODBweDsKICAgICAgfQoKICAgICAgLnRlbnNvci1kZXZpY2UtdGQgewogICAgICAgIG1heC13aWR0aDogMTQwcHg7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICB9CgogICAgICAudGVuc29yLXNlY3Rpb24td2l0aGluLXRhYmxlIHsKICAgICAgICBjb2xvcjogIzI2NjIzNjsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgb3BhY2l0eTogMC44OwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICB9CgogICAgICAudGVuc29yLXNlY3Rpb24td2l0aGluLXRhYmxlOmhvdmVyIHsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICB9CgogICAgICAuZGV2aWNlLXNlY3Rpb24td2l0aGluLXRhYmxlIHsKICAgICAgICBjb2xvcjogIzY2NjsKICAgICAgfQoKICAgICAgLm1pbmktaGVhbHRoLXBpbGwgewogICAgICAgIHdpZHRoOiAxMzBweDsKICAgICAgfQoKICAgICAgLm1pbmktaGVhbHRoLXBpbGwgPiBkaXYgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB3aWR0aDogNjBweDsKICAgICAgICBib3JkZXItcmFkaXVzOiAzcHg7CiAgICAgIH0KCiAgICAgICNldmVudC1jb3VudHMtdGggewogICAgICAgIHBhZGRpbmc6IDAgMCAwIDEwcHg7CiAgICAgIH0KCiAgICAgIC5uZWdhdGl2ZS1pbmYtbWluaS1oZWFsdGgtcGlsbC1zZWN0aW9uIHsKICAgICAgICBiYWNrZ3JvdW5kOiByZ2IoMjU1LCAxNDEsIDApOwogICAgICAgIHdpZHRoOiAyMHB4OwogICAgICB9CgogICAgICAucG9zaXRpdmUtaW5mLW1pbmktaGVhbHRoLXBpbGwtc2VjdGlvbiB7CiAgICAgICAgYmFja2dyb3VuZDogcmdiKDAsIDYyLCAyMTIpOwogICAgICAgIHdpZHRoOiAyMHB4OwogICAgICB9CgogICAgICAubmFuLW1pbmktaGVhbHRoLXBpbGwtc2VjdGlvbiB7CiAgICAgICAgYmFja2dyb3VuZDogcmdiKDIwNCwgNDcsIDQ0KTsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgfQoKICAgICAgLm5lZ2F0aXZlLWluZi1taW5pLWhlYWx0aC1waWxsLXNlY3Rpb24sCiAgICAgIC5wb3NpdGl2ZS1pbmYtbWluaS1oZWFsdGgtcGlsbC1zZWN0aW9uLAogICAgICAubmFuLW1pbmktaGVhbHRoLXBpbGwtc2VjdGlvbiB7CiAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgICBtYXJnaW46IDAgMCAwIDEwcHg7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICB9CgogICAgICAubm8tbnVtZXJpYy1hbGVydHMtbm90aWZpY2F0aW9uIHsKICAgICAgICBtYXJnaW46IDA7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8cGF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dG87CiAgICAgIH0KCiAgICAgIHBhcGVyLWl0ZW0gewogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgYmFja2dyb3VuZDogI2U5ZTllOTsKICAgICAgfQoKICAgICAgcGFwZXItaXRlbS1ib2R5W3R3by1saW5lXSB7CiAgICAgICAgbWluLWhlaWdodDogMDsKICAgICAgICBwYWRkaW5nOiA4cHggMTJweCA0cHg7CiAgICAgIH0KCiAgICAgIC5leHBhbmRlZEluZm8gewogICAgICAgIHBhZGRpbmc6IDhweCAxMnB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgZm9udC1zaXplOiAxMnB0OwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAubm9kZS1uYW1lIHsKICAgICAgICB3aGl0ZS1zcGFjZTogbm9ybWFsOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgICBmb250LXNpemU6IDE0cHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgfQoKICAgICAgLnN1YnRpdGxlIHsKICAgICAgICBmb250LXNpemU6IDEycHQ7CiAgICAgICAgY29sb3I6ICM1ZTVlNWU7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtYnV0dG9uIHsKICAgICAgICBmbG9hdDogcmlnaHQ7CiAgICAgICAgbWF4LWhlaWdodDogMjBweDsKICAgICAgICBtYXgtd2lkdGg6IDIwcHg7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgfQoKICAgICAgLm5vbi1jb250cm9sLWxpc3QtaXRlbSB7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAxMHB4OwogICAgICB9CgogICAgICBkaXYub3AtY29tcGF0LWRpc3BsYXkgewogICAgICAgIG1hcmdpbi10b3A6IDEwcHg7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CgogICAgICBzdmcub3AtY29tcGF0IHsKICAgICAgICB3aWR0aDogMjUwcHg7CiAgICAgIC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bW19vcENvbXBhdENvbG9yXV0iPjwvc3RvcD4KICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQkPSJbW19vcENvbXBhdFNjb3JlXV0iIHN0b3AtY29sb3IkPSJbW19vcENvbXBhdENvbG9yXV0iPjwvc3RvcD4KICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQkPSJbW19vcENvbXBhdFNjb3JlXV0iIHN0b3AtY29sb3IkPSJbW19vcEluY29tcGF0Q29sb3JdXSI+PC9zdG9wPgogICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvciQ9IltbX29wSW5jb21wYXRDb2xvciBdXSI+PC9zdG9wPgogICAgICAgICAgICAgICAgICA8L2xpbmVhcmdyYWRpZW50PgogICAgICAgICAgICAgICAgPC9kZWZzPgogICAgICAgICAgICAgICAgPHJlY3QgaGVpZ2h0PSIyNSIgd2lkdGg9IjI1MCIgcng9IjUiIHJ5PSI1IiBzdHlsZT0iZmlsbDogdXJsKCcjb3AtY29tcGF0LWZpbGwnKTsiIC8+CiAgICAgICAgICAgICAgPC9zdmc+CiAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ib3AtY29tcGF0LXZhbHVlIj5bW19vcENvbXBhdFNjb3JlTGFiZWxdXTwvZGl2PgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgICA8L3BhcGVyLWl0ZW0tYm9keT4KICAgIDwvcGFwZXItaXRlbT4KCiAgICA8aXJvbi1jb2xsYXBzZSBvcGVuZWQ9Int7X2V4cGFuZGVkfX0iPgogICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X2V4cGFuZGVkfX0iIHJlc3RhbXA9InRydWUiPgogICAgICAgIDxkaXYgY2xhc3M9ImV4cGFuZGVkSW5mbyI+CiAgICAgICAgICBJbmNvbXBhdGlibGUgT3BlcmF0aW9uczogKDxzcGFuPltbX3RvdGFsSW5j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iAzMCU7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICAgIGNvbG9yOiAjNTY1NjU2OwogICAgICAgIGZvbnQtc2l6ZTogMTFwdDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICB9CgogICAgICAuYXR0ci1yaWdodCB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDMwJTsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgY29sb3I6ICM1NjU2NTY7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgfQoKICAgICAgLnN1Yi1saXN0LXRhYmxlIHsKICAgICAgICBkaXNwbGF5OiB0YWJsZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgLnN1Yi1saXN0LXRhYmxlLXJvdyB7CiAgICAgICAgZGlzcGxheTogdGFibGUtcm93OwogICAgICB9CgogICAgICAuc3ViLWxpc3QtdGFibGUtcm93IC5zdWItbGlzdC10YWJsZS1jZWxsOmxhc3QtY2hpbGQgewogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICB9CgogICAgICAuc3ViLWxpc3QtdGFibGUtY2VsbCB7CiAgICAgICAgY29sb3I6ICM1NjU2NTY7CiAgICAgICAgZGlzcGxheTogdGFibGUtY2VsbDsKICAgICAgICBmb250LXNpemU6IDExcHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBtYXgtd2lkdGg6IDIwMHB4OwogICAgICAgIHBhZGRpbmc6IDAgNHB4OwogICAgICB9CgogICAgICBwYXBlci1pdGVtIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGJhY2tncm91bmQ6ICNlOWU5ZTk7CiAgICAgIH0KCiAgICAgIHBhcGVyLWl0ZW0tYm9keVt0d28tbGluZV0gewogICAgICAgIG1pbi1oZWlnaHQ6IDA7CiAgICAgICAgcGFkZGluZzogOHB4IDEycHggNHB4OwogICAgICB9CgogICAgICAuZXhwYW5kZWRJbmZvIHsKICAgICAgICBwYWRkaW5nOiA4cHggMTJweDsKICAgICAgfQoKICAgICAgLmNvbnRyb2xEZXBzIHsKICAgICAgICBwYWRkaW5nOiAwIDAgMCA4cHg7CiAgICAgIH0KCiAgICAgIC5ub2RlLW5hbWUgewogICAgICAgIHdoaXRlLXNwYWNlOiBub3JtYWw7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICAgIGZvbnQtc2l6ZTogMTRwdDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICB9CgogICAgICAubm9kZS1pY29uIHsKICAgICAgICBmbG9hdDogcmlnaHQ7CiAgICAgIH0KCiAgICAgIC5zdWJ0aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMnB0OwogICAgICAgIGNvbG9yOiAjNWU1ZTVlOwogICAgICB9CgogICAgICAuY29udHJvbExpbmUgewogICAgICAgIGZvbnQtc2l6ZTogMTFwdDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICB9CgogICAgICAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIG1heC1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAyMHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgIH0KCiAgICAgIC5jb250cm9sLXRvZ2dsZS1idXR0b24gewogICAgICAgIGZsb2F0OiBsZWZ0OwogICAgICAgIG1heC1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAyMHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtaW5jbHVkZS1ncm91cCB7CiAgICAgICAgcGFkZGluZy10b3A6IDRweDsKICAgICAgfQoKICAgICAgLnRvZ2dsZS1pbmNsdWRlIHsKICAgICAgICBtYXJnaW46IDVweCA2cHg7CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IG5vbmU7CiAg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V0iIGVkZ2UtbGFiZWw9IltbaXRlbS5lZGdlTGFiZWxdXSIgaXRlbS1yZW5kZXItaW5mbz0iW1tpdGVtLnJlbmRlckluZm9dXSIgbmFtZT0iW1tpdGVtLm5hbWVdXSIgaXRlbS10eXBlPSJzdWNjZXNzb3IiIGNvbG9yLWJ5PSJbW2NvbG9yQnldXSIgdGVtcGxhdGUtaW5kZXg9IltbX3RlbXBsYXRlSW5kZXhdXSI+CiAgICAgICAgICAgICAgICA8L3RmLW5vZGUtbGlzdC1pdGVtPgogICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgIDwvaXJvbi1saXN0PgogICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX3N1Y2Nlc3NvcnMuY29udHJvbC5sZW5ndGhdXSI+CiAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29udHJvbERlcHMiPgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29udHJvbExpbmUiPgogICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0ie3tfZ2V0VG9nZ2xlSWNvbihfb3BlbmVkQ29udHJvbFN1Y2MpfX0iIG9uLWNsaWNrPSJfdG9nZ2xlQ29udHJvbFN1Y2MiIGNsYXNzPSJjb250cm9sLXRvZ2dsZS1idXR0b24iPgogICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICBDb250cm9sIGRlcGVuZGVuY2llcwogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8aXJvbi1jb2xsYXBzZSBvcGVuZWQ9Int7X29wZW5lZENvbnRyb2xTdWNjfX0iIG5vLWFuaW1hdGlvbj4KICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJ7e19vcGVuZWRDb250cm9sU3VjY319IiByZXN0YW1wPSJ0cnVlIj4KICAgICAgICAgICAgICAgICAgICA8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8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPk1lbW9yeTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPgogICAgICAgICAgICAgICAgICAgICAgW1tfbm9kZVN0YXRzRm9ybWF0dGVkQnl0ZXNdXQogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X2dldFRvdGFsTWljcm9zKF9ub2RlU3RhdHMpfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPkNvbXB1dGUgVGltZTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPgogICAgICAgICAgICAgICAgICAgICAgW1tfbm9kZVN0YXRzRm9ybWF0dGVkQ29tcHV0ZVRpbWVdXQogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X25vZGVTdGF0cy5vdXRwdXRTaXplfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPlRlbnNvciBPdXRwdXQg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wYWNpdHk6IDAuMTsKICAgICAgfQoKICAgICAgLmNvbnRhaW5lci5sb2FkaW5nLmVycm9yIHsKICAgICAgICBjdXJzb3I6IGF1dG87CiAgICAgIH0KCiAgICAgICNpbmZvIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgcmlnaHQ6IDVweDsKICAgICAgICB0b3A6IDVweDsKICAgICAgICBwYWRkaW5nOiAwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAzODBweDsKICAgICAgICBtaW4td2lkdGg6IDMyMHB4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC45KTsKICAgICAgICBAYXBwbHkgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDsKICAgICAgfQoKICAgICAgI21haW4gewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzLWJhciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogNDBweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzLW1zZyB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLXByb2dyZXNzIHsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgICAgLS1wYXBlci1wcm9ncmVzcy1oZWlnaHQ6IDZweDsKICAgICAgICAtLXBhcGVyLXByb2dyZXNzLWFjdGl2ZS1jb2xvcjogI2YzOTEzZTsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2UyZTJlMjsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1pbi13aWR0aDogMTUwcHg7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2Q0ZDRkNDsKICAgICAgfQoKICAgICAgL2RlZXAvIC5jb250ZXh0LW1lbnUgdWwgewogICAgICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBjdXJzb3I6IGRlZmF1bHQ7CiAgICAgIH0KCiAgICAgIC9kZWVwLyAuY29udGV4dC1tZW51IHVsIGxpIHsKICAgICAgICBwYWRkaW5nOiA0cHggMTZweDsKICAgICAgfQoKICAgICAgL2RlZXAvIC5jb250ZXh0LW1lbnUgdWwgbGk6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmMzkxM2U7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19pc05vdENvbXBsZXRlKHByb2dyZXNzKV1dIj4KICAgICAgPGRpdiBpZD0icHJvZ3Jlc3MtYmFyIj4KICAgICAgICA8ZGl2IGlkPSJwcm9ncmVzcy1tc2ciPltbcHJvZ3Jlc3MubXNnXV08L2Rpdj4KICAgICAgICA8cGFwZXItcHJvZ3Jlc3MgdmFsdWU9IltbcHJvZ3Jlc3MudmFsdWVdXSI+PC9wYXBlci1wcm9ncmVzcz4KICAgICAgPC9kaXY+CiAgICA8L3RlbXBs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hcigtLWNhbGN1bGF0ZWQtcGFwZXItcmFkaW8tYnV0dG9uLXNpemUpOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1yYWRpby1idXR0b24tc2l6ZSk7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItcmFkaW8tYnV0dG9uLXJhZGlvLWNvbnRhaW5lcjsKICAgICAgfQoKICAgICAgI2luayB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogNTAlOwogICAgICAgIGxlZnQ6IDUwJTsKICAgICAgICByaWdodDogYXV0bzsKICAgICAgICB3aWR0aDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1yYWRpby1idXR0b24taW5rLXNpemUpOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1yYWRpby1idXR0b24taW5rLXNpemUpOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1yYWRpby1idXR0b24tdW5jaGVja2VkLWluay1jb2xvciwgdmFyKC0tcHJpbWFyeS10ZXh0LWNvbG9yKSk7CiAgICAgICAgb3BhY2l0eTogMC42OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7CiAgICAgIH0KCiAgICAgICNpbmtbY2hlY2tlZF0gewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1yYWRpby1idXR0b24tY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKICAgICAgfQoKICAgICAgI29mZlJhZGlvLCAjb25SYWRpbyB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7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250LWNvbW1vbi1iYXNlOwogICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICBsaW5lLWhlaWdodDogMTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci10b29sdGlwLWJhY2tncm91bmQsICM2MTYxNjEpOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci10b29sdGlwLXRleHQtY29sb3IsIHdoaXRlKTsKICAgICAgICBwYWRkaW5nOiA4cHg7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMnB4OwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRvb2x0aXA7CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVTY2FsZVVwIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDAuMCk7CiAgICAgICAgfQogICAgICAgIDEwMCUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLjApOwogICAgICAgIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBrZXlGcmFtZVNjYWxlRG93biB7CiAgICAgICAgMCUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLjApOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMC4wKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVGYWRlSW5PcGFjaXR5IHsKICAgICAgICAwJSB7CiAgICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVGYWRlT3V0T3BhY2l0eSB7CiAgICAgICAgMCUgewogICAgICAgICAgb3BhY2l0eTogdmFyKC0tcGFwZXItdG9vbHRpcC1vcGFjaXR5LCAwLjkpOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lU2xpZGVEb3duSW4gewogICAgICAgIDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtMjAwMHB4KTsKICAgICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgfQogICAgICAgIDEwJSB7CiAgICAgICAgICBvcGFjaXR5OiAwLjI7CiAgICAgICAgfQogICAgICAgIDEwMCUgewogICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDApOwogICAgICAgICAgb3BhY2l0eTogdmFyKC0tcGFwZXItdG9vbHRpcC1vcGFjaXR5LCAwLjkpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBrZXlGcmFtZVNsaWRlRG93bk91dCB7CiAgICAgICAgMCUgewogICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDApOwogICAgICAgICAgb3BhY2l0eTogdmFyKC0tcGFwZXItdG9vbHRpcC1vcGFjaXR5LCAwLjkpOwogICAgICAgIH0KICAgICAgICAxMCUgewogICAgICAgICAgb3BhY2l0eTogMC4yOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtMjAwMHB4KTsKICAgICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgfQogICAgICB9CgogICAgICAuZmFkZS1pbi1hbmltYXRpb24gewogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgYW5pbWF0aW9uLWRlbGF5OiB2YXIoLS1wYXBlci10b29sdGlwLWRlbGF5LWluLCA1MDBtcyk7CiAgICAgICAgYW5pbWF0aW9uLW5hbWU6IGtleUZyYW1lRmFkZUluT3BhY2l0eTsKICAgICAgICBhbmltYXRpb24taXRlcmF0aW9uLW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gtcmVzdWx0cyI+CiAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW19yZWdleE1hdGNoZXNdXSI+CiAgICAgICAgICAgIDxkaXYgaWQ9InNlYXJjaC1tYXRjaCIgb24tY2xpY2s9Il9tYXRjaENsaWNrZWQiPltbaXRlbV1dPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgIDwvZGl2PgogICAgICA8L2Rpdj4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAjc2VhcmNoLWNvbnRhaW5lciB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IHZpc2libGU7CiAgICAgIH0KCiAgICAgICNydW5zLXJlZ2V4IHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI3NlYXJjaC1yZXN1bHRzLWFuY2hvciB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAjc2VhcmNoLXJlc3VsdHMgewogICAgICAgIGNvbG9yOiAjZmZmOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBtYXgtaGVpZ2h0OiAyMDBweDsKICAgICAgICBvdmVyZmxvdy14OiBoaWRkZW47CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgfQoKICAgICAgI3NlYXJjaC1tYXRjaCB7CiAgICAgICAgYmFja2dyb3VuZDogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgcGFkZGluZzogM3B4OwogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGRpcmVjdGlvbjogcnR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c3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIHBhcGVyLWRyb3Bkb3duLW1lbnUgewogICAgICAgIC0tcGFwZXItZHJvcGRvd24tbWVudS1pbnB1dDogewogICAgICAgICAgcGFkZGluZzogMDsKICAgICAgICAgIGNvbG9yOiBncmF5OwogICAgICAgIH0KICAgICAgICAtLWlyb24taWNvbi13aWR0aDogMTVweDsKICAgICAgICAtLWlyb24taWNvbi1oZWlnaHQ6IDE1cHg7CiAgICAgICAgLS1wcmltYXJ5LXRleHQtY29sb3I6IGdyYXk7CiAgICAgICAgLS1wYXBlci1pdGVtLW1pbi1oZWlnaHQ6IDMwcHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLWJ1dHRvbltyYWlzZWRdLmtleWJvYXJkLWZvY3VzIHsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CgogICAgICAucnVuLWRyb3Bkb3duIHsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lcjogewogICAgICAgICAgcGFkZGluZzogOHB4IDAgOHB4IDEwcHg7CiAgICAgICAgfQogICAgICB9CgogICAgICAuY29sb3ItZHJvcGRvd24gewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyOiB7CiAgICAgICAgICBwYWRkaW5nOiA5cHggMCAwIDEzcHg7CiAgICAgICAgfQogICAgICB9CgogICAgICB0YWJsZSB7CiAgICAgICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTsKICAgICAgICBib3JkZXItc3BhY2luZzogMDsKICAgICAgfQoKICAgICAgdGFibGUgdGQgewogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICB9CgogICAgICAuYWxsY29udHJvbHMgewogICAgICAgIHBhZGRpbmc6IDAgMjBweCAyMHB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CgogICAgICAubGVnZW5kLWhvbGRlciB7CiAgICAgICAgYmFja2dyb3VuZDogI2U5ZTllOTsKICAgICAgICBib3JkZXItdG9wOiAxcHggc29saWQgI2NjYzsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGNvbG9yOiAjNTU1OwogICAgICAgIHBhZGRpbmc6IDE1cHggMjBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgLnRvZ2dsZS1sZWdlbmQtYnV0dG9uIHsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAudG9nZ2xlLWxlZ2VuZC10ZXh0IHsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwogICAgICB9CgogICAgICBwYXBlci1yYWRpby1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBhZGRpbmc6IDVweDsKICAgICAgfQogICAgICBzdmcuaWNvbiwKICAgICAgdGYtZ3JhcGgtaWNvbiB7CiAgICAgICAgd2lkdGg6IDYwcHg7CiAgICAgICAgaGVpZ2h0OiAxOHB4OwogICAgICB9CiAgICAgIC5kb21haW5WYWx1ZXMgewogICAgICAgIG1hcmdpbi1ib3R0b206IDEwcHg7CiAgICAgICAgd2lkdGg6IDE2NXB4OwogICAgICB9CiAgICAgIC5kb21haW5TdGFydCB7CiAgICAgICAgZmxvYXQ6IGxlZnQ7CiAgICAgIH0KICAgICAgLmRvbWFpbkVuZCB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICB9CiAgICAgIC5jb2xvckJveCB7CiAgICAgICAgd2lkdGg6IDIwcHg7CiAgICAgIH0KCiAgICAgIC5pbWFnZS1pY29uIHsKICAgICAgICB3aWR0aDogMjRweDsKICAgICAgICBoZWlnaHQ6IDI0cHg7CiAgICAgIH0KCiAgICAgIC5oZWxwLWljb24gewogICAgICAgIGhlaWdodDogMTVweDsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgfQoKICAgICAgLmdyYXkgewogICAgICAgIGNvbG9yOiAjNjY2OwogICAgICB9CgogICAgICAudGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTZweDsKICAgICAgICBtYXJnaW46IDhweCA1cHggOHB4IDA7CiAgICAgICAgY29sb3I6IGJsYWNrOwogICAgICB9CiAgICAgIC50aXRsZSBzbWFsbCB7CiAgICAgICAgZm9udC13ZWlnaHQ6IG5vcm1hbDsKICAgICAgfQogICAgICAuZGV2aWNlTGlzdCwKICAgICAgLnhsYUNsdXN0ZXJMaXN0IHsKICAgICAgICBtYXgtaGVpZ2h0OiAyMDBweDsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CgogICAgICAjZmlsZSB7CiAgICAgICAgcGFkZGluZzogOHB4IDA7CiAgICAgIH0KCiAgICAgIC5jb2xvci1sZWdlbmQtcm93IHsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGNsZWFyOiBib3RoOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgaGVpZ2h0OiAyMHB4OwogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgfQoKICAgICAgLmNvbG9yLWxlZ2VuZC1yb3cgLmxhYmVsLAogICAgICAuY29sb3ItbGVnZW5kLXJvdyBzdmcsCiAgICAgIC5jb2xvci1sZWdlbmQtcm93IHRmLWdyYXBoLWljb24gewogICAgICAgIGZsZXg6IDAgMCA0MHB4OwogICAgICAgIG1hcmdpbi1yaWdodDogMjBweDsKICAgICAgfQoKICAgICAgLmRldmljZXMtY2hlY2tib3ggaW5wdXQgewogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgfQoKICAgICAgLmNvbnRyb2wtaG9sZGVyIC5pY29uLWJ1dHRvbiB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1hcmdpbjogMCAtNXB4OwogICAgICAgIHBhZGRpbmc6IDVweDsKICAgICAgfQoKICAgICAgLmJ1dHRvbi10ZXh0IHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDIwcHg7CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IG5vbmU7CiAgICAgIH0KCiAgICAgIC51cGxvYWQtYnV0dG9uIHsKICAgICAgICB3aWR0aDogMTY1cHg7CiAgICAgICAgaGVpZ2h0OiAyNXB4OwogICAgICAgIHRleHQtdHJhbnNmb3JtOiBub25lOwogICAgICAgIG1hcmdpbi10b3A6IDRweDsKICAgICAgfQoKICAgICAgLmJ1dHRvbi1pY29uIHsKICAgICAgICB3aWR0aDogMjZweDsKICAgICAgICBoZWlnaHQ6IDI2cHg7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLW9yYW5nZS01MDApOwogICAgICB9CgogICAgICAuaGlkZGVuLWlucHV0IHsKICAgICAgICBoZWlnaHQ6IDBweDsKICAgICAgICB3aWR0aDogMHB4OwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyAuY29udHJvbC1ob2xkZXIgewogICAgICAgIGNsZWFyOiBib3RoOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICB9CgogICAgICAuYWxsY29udHJvbHMgLmNvbnRyb2wtaG9sZGVyIHBhcGVyLXJhZGlvLWdyb3VwIHsKICAgICAgICBtYXJnaW4tdG9wOiA1cHg7CiAgICAgIH0KCiAgICAgIHNwYW4uY291bnRlciB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGNvbG9yOiBncmF5OwogICAgICB9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I+Kjwvc3Bhbj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBFbmNhcHN1bGF0ZXMgYSBzZXQgb2Ygbm9kZXMuIE5hbWVzcGFjZSBpcyBoaWVyYXJjaGljYWwgYW5kCiAgICAgICAgICAgICAgICAgICAgYmFzZWQgb24gc2NvcGUuCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItdG9vbHRpcD4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICA8dGYtZ3JhcGgtaWNvbiB0eXBlPSJPUCIgaGVpZ2h0PSIxNiI+PC90Zi1ncmFwaC1pY29uPgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgT3BOb2RlCiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtY2xhcmlmaWVyIj4KICAgICAgICAgICAgICAgICAgPHNwYW4+Pzwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgYW5pbWF0aW9uLWRlbGF5PSIwIiBwb3NpdGlvbj0icmlnaHQiIG9mZnNldD0iMCI+CiAgICAgICAgICAgICAgICAgICAgTm9kZSB0aGF0IHBlcmZvcm1zIGFuIG9wZXJhdGlvbi4gVGhlc2Ugbm9kZXMgY2Fubm90IGV4cGFuZC4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9IlNFUklFUyIgaGVpZ2h0PSIxNiI+PC90Zi1ncmFwaC1pY29uPgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgVW5jb25uZWN0ZWQgc2VyaWVzPHNwYW4gY2xhc3M9ImdyYXkiPio8L3NwYW4+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtY2xhcmlmaWVyIj4KICAgICAgICAgICAgICAgICAgPHNwYW4+Pzwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgYW5pbWF0aW9uLWRlbGF5PSIwIiBwb3NpdGlvbj0icmlnaHQiIG9mZnNldD0iMCI+CiAgICAgICAgICAgICAgICAgICAgU2VxdWVuY2Ugb2YgbnVtYmVyZWQgbm9kZXMgdGhhdCBhcmUgbm90IGNvbm5lY3RlZCB0byBlYWNoCiAgICAgICAgICAgICAgICAgICAgb3RoZXIuCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItdG9vbHRpcD4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICA8dGYtZ3JhcGgtaWNvbiB0eXBlPSJTRVJJRVMiIGhlaWdodD0iMTYiIHZlcnRpY2FsPjwvdGYtZ3JhcGgtaWNvbj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIENvbm5lY3RlZCBzZXJpZXM8c3BhbiBjbGFzcz0iZ3JheSI+Kjwvc3Bhbj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBTZXF1ZW5jZSBvZiBudW1iZXJlZCBub2RlcyB0aGF0IGFyZSBjb25uZWN0ZWQgdG8gZWFjaCBvdGhlci4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9Imljb24iPgogICAgICAgICAgICAgICAgICA8Y2lyY2xlIGZpbGw9IndoaXRlIiBzdHJva2U9IiM4NDg0ODQiIGN4PSIxMCIgY3k9IjEwIiByPSI1IiAvPgogICAgICAgICAgICAgICAgPC9zdmc+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBDb25zdGFudAogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIE5vZGUgdGhhdCBvdXRwdXRzIGEgY29uc3RhbnQgdmFsdWUuCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItdG9vbHRpcD4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAg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ogICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTSAwLDAgTCAxMCw1IEwgMCwxMCBDIDMsNyAzLDMgMCwwIiAvPgogICAgICAgICAgICAgICAgICAgIDwvbWFya2VyPgogICAgICAgICAgICAgICAgICA8L2RlZnM+CiAgICAgICAgICAgICAgICAgIDxwYXRoIG1hcmtlci1lbmQ9InVybCgjZGF0YWZsb3ctYXJyb3doZWFkLWxlZ2VuZCkiIHN0cm9rZT0iI2JiYiIgZD0iTTIgOSBsIDI5IDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgLz4KICAgICAgICAgICAgICAgIDwvc3ZnPgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgRGF0YWZsb3cgZWRnZQogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIEVkZ2Ugc2hvd2luZyB0aGUgZGF0YSBmbG93IGJldHdlZW4gb3BlcmF0aW9ucy4gRWRnZXMgZmxvdwogICAgICAgICAgICAgICAgICAgIHVwd2FyZHMgdW5sZXNzIGFycm93aGVhZHMgc3BlY2lmeSBvdGhlcndpc2UuCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItdG9vbHRpcD4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICA8c3ZnIGNsYXNzPSJpY29uIiBoZWlnaHQ9IjE1cHgiIHByZXNlcnZlYXNwZWN0cmF0aW89InhNaW5ZTWlkIG1lZ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JlZng9IjkiIHJlZnk9IjUiIG9yaWVudD0iYXV0by1zdGFydC1yZXZlcnNlIj4KICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0gMCwwIEwgMTAsNSBMIDAsMTAgQyAzLDcgMywzIDAsMCIgLz4KICAgICAgICAgICAgICAgICAgICA8L21hcmtlcj4KICAgICAgICAgICAgICAgICAgPC9kZWZzPgogICAgICAgICAgICAgICAgICA8cGF0aCBtYXJrZXItZW5kPSJ1cmwoI3JlZmVyZW5jZS1hcnJvd2hlYWQtbGVnZW5kKSIgc3Ryb2tlPSIjRkZCNzREIiBkPSJNMiA5IGwgMjkgMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiAvPgogICAgICAgICAgICAgICAgPC9zdmc+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBSZWZlcmVuY2UgZWRnZQogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIEVkZ2Ugc2hvd2luZyB0aGF0IHRoZSBvdXRnb2luZyBvcGVyYXRpb24gbm9kZSBjYW4gbXV0YXRlIHRoZQogICAgICAgICAgICAgICAgICAgIGluY29taW5nIHRlbnNvci4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgIDwvdGFibGU+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgIDwvZGl2PgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVs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AgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgfQoKICAgICAgI3Rvb2x0aXAgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgfQoKICAgICAgLmJhY2tncm91bmQgewogICAgICAgIGZpbGwtb3BhY2l0eTogMDsKICAgICAgICBmaWxsOiByZWQ7CiAgICAgIH0KCiAgICAgIC5oaXN0b2dyYW0gewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAuaG92ZXIgewogICAgICAgIGZvbnQtc2l6ZTogOXB4OwogICAgICAgIGRvbWluYW50LWJhc2VsaW5lOiBtaWRkbGU7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmhvdmVyIGNpcmNsZSB7CiAgICAgICAgc3Ryb2tlOiB3aGl0ZTsKICAgICAgICBzdHJva2Utb3BhY2l0eTogMC41OwogICAgICAgIHN0cm9rZS13aWR0aDogMXB4OwogICAgICB9CgogICAgICAuaG92ZXIgdGV4dCB7CiAgICAgICAgZmlsbDogYmxhY2s7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmhvdmVyLmhvdmVyLWNsb3Nlc3QgY2lyY2xlIHsKICAgICAgICBmaWxsOiBibGFjayAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuaG92ZXIuaG92ZXItY2xvc2VzdCB0ZXh0IHsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICB9CgogICAgICAuYmFzZWxpbmUgewogICAgICAgIHN0cm9rZTogYmxhY2s7CiAgICAgICAgc3Ryb2tlLW9wYWNpdHk6IDAuMTsKICAgICAgfQoKICAgICAgLm91dGxpbmUgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgICAgc3Ryb2tlOiB3aGl0ZTsKICAgICAgICBzdHJva2Utb3BhY2l0eTogMC41OwogICAgICB9CgogICAgICAub3V0bGluZS5vdXRsaW5lLWhvdmVyIHsKICAgICAgICBzdHJva2U6IGJsYWNrICFpbXBvcnRhbnQ7CiAgICAgICAgc3Ryb2tlLW9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIsCiAgICAgIC55LWF4aXMtaG92ZXIsCiAgICAgIC55LXNsaWNlLWF4aXMtaG92ZXIgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAueC1heGlzLWhvdmVyIC5sYWJlbCwKICAgICAgLnktYXhpcy1ob3ZlciAubGFiZWwsCiAgICAgIC55LXNsaWNlLWF4aXMtaG92ZXIgLmxhYmVsIHsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgICB0ZXh0LWFuY2hvcjogZW5kOwogICAgICB9CgogICAgICAueC1heGlzLWhvdmVyIHRleHQgewogICAgICAgIHRleHQtYW5jaG9yOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIC55LWF4aXMtaG92ZXIgdGV4dCwKICAgICAgLnktc2xpY2UtYXhpcy1ob3ZlciB0ZXh0IHsKICAgICAgICB0ZXh0LWFuY2hvcjogc3RhcnQ7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIgbGluZSwKICAgICAgLnktYXhpcy1ob3ZlciBsaW5lLAogICAgICAueS1zbGljZS1heGlzLWhvdmVyIGxpbmUgewogICAgICAgIHN0cm9rZTogYmxhY2s7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIgcmVjdCwKICAgICAgLnktYXhpcy1ob3ZlciByZWN0LAogICAgICAueS1zbGljZS1heGlzLWhvdmVyIHJlY3QgewogICAgICAgIGZpbGw6IHdoaXRlOwogICAgICB9CgogICAgICAuYXhpcyB7CiAgICAgICAgZm9udC1zaXplOiAxMXB4OwogICAgICB9CgogICAgICAuYXhpcyBwYXRoLmRvbWFpbiB7CiAgICAgICAgZmlsbDogbm9uZTsKICAgICAgfQoKICAgICAgLmF4aXMgLnRpY2sgbGluZSB7CiAgICAgICAgc3Ryb2tlOiAjZGRkOwogICAgICB9CgogICAgICAuYXhpcy5zbGljZSB7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmF4aXMuc2xpY2UgLnRpY2sgbGluZSB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjsKICAgICAgfQoKICAgICAgLnNtYWxsIC5heGlzIHRleHQgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLnNtYWxsIC5heGlzIC50aWNrOmZpcnN0LW9mLXR5cGUgdGV4dCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgICAgLnNtYWxsIC5heGlzIC50aWNrOmxhc3Qtb2YtdHlwZSB0ZXh0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQogICAgICAubWVkaXVtIC5heGlzIHRleHQgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLm1lZGl1bSAuYXhpcyAudGljazpudGgtY2hpbGQoMm4gKyAxKSB0ZXh0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQogICAgICAubGFyZ2UgLmF4aXMgdGV4dCB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQogICAgICAubGFyZ2UgLmF4aXMgLnRpY2s6bnRoLWNoaWxkKDJuICsgMSkgdGV4dCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KCiAgPHNjcmlwdD4vL35+V0VCUEFUSH5+L3Z6LWhpc3RvZ3JhbS10aW1lc2VyaWVzL3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fZm9ybWF0U3RlcChpdGVtLnN0ZXApXV08L3NwYW4+CiAgICAgICAgPC9wYXBlci1tYXRlcmlhbD4KICAgICAgICA8cGFwZXItbWF0ZXJpYWwgZWxldmF0aW9uPSIxIiBjbGFzcz0idGV4dCI+CiAgICAgICAgICA8dGYtbWFya2Rvd24tdmlldyBodG1sPSJbW2l0ZW0udGV4dF1dIj48L3RmLW1hcmtkb3duLXZpZXc+CiAgICAgICAgPC9wYXBlci1tYXRlcmlhbD4KICAgICAgPC90ZW1wbGF0ZT4KICAgIDwvcGFwZXItbWF0ZXJpYWw+CiAgICA8c3R5bGUgaW5jbHVkZT0ic2Nyb2xsYmFyLXN0eWxlIj48L3N0eWxlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDEwcHg7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgfQogICAgICAuc2Nyb2xsYmFyIHsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CiAgICAgICNzdGVwcy1jb250YWluZXIgewogICAgICAgIGJvcmRlci1yYWRpdXM6IDNweDsKICAgICAgICBib3JkZXI6IDJweCBzb2xpZCAvKiBjb2xvciBjb21wdXRlZCBhbmQgc2V0IGFzIGlubGluZSBzdHlsZSAqLzsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBtYXgtaGVpZ2h0OiA1MDBweDsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICB9CiAgICAgIC50ZXh0IHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsKICAgICAgICBib3JkZXItcmFkaXVzOiAwIDNweCAzcHggM3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YWRlciB7CiAgICAgICAgaGVpZ2h0OiAzMDBweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KICAgICAgOmhvc3QoW19leHBhbmRlZF0pIHRmLWxpbmUtY2hhcnQtZGF0YS1sb2FkZXIgewogICAgICAgIGhlaWdodDogNjAwcHg7CiAgICAgIH0KICAgICAgI2J1dHRvbnMtcm93IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7CiAgICAgIH0KICAgICAgI2J1dHRvbnMtcm93IHBhcGVyLWljb24tYnV0dG9uIHsKICAgICAgICBjb2xvcjogIzIxOTZmMzsKICAgICAgICBib3JkZXItcmFkaXVzOiAxMDAlOwogICAgICAgIHdpZHRoOiAzMnB4OwogICAgICAgIGhlaWdodDogMzJweDsKICAgICAgICBwYWRkaW5nOiA0cHg7CiAgICAgIH0KICAgICAgI2J1dHRvbnMtcm93IHBhcGVyLWljb24tYnV0dG9uW3NlbGVjdGVkXSB7CiAgICAgICAgYmFja2dyb3VuZDogdmFyKC0tdGItdWktbGlnaHQtYWNjZW50KTsKICAgICAgfQogICAgICAjc3RlcC1sZWdlbmQgewogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgZm9udC1zaXplOiAwLjhlbTsKICAgICAgICBtYXgtaGVpZ2h0OiAyMDBweDsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIHBhZGRpbmc6IDAgMCAwIDEwcHg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KICAgICAgLmxlZ2VuZC1yb3cgewogICAgICAgIG1hcmdpbjogNXB4IDAgNXB4IDA7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KICAgICAgLmNvbG9yLWJveCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDFweDsKICAgICAgICB3aWR0aDog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2PgogICAgICA8ZGl2IGNsYXNzPSJjZW50ZXIiIHNsb3Q9ImNlbnRlciI+CiAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19kYXRhTm90Rm91bmRdXSI+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJuby1kYXRhLXdhcm5pbmciPgogICAgICAgICAgICA8aDM+Tm8gcHJlY2lzaW9u4oCTcmVjYWxsIGN1cnZlIGRhdGEgd2FzIGZvdW5kLjwvaDM+CiAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgIDxsaT4KICAgICAgICAgICAgICAgIFlvdSBoYXZlbuKAmXQgd3JpdHRlbiBhbnkgcHJlY2lzaW9u4oCTcmVjYWxsIGRhdGEgdG8geW91ciBldmVudAogICAgICAgICAgICAgICAgZmlsZXMuCiAgICAgICAgICAgICAgPC9saT4KICAgICAgICAgICAgICA8bGk+CiAgICAgICAgICAgICAgICBUZW5zb3JCb2FyZCBjYW7igJl0IGZpbmQgeW91ciBldmVudCBmaWxlcy4KICAgICAgICAgICAgICA8L2xpPgogICAgICAgICAgICA8L3VsPgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICBJZiB5b3XigJlyZSBuZXcgdG8gdXNpbmcgVGVuc29yQm9hcmQsIGFuZCB3YW50IHRvIGZpbmQgb3V0IGhvdyB0bwogICAgICAgICAgICAgIGFkZCBkYXRhIGFuZCBzZXQgdXAgeW91ciBldmVudCBmaWxlcywgY2hlY2sgb3V0IHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmJvYXJkL2Jsb2IvbWFzdGVyL1JFQURNRS5tZCI+UkVBRE1FPC9hPgogICAgICAgICAgICAgIGFuZCBwZXJoYXBzIHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vd3d3LnRlbnNvcmZsb3cub3JnL2dld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ICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMjAwJTsKICAgICAgfQogICAgICAuc3ViLXNlY3Rpb24taGVhZGVyIHsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICBmb250LXNpemU6IDE1MCU7CiAgICAgIH0KICAgICAgI3N1bW1hcnktaG9zdCB7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KICAgICAgLmhpZ2hsaWdodGVkLXRleHQgewogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTIwJTsKICAgICAgfQogICAgICAuc3RkZGV2LXRleHQgewogICAgICAgIGZvbnQtc3R5bGU6IGl0YWxpYzsKICAgICAgICBvcGFjaXR5OiAwLjc7CiAgICAgIH0KICAgICAgLmxlZnQtcGFuZSB7CiAgICAgICAgd2lkdGg6IDMwJTsKICAgICAgfQogICAgICAucmlnaHQtcGFuZSB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAzMDBweDsKICAgICAgfQogICAgICAudGFibGUtc3R5bGUgewogICAgICAgIHRhYmxlLWxheW91dDogZml4ZWQ7CiAgICAgICAgd2lkdGg6IDk1JTsKICAgICAgfQogICAgICAucGVyZm9ybWFuY2UtdGFibGUgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CiAgICAgIC54LWF4aXMtdGl0bGUgewogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogY2FwaXRhbGl6ZTsKICAgICAgfQogICAgICAueS1heGlzLXRpdGxlIHsKICAgICAgICB3cml0aW5nLW1vZGU6IGJ0LXJsOwogICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDI3MGRlZyk7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IGNhcGl0YWxpemU7CiAgICAgIH0KICAgICAgI3JlY29tbWVuZGF0aW9uX2RldGFpbHMgewogICAgICAgIGNvbG9yOiBncmVlbjsKICAgICAgfQogICAgICAjcmVjb21tZW5kYXRpb25fZGV0YWlscyBhIHsKICAgICAgICBjb2xvcjogI2ZmMzNjYzsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgfQogICAgICAjc3VtbWFyeV9jb25jbHVzaW9uIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZGVyOwogICAgICAgIGZvbnQtc3R5bGU6IGl0YWxpYzsKICAgICAgICBjb2xvcjogdmFyKC0tc3VtbWFyeS1jb2xvciwgZ3JlZW4pOwogICAgICB9CiAgICAgICNzdW1tYXJ5X25leHRzdGVwIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZGVyOwogICAgICAgIGZvbnQtc3R5bGU6IGl0YWxpYzsKICAgICAgICBjb2xvcjogZ3JlZW47CiAgICAgIH0KICAgICAgI3JlY29tbWVuZGF0aW9uX3RpdGxlIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZGVyOwogICAgICAgIGZvbnQtc3R5bGU6IG5vcm1hbDsKICAgICAgICBjb2xvcjogYmxhY2s7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8ZGl2PgogICAgICA8ZGl2IGlkPSJzZWN0aW9uX3N1bW1hcnkiPgogICAgICAgIDxkaXYgaWQ9InRpdGxlX3N1bW1hcnkiPgogICAgICAgICAgPHAgY2xhc3M9InNlY3Rpb24taGVhZGVyIj4KICAgICAgICAgICAgU2VjdGlvbiAxOiBTdW1tYXJ5IG9mIGlucHV0LXBpcGVsaW5lIGFuYWx5c2lzCi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gICAgICAgICAgICBEZXZpY2Ugc3RlcC10aW1lIHN0YXRpc3RpY3MgKGluIG1zKQogICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgICAgIDxzcGFuPjxiPkF2ZXJhZ2U6PC9iPiA8L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxzcGFuPltbX3N0ZXB0aW1lX21zX2F2ZXJhZ2VdXSBtcyA8L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPSJzdGRkZXYtdGV4dCI+KM+DID0gW1tfc3RlcHRpbWVfbXNfc3RkZGV2XV0gbXMpPC9zcGFuPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgICAgPHNwYW4+PGI+UmFuZ2U6PC9iPiA8L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxzcGFuPltbX3N0ZXB0aW1lX21zX21pbmltdW1dXSAtIFtbX3N0ZXB0aW1lX21zX21heGltdW1dXQogICAgICAgICAgICAgICAgICAgIG1zPC9zcGFuPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+PGRpdiBjbGFzcz0ieS1heGlzLXRpdGxlIj5taWxsaXNlY29uZHM8L2Rpdj48L3RkPgogICAgICAgICAgICAgIDx0ZCBjbGFzcz0icmlnaHQtcGFuZSI+CiAgICAgICAgICAgICAgICA8dnotbGluZS1jaGFydDIgaWQ9ImRldmljZV9zdGVwX2NoYXJ0IiBzdHlsZT0iaGVpZ2h0OjMwMHB4OyI+PC92ei1saW5lLWNoYXJ0Mj4KICAgICAgICAgICAgICAgIDxkaXY+PHAgY2xhc3M9IngtYXhpcy10aXRsZSI+dHJhaW5pbmcgc3RlcCBudW1iZXI8L2Rpdj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICA8L3RyPgogICAgICAgICAgPC90YWJsZT4K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W50X2F2ZXJhZ2VdXSAlIDwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9InN0ZGRldi10ZXh0Ij4oz4MgPSBbW19pbmZlZWRfcGVyY2VudF9zdGRkZXZdXSAlKTwvc3Bhbj4KICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgICAgIDxzcGFuPjxiPlJhbmdlOjwvYj4gPC9zcGFuPgogICAgICAgICAgICAgICAgICA8c3Bhbj5bW19pbmZlZWRfcGVyY2VudF9taW5pbXVtXV0gLSBbW19pbmZlZWRfcGVyY2VudF9tYXhpbXVtXV0KICAgICAgICAgICAgICAgICAgICAlPC9zcGFuPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJ5LWF4aXMtdGl0bGUiPjxwPiUgb2YgZGV2aWNlIHN0ZXAgdGltZTwvZGl2PgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgPHRkIGNsYXNzPSJyaWdodC1wYW5lIj4KICAgICAgICAgICAgICAgIDx2ei1saW5lLWNoYXJ0MiBpZD0iZGV2aWNlX2luZmVlZF9jaGFydCIgc3R5bGU9ImhlaWdodDozMDBweDsiPjwvdnotbGluZS1jaGFydDI+CiAgICAgICAgICAgICAgICA8ZGl2PjxwIGNsYXNzPSJ4LWF4aXMtdGl0bGUiPnRyYWluaW5nIHN0ZXAgbnVtYmVyPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgIDwvdGFibGU+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvZGl2PgogICAgICA8ZGl2IGlkPSJzZWN0aW9uX2hvc3Rfc2lkZV9hbmFseXNpcyI+CiAgICAgICAgPGRpdiBpZD0idGl0bGVfaG9zdF9zaWRlX2FuYWx5c2lzIj4KICAgICAgICAgIDxwIG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1tb2R1bGU+CgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9Imlyb24taW1hZ2UiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgI2Jhc2VVUklBbmNob3IgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgICNzaXplZEltZ0RpdiB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMHB4OwogICAgICAgIHJpZ2h0OiAwcHg7CiAgICAgICAgYm90dG9tOiAwcHg7CiAgICAgICAgbGVmdDogMHB4OwoKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAjaW1nIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogdmFyKC0taXJvbi1pbWFnZS13aWR0aCwgYXV0byk7CiAgICAgICAgaGVpZ2h0OiB2YXIoLS1pcm9uLWltYWdlLWhlaWdodCwgYXV0byk7CiAgICAgIH0KCiAgICAgIDpob3N0KFtzaXppbmddKSAjc2l6ZWRJbWdEaXYgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CgogICAgICA6aG9zdChbc2l6aW5nXSkgI2ltZyB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgI3BsYWNlaG9sZGVyIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwcHg7CiAgICAgICAgcmlnaHQ6IDBweDsKICAgICAgICBib3R0b206IDBweDsKICAgICAgICBsZWZ0OiAwcHg7CgogICAgICAgIGJhY2tncm91bmQtY29sb3I6IGluaGVyaXQ7CiAgICAgICAgb3BhY2l0eTogMTsKCiAgICAgICAgQGFwcGx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tY29tbW9uLWJhc2U7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItY2FyZDsKICAgICAgfQoKICAgICAgLyogSUUgMTAgc3VwcG9ydCBmb3IgSFRNTDUgaGlkZGVuIGF0dHIgKi8KICAgICAgOmhvc3QoW2hpZGRlbl0pLCBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuaGVhZGVyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogaW5oZXJpdDsKICAgICAgICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogaW5oZXJpdDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1jYXJkLWhlYWRlcjsKICAgICAgfQoKICAgICAgLmhlYWRlciBpcm9uLWltYWdlIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICAtLWlyb24taW1hZ2Utd2lkdGg6IDEwMCU7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWNhcmQtaGVhZGVyLWltYWdlOwogICAgICB9CgogICAgICAuaGVhZGVyIC50aXRsZS10ZXh0IHsKICAgICAgICBwYWRkaW5nOiAxNnB4OwogICAgICAgIGZvbnQtc2l6ZTogMjRweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1jYXJkLWhlYWRlci1jb2xvciwgIzAwMCk7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWNhcmQtaGVhZGVyLXRleHQ7CiAgICAgIH0KCiAgICAgIC5oZWFkZXIgLnRpdGxlLXRleHQub3Zlci1pbWFnZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvdHRvbTogMHB4OwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1jYXJkLWhlYWRlci1pbWFnZS10ZXh0OwogICAgICB9CgogICAgICA6aG9zdCA6OnNsb3R0ZWQoLmNhcmQtY29udGVudCkgewogICAgICAgIHBhZGRpbmc6IDE2cHg7CiAgICAgICAgcG9zaXRpb246cmVsYXRpdmU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWNhcmQtY29udGVudDsKICAgICAgfQoKICAgICAgOmhvc3QgOjpzbG90dGVkKC5jYXJkLWFjdGlvbnMpIHsKICAgICAgICBib3JkZXItdG9wOiAxcHggc29saWQgI2U4ZThlODsKICAgICAgICBwYWRkaW5nOiA1cHggMTZweDsKICAgICAgICBwb3NpdGlvbjpyZWxhdGl2ZTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItY2FyZC1hY3Rpb25zOwogICAgICB9CgogICAgICA6aG9zdChbZWxldmF0aW9uPSIxIl0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1tYXRlcmlhbC1lbGV2YXRpb24tMTsKICAgICAgfQoKICAgICAgOmhvc3QoW2VsZXZhdGlvbj0iMiJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTI7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjMiXSkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi0zOwogICAgICB9CgogICAgICA6aG9zdChbZWxldmF0aW9uPSI0Il0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1tYXRlcmlhbC1lbGV2YXRpb24tNDsKICAgICAgfQoKICAgICAgOmhvc3QoW2VsZXZhdGlvbj0iNSJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTU7CiAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPGRpdiBjbGFzcz0iaGVhZGVyIj4KICAgICAgPGlyb24ta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ZW4pOwogICAgICB9CiAgICAgIC50YWJsZS1zdHlsZSB7CiAgICAgICAgdGFibGUtbGF5b3V0OiBhdXRvOwogICAgICAgIHdpZHRoOiA5NSU7CiAgICAgIH0KICAgICAgLnRvcC1vcHMtdGFibGUgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CiAgICAgIHZ6LWxpbmUtY2hhcnQyLnN0ZXAtZ3JhcGggewogICAgICAgIHdpZHRoOiA4NjBweDsKICAgICAgICBoZWlnaHQ6IDIwMHB4OwogICAgICB9CiAgICAgIC54LWF4aXMtdGl0bGUgewogICAgICAgIHdpZHRoOiA4MCU7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIHRleHQtdHJhbnNmb3JtOiBjYXBpdGFsaXplOwogICAgICB9CiAgICAgIC55LWF4aXMtdGl0bGUgewogICAgICAgIHdpZHRoOiAxMHB4OwogICAgICAgIHdyaXRpbmctbW9kZTogYnQtcmw7CiAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMjcwZGVnKTsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogY2FwaXRhbGl6ZTsKICAgICAgfQogICAgICBkaXYuYm90dGxlbmVjay1zdGF0ZW1lbnQgewogICAgICAgIGNvbG9yOiB2YXIoLS1zdW1tYXJ5LWNvbG9yLCBncmVlbik7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGRlcjsKICAgICAgICBmb250LXN0eWxlOiBpdGFsaWM7CiAgICAgIH0KICAgICAgZGl2LmVycm9yTWVzc2FnZSB7CiAgICAgICAgY29sb3I6IHJlZDsKICAgICAgICBmb250LXNpemU6IDAuNWNtOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkZXI7CiAgICAgICAgbWFyZ2luLXRvcDogMC41Y207CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMC41Y207CiAgICA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kYXJkIGRldmlhdGlvbiA9CiAgICAgICAgICAgICAgICA8c3Bhbj5bW19zdGVwdGltZV9tc19zdGRkZXZdXTwvc3Bhbj4gbXMpPC9pPgogICAgICAgICAgICAKICAgICAgICAgICAgPHVsIGhpZGRlbiQ9IltbIV9pbmZlZWRfbXNfYXZlcmFnZV1dIj4KICAgICAgICAgICAgICA8bGk+QXZlcmFnZSBpbmZlZWQ6IDxzcGFuPltbX2luZmVlZF9tc19hdmVyYWdlXV08L3NwYW4+IG1zPC9saT4KICAgICAgICAgICAgICA8bGk+QXZlcmFnZSBjb21wdXRlOiA8c3Bhbj5bW19jb21wdXRlX21zX2F2ZXJhZ2VdXTwvc3Bhbj4gbXM8L2xpPgogICAgICAgICAgICA8L3VsPgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICA8Yj5Ib3N0IGlkbGUgdGltZTwvYj4gKGxvd2VyIGlzIGJldHRlcik6CiAgICAgICAgICAgICAgPHNwYW4+W1tfaG9zdF9pZGxlX3RpbWVfcGVyY2VudF1dPC9zcGFuPgogICAgICAgICAgICAKICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgPGI+VFBVIGlkbGUgdGltZTwvYj4gKGxvd2VyIGlzIGJldHRlcik6CiAgICAgICAgICAgICAgPHNwYW4+W1tfZGV2aWNlX2lkbGVfdGltZV9wZXJjZW50XV08L3NwYW4+CiAgICAgICAgICAgIAogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICA8Yj5VdGlsaXphdGlvbiBvZiBUUFUgTWF0cml4IFVuaXRzPC9iPiAoaGlnaGVyIGlzIGJldHRlcik6CiAgICAgICAgICAgICAgPHNwYW4+W1tfbXh1X3V0aWxpemF0aW9uX3BlcmNlbnRdXTwvc3Bhbj4KICAgICAgICAgICAgCiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L3BhcGVyLWNhcmQ+CiAgICAgICAgPHBhcGVyLWNhcmQgaGVhZGluZz0iU3RlcC10aW1lIEdyYXBoIj4KICAgICAgICAg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ogICAgICAgICAgICAgIDx0cj48dGg+VGltZSAoJSk8L3RoPgogICAgICAgICAgICAgICAgPHRoPkN1bXVsYXRpdmUgdGltZSAoJSk8L3RoPgogICAgICAgICAgICAgICAgPHRoPkNhdGVnb3J5PC90aD4KICAgICAgICAgICAgICAgIDx0aD5PcGVyYXRpb248L3RoPgogICAgICAgICAgICAgICAgPHRoPkdGbG9wcy9zZWM8L3RoPgogICAgICAgICAgICAgIAogICAgICAgICAgICAgIDx0Ym9keSBpZD0idG9wX29wc190YWJsZV9jb250ZW50Ij48L3Rib2R5PgogICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgPC9kaXY+CiAgICAgICAgPC9wYXBlci1jYXJkPgogICAgICA8L2Rpdj4KICAgICAgPGRpdiBjbGFzcz0iY29udGFpbmVyIGZsZXgtaG9yaXpvbnRhbCI+CiAgICAgICAgPHBhcGVyLWNhcmQgaGVhZGluZz0iUnVuIEVudmlyb25tZW50Ij4KICAgICAgICAgIDxkaXYgY2xhc3M9ImNhcmQtY29udGVudCI+CiAgICAgICAgICAgIDxwPjxiPk51bWJlciBvZiBIb3N0cyB1c2VkPC9iPjogPHNwYW4+W1tfaG9zdF9jb3VudF1dPC9zcGFuPgogICAgICAgICAgICA8cD48Yj5UUFUgdHlwZTwvYj46IENsb3VkIFRQVQogICAgICAgICAgICA8cD48Yj5OdW1iZXIgb2YgVFBVIGNvcmVzPC9iPjogPHNwYW4+IFtbX3RwdV9jb3JlX2NvdW50XV08L3NwYW4+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L3BhcGVyLWNhcmQ+CiAgICAgICAgPHBhcGVyLWNhcmQgaGVhZGluZz0iUmVjb21tZW5kYXRpb24gZm9yIE5leHQgU3RlcHMiPgogICAgICAgICAgPGRpdiBjbGFzcz0iY2FyZC1jb250ZW50Ij4KICAgICAgICAgICAgPGRpdiBjbGFzcz0iYm90dGxlbmVjay1zdGF0ZW1lbnQiPjxzcGFuPltbX3N0YXRlbWVudF1dPC9zc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GlvbihsKXtyZXR1cm4gbCYmbC5tZXRyaWNzJiZsLm1ldHJpY3MudGltZX07YS5wZXJjZW50PWZ1bmN0aW9uKGwpe3JldHVybiBpc05hTihsKT8iLSI6Ljk5NTw9bD8iMTAwJSI6MUUtNT5sPyIwLjAwJSI6KDEwMCpsKS50b1ByZWNpc2lvbigyKSsiJSJ9O2EudGltZVdhc3RlZD1mdW5jdGlvbihsKXtyZXR1cm4gbCYmbC5tZXRyaWNzP2wubWV0cmljcy50aW1lKigxLU1hdGgubWF4KGYobCksZyhsKSkpOk5hTn19KShxbXx8KHFtPXt9KSk7Cjwvc2NyaXB0PgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtb3AtdGFibGUtc3R5bGVzIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgICN0aW1lLAogICAgICAjd2FzdGVkLAogICAgICAjdXRpbGl6YXRpb24gewogICAgICAgIHdpZHRoOiA2MHB4OwogICAgICB9CiAgICAgICNuYW1lIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgbWluLXdpZHRoOiA0MCU7CiAgICAgIH0KICAgICAgI3JvdywKICAgICAgI2hlYWRlciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICB9CiAgICAgICNyb3cgPiAqLAogICAgICAjaGVhZGVyID4gKiB7CiAgICAgICAgcGFkZGluZzogMC41ZW07CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICB9CiAgICAgICNoZWFkZXIgPiAqIHsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogMDsKICAgICAgfQogICAgICAjcHJvdmVuYW5jZSB7CiAgICAgICAgZmxleDogMSAxIDAgIWltcG9ydGFudDsKICAgICAgfQogICAgICAjdXRpbGl6YXRpb24gewogICAgICAg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lvbiB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICB9CiAgICAgIC51bmF2YWlsYWJsZSB7CiAgICAgICAgZm9udC1zdHlsZTogaXRhbGljOwogICAgICAgIGNvbG9yOiAjNjY2OwogICAgICB9CgogICAgICAubGF5b3V0IHsKICAgICAgICBkaXNwbGF5OiB0YWJsZTsKICAgICAgICB3aWR0aDogNTAlOwogICAgICAgIGJvcmRlci1zcGFjaW5nOiAxZW0gMC4zZW07CiAgICAgIH0KICAgICAgLmxheW91dCA+ICogewogICAgICAgIGRpc3BsYXk6IHRhYmxlLXJvdzsKICAgICAgfQogICAgICAubGF5b3V0ID4gKiA+ICogewogICAgICAgIGRpc3BsYXk6IHRhYmxlLWNlbGw7CiAgICAgIH0KICAgICAgLmxheW91dCAuc2l6ZSwKICAgICAgLmxheW91dCAuc2l6ZS14IHsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgIH0KICAgICAgLmxheW91dCAuc2l6ZS14IHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICBjb2xvcjogIzg4ODsKICAgICAgfQogICAgICAubGF5b3V0IC5zZW1hbnRpY3MgewogICAgICAgIGZvbnQtc2l6ZTogc21hbGxlcjsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICBjb2xvcjogIzQ4YzsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KICAgICAgLmxheW91dCAuYWxpZ25tZW50IHsKICAgICAgICAvKiBNYWtlIHRoZSBiYWNrZ3JvdW5kIGV4dGVuZCBvdXRzaWRlIHRoZSBib3ggKi8KICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgcGFkZGluZzogMC41ZW07CiAgICAgICAgbWFyZ2luLXRvcDogLTAuNWVtOwogICAg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IHNwYWNlLWJldHdlZW47CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICAgICAgICBwYWRkaW5nOiAwLjVlbTsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogYm90dG9tOwogICAgICAgIHRleHQtYWxpZ246IGJvdHRvbTsKICAgICAgfQogICAgICAuY29udHJvbFJvd0xlZnQgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1mbG93OiByb3cgbm93cmFwOwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgbGluZS1oZWlnaHQ6IDUwcHg7CiAgICAgICAgdGV4dC1hbGlnbjogYm90dG9tOwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDsKICAgICAgfQogICAgICAuY29udHJvbFJvd1JpZ2h0IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZmxvdzogcm93IG5vd3JhcDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGxpbmUtaGVpZ2h0OiA1MHB4OwogICAgICAgIHRleHQtYWxpZ246IGJvdHRvbTsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICB9CiAgICAgIHBhcGVyLXNsaWRlciB7CiAgICAgICAgLS1wYXBlci1zbGlkZXItaW5wdXQ6IHsKICAgICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1zbGlkZXItaGVpZ2h0OiAzcHg7CiAgICAgIH0KICAgICAgI2Rlc2NyaXB0aW9uIHsKICAgICAgICBtYXJnaW4tYm90dG9tOiAyZW07CiAgICAgICAgd2lkdGg6IDYwMHB4OwogICAgICB9CiAgICAgIFtoaWRkZW5dIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPGRpdiBj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ogbm9ybWFsOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICB9CgogICAgICAuaW5mbyB7CiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CgogICAgICAuY29kZS1zdHlsZSB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8cGFwZXItY2FyZCBpZD0iY2FyZCIgaGVhZGluZz0iW1tfbmFtZV1dIiBoaWRkZW49IltbIV9uYW1lXV0iIGVsZXZhdGlvbj0iMiI+CiAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Iltbbm9kZXNdXSIgYXM9Im5vZGUiPgogICAgICAgIDxkaXYgY2xhc3M9ImNhcmQtY29udGVudCBpbmZvIj4KICAgICAgICAgIDxkaXYgaGlkZGVuPSJbW19pc1N0ZXAobm9kZSldXSI+CiAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgIERhdGEgVHJhbnNmZXJyZWQ6CiAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9InZhbHVlIj5bW19zaXplTWlCKG5vZGUuZGF0YVNpemUpXV0gTWlCPC9zcGFuPgogICAgICAgICAgICAKICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgTGF0ZW5jeToKICAgICAgICAgICAgICA8c3BhbiBjbGFzcz0idmFsdWUiPltbX2Zvcm1hdChub2RlLmR1cmF0aW9uVXMpXV0gwrVzPC9zcGFuPgogICAgICAgICAgICAKICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgQlc6CiAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9InZhbHVlIj4KICAgICAgICAgICAgICAgIFtbX2JhbmR3aWR0aChub2RlLmRhdGFTaXplLCBub2RlLmR1cmF0aW9uVXMpXV0gR2lCL3M8L3NwYW4+CiAgICAgICAgICAgIAogICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8ZGl2IGhpZGRlbj0iW1shX2lzQ2hhbm5lbChub2RlKV1dIj4KICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgU2VuZCBEZWxheToKICAgICAgICAgICAgICA8c3BhbiBjbGFzcz0idmFsdWUiPltbX2Zvcm1hdChub2RlLnNlbmREZWxheVVzKV1dIMK1czwvc3Bhbj4KICAgICAgICAgICAgCiAgICAgICAgICAgIDxwPkhsbyBOYW1lczoKICAgICAgICAgICAgPGNvZGUgY2xhc3M9ImNvZGUtc3R5bGUiPgogICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Iltbbm9kZS5obG9OYW1lc11dIj4KICAgICAgICAgICAgICAgICJbW2l0ZW1dXSIKICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICA8L2NvZGU+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDxkaXYgaGlkZGVuPSJbWyFfaGFzUmVwbGljYUdyb3Vwcyhub2RlKV1dIj4KICAgICAgICAgICAgPHA+UmVwbGljYSBHcm91cHMKICAgICAgICAgICAgPGNvZGUgY2xhc3M9ImNvZGUtc3R5bGUiPgogICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Iltbbm9kZS5yZXBsaWNhR3JvdXBzXV0iPgogICAgICAgICAgICAgICAge1tbaXRlbS5yZXBsaWNhSWRzXV19PGJyPgogICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgIDwvY29kZT4KICAgICAgICAgIDwvZGl2PgogICAgICAgICAgPGRpdiBoaWRkZW49IltbIV9pc1N0ZXAobm9kZSldXSI+CiAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Iltbc3RlcEJyZWFrZG93bkxheWVyc11dIj4KICAgICAgICAgICAgICA8cD4KICAgICA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MHB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwcHg7CiAgICAgICAgLXdlYmtpdC1ib3gtc2hhZG93OiA0cHggNHB4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICAgIC1tb3otYm94LXNoYWRvdzogNHB4IDRweCAxMHB4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgICBib3gtc2hhZG93OiA0cHggNHB4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aWR0aDogMjAwcHg7CiAgICAgIH0KCiAgICAgICN0b29sdGlwLmhpZGRlbiB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgI3Rvb2x0aXAgcCB7CiAgICAgICAgZm9udDogMTJweCBzYW5zLXNlcmlmOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfQoKICAgICAgI292ZXJ2aWV3IHsKICAgICAgICBtYXJnaW4tbGVmdDogMjBweDsKICAgICAgfQoKICAgICAgcGFwZXItaXRlbTpob3Zlci5tZW51LW9wdGlvbiB7CiAgICAgICAgYmFja2dyb3VuZDogI2UwZTBlMDsKICAgICAgfQoKICAgICAgcGFwZXItc2xpZGVyIHsKICAgICAgICAtLXBhcGVyLXNsaWRlci1pbnB1dDogewogICAgICAgICAgd2lkdGg6IDE1MHB4OwogICAgICAgIH0KICAgICAgfQoKICAgICAgLm1ldHJpY3MtYnV0dG9uIHsKICAgICAgICBoZWlnaHQ6IDYwcHg7CiAgICAgICAgd2lkdGg6IDYwcHg7CiAgICAgIH0KCiAgICAgIC50b3BvLWhlYWRlciB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDE2cHg7CiAgICAgIH0KCiAgICAgIC5jb250cm9sLXJvdy1sZWZ0IHsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1mbG93OiByb3cgbm93cmFwOwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDsKICAgICAgICBsaW5lLWhlaWdodDogNTBweDsKICAgICAgICBtYXJnaW4tbGVmdDogMTZweDsKICAgICAgICB0ZXh0LWFsaWduOiBib3R0b207CiAgICAgIH0KCiAgICAgIC5tZXRyaWNzLWxhYmVsIHsKICAgICAgICBwYWRkaW5nOiAwLjVlbTsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwogICAgICB9CgogICAgICAudG9wby10aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAyNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGxpbmUtaGVpZ2h0OiAzMnB4OwogICAgICAgIHRleHQtYWxpZ246IGJvdHRvbTsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogYm90dG9tOwogICAgICB9CgogICAgICAjY29udGFpbmVyIHsKICAgICAgICAvKiBUb29sdGlwIHNob3VsZCBwb3NpdGlvbiByZWxhdGl2ZSB0byB0aGUgY29udGFpbmVyLiAqLwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQogICAgPC9zdHlsZT4KICAgIDxkaXYgY2xhc3M9InRvcG9sb2d5LWdyYXBoIj4KICAgICAgPGRpdiBjbGFzcz0idG9wby1oZWFkZXIgY29udGFpbmVyIGZsZXgtaG9yaXpvbnRhbCI+CiAgICAgICAgPGRpdiBjbGFzcz0iY29udHJvbC1yb3ctbGVmdCB0b3BvLXRpdGxlIj4KICAgICAgICAgIHt7X3RwdVR5cGV9fSB7e190b3RhbENvcmVDb3VudH19CiAgICAgICAgPC9kaXY+CiAgICAgICAgPHNwYW4gY2xhc3M9ImNvbnRyb2wtcm93LWxl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ewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1mbG93OiByb3cgbm93cmFwOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBwYWRkaW5nOiAwLjVlbTsKICAgICAgICB0ZXh0LWFsaWduOiBib3R0b207CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogYm90dG9tOwogICAgICB9CgogICAgICAuY29udHJvbC1yb3ctbGVmdCB7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZmxvdzogcm93IG5vd3JhcDsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7CiAgICAgICAgbGluZS1oZWlnaHQ6IDUwcHg7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDE2cHg7CiAgICAgICAgdGV4dC1hbGlnbjogYm90dG9tOwogICAgICB9CgogICAgICBwYXBlci1zbGlkZXIgewogICAgICAgIC0tcGFwZXItc2xpZGVyLWlucHV0OiB7CiAgICAgICAgICB3aWR0aDogMTAwcHg7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItc2xpZGVyLWhlaWdodDogM3B4OwogICAgICB9CgogICAgICAuc3RlcC1udW0tdGV4dCB7CiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIHBhZGRpbmctbGVmdDogMWVtOwogICAgICB9CgogICAgICAuc3RhY2stdGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMjRweDsKICAgICAgICBsaW5lLWhlaWdodDogMzJweDsKICAgICAgfQoKICAgICAgLmJhci1jaGFydCB7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH0KCiAgICAgICN0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gICAgICAgPC9kaXY+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InNpZGViYXItc2VjdGlvbiI+CiAgICAgICAgICAgICAgPGRpdiBjbGFzcz0idGl0bGUiPgogICAgICAgICAgICAgICAgUnVucyA8c3BhbiBjbGFzcz0iY291bnRlciI+KFtbX2RhdGFzZXRzLmxlbmd0aF1dKTwvc3Bhbj4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8cGFwZXItZHJvcGRvd24tbWVudSBuby1sYWJlbC1mbG9hdCBuby1hbmltYXRpb25zIG5vaW5rIGhvcml6b250YWwtYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgPHBhcGVyLWxpc3Rib3ggaWQ9Imxpc3RfYm94X3J1biIgc2xvdD0iZHJvcGRvd24tY29udGVudCIgc2VsZWN0ZWQ9Int7c2VsZWN0ZWREYXRhc2V0SW5kZXh9fSI+CiAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpZD0icnVuX2l0ZW1zIiBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9IltbX2RhdGFzZXRzXV0iPgogICAgICAgICAgICAgICAgICAgIDxwYXBlci1pdGVtPltbaXRlbS5uYW1lXV08L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8L3BhcGVyLWxpc3Rib3g+CiAgICAgICAgICAgICAgPC9wYXBlci1kcm9wZG93bi1tZW51PgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0ic2lkZWJhci1zZWN0aW9uIj4KICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0aXRsZSI+CiAgICAgICAgICAgICAgICBUb29scyA8c3BhbiBjbGFzcz0iY291bnRlciI+KFtbX2FjdGl2ZVRvb2xzTGlzdC5sZW5ndGhdXSk8L3NwYW4+CiAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPHBhcGVyLWRyb3Bkb3duLW1lbnUgbm8tbGFiZWwtZmxvYXQgbm8tYW5pbWF0aW9ucyBub2luayBob3Jpem9udGFsLWFsaWduPSJsZWZ0Ij4KICAgICAgICAgICAgICAgIDxwYXBlci1saXN0Ym94IGlkPSJsaXN0X2JveF90b29sIiBzbG90PSJkcm9wZG93bi1jb250ZW50IiBzZWxlY3RlZD0ie3tzZWxlY3RlZFRvb2xJbmRleH19Ij4KICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlkPSJ0b29sX2l0ZW1zIiBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9IltbX2FjdGl2ZVRvb2xzTGlzdF1dIj4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItaXRlbT5bW2l0ZW1dXTwvcGFwZXItaXRlbT4KICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbWyFfaGFzQWN0aXZlVG9vbHMoKV1dIiByZXN0YW1wPSJ0cnVlIj4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItaXRlbT5Ob25lPC9wYXBlci1pdGVtPgogICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgPC9wYXBlci1saXN0Ym94PgogICAgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InNpZGViYXItc2VjdGlvbiI+CiAgICAgICAgICAgICAgPGRpdiBjbGFzcz0idGl0bGUiPgogICAgICAgICAgICAgICAgSG9zdHMgPHNwYW4gY2xhc3M9ImNvdW50ZXIiPihbW19hY3RpdmVIb3N0c0xpc3QubGVuZ3RoXV0pPC9zcGFuPgogICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgIDxwYXBlci1kcm9wZG93bi1tZW51IG5vLWxhYmVsLWZsb2F0IG5vLWFuaW1hdGlvbnMgbm9pbms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aWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogNDBweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgfQogICAgICAjcHJvZ3Jlc3MtbXNnIHsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICB9CiAgICAgIHBhcGVyLXByb2dyZXNzIHsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgICAgLS1wYXBlci1wcm9ncmVzcy1oZWlnaHQ6IDZweDsKICAgICAgICAtLXBhcGVyLXByb2dyZXNzLWFjdGl2ZS1jb2xvcjogI2YzOTEzZTsKICAgICAgfQogICAgICBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuZGV0YWlscy1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctcmlnaHQ6IDVweDsKICAgICAgfQogICAgICB0Zi1vcC1kZXRhaWxzLAogICAgICBidWZmZXItZGV0YWlscywKICAgICAgZGV0YWlscy1jYXJkIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CiAgICAgIC55ZWxsb3ctYnV0dG9uIHsKICAgICAgICBjb2xvcjogI2VlZmY0MTsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgfQogICAgICAuY2FwdHVyZS1zcGlubmVyIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDVweDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgPHNjcmlwdD4vL35+V0VCUEFUSH5+L3R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zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLXBpbi1zdGFydC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgZmxleC1ncm93OiAyOwogICAgICB9CgogICAgICBwcmUgewogICAgICAgIGRpc3BsYXk6IGlubGluZTsKICAgICAgfQoKICAgICAgcGFwZXItYnV0dG9uI3JlY29yZF9idXR0b24gewogICAgICAgIGNvbG9yOiAjZDMyZjJmOwogICAgICB9CgogICAgICBwYXBlci1idXR0b24jcmVjb3JkX2J1dHRvbi5pcy1yZWNvcmRpbmcgewogICAgICAgIGJhY2tncm91bmQ6ICNkMzJmMmY7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAuc2lkZWJhci1zZWN0aW9uLmJlaG9sZGVyLWRhc2hib2FyZDpsYXN0LWNoaWxkIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KCiAgICAgICNjb2xvcm1hcC1zZWxlY3Rpb24gewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgbWFyZ2luLXRvcDogNXB4OwogICAgICB9CgogICAgICAjY29sb3JtYXAtc2VsZWN0aW9uLWxhYmVsIHsKICAgICAgICBtYXJnaW4tdG9wOiAxM3B4OwogICAgICB9CgogICAgICAjY29sb3JtYXAtc2VsZWN0aW9uIHBhcGVyLWRyb3Bkb3duLW1lbnUgewogICAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWZvY3VzLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICB3aWR0aDogMTA1cHg7CiAgICAgIH0KCiAgICAgIGg0IHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IG5vcm1hbDsKICAgICAgICBtYXJnaW46IDVweCAwOwogICAgICB9CgogICAgICBwLmRpc2NsYWltZXIgewogIC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AgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFiOwogICAgICB9CgogICAgICA6aG9zdCg6Zm9jdXMpIHsKICAgICAgICBvdXRsaW5lOiBub25lOwogICAgICB9CgogICAgICA6aG9zdChbbGlua10pIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAudGFiLWNvbnRlbnQgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWigwKTsKICAgICAgICB0cmFuc2l0aW9uOiBvcGFjaXR5IDAuMXMgY3ViaWMtYmV6aWVyKDAuNCwgMC4wLCAxLCAxKTsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtaG9yaXpvbnRhbDsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtY2VudGVyLWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZmxleC1hdXRvOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRhYi1jb250ZW50OwogICAgICB9CgogICAgICA6aG9zdCg6bm90KC5pcm9uLXNlbGVjdGVkKSkgPiAudGFiLWNvbnRlbnQgewogICAgICAgIG9wYWNpdHk6IDAuODsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFiLWNvbnRlbnQtdW5zZWxlY3RlZDsKICAgICAgfQoKICAgICAgOmhvc3QoOmZvY3VzKSAudGFiLWNvbnRlbnQgewogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDsKICAgICAgfQoKICAgICAgcGFwZXItcmlwcGxlIHsKICAgICAgICBjb2xvcj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2xvcjogcmdiYSgwLCAwLCAwLCAwKTsKICAgICAgICAtd2Via2l0LXRhcC1oaWdobGlnaHQtY29sb3I6IHRyYW5zcGFyZW50OwoKICAgICAgICBAYXBwbHkgLS1wYXBlci10YWJzOwogICAgICB9CgogICAgICA6aG9zdCg6ZGlyKHJ0bCkpIHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtaG9yaXpvbnRhbC1yZXZlcnNlOwogICAgICB9CgogICAgICAjdGFic0NvbnRhaW5lciB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXgtYXV0bzsKICAgICAgICBAYXBwbHkgLS1wYXBlci10YWJzLWNvbnRhaW5lcjsKICAgICAgfQoKICAgICAgI3RhYnNDb250ZW50IHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgLW1vei1mbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIC1tcy1mbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtYmFzaXM6IGF1dG87CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFicy1jb250ZW50OwogICAgICB9CgogICAgICAjdGFic0NvbnRlbnQuc2Nyb2xsYWJsZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgIH0KCiAgICAgICN0YWJzQ29udGVudDpub3QoLnNjcm9sbGFibGUpLAogICAgICAjdGFic0NvbnRlbnQuc2Nyb2xsYWJsZS5maXQtY29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtaG9yaXpvbnRhbDsKICAgICAgfQoKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUuZml0LWNvbnRhaW5lciB7CiAgICAgICAgbWluLXdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAjdGFic0NvbnRlbnQuc2Nyb2xsYWJsZS5maXQtY29udGFpbmVyID4gOjpzbG90dGVkKCopIHsKICAgICAgICAvKiBJRSAtIHByZXZlbnQgdGFicyBmcm9tIGNvbXByZXNzaW5nIHdoZW4gdGhleSBzaG91bGQgc2Nyb2xsLiAqLwogICAgICAgIC1tcy1mbGV4OiAxIDAgYXV0bzsKICAgICAgICAtd2Via2l0LWZsZXg6IDEgMCBhdXRvOwogICAgICAgIGZsZXg6IDEgMCBhdXRvOwogICAgICB9CgogICAgICAuaGlkZGVuIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAubm90LXZpc2libGUgewogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgY3Vyc29yOiBkZWZhdWx0OwogICAgICB9CgogICAgICBwYXBlci1pY29uLWJ1dHRvbiB7CiAgICAgICAgd2lkdGg6IDQ4cHg7CiAgICAgICAgaGVpZ2h0OiA0OHB4OwogICAgICAgIHBhZGRpbmc6IDEycHg7CiAgICAgICAgbWFyZ2luOiAwIDRweDsKICAgICAgfQoKICAgICAgI3NlbGVjdGlvbkJhciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGhlaWdodDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBib3JkZXItYm90dG9tOiAycHggc29saWQgdmFyKC0tcGFwZXItdGFicy1zZWxlY3Rpb24tYmFyLWNvbG9yLCB2YXIoLS1wYXBlci15ZWxsb3ctYTEwMCkpOwogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDApOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMCk7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcmlnaW46IGxlZnQgY2VudGVyOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IGxlZnQgY2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1idXR0b24tc3R5bGUiPgogICAgICAvKioKICAgICAgICogVGhpcyBzdHlsZSBwcmVzZXJ2ZXMgdGhlIHN0eWxpbmcgcHJldmlvdXMgdG8KICAgICAgICogaHR0cHM6Ly9naXRodWIuY29tL1BvbHltZXJFbGVtZW50cy9wYXBlci1idXR0b24vcHVsbC8xMTUKICAgICAgICogVGhpcyBjaGFuZ2UgY2FuIGJyZWFrIHRoZSBsYXlvdXQgb2YgcGFwZXItYnV0dG9uIGNvbnRlbnQuCiAgICAgICAqIFJlbW92ZSB0aGlzIHN0eWxlIHRvIGFwcGx5IHRoZSBjaGFuZ2UuCiAgICAgICAqLwogICAgICBwYXBlci1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgZm9udC1mYW1pbHk6IGluaGVyaXQ7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIH0KICAgICAgdGYtb3B0aW9uLXNlbGVjdG9yIC5tb2RlbC10eXBlLWJ1dHRvbiB7CiAgICAgICAgd2lkdGg6IGF1dG87CiAgICAgIH0KICAgICAgLmZsZXgtaG9sZGVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CiAgICAgIC50aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAzMnB4OwogICAgICAgIG1hcmdpbi1ib3R0b206IDIwcHg7CiAgICAgIH0KICAgICAgLmhlbHAtaWNvbiB7CiAgICAgICAgd2lkdGg6IDE1cHg7CiAgICAgICAgaGVpZ2h0OiAxNXB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgY29sb3I6ICM3NTc1NzU7CiAgICAgIH0KICAgICAgLnRvb2x0aXAgewogICAgICAgIHdpZHRoOiA1MDBweDsKICAgICAgfQogIC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HsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDVweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiA1cHg7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgIH0KICAgICAgI3Rvb2x0aXAgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGJveC1zaGFkb3c6IDAgMXB4IDRweCByZ2JhKDAsIDAsIDAsIDAuMyk7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGJhY2tncm91bmQ6IHJnYmEoMCwgMCwgMCwgMC44KTsKICAgICAgICBjb2xvcjogd2hpdGU7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxLjRlbTsKICAgICAgICBwYWRkaW5nOiA4cHg7CiAgICAgICAgei1pbmRleDogNTsKICAgICAgICBjdXJzb3I6IG5vbmU7CiAgICAgICAgbWFyZ2luLXRvcDogMTBweDsKICAgICAgfQogICAgICAuc3dhdGNoIHsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgICAgd2lkdGg6IDE0cHg7CiAgICAgICAgaGVpZ2h0OiAxNHB4OwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMCk7CiAgICAgIH0KICAgICAgLmNsb3Nlc3QgLnN3YXRjaCB7CiAgICAgICAgYm9yZGVyOiAycHggc29saWQgd2hpdGU7CiAgICAgIH0KICAgICAgdGggewogICAgICAgIHBhZGRpbmctbGVmdDogNXB4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDVweDsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiA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jLnBvc2l0aW9uLngrCiJweCwiK2MucG9zaXRpb24ueSsicHgpIik7dGhpcy50b29sdGlwLnN0eWxlKCJvcGFjaXR5IiwxKX1yZW5kZXJUbyhjKXt0aGlzLnRhcmdldFNWRz1jO3RoaXMub3V0ZXIucmVuZGVyVG8oYyl9cmVkcmF3KCl7dGhpcy5vdXRlci5yZWRyYXcoKX1kZXN0cm95KCl7dGhpcy5vdXRlci5kZXN0cm95KCl9fX0pKEZtfHwoRm09e30pKTsKPC9zY3JpcHQ+CjwvZG9tLW1vZHVsZT4KCgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtY29uZnVzaW9uLW1hdHJpeCI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICB0YWJsZSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CiAgICAgIHRkIHsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgfQogICAgICB0aCwKICAgICAgdGQgewogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBwYWRkaW5nOiAzcHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IG5vcm1hbDsKICAgICAgfQogICAgICAuZmxleCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7CiAgICAgIH0KICAgICAgLnByZWQtbGFiZWwgewogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICB9CiAgICAgIC50b3RhbC1sYWJlbCB7CiAgICAgICAgY29sb3I6ICM1ZjYzNjg7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgIH0KICAgICAgLnRvdGFsLWNlbGwgewogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICB9CiAgICAgIC5hY3R1YWwtbGFiZWwgewogICAgICAgIHRleHQtYWxp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lIHsKICAgICAgICBiYWNrZ3JvdW5kOiAjY2JmMGY4OwogICAgICB9CiAgICAgIC5kYXJrLXJvdy10d28gewogICAgICAgIGJhY2tncm91bmQ6ICNmZmYzZTA7CiAgICAgIH0KICAgICAgLndoaXRlLXJvdyB7CiAgICAgICAgYmFja2dyb3VuZDogd2hpdGU7CiAgICAgIH0KICAgICAgLm1hcmtlciB7CiAgICAgICAgZmxleDogMC41OwogICAgICAgIG1hcmdpbi1yaWdodDogNXB4OwogICAgICB9CiAgICAgIC5tYXJrZXIubWFyay1vbmUgewogICAgICAgIGJhY2tncm91bmQ6ICMwMDdiODM7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAxcHg7CiAgICAgIH0KICAgICAgLm1hcmtlci5tYXJrLXR3byB7CiAgICAgICAgYmFja2dyb3VuZDogI2ZmOTgwMDsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDFweDsKICAgICAgfQogICAgICAucnVuIHsKICAgICAgICBmbGV4OiAxMDsKICAgICAgfQogICAgICAubXVsdGktbW9kZWwgewogICAgICAgIGZsZXg6IDEwOwogICAgICB9CiAgICAgIC5vbmUtbW9kZWwgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLnNob3ctbGFiZWwgewogICAgICAgIGZsZXg6IDIwOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQogICAgICAubm8tbGFiZWwgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLnNjb3JlIHsKICAgICAgICBmbGV4OiAxMDsKICAgICAgfQogICAgICAuYXJyb3cgewogICAgICAgIGZsZXg6IDI7CiAgICAgIH0KICAgICAgLmRlbHRhIHsKICAgICAgICBmbGV4OiAxMDsKICAgICAgfQogICAgICAudGV4dCB7CiAgICAgICAgbWFyZ2luLXRvcDogNHB4OwogICAgICB9CiAgICAgIC5ncmVlbiB7CiAgICAgICAgY29sb3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ICAgICAgICAgICA8ZGl2IGNsYXNzJD0iW1tnZXRSb3dDbGFzcyhydW5pbmRleCwgaW5mZXJlbmNlcywgbW9kZWxpbmRleCldXSI+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzJD0iW1tnZXRNYXJrZXJDbGFzcyhydW5pbmRleCwgaW5mZXJlbmNlcywgbW9kZWxpbmRleCldXSI+PC9kaXY+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJydW4gdGV4dCI+W1tnZXRSdW5OdW1iZXIocnVuaW5kZXgpXV08L2Rpdj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3MkPSJbW2dldE1vZGVsQ2xhc3MoaW5mZXJlbmNlcyldXSI+CiAgICAgICAgICAgICAgICAgIDxkaXY+W1tnZXRNb2RlbE5hbWUobW9kZWxOYW1lcywgbW9kZWxpbmRleCldXTwvZGl2PgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzJD0iW1tnZXRMYWJlbENsYXNzKG1vZGVsVHlwZSldXSI+CiAgICAgICAgICAgICAgICAgIDxkaXY+W1tnZXRMYWJlbChpdGVtKV1dPC9kaXY+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InNjb3JlIHRleHQiPltbZ2V0UHJpbnRhYmxlU2NvcmUoaXRlbS5zY29yZSldXTwvZGl2PgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iYXJyb3ciPgogICAgICAgICAgICAgICAgICA8aXJvbi1pY29uIGljb249IltbZ2V0SWNvbihydW5pbmRleCwgaW5kZXgsIG1vZGVsaW5kZXgpXV0iIGNsYXNzJD0iW1tnZXRJY29uQ2xhc3MocnVuaW5kZXgsIGluZGV4LCBtb2RlbGluZGV4KV1dIj4KICAgICAgICAgICAgICAgICAgPC9pcm9uLWljb24+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc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vdmVyZmxvdzogdmlzaWJsZTsKICAgICAgfQoKICAgICAgLm1haW4tY29udHJvbHMgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDYwcHg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IHZpc2libGU7CiAgICAgIH0KCiAgICAgIC5vdmVyZmxvdy1ob2xkZXIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIHdpZHRoOiA2MHB4OwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIG92ZXJmbG93OiB2aXNpYmxlOwogICAgICB9CgogICAgICAjb3ZlcmZsb3dtZW51IHsKICAgICAgICBtYXJnaW46IDAgNDBweDsKICAgICAgfQoKICAgICAgLm92ZXJmbG93LWRpdiB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICAub3ZlcmZsb3ctY2hlY2tib3ggewogICAgICAgIG1hcmdpbjogOHB4IDA7CiAgICAgICAgcGFkZGluZwogICAgICB9CgogICAgICAuZHJvcGRvd24taG9sZGVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIHdpZHRoOiAxNTBweDsKICAgICAgICBtYXJnaW46IDAgMTBweDsKICAgICAgfQoKICAgICAgLmRyb3Bkb3duLXRyaWdnZXIgewogICAgICAgIG1hcmdpbi10b3A6IDEwcHg7CiAgICAgIH0KCiAgICAgIC5leHBhbmQtYnV0dG9uIHsKICAgICAgICBjb2xvcjogIzliOWI5YjsKICAgICAgICAtLXBhcGVyLWljb24tYnV0dG9uLWluay1jb2xvcjogIzliOWI5YjsKICAgICAgfQogICAgICBwYXBlci1tZW51IHBhcGVyLWNoZWNrYm94IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIGZvbnQtc2l6ZTogMTIuNXB4OwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgfQoKICAgICAgcGFwZXItaXRlbSB7CiAgICAgICAgcGFkZGluZzogMCAxNHB4OwogICAgICAgIC0tcGFwZXItaXRlbS1taW4taGVpZ2h0OiAzNnB4OwogICAgICB9CiAgICAgIHBhcGVyLWRyb3Bkb3duLW1lbnUgcGFwZXItaXRlbSB7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNjY2M7CiAgICAgIH0KCiAgICAgICN2ZXJ0aWNhbEZhY2V0IHsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDogewogICAgICAgICAgY29sb3I6IHZhcigtLWdyaWQtZmFjZXRpbmctdmVydGljYWwtbGFiZWwtY29sb3IpOwogICAgICAgIH07CiAgICAgIH0KICAgICAgI2hvcml6b250YWxGYWNldCB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGNvbG9yOiB2YXIoLS1ncmlkLWZhY2V0aW5nLWhvcml6b250YWwtbGFiZWwtY29sb3IpOwogICAgICAgIH07CiAgICAgIH0KICAgICAgI3ZlcnRpY2FsUG9zaXRpb24gewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBjb2xvcjogdmFyKC0taXRlbS1wb3NpdGlvbmluZy12ZXJ0aWNhbC1sYWJlbC1jb2xvcik7CiAgICAgICAgfTsKICAgICAgfQogICAgICAjaG9yaXpvbnRhbFBvc2l0aW9uIHsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDogewogICAgICAgICAgY29sb3I6IHZhcigtLW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BtYXJnaW46IDJweCAwIDAgOHB4OwogICAgICB9CgogICAgICAvKioKICAgICAgICogTGVnZW5kIHRhYmxlIHNoaW0uIFBvbHltZXIncyBkb20tcmVwZWF0IGZlYXR1cmUgaGFzIGEga25vd24gaXNzdWUgaW4KICAgICAgICogd2hpY2ggaXQgZG9lc24ndCB3b3JrIHdpdGggPHRyPiBlbGVtZW50cyBpbnNpZGUgb2YgYSA8dGFibGU+LiBTbwogICAgICAgKiBpbnN0ZWFkLCB3ZSB1c2UgQ1NTIHdpdGggY2xhc3NlZCBkaXZzIHRvIGFjaGlldmUgdGFibGUgYmVoYXZpb3IuCiAgICAgICAqLwogICAgICAubGVnZW5kLXRhYmxlIHsKICAgICAgICBkaXNwbGF5OiB0YWJsZTsKICAgICAgICBtYXJnaW4tbGVmdDogMnB4OwogICAgICB9CiAgICAgIC5sZWdlbmQtcm93IHsKICAgICAgICBkaXNwbGF5OiB0YWJsZS1yb3c7CiAgICAgIH0KICAgICAgLmxlZ2VuZC1jZWxsIHsKICAgICAgICBkaXNwbGF5OiB0YWJsZS1jZWxsOwogICAgICB9CgogICAgICAvKioKICAgICAgICogQ29sb3IgbGVnZW5kLgogICAgICAgKi8KICAgICAgLmxlZ2VuZCAuY29sb3IgewogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgfQogICAgICAubGVnZW5kIC5jb2xvciBpcm9uLWljb24gewogICAgICAgIC0taXJvbi1pY29uLXdpZHRoOiAxNnB4OwogICAgICAgIC0taXJvbi1pY29uLWhlaWdodDogMTZweDsKICAgICAgICBtYXJnaW46IDAgMnB4OwogICAgICB9CiAgICAgIC5sZWdlbmQgLmNvbG9yIGlyb24taWNvbltmaWxsPSIjZmZmZmZmIl0gewogICAgICAgIGJhY2tncm91bmQ6ICNkZGRkZGQ7CiAgICAgIH0KICAgICAgLmxlZ2VuZCAuY29sb3Igc3BhbiB7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICB9CiAgICAgIC5sZWdlbmQgLnNwZW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zcGFuIGNsYXNzPSJjb2xvci1ieS1maWVsZCI+CiAgICAgICAgICAgICAgYnkgW1tfYnJlYWtVcEFuZFRydW5jYXRlKGNvbG9yQnkpXV0KICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBwb3NpdGlvbj0idG9wIj5bW2NvbG9yQnldXTwvcGFwZXItdG9vbHRpcD4KICAgICAgICAgICAgPC9zcGFuPgoKICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLXRhYmxlIj4KICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW3BhbGV0dGVdXSI+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtcm93IGNvbG9yIj4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNlbGwiPgogICAgICAgICAgICAgICAgICAgIDxpcm9uLWljb24gaWNvbj0iYXY6ZmliZXItbWFudWFsLXJlY29yZCIgZmlsbCQ9IltbaXRlbS5jb2xvcl1dIiBzdHlsZSQ9ImZpbGw6W1tpdGVtLmNvbG9yXV0iPjwvaXJvbi1pY29uPgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNlbGwiPgogICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzJD0iW1tfc3BlY2lhbENsYXNzKGl0ZW0uY29udGVudC5zcGVjaWFsKV1dIj4KICAgICAgICAgICAgICAgICAgICAgIFtbX2JyZWFrVXBBbmRUcnVuY2F0ZShpdGVtLmNvbnRlbnQubGFiZWwpXV0KICAgICAgICAgICAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgcG9zaXRpb249InRvcCI+W1tpdGVtLmNvbnRlbnQubGFiZWxdXTwvcGFwZXItdG9vbHRpcD4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgIC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gY29udGFpbmluZyBvbmx5ICZuYnNwOyBmb3IKICAgICAgICogc3BhY2luZyBwdXJwb3Nlcy4gQWdncmVzc2l2ZSB2dWxjYW5pemVycyBzb21ldGltZXMgcmVtb3ZlIHRoaXMgY29udGVudC4KICAgICAgICogVGhpcyBDU1MgcnVsZSBmb3JjZXMgdGhlIGNvbnRhaW5pbmcgZWxlbWVudCB0byBoYXZlIHRoZSBjb3JyZWN0IGhlaWdodAogICAgICAgKiBpbiBlaXRoZXIgY2FzZS4KICAgICAgICovCiAgICAgIDpob3N0IHBhcGVyLWlucHV0LWNvbnRhaW5lciA+IC5mbG9hdGVkLWxhYmVsLXBsYWNlaG9sZGVyIHsKICAgICAgICBtaW4taGVpZ2h0OiAyMHB4OwogICAgICB9CgogICAgICA6aG9zdCB7CiAgICAgICAgYmFja2dyb3VuZDogI2ZmZmZmZjsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuZmlsbCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CiAgICAgIC5tYWluIHsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CiAgICAgIGZhY2V0cy1kaXZlLWNvbnRyb2xzIHsKICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2QzZDNkMzsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgaGVpZ2h0OiA2MHB4OwogICAgICB9CiAgICAgIC5yb3cgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgfQogICAgICBmYWNldHMtZGl2ZS1sZWdlbmQgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBib3R0b206IDE0cHg7CiAgICAgICAgcmlnaHQ6IDI0cHg7CiAgICAgIH0KICAgICAgLnpvb20tY29udHJvbHMgewogICAgICAgIGJvdHRvbTogMTRweDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB9CiAgICAgIC56b29tLWNvbnRyb2xzIHBhcGVyLWJ1dHRvbiB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2U3ZTdlNzsKICAgICAgICBjbGVhcjogbGVmdDsKICAgICAgICBjb2xvcjogIzJiMmIyYjsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgICBtYXJnaW46IDRweCA4cHg7CiAgICAgICAgbWluLXdpZHRoOiAwOwogICAgICAgIHBhZGRpbmc6IDhweDsKICAgICAgfQogICAgICBmYWNldHMtZGl2ZS1pbmZvLWNhcmQgewogICAgICAgIGJhY2tncm91bmQ6ICNmZmY4ZjQ7CiAgICAgICAgYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCAjYzZjNmM2OwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIHdpZHRoOiAyNDBweDsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8ZGl2IGNsYXNzPSJmaWxsIG1haW4iPgogICAgICA8ZmFjZXRzLWRpdmUtY29udHJvbHMgaWQ9ImNvbnRyb2xzIiBhdGxhcy11cmw9IltbYXRsYXNVcmxdXSIga2V5cz0iW1tfa2V5c11dIi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gICAgICAgb3ZlcmZsb3cteDogaGlkZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICB9CiAgICAgIC5kYXRhLWVycm9yIHsKICAgICAgICBjb2xvcjogcmVkOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CiAgICAgIC5kYXRhLXdlaWdodGVkIHsKICAgICAgICBmb250LXN0eWxlOiBpdGFsaWM7CiAgICAgIH0KICAgICAgLnRhYmxlLXJvdyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBtYXJnaW4tYm90dG9tOiA0cHg7CiAgICAgIH0KICAgICAgLnRhYmxlLWNlbGwgewogICAgICAgIG1pbi13aWR0aDogNzBweDsKICAgICAgICBtYXgtd2lkdGg6IDcwcHg7CiAgICAgICAgcGFkZGluZy1yaWdodDogNHB4OwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KICAgICAgLmRhdGEtY3VzdG9tIHsKICAgICAgICBtaW4td2lkdGg6IDE1MHB4OwogICAgICAgIG1heC13aWR0aDogMTUwcHg7CiAgICAgICAgd2hpdGUtc3BhY2U6IHByZTs7CiAgICAgIH0KICAgICAgI2xlZ2VuZC1ib3ggewogICAgICAgIHdpZHRoOiA2cHg7CiAgICAgICAgaGVpZ2h0OiAxNnB4OwogICAgICAgIG1hcmdpbi1sZWZ0OiA0cHg7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8ZGl2IGNsYXNzPSJ0YWJsZS1yb3ciPgogICAgICA8ZGl2IGlkPSJsZWdlbmQtYm94Ij48L2Rpdj4KICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tfZW50cmllc11dIj4KICAgICAgICA8ZGl2IGNsYXNzJD0iW1tpdGVtLmNzc0NsYXNzXV0gdGFibGUtY2VsbCIgdGl0bGU9IltbaXRlbS5mdWxsU3RyXV0iPltbaXRlbS5zdHJdXTwvZGl2PgogICAgICA8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JsZS5jaGFydC1iaWcgewogICAgICAgIGhlaWdodDogMjAwcHg7CiAgICAgICAgd2lkdGg6IDU1MHB4OwogICAgICB9CiAgICAgIC5wbG90dGFibGUueGF4aXMtYmlnIHsKICAgICAgICBoZWlnaHQ6IDUwcHg7CiAgICAgICAgd2lkdGg6IDU1MHB4OwogICAgICB9CiAgICAgICNzaG93X3RhYmxlX2J1dHRvbiB7CiAgICAgICAgbWFyZ2luOiAwIDAgMCA1cHg7CiAgICAgICAgcGFkZGluZzogMCAzcHg7CiAgICAgICAgZm9udC1zaXplOiA3cHQ7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2QzZDNkMzsKICAgICAgfQogICAgICAuZGlhbG9nLXJvdy1lbnRyeSB7CiAgICAgICAgcGFkZGluZzogMCAxMHB4IDAgMDsKICAgICAgfQogICAgICAudGFibGUtaGVhZGVyIHsKICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgYmxhY2s7CiAgICAgIH0KICAgICAgLmRpYWxvZy1yb3csIC5kaWFsb2ctaGVhZGVyLXJvdyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQogICAgICAuZGlhbG9nLXJvdy5zZWxlY3RlZCB7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2sKICAgICAgfQogICAgICAuZGlhbG9nLXJvdzpob3ZlciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI0QwRDBEMDsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KICAgICAgLmRpYWxvZy10YWJsZSB7CiAgICAgICAgY2xlYXI6IGxlZnQ7CiAgICAgIH0KICAgICAgLmxhYmVsLWNlbGwgewogICAgICAgIHdpZHRoOiA5MHB4OwogICAgICAgIG1heC13aWR0aDogOTBweDsKICAgICAgICBtaW4td2lkdGg6IDkwcHg7CiAgICAgICAgb3ZlcmZsb3ctd3JhcDogYnJlYWstd29yZDsKICAgICAgfQogICAgICAubm9uLW92ZXJmbG93LWxhYmVsLWNlbGwgewogICAgICAgIHdpZHRoOiA5MHB4OwogICAgICAgIG1heC13aWR0aDogOTBweDsKICAgICAgICBtaW4td2lkdGg6IDkwcHg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICB9CiAgICAgIC5jb3VudC1jZWxsIHsKICAgICAgICB3aWR0aDogMTAwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAxMDBweDsKICAgICAgICBtaW4td2lkdGg6IDEwMHB4OwogICAgICAgIG92ZXJmbG93LXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgIH0KICAgICAgLndlaWdodGVkLWNlbGwgewogICAgICAgIGZvbnQtc3R5bGU6IGl0YWxpYzsKICAgICAgfQogICAgICAuZGF0YS1saXN0LXNtYWxsIHsKICAgICAgICBoZWlnaHQ6IDYwcHg7CiAgICAgIH0KICAgICAgLmRhdGEtbGlzdC1iaWcgewogICAgICAgIGhlaWdodDogMTgwcHg7CiAgICAgICAgd2lkdGg6IDU1MHB4OwogICAgICB9CiAgICAgIC5oaWRlY2hhcnQgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLnNob3djaGFydCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lOwogICAgICB9CiAgICAgICN0b29sdGlwIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci10b29sdGlwLWJhY2tncm91bmQsICM2MTYxNjEpOwogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICAgIHBvaW50ZXItZXZlbnRzOm5vbmU7CiAgICAgICAgdHJhbnNpdGlvbjogb3BhY2l0eSAwLjNzOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0ZXh0LWFsaWduOmNlbnRlcjsKICAgICA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AgICAgIHBhZGRpbmc6IDRweCAwIDRweCA4cHg7CiAgICAgICAgYmFja2dyb3VuZDogcmdiYSg2MSwxNDAsMjA3LDAuMyk7CiAgICAgICAgYm9yZGVyOiBzb2xpZCAwLjVweCByZ2JhKDAsMCwwLDAuMSk7CiAgICAgIH0KICAgICAgLmZlYXR1cmUtaXJvbi1saXN0IHsKICAgICAgICBvdmVyZmxvdy14OiBoaWRkZW4gIWltcG9ydGFudDsKICAgICAgICBoZWlnaHQ6IDgwMHB4OwogICAgICB9CiAgICAgIC5jaGFydC1jb2x1bW4gewogICAgICAgIHdpZHRoOiAyODBweDsKICAgICAgICBtaW4td2lkdGg6IDI4MHB4OwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgfQogICAgICAuY2hhcnQtY29sdW1uLmhlYWRlci1jZWxsIHsKICAgICAgICBiYWNrZ3JvdW5kOiByZ2JhKDYxLDE0MCwyMDcsMC4xKTsKICAgICAgICBib3JkZXItdG9wOiBzb2xpZCAwLjVweCByZ2JhKDAsMCwwLDAuMSk7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogc29saWQgMC41cHggcmdiYSgwLDAsMCwwLjEpOwogICAgICAgIGJvcmRlci1yaWdodDogc29saWQgMC41cHggcmdiYSgwLDAsMCwwLjEpOwogICAgICAgIHBhZGRpbmctbGVmdDogOHB4OwogICAgICB9CiAgICAgIC5udW1lcmljLXJvdyB7CiAgICAgICAgbWluLWhlaWdodDogODBweDsKICAgICAgICBkaXNwbGF5OiB0YWJsZS1yb3c7CiAgICAgIH0KICAgICAgLmNhdGVnb3JpY2FsLXJvdyB7CiAgICAgICAgbWluLWhlaWdodDogOThweDsKICAgICAgICBkaXNwbGF5OiB0YWJsZS1yb3c7CiAgICAgIH0KICAgICAgLnRhYmxlLWNlbGwgewogICAgICAgIGRpc3BsYXk6IHRhYmxlLWNlbGw7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRvcDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbGluZS1oZWlnaHQ6IDEuMmVtOwogICAgICB9CiAgICAgIC5jaGFydC1jb2x1bW4udGFibGUtY2VsbCB7CiAgICAgICAgZGlzcGxheTogdGFibGUtY2VsbDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICAgIHBhZGRpbmc6IDEwcHggMCAwIDIwcHgKICAgICAgICBtYXJnaW4tcmlnaHQ6IDEwcHg7CiAgICAgIH0KICAgICAgLmhlYWRlci1jZWxsIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgbWluLWhlaWdodDogNjBweDsKICAgICAgfQogICAgICBwYXBlci1jaGVja2JveCB7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1zaXplOiAxMnB4OwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtbGFiZWwtc3BhY2luZzogMnB4OwogICAgICB9CiAgICAgIC5jb250cm9sLWhvbGRlciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuY2hlY2tib3gtaG9sZGVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIHBhZGRpbmctYm90dG9tOiAycHg7CiAgICAgIH0KICAgICAgLmNoYXJ0LWNoZWNrYm94IHsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiA4cHg7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICB9CiAgICAgICN3ZWlnaHRib3ggewogICAgICAgIGZvbnQtc3R5bGU6IGl0YWxpYzsKICAgICAgfQogICAgICBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMTUwcHg7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItbGFiZWwgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbn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RvciIsYmVoYXZpb3JzOltQb2x5bWVyLklyb25WYWxpZGF0b3JCZWhhdmlvcl0sdmFsaWRhdGU6ZnVuY3Rpb24oYSl7dHJ5e3JldHVybiBuZXcgUmVnRXhwKGEpLCEwfWNhdGNoKGMpe3JldHVybiExfX19KTsKPC9zY3JpcHQ+CgoKPGRvbS1tb2R1bGUgaWQ9ImZhY2V0cy1vdmVydmlldyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZQogICAgICAgIGZvbnQtc2l6ZTogMTBwdDsKICAgICAgfQogICAgICAuY29udHJvbHMgewogICAgICAgIGJhY2tncm91bmQ6IHJnYmEoMjM0LDIzNCwyMzQsMC4yKTsKICAgICAgICBib3JkZXItYm90dG9tOiBzb2xpZCAwLjVweCByZ2JhKDAsMCwwLDAuMik7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBoZWlnaHQ6IDYwcHg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAyMHB4OwoKICAgICAgfQogICAgICAuZmVhdHVyZS1jaGVja2JveGVzIHsKICAgICAgICBiYWNrZ3JvdW5kOiByZ2JhKDIzNCwyMzQsMjM0LDAuMik7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogc29saWQgMC41cHggcmdiYSgwLDAsMCwwLjIpOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICAgIHBhZGRpbmc6ICA4cHggMCA4cHggMjBweDsKICAgICAgfQogICAgICAuZmVhdHVyZS1jaGVja2JveCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBwYWRkaW5nOiAwIDAgMCAxNnB4OwogICAgICB9CiAgICAgIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIH0KICAgICAgLmlucHV0LWNvbnRyb2wgewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWxhYmVsIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgfTsKICAgICAgfQogICAgICAuZmVhdHVyZXMtdGV4dCB7CiAgICAgICAgbGluZS1oZWlnaHQ6IDE7CiAgICAgICAgcGFkZGluZzogMXB4IDAgMCAwOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgfQogICAgICAubGVmdC1kcm9wZG93biB7CiAgICAgICAgcGFkZGluZzogMCAxMHB4IDAgMDsKICAgICAgfQogICAgICAubWlkZGxlLWNoZWNrYm94IHsKICAgICAgICBtYXJnaW4tdG9wOiAzMHB4OwogICAgICAgIHBhZGRpbmc6IDAgMTBweDsKICAgICAgfQogICAgICAucmlnaHQtaW5wdXQgewogICAgICAgIHdpZHRoOiAzMDBweDsKICAgICAgICBwYWRkaW5nOiAwIDEwcHg7CiAgICAgIH0KICAgICAgLmZlYXR1cmUtaXJvbi1saXN0IHsKICAgICAgICBtYXgtaGVpZ2h0OiA4MDBweDsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQogICAgICAuZmVhdHVyZS1jb2x1bW4gewogICAgICAgIHdpZHRoOiAyMDBweDsKICAgICAgICBtYXgtd2lkdGg6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKICAgICAgfQogICAgICAubGVnZW5kLWNvbHVtbiB7CiAgICAgICAgd2lkdGg6IDEyMHB4OwogICAgICB9CiAgICAgIC5zdGF0cy1jb2x1bW4gewogICAgICAgIHdpZHRoOiAxNTBweDsKICAgICAgICBtYXgtd2lkdGg6IDE1MHB4OwogICAgICAgIG92ZXJmbG93LXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgIH0KICAgICAgLmNoYXJ0LWNvbHVtbiB7CiAgICAgICAgd2lkdGg6IDU4MHB4OwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgfQogICAgICAudGFibGUtcm93IHsKICAgICAgICBkaXNwbGF5OiB0YWJsZS1yb3c7CiAgICAgIH0KICAgICAgLnRhYmxlLWNlbGwgewogICAgICAgIGRpc3BsYXk6IHRhYmxlLWNlbGw7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRvcDsKICAgICAgICBwYWRkaW5nOiAxMHB4IDVweCAwCiAgICAgIH0KICAgICAgLmNoYXJ0LWNvbHVtbi50YWJsZS1jZWxsIHsKICAgICAgICBkaXNwbGF5OiB0YWJsZS1jZWxsOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiB0b3A7CiAgICAgICAgcGFkZGluZzogMTBweCAwIDAgMjBweAogICAgICB9CiAgICAgIC5oZWFkZXItcm93IHsKICAgICAgICBjbGVhcjogYm90aDsKICAgICAgfQogICAgICAuaGVhZGVyLXJvdyA+IC50YWJsZS1jZWxsIHsKICAgICAgICBmb250LXNpemU6IDE0cHQ7CiAgICAgICAgcGFkZGluZzogMCA1cHggMDsKICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgYmxhY2s7CiAgICAgIH0KICAgICAgLnN0YXRzLWhlYWRlci10ZXh0IHsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgfQogICAgICAuY2hhcnQtaGVhZGVyLXRleHQgewogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgfQogICAgICAudGFibGUtaG9sZGVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtd3JhcDogd3JhcDsKICAgICAgICBvdmVyZmxvdy14OiBhdXRvOwogICAgICAgIG1hcmdpbi1sZWZ0OiAzMHB4OwogICAgICB9CiAgICAgIC50YWJsZS1sZWZ0IHsKICAgICAgICBtYXJnaW46IDIwcHggMjBweCAwIDA7CiAgICAgIH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IHN0eWxlIHRvIGFwcGx5IHRoZSBjaGFuZ2UsIG1vcmUgZGV0YWlscyBhdCBiLzcwNTI4MzU2LgogICAgICAgKi8KICAgICAgcGFwZXItYnV0dG9uIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIGZvbnQtZmFtaWx5OiBpbmhlcml0OwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5zZXEtZmVhdCB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDE2cHg7CiAgICAgIH0KCiAgICAgIC52YWx1ZS1saXN0IHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgLnNsaWRlci1ob2xkZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KCiAgICAgIC5zbGlkZXItbGFiZWwgewogICAgICAgIG1hcmdpbi1yaWdodDogMTBweDsKICAgICAgICBtYXJnaW4tdG9wOiAxNnB4OwogICAgICB9CgogICAgICAjc2FsaWVuY3lMZWdlbmQgewogICAgICAgIHdpZHRoOiAzMDBweDsKICAgICAgICBoZWlnaHQ6IDUwcHg7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDhweDsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDhweDsKICAgICAgfQoKICAgICAgLnNhbGllbmN5LWNvbnRyb2xzLWhvbGRlciB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogOHB4OwogICAgICAgIHdpZHRoOiBmaXQtY29udGVudDsKICAgICAgfQoKICAgICAgLmhpZGUtc2FsaWVuY3ktY29udHJvbHMgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgIC5zYWxpZW5jeS1sZWdlbmQtbGFiZWwgewogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgfQoKICAgICAgLm91dGVyIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQoKICAgICAgLmltYWdlIHsKICAgICAgICAvKiA8aW1nPiBlbGVtZW50cyBhcmUgdXNlZCB0byBsb2FkIHRvIGEgY2FudmFzIHNvIHRoZXkgYXJlbid0IGRpc3BsYXllZC4gKi8KICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAuZmxleC1jb250cm9scyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LXdyYXA6IHdyYXA7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH0KCiAgICAgIC52YWx1ZS1waWxscy1ob2xkZXIgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LWJhc2lzOiAxMDAlOwogICAgICB9CgogICAgICBpcm9uLWF1dG9ncm93LXRleHRhcmVhIHsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZmZmZmZmOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDRweDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgLW1vei1hcHBlYXJhbmNlOiBub25lOwogICAgICAgIC13ZWJraXQtYXBwZWFyYW5jZTogbm9uZTsKICAgICAgICAtLWlyb24tYXV0b2dyb3ctdGV4dGFyZWE6IHsKICAgICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIH0KICAgICAgfQoKICAgICAgaXJvbi1hdXRvZ3Jvdy10ZXh0YXJlYS52YWx1ZS1zYW1lIHsKICAgICAgICAtLWlyb24tYXV0b2dyb3ctdGV4dGFyZWE6IHsKICAgICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIH0KICAgICAgfQoKICAgICAgaXJvbi1hdXRvZ3Jvdy10ZXh0YXJlYS52YWx1ZS1kaWZmZXJlbnQgewogICAgICAgIC0taXJvbi1hdXRvZ3Jvdy10ZXh0YXJlYTogewogICAgICAgICAgY29sb3I6ICMzNGE4NTM7CiAgICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLnZhbHVlLXBpbGwgewogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgICAgbWFyZ2luOiA0cHg7CiAgICAgICAgcGFkZGluZzogNHB4IDhweDsKICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgfQoKICAgICAgLnZhbHVlLXBpbGw6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQ6ICNmOGY5ZmE7CiAgICAgIH0KCiAgICAgIC52YWx1ZS1waWxsW2ZvY3VzZWRdIHsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZmZlYjNiOwogICAgICAgIGJhY2tncm91bmQ6ICNmOGY5ZmE7CiAgICAgIH0KCiAgICAgIC52YWx1ZS1jb21wYXJlIHsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICAgIHBhZGRpbmc6IDRweCA4cHg7CiAgICAgIH0KCiAgICAgIC52YWx1ZS1waWxsLXN0YWNrZWQgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIG1hcmdpbjogNHB4IDRweCA0cHggMDsKICAgICAgICBwYWRkaW5nOiAycHg7CiAgICAgIH0KCiAgICAgIC52YWx1ZS1waWxsLWdyaWQgewogICAgICAgIHdpZHRoOiAxMjBweDsKICAgICAgICBtYXJnaW46IDRweCA4cHggNHB4IDA7CiAgICAgIH0KCiAgICAgIC5mZWF0dXJlLW5hbWUgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiA0cHg7CiAgICAgICAgbWFyZ2luOiA0cHggMjBweCA0cHggOHB4OwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBjb2xvcjogIzgwODY4YjsKICAgICAgfQoKICAgICAgLmZlYXR1cmUtbmFtZS10ZXh0IHsKICAgICAgICB3aWR0aDogMzAwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAzMDBweDsKICAgICAgICBtaW4td2lkdGg6IDE1MHB4OwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tdG9wOiA0cHg7CiAgICAgICAgY29sb3I6ICMzYzQwNDM7CiAgICAgICAgbGluZS1oZWlnaHQ6IDEuNmVtOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICAgIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgcGFkZGluZy1yaWdodDogOHB4OwogICAgICB9CgogICAgICAuZmVhdHVyZS1uYW1lLWhlYWRlci10ZXh0IHsKICAgICAgICB3aWR0aDogMzAwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAzMDBweDsKICAgICAgICBtaW4td2lkdGg6IDE1MHB4OwogICAgICAgIGNvbG9yOiAjMjAyMTI0OwogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBsaW5lLWhlaWdodDogMS44ZW07CiAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7CiAgICAgICAgd2hpdGUtc3BhY2U6IHByZS13cmFwOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgfQoKICAgICAgLmZlYXR1cmUtbmFtZS5mZWF0dXJlLW5hbWUtaGVhZGVyIHsKICAgICAgICBwYWRkaW5nOiA0cHggNHB4IDBweCA0cHg7CiAgICAgICAgYmFja2dyb3VuZDogI2Y4ZjlmYTsKICAgICAgICBtYXJnaW46IDBweDsKICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2U4ZWFlZDsKICAgICAgfQoKICAgICAgLnNsaWRlciB7CiAgICAgICAgLS1wYXBlci1zbGlkZXItaW5wdXQ6IHsKICAgICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC5oaWRlLWNvbnRyb2xzIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAuaW5kZW50IHsKICAgICAgICBtYXJnaW4tbGVmdDogMTZweDsKICAgICAgfQoKICAgICAgLnNjYWxlLWxhYmVsIHsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICAgIG1hcmdpbi1yaWdodDogMTBweDsKICAgICAgfQoKICAgICAgLndpbmRvd2luZy1sYWJlbCB7CiAgICAgICAgd2lkdGg6IDExMHB4OwogICAgICB9CgogICAgICAuY29udHJvbC10b2dnbGUtYnV0dG9uIHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAuZXhwYW5kLWJ1dHRvbi1ob2xkZXIgewogICAgICAgIG1hcmdpbi1ib3R0b206IDEwcHg7CiAgICAgIH0KCiAgICAgIC5kZWxldGUtdmFsdWUtYnV0dG9uIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYmFja2dyb3VuZDogI2ZmZTYwMzsKICAgICAgICBjb2xvcjogIzVmNjM2ODsKICAgICAgICBib3JkZXItcmFkaXVzOiAxMnB4OwogICAgICAgIG1heC13aWR0aDogMjRweDsKICAgICAgICBtYXgtaGVpZ2h0OiAyNHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgbWFyZ2luLXRvcDogMnB4OwogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgICAgdmlzaWJpbGl0eTogdmlzaWJsZTsKICAgICAgICB0cmFuc2l0aW9uOiBvcGFjaXR5IDIwMG1zOwogICAgICB9CgogICAgICAuZGVsZXRlLXZhbHVlLWJ1dHRvbi5kZWxldGUtdmFsdWUtYnV0dG9uLWhpZGRlbiB7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICB2aXNpYmlsaXR5OiBoaWRkZW47CiAgICAgICAgdHJhbnNpdGlvbjogb3BhY2l0eSAyMDBtcywgdmlzaWJpbGl0eSAyMDBtczsKICAgICAgfQoKICAgICAgLmRlbGV0ZS1mZWF0dXJlLWJ1dHRvbiB7CiAgICAgICAgbWF4LWhlaWdodDogMjBweDsKICAgICAgICBtYXgtd2lkdGg6IDIwcHg7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBtYXJnaW4tbGVmdDogNHB4OwogICAgICAgIG1hcmdpbi10b3A6IDBweDsKICAgICAgfQoKICAgICAgLmFkZC12YWx1ZS1idXR0b24gewogICAgICAgIG1hcmdpbi10b3A6IDJweDsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBtaW4taGVpZ2h0OiAyMHB4OwogICAgICAgIG1pbi13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGNvbG9yOiAjODA4NjhiOwogICAgICB9CgogICAgICAuYWRkLWZlYXR1cmUtYnV0dG9uIHsKICAgICAgICBtYXJnaW4tbGVmdDogMDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxMHB4OwogICAgICB9CgogICAgICAudXBsb2FkLWltYWdlLWJ1dHRvbiB7CiAgICAgICAgbWFyZ2luOiAwIDAgMCA1cHg7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICB3aWR0aDogMTZweDsKICAgICAgICBoZWlnaHQ6IDE2cHg7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAuaW1hZ2VjYXJkIHsKICAgICAgICBtYXJnaW46IDRweDsKICAgICAgfQoKICAgICAgLmltYWdlLXNjYWxlLWJ1dHRvbiB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICB9CgogICAgICAuc2FsaWVuY3ktbGVnZW5kLWxhYmVsIHsKICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgIH0KCiAgICAgIC5mZWF0dXJlLWRpYWxvZyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICAuZmVhdHVyZS1kaWFsb2ctYnV0dG9uIHsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICB9CgogICAgICAuaW1hZ2UtYm90dG9tLWJhciB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgYmFja2dyb3VuZDogIzNjNDA0MzsKICAgICAgfQoKICAgICAgLmltYWdlLXVwbG9hZC1pbnB1dCB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgLnNwYWNlLWZvci1tb3JlLWJ1dHRvbiB7CiAgICAgICAgd2lkdGg6IDIwcHg7CiAgICAgIH0KCiAgICAgIC52YWx1ZS1oZWFkZXItdGV4dCB7CiAgICAgICAgbWluLXdpZHRoOiAxMzBweDsKICAgICAgICB3aWR0aDogMTMwcHg7CiAgICAgICAgY29sb3I6ICMyMDIxMjQ7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxLjhlbTsKICAgICAgfQoKICAgICAgcGFwZXItZGlhbG9nIHsKICAgICAgICBib3JkZXItcmFkaXVzOiAxMHB4OwogICAgICB9CgogICAgICAuY29udHJvbC1idXR0b24gewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkYWRjZTA7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLW9yYW5nZS1kYXJrKTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKIC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dldENhbnZhc0lkKGZlYXQubmFtZSldXSIgZGF0YS1mZWF0dXJlPSJbW2ZlYXQubmFtZV1dIj48L2NhbnZhcz4KICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG91bGRTaG93SW1hZ2VDb250cm9scyhoYXNJbWFnZSwgYWxsb3dJbWFnZUNvbnRyb2xzKV1dIj4KICAgICAgICAgICAgICAgICAgPGRpdj5JbWFnZSB3aW5kb3dpbmcgKGNvbnRyYXN0KTwvZGl2PgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzbGlkZXItaG9sZGVyIGluZGVudCI+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ic2xpZGVyLWxhYmVsIHdpbmRvd2luZy1sYWJlbCI+CiAgICAgICAgICAgICAgICAgICAgICBXaW5kb3cgY2VudGVyOgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxwYXBlci1zbGlkZXIgY2xhc3M9InNsaWRlciIgZWRpdGFibGU9InRydWUiIG1heD0iMjU1IiBpbW1lZGlhdGUtdmFsdWU9Int7d2luZG93Q2VudGVyfX0iIHZhbHVlPSJbW3dpbmRvd0NlbnRlcl1dIj4KICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXNsaWRlcj4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InNsaWRlci1ob2xkZXIgaW5kZW50Ij4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzbGlkZXItbGFiZWwgd2luZG93aW5nLWxhYmVsIj4KICAgICAgICAgICAgICAgICAgICAgIFdpbmRvdyB3aWR0aDoKICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItc2xpZGVyIGNsYXNzPSJzbGlkZXIiIGVkaXRhYmxlPSJ0cnVlIiBtYXg9IjUxMiIgbWluPSIxIiBpbW1lZGlhdGUtdmFsdWU9Int7d2luZG93V2lkdGh9fSIgdmFsdWU9Iltbd2luZG93V2lkdGhdXSI+CiAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1zbGlkZXI+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbGV4LWNvbnRyb2xzIj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzY2FsZS1sYWJlbCI+SW1hZ2Ugc2NhbGUgcGVyY2VudGFnZTo8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItaW5wdXQgbm8tbGFiZWwtZmxvYXQgdHlwZT0ibnVtYmVyIiBtaW49IjEwIiBtYXg9IjUwMCIgdmFsdWU9Int7aW1hZ2VTY2FsZVBlcmNlbnRhZ2V9fSI+CiAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pbnB1dD4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItYnV0dG9uIGNsYXNzPSJpbWFnZS1zY2FsZS1idXR0b24iIG9uLWNsaWNrPSJ1cGRhdGVJbWFnZXMiPgogICAgICAgICAgICAgICAgICAgICAgc2V0CiAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1idXR0b24+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImltYWdlLWJvdHRvbS1iYXIiPgogICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gY2xhc3MkPSJbW2dldFVwbG9hZEltYWdlQ2xhc3MocmVhZG9ubHkpXV0iIGljb249ImZpbGUtdXBsb2FkIiBvbi1jbGljaz0idXBsb2FkSW1hZ2VDbGlja2VkIiBkYXRhLWZlYXR1cmU9IltbZmVhdC5uYW1lXV0iIHRpdGxlPSJVcGxvYWQgaW1hZ2UiPgogICAgICAgICAgICAgICAgICA8L3BhcG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bGFzcz0iaW1hZ2UiIHNyYyQ9IltbZ2V0U2VxSW1hZ2VTcmMoc2VxZmVhdC5uYW1lLCBzZXFOdW1iZXIpXV0iIGlkPSJbW2dldEltYWdlSWQoc2VxZmVhdC5uYW1lKV1dIj4KICAgICAgICAgICAgICAgICAgICA8Y2FudmFzIGlkPSJbW2dldENhbnZhc0lkKHNlcWZlYXQubmFtZSldXSIgZGF0YS1mZWF0dXJlPSJbW3NlcWZlYXQubmFtZV1dIiBkYXRhLXNlcS1udW09Iltbc2VxTnVtYmVyXV0iPjwvY2FudmFzPgogICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG91bGRTaG93SW1hZ2VDb250cm9scyhoYXNJbWFnZSwgYWxsb3dJbWFnZUNvbnRyb2xzKV1dIj4KICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImltYWdlLWNvbnRyb2xzIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj5JbWFnZSB3aW5kb3dpbmcgKGNvbnRyYXN0KTwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzbGlkZXItaG9sZGVyIGluZGVudCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ic2xpZGVyLWxhYmVsIHdpbmRvd2luZy1sYWJlbCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBXaW5kb3cgY2VudGVyOgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1zbGlkZXIgY2xhc3M9InNsaWRlciIgZWRpdGFibGU9InRydWUiIG1heD0iMjU1IiBpbW1lZGlhdGUtdmFsdWU9Int7d2luZG93Q2VudGVyfX0iIHZhbHVlPSJbW3dpbmRvd0NlbnRlcl1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXNsaWRlcj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InNsaWRlci1ob2xkZXIgaW5kZW50Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzbGlkZXItbGFiZWwgd2luZG93aW5nLWxhYmVsIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFdpbmRvdyB3aWR0aDoKICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItc2xpZGVyIGNsYXNzPSJzbGlkZXIiIGVkaXRhYmxlPSJ0cnVlIiBtYXg9IjUxMiIgbWluPSIxIiBpbW1lZGlhdGUtdmFsdWU9Int7d2luZG93V2lkdGh9fSIgdmFsdWU9Iltbd2luZG93V2lkdGhdXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1zbGlkZXI+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbGV4LWNvbnRyb2xzIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzY2FsZS1sYWJlbCI+SW1hZ2Ugc2NhbGUgcGVyY2VudGFnZTo8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaW5wdXQgbm8tbGFiZWwtZmxvYXQgdHlwZT0ibnVtYmVyIiBtaW49IjEwIiBtYXg9IjUwMCIgdmFsdWU9Int7aW1hZ2VTY2FsZVBlcmNlbnRhZ2V9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pbnB1dD4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItYnV0dG9uIGNsYXNzPSJpbWFnZS1zY2FsZS1idXR0b24iIG9uLWNsaWNrPSJ1cGRhdGVJbWFnZXMiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJpbWFnZS1ib3R0b20tYmFyIj4KICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBjbGFzcyQ9IltbZ2V0VXBsb2FkSW1hZ2VDbGFzcyhyZWFkb25seSldXSIgaWNvbj0iZmlsZS11cGxvYWQiIG9uLWNsaWNrPSJ1cGxvYWRJbWFnZUNsaWNrZWQiIGRhdGEtZmVhdHVyZT0iW1tzZXFmZWF0Lm5hbWVdXSIgdGl0bGU9IlVwbG9hZCBpbWFnZSI+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWlucHV0IGNsYXNzPSJpbWFnZS11cGxvYWQtaW5wdXQiIHR5cGU9ImZpbGUiIG9uLWNoYW5nZT0iaGFuZGxlSW1hZ2VVcGxvYWQiIGRhdGEtZmVhdHVyZT0iW1tzZXFmZWF0Lm5hbWVdXSIgZGF0YS1pbmRleD0iW1tpbmRleF1dIiBkYXRhLXNlcS1udW09Iltbc2VxTnVtYmVyXV0iPgogICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pbnB1dD4KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgPC9wYXBlci1jYXJkPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbY29tcGFyZU1vZGVdXSI+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InZhbHVlLXBpbGxzLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICA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ubmFtZSwgZGlzcGxheU1vZGUpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICAuLi4KICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItYnV0dG9uPgogICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tjb21wYXJlTW9kZV1dIj4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZmxleC1jb250cm9scyB2YWx1ZS1waWxscy1ob2xkZXIiPgogICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tpc0V4cGFuZGVkKHNlcWZlYXQubmFtZSwgZXhwYW5kQWxsRmVhdHVyZXMpXV0iPgogICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tnZXRDb21wYXJlU2VxRmVhdHVyZVZhbHVlcyhzZXFmZWF0Lm5hbWUsIHNlcU51bWJlcildXSIgYXM9InNlcXZhbHVlIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGlyb24tYXV0b2dyb3ctdGV4dGFyZWEgY2xhc3MkPSJbW2dldFNlcUNvbXBhcmVJbnB1dENsYXNzKHNlcWZlYXQubmFtZSwgZGlzcGxheU1vZGUsIHNlcU51bWJlciwgaW5kZXgpXV0iIHJlYWRvbmx5IHZhbHVlPSJbW3NlcXZhbHVlXV0iPgogICAgICAgICAgICAgICAgICAgICAgICA8L2lyb24tYXV0b2dyb3ctdGV4dGFyZWE+CiAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbWyFpc0V4cGF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AgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjI1cHg7CiAgICAgICAgbGluZS1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWFyZ2luOiAxMnB4IGF1dG87CiAgICAgIH0KCiAgICAgIC5wZC1pbmZvLXRleHQgewogICAgICAgIGZvbnQtc2l6ZTogMThweDsKICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgICBsaW5lLWhlaWdodDogMjRweDsKICAgICAgICBwYWRkaW5nLXRvcDogMTJweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiA0cHg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAxMnB4OwogICAgICB9CgogICAgICAucGQtbm8tZmVhdHVyZXMtdGV4dCB7CiAgICAgICAgZm9udC1zaXplOiAxOHB4OwogICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIHBhZGRpbmc6IDEycHggNDhweDsKICAgICAgfQoKICAgICAgLmFjY2VwdC1idXR0b24taG9sZGVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3ctcmV2ZXJzZTsKICAgICAgfQoKICAgICAgLnNldHRpbmdzLWJ1dHRvbiB7CiAgICAgICAgbWFyZ2luLXRvcDogNHB4OwogICAgICB9CgogICAgICAuZGF0YXBvaW50LXJpZ2h0LWNvbnRyb2xzLWhvbGRlciAuY29udHJvbCB7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgIH0KCiAgICAgIC5idXR0b24gewogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBtYXJnaW46IDEwcHggMCAwIDA7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAuYnV0dG9uW2Rpc2FibGVkXSB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2NjYzsKICAgICAgfQoKICAgICAgLmlucHV0LWFuZC10b29sdGlwIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CgogICAgICAubGFiZWwtdm9jYWItcGF0aC1pbnB1dCB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICB9CgogICAgICAudGhyZXNob2xkLWRyb3Bkb3duIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMTUwcHg7CiAgICAgICAgbWluLXdpZHRoOiAxNTBweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAxNnB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC5jb3VudGVyZmFjdHVhbC1kcm9wZG93biB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICBtaW4td2lkdGg6IDUwcHg7CiAgICAgICAgcGFkZGluZy1yaWdodDogNXB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC5zbGlkZXItbGFiZWwgewogICAgICAgIG1hcmdpbi10b3A6IDhweDsKICAgICAgfQoKICAgICAgLmZhY2V0LWxhYmVsIHsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci11bmRlcmxpbmU6IHsKICAgICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLnNsaWRlciB7CiAgICAgICAgd2lkdGg6IDI4MHB4OwogICAgICAgIC0tcGFwZXItc2xpZGVyLWlucHV0OiB7CiAgICAgICAgICB3aWR0aDogODBweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC5zbGlkZXItbW9kZWwtb25lIHsKICAgICAgICAtLXBhcGVyLXNsaWRlci1rbm9iLWNvbG9yOiAjMTJiNWNlOwogICAgICAgIC0tcGFwZXItc2xpZGVyLWFjdGl2ZS1jb2xvcjogIzEyYjVjZTsKICAgICAgfQoKICAgICAgLnNsaWRlci1tb2RlbC10d28gewogICAgICAgIC0tcGFwZXItc2xpZGVyLWtub2ItY29sb3I6ICNmYTc4MTc7CiAgICAgICAgLS1wYXBlci1zbGlkZXItYWN0aXZlLWNvbG9yOiAjZmE3ODE3OwogICAgICB9CgogICAgICAucHItbGluZS1jaGFydCB7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIGhlaWdodDogMjAwcHg7CiAgICAgICAgd2lkdGg6IDI4MHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgcGFwZXItZGlhbG9nLmluZmVyZW5jZS1zZXR0aW5ncyB7CiAgICAgICAgcGFkZGluZzogMjBweDsKICAgICAgICB3aWR0aDogNDAlOwogICAgICAgIG1heC13aWR0aDogNDAlOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgYm9yZGVyLXJhZGl1czogMTBweDsKICAgICAgfQoKICAgICAgLmRhc2hib2FyZC1sYXlvdXQgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAuY2VudGVyIHsKICAgICAgICB3aWR0aDogNjAlOwogICAgICB9CgogICAgICAuc2lkZS1ob2xkZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogNDAlOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KCiAgICAgIC5zaWRlLWNvbnRlbnQgewogICAgICAgIHBhZGRpbmctbGVmdDogNXB4OwogICAgICAgIHdpZHRoOiBjYWxjKDEwMCUgLSAxMHB4KTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgIH0KCiAgICAgIC5zaWRlLXRhYnMgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgaGVpZ2h0OiBjYWxjKDEwMCUgLSA1MHB4KTsKICAgICAgfQoKICAgICAgLmRhdGFwb2ludC10YWIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH0KCiAgICAgIC5jb25maWctdGFiIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CgogICAgICAuY29uZmlnLXNpZGUtY29udGVudCB7CiAgICAgICAgcGFkZGluZy1sZWZ0OiA1cHg7CiAgICAgICAgd2lkdGg6IDMwJTsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIGJvcmRlci1yaWdodDogMXB4IHNvbGlkIHZhcigtLXdpdC1jb2xvci1ncmF5MzAwKTsKICAgICAgfQoKICAgICAgLmNvbmZpZy1tYWluLWNvbnRlbnQgewogICAgICAgIHdpZHRoOiA3MCU7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGJhY2tncm91bmQ6ICNmOGY5ZmE7CiAgICAgIH0KCiAgICAgIC5zdGF0cy10YWIgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH0KCiAgICAgIC5wZC10YWIgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIHBhZGRpbmc6IDVweCAxMHB4OwogICAgICB9CgogICAgICAucGQtcGxvdHMtaGVhZGVyIHsKICAgICAgICBoZWlnaHQ6IDUycHg7CiAgICAgICAgbWluLWhlaWdodDogNTJweDsKICAgICAgICBtYXgtaGVpZ2h0OiA1MnB4OwogICAgICAgIGJvcmRlci1ib3R0b206IHNvbGlkIDJweCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5wZHBsb3RzLWhvbGRlciB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIG92ZXJmbG93LXk6IG92ZXJsYXk7CiAgICAgICAgYmFja2dyb3VuZDogI2Y4ZjlmYTsKICAgICAgfQoKICAgICAgLnBkLXJhbmdlLWh5cGhlbiB7CiAgICAgICAgcGFkZGluZy1yaWdodDogNnB4OwogICAgICAgIHBhZGRpbmctdG9wOiA4cHg7CiAgICAgIH0KCiAgICAgIC5wZC1yYW5nZS1jb250cm9sIHsKICAgICAgICBib3JkZXItYm90dG9tOiBzb2xpZCAxcHggI2ZjYzkzNDsKICAgICAgICBib3JkZXItdG9wOiBub25lOwogICAgICAgIGJvcmRlci1sZWZ0OiBub25lOwogICAgICAgIGJvcmRlci1yaWdodDogbm9uZTsKICAgICAgICBoZWlnaHQ6IDM2cHg7CiAgICAgICAgd2lkdGg6IDEwNHB4OwogICAgICAgIG1hcmdpbi1yaWdodDogNnB4OwogICAgICB9CgogICAgICAjb3ZlcnZpZXcgewogICAgICAgIG1heC1oZWlnaHQ6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CgogICAgICAuaW5mZXJlbmNlLWhlYWRlci5oZWFkaW5nIHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZTRmN2ZiOwogICAgICB9CgogICAgICAucmlnaHQtc2lkZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIHRvcDogMDsKICAgICAgfQoKICAgICAgLnJpZ2h0LXNpZGUtcGVyZm9ybWFuY2UtdGFiIHsKICAgICAgICBtYXJnaW46IDRweDsKICAgICAgfQoKICAgICAgdGYtY29uZnVzaW9uLW1hdHJpeCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KCiAgICAgIC5jb25mLW1hdHJpeC1ob2xkZXIgewogICAgICAgIG1hcmdpbi10b3A6IDIwcHg7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMThweDsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDI0cHg7CiAgICAgIH0KCiAgICAgIC5jb25mLW1hdHJpeCB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMThweDsKICAgICAgfQoKICAgICAgLmRhdGFwb2ludC1jb250cm9scy1ob2xkZXIuZGF0YXBvaW50LWNvbnRyb2wtYnV0dG9ucy1ob2xkZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogMnB4OwogICAgICB9CgogICAgICAuZGF0YXBvaW50LWNvbnRyb2xzLWhvbGRlci5kYXRhcG9pbnQtY29udHJvbC1zZWFyY2gtaG9sZGVyIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDEwcHg7CiAgICAgIH0KCiAgICAgIC5kYXRhcG9pbnQtY29udHJvbHMtaG9sZGVyIHsKICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdmFyKC0td2l0LWNvbG9yLWdyYXkzMDApOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBtYXJnaW4tbGVmdDogMXB4OwogICAgICB9CgogICAgICAuZGF0YXBvaW50LWxlZnQtY29udHJvbHMtaG9sZGVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtd3JhcDogd3JhcDsKICAgICAgfQoKICAgICAgLmRhdGFwb2ludC1yaWdodC1jb250cm9scy1ob2xkZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIC50Zi1jYXRlZ29yeS1wYW5lIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KCiAgICAgIC50Zi1jYXRlZ29yeS1wYW5lLWNvbnRlbnQgewogICAgICAgIGZsZXgtd3JhcDogd3JhcDsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgcGFkZGluZzogMTJweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgYm9yZGVyLXRvcDogbm9uZTsKICAgICAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiAycHg7CiAgICAgICAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDJweDsKICAgICAgICBiYWNrZ3JvdW5kOiB3aGl0ZTsKICAgICAgfQoKICAgICAgOmhvc3QgdnotbGluZS1jaGFydDIgewogICAgICAgIG1hcmdpbjogMTJweCAxMnB4IDEycHggMjRweDsKICAgICAgICBoZWlnaHQ6IDE4MHB4OwogICAgICAgIHdpZHRoOiAzMDBweDsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIDpob3N0IHZ6LWJhci1jaGFydCB7CiAgICAgICAgbWFyZ2luOiAxMnB4IDEycHggMTJweCAyNHB4OwogICAgICAgIGhlaWdodDogMjQwcHg7CiAgICAgICAgd2lkdGg6IDQ1MHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgLnBkLWlucHV0LWNvbnRhaW5lciB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIHBhZGRpbmc6IDEycHggNDhweCAyNHB4IDI0cHg7CiAgICAgICAgYmFja2dyb3VuZDogI2ZlZjdlMDsKICAgICAgICBib3JkZXI6IHNvbGlkIDFweCAjZmRlMjkzOwogICAgICB9CgogICAgICAuc3R5bGUtaW5wdXQgewogICAgICAgIHdpZHRoOiA1MHB4OwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIGJhY2tncm91bmQ6IHdoaXRlOwogICAgICB9CgogICAgICAuZmVhdHVyZS1jb250YWluZXItaG9sZGVyIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgICAgYmFja2dyb3VuZDogd2hpdGU7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICAuZGF0YXBvaW50LWNvbnRyb2wtZmlsdGVyLWlucHV0IHsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgbWF4LXdpZHRoOiA2MCU7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXI6IHsKICAgICAgICAgIHBhZGRpbmc6IDRweCA2cHggMnB4IDRweDsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIH0KICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1sYWJlbDogewogICAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgICAgY29sb3I6ICM4MDg2OGI7CiAgICAgICAgfQogICAgICB9CgogICAgICAuZGF0YXBvaW50LWNvbnRyb2wtZmlsdGVyLWlucHV0IGlyb24taWNvbiB7CiAgICAgICAgY29sb3I6ICM5YmEwYTY7CiAgICAgIH0KCiAgICAgIC5mZWF0dXJlLXNlYXJjaC1pbnB1dCB7CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgbWF4LXdpZHRoOiAxNTBweDsKICAgICAgfQoKICAgICAgLmNvbnRyb2wtYnV0dG9uIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLW9yYW5nZS1kYXJrKTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBwYWRkaW5nOiA4cHggMTJweDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgICBtYXJnaW46IDVweDsKICAgICAgfQoKICAgICAgLmNvbnRyb2wtYnV0dG9uW2Rpc2FibGVkXSB7CiAgICAgICAgY29sb3I6ICM1ZjYzNjg7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2Y0ZjRmNDsKICAgICAgfQoKICAgICAgLm1haW4tYnV0dG9uIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2UtZGFyayk7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tdGItb3JhbmdlLWRhcmspOwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBwYWRkaW5nOiA4cHggMTJweDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgICBtYXJnaW46IDVweDsKICAgICAgfQoKICAgICAgLm1haW4tYnV0dG9uW2Rpc2FibGVkXSB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogbGlnaHRncmF5OwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIGxpZ2h0Z3JheTsKICAgICAgICBjb2xvcjogZ3JheTsKICAgICAgfQoKICAgICAgLm9wdGltaXplLXRocmVzaG9sZC1idXR0b24gewogICAgICAgIG1hcmdpbjogNXB4IDA7CiAgICAgICAgd2lkdGg6IDE1MHB4OwogICAgICAgIG1pbi13aWR0aDogMTUwcHg7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAxNnB4OwogICAgICB9CgogICAgICAuY2xvc2UtcGFydGlhbC1kZXBzLWJ1dHRvbiB7CiAgICAgICAgbWFyZ2luOiAxMHB4OwogICAgICB9CgogICAgICBwYXBlci10YWJzIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIC0tcGFwZXItdGFicy1zZWxlY3Rpb24tYmFyLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2UtZGFyayk7CiAgICAgIH0KCiAgICAgIHBhcGVyLXRhYiB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgcGFkZGluZzogMCAyNHB4OwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjFweDsKICAgICAgfQoKICAgICAgcGFwZXItdGFiOm5vdCguaXJvbi1zZWxlY3RlZCkgewogICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICB9CgogICAgICBwYXBlci10YWIuaXJvbi1zZWxlY3RlZCB7CiAgICAgICAgY29sb3I6ICMyMDIxMjQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgfQoKICAgICAgLmN1cnZlcy1ob2xkZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICAgIG1hcmdpbi10b3A6IDIwcHg7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAuY3VydmUtaG9sZGVyIHsKICAgICAgICB3aWR0aDogMzAwcHg7CiAgICAgICAgaGVpZ2h0OiAyMzVweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAyMHB4OwogICAgICAgIG1hcmdpbi1yaWdodDogMjBweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5yb2MteC1sYWJlbCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAxMjBweDsKICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgY29sb3I6ICM1ZjYzNjg7CiAgICAgICAgcGFkZGluZzogMHB4OwogICAgICB9CgogICAgICAucm9jLXktbGFiZWwgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBsZWZ0OiAtMzZweDsKICAgICAgICBib3R0b206IDExMHB4OwogICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDI3MGRlZyk7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIHBhZGRpbmc6IDBweDsKICAgICAgfQoKICAgICAgLnByLXgtbGFiZWwgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMTQwcHg7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIHBhZGRpbmc6IDBweDsKICAgICAgfQoKICAgICAgLnByLXktbGFiZWwgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBsZWZ0OiAtMTRweDsKICAgICAgICBib3R0b206IDExMHB4OwogICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDI3MGRlZyk7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIHBhZGRpbmc6IDBweDsKICAgICAgfQoKICAgICAgLmZsZXggewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KCiAgICAgIC5zcGFjZS1iZXR3ZWVuIHsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5mbGV4LXdyYXAgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICB9CgogICAgICAub3B0aW1pemUtdGV4dCB7CiAgICAgICAgbWFyZ2luOiA1cHggMDsKICAgICAgICBjb2xvcjogZ3JleTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIH0KCiAgICAgIC50aHJlc2hvbGQtY29zdC1pbnB1dCB7CiAgICAgICAgd2lkdGg6IDE1MHB4OwogICAgICAgIG1pbi13aWR0aDogMTUwcHg7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAxNnB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItbGFiZWw6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICAgIGNvbG9yOiAjODA4NjhiOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLmJvbGQgewogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgIH0KCiAgICAgIC5pbmRlbnQgewogICAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4OwogICAgICB9CgogICAgICAuZmVhdHVyZS1icmVha2Rvd24gewogICAgICAgIG1hcmdpbi1sZWZ0OiAxMnB4OwogICAgICB9CgogICAgICAub3B0aW1pemUtc2VsZWN0aW9uLWJ1dHRvbiB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDA7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICB9CgogICAgICAucmVnLXRhYmxlLWNhdGVnb3J5IHsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICB9CgogICAgICAucmVnLXRhYmxlLXZhbHVlIHsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgfQoKICAgICAgLnN1YmZlYXR1cmUtdGFibGUgewogICAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4OwogICAgICB9CgogICAgICAuY291bnRlcmZhY3R1YWwtYnV0dG9uLWludHJvIHsKICAgICAgICBwYWRkaW5nOiA3cHggMCAwIDEwcHg7CiAgICAgIH0KCiAgICAgIC5tYWluLXZlcnRpY2FsIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgLm1haW4tYm90dG9tLWJhciB7CiAgICAgICAgaGVpZ2h0OiA1MnB4OwogICAgICAgIG1pbi1oZWlnaHQ6IDUycHg7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgLyogYm94LXNoYWRvdzogMCAycHggNXB4IGdyZXk7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogM3B4OyAqLwogICAgICAgIGJvcmRlci1ib3R0b206IHNvbGlkIDFweCAjZGFkY2UwOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgfQoKICAgICAgLm1haW4tY29udGVudCB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CgogICAgICAuZGlzdC1zd2l0Y2ggewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgbWFyZ2luLXRvcDogMDsKICAgICAgfQoKICAgICAgLmRpc3RhbmNlLXZpcy1kcm9wZG93biB7CiAgICAgICAgbWFyZ2luLXRvcDogMDsKICAgICAgfQoKICAgICAgI2Rpc3RhbmNlZGlhbG9nIHsKICAgICAgICB3aWR0aDogMzAlOwogICAgICB9CgogICAgICAjZGlzdGFuY2VkaWFsb2cgLmJ1dHRvbnMgewogICAgICAgIGNvbG9yOiAjZjU3YzAwOwogICAgICB9CgogICAgICBwYXBlci1yYWRpby1idXR0b24gewogICAgICAgIC0tcGFwZXItcmFkaW8tYnV0dG9uLWxhYmVsOiB7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1yYWRpby1idXR0b24tdW5jaGVja2VkLWNvbG9yOiAjM2M0MDQzOwogICAgICAgIC0tcGFwZXItcmFkaW8tYnV0dG9uLXVuY2hlY2tlZC1pbmstY29sb3I6ICMzYzQwNDM7CiAgICAgICAgLS1wYXBlci1yYWRpby1idXR0b24tY2hlY2tlZC1jb2xvcjogIzNjNDA0MzsKICAgICAgICAtLXBhcGVyLXJhZGlvLWJ1dHRvbi1jaGVja2VkLWluay1jb2xvcjogIzNjNDA0MzsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICB9CgogICAgICBwYXBlci1pY29uLWJ1dHRvbltkaXNhYmxlZF0gewogICAgICAgIGNvbG9yOiAjOWFhMGE2OwogICAgICB9CgogICAgICAucmVzaXplciB7CiAgICAgICAgZGlzcGxheTogdGFibGU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIHdpZHRoOiA4cHg7CiAgICAgICAgYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgYm9yZGVyLXJpZ2h0OiAxcHggc29saWQgdmFyKC0td2l0LWNvbG9yLWdyYXkzMDApOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQoKICAgICAgLmV4YW1wbGUtc3RhdHVzIHsKICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgY29sb3I6ICM1ZjYzNjg7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICAgIHBhZGRpbmctdG9wOiAyMHB4OwogICAgICB9CgogICAgICAuZXhhbXBsZS1pZC1sYWJlbCB7CiAgICAgICAgcGFkZGluZzogOXB4IDVweCA5cHggMDsKICAgICAgfQoKICAgICAgLmV4YW1wbGUtaWQtaW5wdXQgewogICAgICAgIHdpZHRoOiA3MHB4OwogICAgICAgIHBhZGRpbmctdG9wOiAzcHg7CiAgICAgIH0KCiAgICAgIC5oZWFkaW5nLWFuZC1jYXJkIHsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCBsaWdodGdyYXk7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiA1cHg7CiAgICAgICAgbWFyZ2luLXRvcDogNXB4OwogICAgICAgIHBhZGRpbmctdG9wOiAxcHg7CiAgICAgIH0KCiAgICAgIC5lZGl0b3ItaGVhZGluZy1hbmQtY2FyZCB7CiAgICAgICAgZmxleDogMTsKICAgICAgICBvdmVyZmxvdy15OiBvdmVybGF5OwogICAgICB9CgogICAgICAuaGVhZGluZyB7CiAgICAgICAgY29sb3I6ICM1ZjYzNjg7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHBhZGRpbmc6IDEwcHggOHB4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZWY3ZTA7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLXdpdC1jb2xvci1ncmF5MzAwKTsKICAgICAgICBib3JkZXItdG9wOiBub25lOwogICAgICAgIGJvcmRlci1sZWZ0OiBub25lOwogICAgICAgIGJvcmRlci1yaWdodDogbm9uZTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgLXdlYmtpdC10YXAtaGlnaGxpZ2h0LWNvbG9yOiByZ2JhKDAsIDAsIDAsIDApOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgIH0KCiAgICAgIC5jYXJkIHsKICAgICAgICBwYWRkaW5nOiAwIDEwcHggNXB4OwogICAgICB9CgogICAgICAubm8tcGFkZGluZy1jYXJkIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAudG9vbHRpcCB7CiAgICAgICAgLS1wYXBlci10b29sdGlwOiB7CiAgICAgICAgICBmb250LXNpemU6IDE2cHg7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItdG9vbHRpcC1kZWxheS1vdXQ6IDIwMDBtczsKICAgICAgfQoKICAgICAgLmNvbW1lbnQtaWNvbiB7CiAgICAgICAgd2lkdGg6IDMwcHg7CiAgICAgICAgaGVpZ2h0OiAzMHB4OwogICAgICAgIG1pbi13aWR0aDogMzBweDsKICAgICAgICBtaW4taGVpZ2h0OiAzMHB4OwogICAgICAgIG1hcmdpbi10b3A6IDEwcHg7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLW9yYW5nZS1kYXJrKTsKICAgICAgfQoKICAgICAgLmFycm93LWljb24gewogICAgICAgIHdpZHRoOiA1MHB4OwogICAgICAgIGhlaWdodDogNTBweDsKICAgICAgICBtaW4td2lkdGg6IDUwcHg7CiAgICAgICAgbWluLWhlaWdodDogNTBweDsKICAgICAgICBjb2xvcjogdmFyKC0tdGItb3JhbmdlLWRhcmspOwogICAgICB9CgogICAgICAucGQtYXJyb3ctaWNvbiB7CiAgICAgICAgd2lkdGg6IDQwcHg7CiAgICAgICAgaGVpZ2h0OiA0MHB4OwogICAgICAgIG1pbi13aWR0aDogNDBweDsKICAgICAgICBtaW4taGVpZ2h0OiA0MHB4OwogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgICBjb2xvcjogZ3JleTsKICAgICAgfQoKICAgICAgLnBkLXRvZ2dsZSB7CiAgICAgICAgbWFyZ2luOiAwIDhweCAwIDIwcHg7CiAgICAgIH0KCiAgICAgIC5wZC1lbnRyeS1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KCiAgICAgIC5pbmZvLWljb24gewogICAgICAgIHdpZHRoOiAyMHB4OwogICAgICAgIGhlaWdodDogMjBweDsKICAgICAgICBtaW4td2lkdGg6IDIwcHg7CiAgICAgICAgbWluLWhlaWdodDogMjBweDsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICAgIGNvbG9yOiBncmV5OwogICAgICB9CgogICAgICAuaW5mby1pY29uLmNmLWluZm8taWNvbiB7CiAgICAgICAgbWFyZ2luLXRvcDogMTJweDsKICAgICAgfQoKICAgICAgLmluZm8taWNvbi50aHJlc2gtaW5mby1pY29uIHsKICAgICAgICBtYXJnaW4tdG9wOiAtM3B4OwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIC5pbmZvLWljb24ucGQtaW5mby1pY29uIHsKICAgICAgICBtYXJnaW4tdG9wOiAxNXB4OwogICAgICB9CgogICAgICAuaW5mby1pY29uLnRocmVzaG9sZC1pbmZvLWljb24gewogICAgICAgIG1hcmdpbi10b3A6IDA7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTBweDsKICAgICAgICBtYXJnaW4tbGVmdDogNXB4OwogICAgICB9CgogICAgICAuaW5mby1pY29uLnBlcmZvcm1hbmNlLWluZm8taWNvbiB7CiAgICAgICAgbWFyZ2luLXRvcDogMThweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxMHB4OwogICAgICAgIG1hcmdpbi1sZWZ0OiA1cHg7CiAgICAgIH0KCiAgICAgIC5uby1wYWRkaW5nIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAucmVzaXplLWljb24gewogICAgICAgIGRpc3BsYXk6IHRhYmxlLWNlbGw7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgICBjb2xvcjogZ3JleTsKICAgICAgICB3aWR0aDogMTBweDsKICAgICAgICBoZWlnaHQ6IDEwcHg7CiAgICAgICAgbWluLXdpZHRoOiAxMHB4OwogICAgICAgIG1pbi1oZWlnaHQ6IDEwcHg7CiAgICAgIH0KCiAgICAgIC5oZWxwLXRleHQgewogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICBtYXgtd2lkdGg6IDIwMHB4OwogICAgICB9CgogICAgICAuaGVscC10aXRsZSB7CiAgICAgICAgY29sb3I6ICMwMDdiN2M7CiAgICAgICAgZm9udC1zaXplOiAxMXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICAgICAgfQoKICAgICAgLmhlbHAtdGl0bGUtbWFyZ2luIHsKICAgICAgICBtYXJnaW4tdG9wOiAxNHB4OwogICAgICB9CgogICAgICAuaGVscC10aXRsZS1tYXJnaW4tYnV0dG9uIHsKICAgICAgICBtYXJnaW4tdG9wOiA0cHg7CiAgICAgIH0KCiAgICAgIC5oZWxwLXRpdGxlLW1hcmdpbi10aXRsZSB7CiAgICAgICAgbWFyZ2luLXRvcDogN3B4OwogICAgICB9CgogICAgICAuZGlhbG9nLWxpbmsgewogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICBmb250LXN0eWxlOiBpdGFsaWM7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CgogICAgICAucm9jLXRleHQgewogICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIGZvbnQtc2l6ZTogMTZweDsKICAgICAgICBtYXJnaW4tbGVmdDogNDRweDsKICAgICAgfQoKICAgICAgLmNvbmYtdGV4dCB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTJweDsKICAgICAgICBjb2xvcjogIzNjNDA0MzsKICAgICAgICBmb250LXNpemU6IDE2cHg7CiAgICAgIH0KCiAgICAgIC5kaWFsb2ctdGV4dCB7CiAgICAgICAgZm9udC1zdHlsZTogbm9ybWFsOwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgIH0KCiAgICAgIC5kaWFsb2ctdGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICB9CgogICAgICAudGl0bGUtd2lkdGggewogICAgICAgIHdpZHRoOiAyNTBweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAxNnB4OwogICAgICB9CgogICAgICAuZGF0YXBvaW50LWluZm8taG9sZGVyIHsKICAgICAgICBtYXJnaW46IDI0cHggYXV0bzsKICAgICAgICBtYXgtd2lkdGg6IDM4MHB4OwogICAgICAgIHBhZGRpbmc6IDI0cHg7CiAgICAgIH0KCiAgICAgIC5vbmJvYXJkaW5nLWhlYWRlciB7CiAgICAgICAgY29sb3I6ICMyMDIxMjQ7CiAgICAgICAgZm9udC1zaXplOiAyMnB4OwogICAgICAgIG1hcmdpbi1ib3R0b206IDI4cHg7CiAgICAgIH0KCiAgICAgIC5vbmJvYXJkaW5nLXRleHQgewogICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAyMHB4OwogICAgICB9CgogICAgICAuY29udHJvbC1pbmZvLWhlYWRlciB7CiAgICAgICAgY29sb3I6ICMzYzQwNDM7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbWFyZ2luLXRvcDogMTBweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxNXB4OwogICAgICB9CgogICAgICAuY29udHJvbC1pbmZvLXRleHQgewogICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxNXB4OwogICAgICAgIG1heC13aWR0aDogNDYwcHg7CiAgICAgIH0KCiAgICAgIC5idXR0b24tcHJlZml4LWxhYmVsIHsKICAgICAgICBtYXJnaW46IDEycHggMCAwIDEycHg7CiAgICAgICAgY29sb3I6IGdyZXk7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICB9CgogICAgICAuYm9yZGVyLXJpZ2h0IHsKICAgICAgICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgIH0KCiAgICAgIHBhcGVyLWRpYWxvZyB7CiAgICAgICAgY29sb3I6ICMzYzQwNDM7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMTBweDsKICAgICAgICBtYXgtd2lkdGg6IDYwMHB4OwogICAgICB9CgogICAgICAubWFpbi1idXR0b24ucnVuLWJ1dHRvbiB7CiAgICAgICAgcGFkZGluZzogNXB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQoKICAgICAgLmRvYy1pbWFnZSB7CiAgICAgICAgd2lkdGg6IDEyOHB4OwogICAgICAgIGhlaWdodDogOTZweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgIH0KCiAgICAgIC5jb250cm9sLWRpdmlkZXIgewogICAgICAgIG1hcmdpbjogNXB4IDAgNXB4IDVweDsKICAgICAgICB3aWR0aDogNXB4OwogICAgICAgIGJvcmRlci1sZWZ0OiAxcHggc29saWQgdmFyKC0td2l0LWNvbG9yLWdyYXkzMDApOwogICAgICB9CgogICAgICAub3B0aW1pemF0aW9uLXJhZGlvIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwYWRkaW5nOiA3cHg7CiAgICAgIH0KCiAgICAgIC5vcHRpbWl6YXRpb24tcmFkaW8tZ3JvdXAgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgIH0KCiAgICAgIC5pbmZlci1pbmZvIHsKICAgICAgICBtYXJnaW4tbGVmdDogMzBweDsKICAgICAgfQoKICAgICAgLnNjcm9sbC14IHsKICAgICAgICBvdmVyZmxvdy14OiBhdXRvOwogICAgICB9CgogICAgICAucGVyZi10YWJsZS1jbGlja2FibGUgewogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQoKICAgICAgLnBlcmYtdGFibGUtdGl0bGUtcm93IHsKICAgICAgICBiYWNrZ3JvdW5kOiB3aGl0ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgbWluLWhlaWdodDogNTJweDsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KICAgICAgLnBlcmYtdGFibGUtdGl0bGUgewogICAgICAgIGNvbG9yOiAjM2M0MDQzOwogICAgICAgIGZvbnQtc2l6ZTogMThweDsKICAgICAgICBtYXJnaW4tbGVmdDogMTRweDsKICAgICAgICBtYXJnaW4tdG9wOiAxNnB4OwogICAgICB9CiAgICAgIC5wZXJmLXRhYmxlLXNvcnQtbWVudSB7CiAgICAgICAgbWFyZ2luLXRvcDogLTEwcHg7CiAgICAgIH0KICAgICAgLnBlcmYtdGFibGUtaGVhZGVyIHsKICAgICAgICBiYWNrZ3JvdW5kOiB3aGl0ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGNvbG9yOiAjODA4NjhiOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBsaW5lLWhlaWdodDogMTZweDsKICAgICAgICBsZXR0ZXItc3BhY2luZzogMC4yNTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgbWluLWhlaWdodDogbWluLWNvbnRlbnQ7CiAgICAgICAgcGFkZGluZy10b3A6IDEycHg7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDRweDsKICAgICAgfQoKICAgICAgLnBlcmYtdGFibGUtZW50cmllcy1ob2xkZXIgewogICAgICAgIG92ZXJmbG93LXk6IG92ZXJsYXk7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICB9CgogICAgICAucGVyZi10YWJsZS1lbnRyeSB7CiAgICAgICAgYmFja2dyb3VuZDogd2hpdGU7CiAgICAgICAgY29sb3I6ICMzYzQwNDM7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGJvcmRlci1ib3R0b206IHNvbGlkIDFweCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgIH0KCiAgICAgIC5wZXJmLXRhYmxlLWVudHJ5LWV4cGFuZGVkIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtd3JhcDogd3JhcDsKICAgICAgICBtYXJnaW46IDAgMTJweDsKICAgICAgICBib3JkZXItbGVmdDogMXB4IHNvbGlkIHZhcigtLXdpdC1jb2xvci1ncmF5MzAwKTsKICAgICAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdmFyKC0td2l0LWNvbG9yLWdyYXkzMDApOwogICAgICAgIGJvcmRlci1yaWdodDogMXB4IHNvbGlkIHZhcigtLXdpdC1jb2xvci1ncmF5MzAwKTsKICAgICAgICBiYWNrZ3JvdW5kOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLnBlcmYtdGFibGUtcm93IHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGJhY2tncm91bmQ6IHdoaXRlOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgLnBlcmYtdGFibGUtcm93LWV4cGFuZGVkIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCB2YXIoLS13aXQtY29sb3ItZ3JheTMwMCk7CiAgICAgICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkIHZhcigtLXdpdC1jb2xvci1ncmF5MzAwKTsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgYm94LXNoYWRvdzogMCAxcHggMnB4IDAgcmdiYSg2MCwgNjQsIDY3LCAwLjMpLAogICAgICAgICAgMCAxcHggM3B4IDFweCByZ2JhKDYwLCA2NCwgNjcsIDAuMTUpOwogICAgICAgIGJhY2tncm91bmQ6IHdoaXRlOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgLnBlcmYtdGFibGUtdGV4dC1lbnRyeSB7CiAgICAgICAgaGVpZ2h0OiA0MHB4OwogICAgICAgIHBhZGRpbmctdG9wOiAxNnB4OwogICAgICB9CiAgICAgIC5wZXJmLXRhYmxlLW51bS1lbnRyeSB7CiAgICAgICAgaGVpZ2h0OiA0MHB4OwogICAgICAgIHBhZGRpbmctdG9wOiAxNnB4OwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICB9CiAgICAgIC5wZXJmLXRhYmxlLWFycm93IHsKICAgICAgICBtaW4td2lkdGg6IDQwcHg7CiAgICAgICAgd2lkdGg6IDQwcHg7CiAgICAgICAgbWFyZ2luLXRvcDogOHB4OwogICAgICB9CiAgICAgIC5wZXJmLXRhYmxlLXZhbCB7CiAgICAgICAgd2lkdGg6IDMwJTsKICAgICAgfQogICAgICAucGVyZi10YWJsZS1jb3VudCB7CiAgICAgICAgd2lkdGg6IDEwJTsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDIwcHg7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgIH0KICAgICAgLnBlcmYtdGFibGUtbW9kZWwgewogICAgICAgIG1pbi13aWR0aDogMTAwcHg7CiAgICAgICAgd2lkdGg6IDEwMHB4OwogICAgICB9CiAgICAgIC5wZXJmLXRhYmxlLW1vZGVsLXNpbmdsZSB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQogICAgICAucGVyZi10YWJsZS10aHJlc2hvbGQgewogICAgICAgIHdpZHRoOiAyODBweDsKICAgICAgICBtaW4td2lkdGg6IDI4MHB4OwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgfQogICAgICAucGVyZi10YWJsZS1lcnJvciB7CiAgICAgICAgd2lkdGg6IDE1JTsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgfQogICAgICAucGVyZi10YWJsZS1zcS1lcnJvciB7CiAgICAgICAgd2lkdGg6IDE1JTsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDIwcHg7CiAgICAgIH0KICAgICAgLnBlcmYtdGFibGUtZnAgewogICAgICAgIHdpZHRoOiAxNSU7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgIH0KICAgICAgLnBlcmYtdGFibGUtZm4gewogICAgICAgIHdpZHRoOiAxNSU7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgIH0KICAgICAgLnBlcmYtdGFibGUtYWNjIHsKICAgICAgICB3aWR0aDogMTUlOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIG1hcmdpbi1yaWdodDogMjBweDsKICAgICAgfQogICAgICAucGVyZi10YWJsZS1mMSB7CiAgICAgICAgd2lkdGg6IDEwJTsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDIwcHg7CiAgICAgIH0KICAgICAgLnBlcmYtYnV0dG9uIHsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICAucGVyZi1zb3J0LWJveCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7CiAgICAgIH0KICAgICAgLmNvdW50ZXJmYWN0dWFsLXRvZ2dsZSB7CiAgICAgICAgbWFyZ2luOiA0cHggNHB4IDRweCA2cHg7CiAgICAgICAgLS1wYXBlci10b2dnbGUtYnV0dG9uLWNoZWNrZWQtYmFyLWNvbG9yOiAjODFjOTk1OwogICAgICB9CiAgICAgIC5kYXRhcG9pbnQtYnV0dG9uIHsKICAgICAgICBjb2xvcjogIzIwMjEyNDsKICAgICAgICBiYWNrZ3JvdW5kOiAjZmRlMjkzOwogICAgICB9CiAgICAgIC5pbmZlci1idXR0b24gewogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgICBiYWNrZ3JvdW5kOiAjMTI4ZWFmOwogICAgICB9CiAgICAgIC5mbGV4LWdyb3cgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAuZmxleC1yb3ctcmV2ZXJzZSB7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICB9CiAgICAgIC50aHJlc2hvbGQtaW5mby1ob2xkZXIgewogICAgICAgIG1hcmdpbi10b3A6IC0ycHg7CiAgICAgIH0KICAgICAgLnRhYnMgewogICAgICAgIHBhZGRpbmctbGVmdDogMzJweDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgfQogICAgICAucm90YXRlZC1pY29uIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgyNzBkZWcpOwogICAgICB9CiAgICAgIC5kYXRhcG9pbnQtY29udHJvbC1idXR0b24gewogICAgICAgIHdpZHRoOiAyOHB4OwogICAgICAgIGhlaWdodDogMjhweDsKICAgICAgICBwYWRkaW5nOiA0cHg7CiAgICAgICAgbWFyZ2luLXRvcDogNHB4OwogICAgICB9CiAgICAgIC5wZC1ob2xkZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMzAwcHg7CiAgICAgIH0KICAgICAgLnBkLXktbGFiZWwgewogICAgICAgIGNvbG9yOiAjNWY2MzY4OwogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBsZWZ0OiAtMjBweDsKICAgICAgICBwYWRkaW5nOiAwcHg7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogODBweDsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgyNzBkZWcpOwogICAgICB9CiAgICAgIC5wZC14LWxhYmVsIHsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgY29sb3I6ICM1ZjYzNjg7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgcGFkZGluZzogMCAwIDAgNDBweDsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdGV4dC1hbGlnb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JleHBhbmQtY29sbGFwc2UtYnV0dG9uIj48L2lyb24taWNvbj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPgogICAgICAgICAgICAgICAgICAgIDxpcm9uLWNvbGxhcHNlIGNsYXNzPSJuby1wYWRkaW5nLWNhcmQiIGlkPSJjb2xsYXBzZWNvbnRleHR0b29scyIgb3BlbmVkPSJ7e29wZW5lZENvbnRleHRUb29sc319Ij4KICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1yYWRpby1ncm91cCBzZWxlY3RlZD0ie3t2aXNNb2RlfX0iPgogICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItcmFkaW8tYnV0dG9uIG5hbWU9ImRpdmUiPkRhdGFwb2ludHM8L3BhcGVyLXJhZGlvLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBuYW1lPSJwZCI+UGFydGlhbCBkZXBlbmRlbmNlIHBsb3RzPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWdyb3VwPgogICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbWyFpc1JlZ3Jlc3Npb25fKG1vZGVsVHlwZSldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImZsZXgiPgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgdGl0bGU9IlNlbGVjdCBhIGRhdGFwb2ludCB0byB1c2UgdGhpcyBmZWF0dXJlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci10b2dnbGUtYnV0dG9uIGNsYXNzPSJjb3VudGVyZmFjdHVhbC10b2dnbGUiIGNoZWNrZWQ9Int7c2hvd05lYXJlc3RDb3VudGVyZmFjdHVhbH19IiBkaXNhYmxlZCQ9IltbIWhhc1NlbGVjdGV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IltbcGFyc2VkTW9kZWxOYW1lc11dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaXRlbT5bW2dldENvdW50ZXJmYWN0dWFsTW9kZWxOYW1lXyhpdGVtKV1dPC9wYXBlci1pdGVtPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1saXN0Ym94PgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIGNmLWluZm8taWNvbiBuby1wYWRkaW5nIiBvbi10YXA9Im9wZW5EaWFsb2ciPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJhdXRvIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE5lYXJlc3QgY291bnRlcmZhY3R1YWwgKG5laWdoYm9yIG9mIGRpZmZlcmVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc2lmaWNhdGlvbikKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ29tcGFyZXMgdGhlIHNlbGVjdGVkIGRhdGFwb2ludCB3aXRoIGl0cyBuZWFyZXN0CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5laWdoYm9yIGZyb20gYSBkaWZmZXJlbnQgY2xhc3NpZmljYXRpb24gdXNpbmcgTDEKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3IgTDIgZGlzdGFuY2UuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgPGRpdiB0aXRsZT0iU2VsZWN0IGEgZGF0YXBvaW50IHRvIHVzZSB0aGlzIGZlYXR1cmUiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbGV4Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItYnV0dG9uIGNsYXNzPSJjb250cm9sLWJ1dHRvbiBkYXRhcG9pbnQtYnV0dG9uIiBkaXNhYmxlZCQ9IltbIWhhc1NlbGVjdGVkKHNlbGVjdGVkRXhhbXBsZUFuZEluZmVyZW5jZSldXSIgb24tdGFwPSJzaG93RGlzdGFuY2VDbGlja2VkXyIgYWx0PSJTaG93IHNpbWlsYXJpdHkgdG8gc2VsZWN0ZWQgZGF0YXBvaW50IiB0aXRsZT0iU2hvdyBzaW1pbGFyaXR5IHRvIHNlbGVjdGVkIGRhdGFwb2ludCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBTaG93IHNpbWlsYXJpdHkgdG8gc2VsZWN0ZWQgZGF0YXBvaW50CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249ImluZm8tb3V0bGluZSIgY2xhc3M9ImluZm8taWNvbiBjZi1pbmZvLWljb24gbm8tcGFkZGluZyIgb24tdGFwPSJvcGVuRGlhbG9nIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1kaWFsb2cgY2xhc3M9ImRpYWxvZy10ZXh0IiBob3Jpem9udGFsLWFsaWduPSJhdXRvIiB2ZXJ0aWNhbC1hbGlnbj0iYXV0byI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBTaG93IHNpbWlsYXJpdHkgdG8gc2VsZWN0ZWQgZGF0YXBvaW50CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENhbGN1bGF0ZXMgdGhlIGRpc3RhbmNlIGJldHdlZW4gdGhlIHNlbGVjdGVkCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFwb2ludCBhbmQgYWxsIG90aGVyIGRhdGFwb2ludHMgYW5kIHNob3dzIHRoaXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW4gdGhlIGRhdGFwb2ludHMgdmlzdWFsaXphdGlvbi4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZGlhbG9nPgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImhlYWRpbmctYW5kLWNhcmQgZWRpdG9yLWhlYWRpbmctYW5kLWNhcmQiPgogICAgICAgICAgICAgICAgICAgIDxidXR0b24gY2xhc3M9ImhlYWRpbmciPgogICAgICAgICAgICAgICAgICAgICAgW1tnZXREYXRhcG9pbnRFZGl0b3JUaXRsZShzZWxlY3RlZEV4YW1wbGVOdW0sCiAgICAgICAgICAgICAgICAgICAgICBjb21wYXJlZEluZGljZXMpXV0KICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJuby1wYWRkaW5nLWNhcmQiPgogICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGF0YXBvaW50LWNvbnRyb2xzLWhvbGRlciBkYXRhcG9pbnQtY29udHJvbC1idXR0b25zLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRhdGFwb2ludC1sZWZ0LWNvbnRyb2xzLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGNsYXNzPSJkYXRhcG9pbnQtY29udHJvbC1idXR0b24iIGljb249ImNoZXZyb24tbGVmdCIgZGlzYWJsZWQkPSJbWyFoYXNTZWxlY3RlZChzZWxlY3RlZEV4YW1wbGVBbmRJbmZlcmVuY2UpXV0iIG9uLXRhcD0ic2VsZWN0UHJldkRhdGFwb2ludF8iIGFsdD0ic2VsZWN0IHByZXZpb3VzIGRhdGFwb2ludCIgdGl0bGU9IlNlbGVjdCBwcmV2aW91cyBkYXRhcG9pbnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGNsYXNzPSJkYXRhcG9pbnQtY29udHJvbC1idXR0b24iIGljb249ImNoZXZyb24tcmlnaHQiIGRpc2FibGVkJD0iW1shaGFzU2VsZWN0ZWQoc2VsZWN0ZWRFeGFtcGxlQW5kSW5mZXJlbmNlKV1dIiBvbi10YXA9InNlbGVjdE5leHREYXRhcG9pbnRfIiBhbHQ9InNlbGVjdCBuZXh0IGRhdGFwb2ludCIgdGl0bGU9IlNlbGVjdCBuZXh0IGRhdGFwb2ludCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHRpdGxlPSJFZGl0IGEgZGF0YXBvaW50IHRvIHVzZSB0aGlzIGZlYXR1cmUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGNsYXNzPSJkYXRhcG9pbnQtY29udHJvbC1idXR0b24iIGljb249Imhpc3RvcnkiIG9uLXRhcD0icmVzZXREYXRhcG9pbnRfIiBhbHQ9InVuZG8gY2hhbmdlcyIgdGl0bGU9IlVuZG8gY2hhbmdlcyIgZGlzYWJsZWQkPSJbW3Nob3VsZERpc2FibGVSZXNldF8oc2VsZWN0ZWRFeGFtcGxlQW5kSW5mZXJlbmNlLmNoYW5nZWQpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHRpdGxlPSJTZWxlY3QgYSBkYXRhcG9pbnQgdG8gdXNlIHRoaXMgZmVhdHVyZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gY2xhc3M9ImRhdGFwb2ludC1jb250cm9sLWJ1dHRvbiIgaWNvbj0iY29udGVudC1jb3B5IiBkaXNhYmxlZCQ9IltbIWhhc1NlbGVjdGVkKHNlbGVjdGVkRXhhbXBsZUFuZEluZmVyZW5jZSldXSIgb24tdGFwPSJjb3B5RGF0YXBvaW50XyIgYWx0PSJkdXBsaWNhdGUgZGF0YXBvaW50IiB0aXRsZT0iRHVwbGljYXRlIGRhdGFwb2ludCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgdGl0bGU9IlNlbGVjdCBhIGRhdGFwb2ludCB0byB1c2UgdGhpcyBmZWF0dXJlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBjbGFzcz0iZGF0YXBvaW50LWNvbnRyb2wtYnV0dG9uIiBpY29uPSJkZWxldGUiIGRpc2FibGVkJD0iW1shaGFzU2VsZWN0ZWQoc2VsZWN0ZWRFeGFtcGxlQW5kSW5mZXJlbmNlKV1dIiBvbi10YXA9ImRlbGV0ZURhdGFwb2ludERpYWxvZ18iIGFsdD0iZGVsZXRlIGRhdGFwb2ludCIgdGl0bGU9IkRlbGV0ZSBkYXRhcG9pbnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb250cm9sLWRpdmlkZXIiPjwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pbnB1dCB2YWx1ZT0ie3tmZWF0dXJlU2VhcmNoVmFsdWV9fSIgbGFiZWw9IlNlYXJjaCBmZWF0dXJlcyIgY2xhc3M9ImRhdGFwb2ludC1jb250cm9sLWZpbHRlci1pbnB1dCBmZWF0dXJlLXNlYXJjaC1pbnB1dCIgZGlzYWJsZWQkPSJbWyFoYXNTZWxlY3RlZChzZWxlY3RlZEV4YW1wbGVBbmRJbmZlcmVuY2UpXV0iIG5vLWxhYmVsLWZsb2F0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlyb24taWNvbiBpY29uPSJpY29uczpzZWFyY2giIHNsb3Q9InByZWZpeCI+PC9pcm9uLWljb24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pbnB1dD4KICAgICAgICAgICAgICAgICAgICAgICAgPC9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T4KICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1shaGFzU2VsZWN0ZWQoc2VsZWN0ZWRFeGFtcGxlQW5kSW5mZXJlbmNlKV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGF0YXBvaW50LWluZm8taG9sZGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkYXRhcG9pbnQtaW5mby1jb250ZW50Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImZsZXggc3BhY2UtYmV0d2VlbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9Im9uYm9hcmRpbmctaGVhZGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBTZWxlY3QgYSBkYXRhcG9pbnQgdG8gYmVnaW4gZXhwbG9yaW5nIG1vZGVsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmVoYXZpb3IgZm9yIHlvdXIgc2VsZWN0aW9uLgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ib25ib2FyZGluZy10ZXh0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImJvbGQiPkVkaXQgYW5kIEluZmVyOjwvc3Bhbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRWRpdCB5b3VyIGRhdGFwb2ludCBoZXJlIGFuZCBydW4gaW5mZXJlbmNlIGluIHRoZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBJbmZlciB0YWJsZSB0byBzZWUgZGlmZmVyZW5jZXMgaW4gbW9kZWwgYmVoYXZpb3IuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9Im9uYm9hcmRpbmctdGV4dCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPSJib2xkIj5WaXN1YWxpemU6PC9zcGFuPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBTd2l0Y2ggYmV0d2VlbiB2aXN1YWxpemluZyBkYXRhcG9pbnRzIGFuZAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHBsb3JpbmcgcGFydGlhbCBkZXBlbmRlbmNlIHBsb3RzIHRvIGdhaW4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5zaWdodHMgaW50byB5b3VyIG1vZGVsJ3MgYmVoYXZpb3IuIEV4cGxvcmUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnRlcmZhY3R1YWxzIG9yIHNlZSBob3cgc2ltaWxhciAob3IgZGlmZmVyZW50KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGUgcmVzdCBvZiB5b3VyIGRhdGFzZXQgaXMgZnJvbSB5b3VyIHNlbGVjdGlvbi4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJpbmZlcmVuY2Utc2VjdGlvbi1ob2xkZXIiPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImluZmVyZW5jZS1zZWN0aW9uIj4KICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gY2xhc3M9ImluZmVyZW5jZS1oZWFkZXIgaGVhZGluZyIgb24tdGFwPSJ0b2dnbGVJbmZlcmVuY2VSZXN1bHRzIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZmxleCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0SW5mZXJUaXRsZShzZWxlY3RlZEV4YW1wbGVOdW0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb21wYXJlZEluZGljZXMpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJyaWdodC1zaWRlIHJpZ2h0LXNpZGUtcGVyZm9ybWFuY2UtdGFiIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpcm9uLWljb24gaWNvbj0iW1tnZXRFeHBhbmRDb2xsYXBzZUljb24ob3BlbmVkSW5mZXJlbmNlUmVzdWx0cyldXSIgY2xhc3M9ImV4cGFuZC1jb2xsYXBzZS1idXR0b24iPjwvaXJvbi1pY29uPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgPGlyb24tY29sbGFwc2UgY2xhc3M9Im5vLXBhZGRpbmctY2FyZCIgaWQ9ImNvbGxhcHNlaW5mZXJlbmNlIiBvcGVuZWQ9Int7b3BlbmVkSW5mZXJlbmNlUmVzdWx0c319Ij4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiB0aXRsZT0iRWRpdCBhIGRhdGFwb2ludCB0byB1c2UgdGhpcyBmZWF0dXJlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItYnV0dG9uIG9uLXRhcD0iaW5mZXJDbGlja2VkXyIgY2xhc3M9ImNvbnRyb2wtYnV0dG9uIGluZmVyLWJ1dHRvbiBmbGV4LWdyb3ciIGRpc2FibGVkJD0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ICA8dGYtaW5mZXJlbmNlLXZpZXdlciBjbGFzcz0iaW5mZXJlbmNlLXZpZXdlciBjb21wYXJlLWluZmVyZW5jZS12aWV3ZXIiIGluZmVyZW5jZXM9IltbY291bnRlcmZhY3R1YWxFeGFtcGxlQW5kSW5mZXJlbmNlLmluZmVyZW5jZXNdXSIgbW9kZWwtdHlwZT0iW1ttb2RlbFR5cGVdXSIgbW9kZWwtbmFtZXM9IltbcGFyc2VkTW9kZWxOYW1lc11dIiBtYXgtZW50cmllcy1wZXItcnVuPSJbW21heEluZmVyZW5jZUVudHJpZXNQZXJSdW5dXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RmLWluZmVyZW5jZS12aWV3ZXI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L2lyb24tY29sbGFwc2U+CiAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJyZXNpemVyIiBpZD0icmVzaXplciI+CiAgICAgICAgICAgICAgICAgIDxpcm9uLWljb24gaWNvbj0iYXY6cGF1c2UiIGNsYXNzPSJyZXNpemUtaWNvbiI+PC9pcm9uLWljb24+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjZW50ZXIiIHNsb3Q9ImNlbnRlciIgaWQ9ImNlbnRlciI+CiAgICAgICAgICAgICAgICA8ZmFjZXRzLWRpdmUgaWQ9ImRpdmUiIGRhdGE9IltbdmlzZGF0YV1dIiBzZWxlY3RlZC1pbmRpY2VzPSJbW3NlbGVjdGVkXV0iIGNvbXBhcmVkLWluZGljZXM9IltbY29tcGFyZWRJbmRpY2VzXV0iIG9u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pbmUiIGNsYXNzPSJpbmZvLWljb24gcGQtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJhdXRvIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGlhbG9nLXRpdGxlIj5QYXJ0aWFsIERlcGVuZGVuY2UgUGxvdHM8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBQYXJ0aWFsIGRlcGVuZGVuY2UgcGxvdHMgdmlzdWFsaXplIHRoZSBjaGFuZ2UgaW4KICAgICAgICAgICAgICAgICAgICAgICAgICBpbmZlcmVuY2UgcmVzdWx0cyBmb3IgZXZlcnkgZmVhdHVyZSwgYXMgdGhlIHZhbHVlIGZvcgogICAgICAgICAgICAgICAgICAgICAgICAgIHRoYXQgZmVhdHVyZSBpcyBjaGFuZ2VkIHRvIGRpZmZlcmVudCB2YWxpZCB2YWx1ZXMuCiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIEZvciBudW1lcmljIGZlYXR1cmVzLCB5b3UgY2FuIHNldCB0aGUgbWluaW11bSBhbmQKICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhpbXVtIHZhbHVlcyB0byBwbG90LgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBGb3Igc3RyaW5nIGZlYXR1cmVzLCB0aGUgbW9zdCBwb3B1bGFyIGZlYXR1cmUgdmFsdWVzCiAgICAgICAgICAgICAgICAgICAgICAgICAgYXJlIHNob3duIGFzIGFsdGVybmF0aXZlcyB0byB0aGUgZmVhdHVyZSB2YWx1ZSBmb3IgdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWQgZGF0YXBvaW50LgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBGb3IgZmVhdHVyZXMgd2l0aCBtdWx0aXBsZSBmZWF0dXJlIHZhbHVlcyBwZXIKICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhcG9pbnQsIGEgc2luZ2xlIHBsb3QgaXMgc2hvd24gZm9yIGZvciBlYWNoIGZlYXR1cmUKICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSBpbiB0aGUgc2VsZWN0ZWQgZGF0YXBvaW50LiBZb3UgY2FuIG92ZXJyaWRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgd2hpY2ggZmVhdHVyZSB2YWx1ZXMgaGF2ZSBwbG90cyBjcmVhdGVkIGZvciB0aGVtIGJ5CiAgICAgICAgICAgICAgICAgICAgICAgICAgc3BlY2lmeWluZyB0aGUgaW5kaWNlcyB0byBzaG93biBwYXJ0aWFsIGRlcGVuZGVuY2UKICAgICAgICAgICAgICAgICAgICAgICAgICBwbG90cyBmb3IsIGlmIHRoZSBkYXRhcG9pbnQgY29udGFpbnMgbXVsdGlwbGUgZmVhdHVyZQogICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlcyBmb3IgYSBmZWF0dXJlLgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBXaGVuIHRoZSBnbG9iYWwgdG9nZ2xlIGlzIHR1cm5lZCBvbiwgdGhlIHBsb3RzIHNob3cKICAgICAgICAgICAg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HQiPgogICAgICAgICAgICAgICAgICAgICAgVGhlIGxvYWRlZCBkYXRhc2V0IGhhcyBubyBmZWF0dXJlcyB0byBzaG93IHBhcnRpYWwKICAgICAgICAgICAgICAgICAgICAgIGRlcGVuZGVuY2UgcGxvdHMgZm9yLgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZHBsb3RzLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1twYXJ0aWFsRGVwUGxvdEVsaWdpYmxlRmVhdHVyZXNdXSI+CiAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmZWF0dXJlLWNvbnRhaW5lciIgZGF0YS1mZWF0dXJlLW5hbWUkPSJbW2l0ZW0ubmFtZV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lbnRyeSBwZXJmLXRhYmxlLXJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1hcnJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gY2xhc3M9InBkLXJvdy1hcnJvdyByb3RhdGVkLWljb24iIGljb249ImFycm93LWRyb3AtZG93biIgb24tdGFwPSJjYXRlZ29yeVBhbmVDbGlja2VkIj48L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdmFsIHBlcmYtdGFibGUtY2xpY2thYmxlIHRmLWNhdGVnb3J5LXBhbmUgcGVyZi10YWJsZS10ZXh0LWVudHJ5IiBvbi10YXA9ImNhdGVnb3J5UGFuZUNsaWNrZWQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tpdGVtLm5hbWVdXQogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGQtZW50cnktY29udGFpbmVyIHBlcmYtdGFibGUtZW50cnktZXhwYW5kZWQiIGhpZGRlbj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZC1pbnB1dC1jb250YWluZXIiIGhpZGRlbiQ9Iltbc2hvdWxkSGlkZVBkSW5wdXRDb250YWluZXIoaXRlbS5zYW1wbGVzLCBpdGVtLm5hbWUsIHNlbGVjdGVkKV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InJhbmdlLWlucHV0LWNvbnRhaW5lciIgaGlkZGVuJD0iW1tpdGVtLnNhbXBsZXNdXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImluZm8tdGV4dCIgdGl0bGU9IlRoZSByYW5nZSBvZiB2YWx1ZXMgdG8gdGVzdCAoZGVmYXVsdCB2YWx1ZXMgYXJlIGF1dG9tYXRpY2FsbHkgaW5mZXJyZWQpLiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU2V0IHJhbmdlIG9mIHZhbHVlcyB0byB0ZXN0CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbGV4Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT0ibnVtYmVyIiBjbGFzcz0ic3R5bGUtaW5wdXQgeC1taW4gcGQtcmFuZ2UtY29udHJvbCIgdmFsdWU9IltbaXRlbS5vYnNlcnZlZE1pbl1dIiB0aXRsZT0iVGhlIG1pbmltdW0gdmFsdWUgdG8gd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gICAgICAgICAgICBTZXQgZmVhdHVyZSBpbmRpY2VzIDxpPihvcHRpb25hbCk8L2k+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT0idGV4dCIgY2xhc3M9InN0eWxlLWlucHV0IGZlYXR1cmUtaW5kZXgtcGF0dGVybiBwZC1yYW5nZS1jb250cm9sIiBvbi1pbnB1dD0icGRJbnB1dENoYW5nZWQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0idGYtY2F0ZWdvcnktcGFuZS1jb250ZW50Ij48L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29uZmlnLXRhYiI+CiAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29uZmlnLXNpZGUtY29udGVudCI+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJoZWFkaW5nLWFuZC1jYXJkIj4KICAgICAgICAgICAgICAgICAgPGJ1dHRvbiBjbGFzcz0iaW5mZXJlbmNlLWhlYWRlciBoZWFkaW5nIiBvbi10YXA9InRvZ2dsZVRydWVMYWJlbFNldHVwIj4KICAgICAgICAgICAgICAgICAgICBDb25maWd1cmUKICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJyaWdodC1zaWRlIHJpZ2h0LXNpZGUtcGVyZm9ybWFuY2UtdGFiIj4KICAgICAgICAgICAgICAg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dGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1saXN0Ym94PgogICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRyb3Bkb3duLW1lbnU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iaGVscC10aXRsZSBoZWxwLXRpdGxlLW1hcmdpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBXaGF0IGlzIGdyb3VuZCB0cnV0aD8KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJoZWxwLXRleHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVGhlIGZlYXR1cmUgdGhhdCB5b3VyIG1vZGVsIGlzIHRyeWluZyB0byBwcmVkaWN0LgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz0iZGlhbG9nLWxpbmsiIG9uLXRhcD0ib3BlbkRpYWxvZyI+TW9yZS4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0iYXV0byIgdmVydGljYWwtYWxpZ249ImF1dG8iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGlhbG9nLXRpdGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgR3JvdW5kIFRydXRoIEZlYXR1cmUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSWYgdGhlIGRhdGFwb2ludHMgY29udGFpbiBhIGZlYXR1cmUgdGhhdAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXByZXNlbnRzIHRoZSBncm91bmQgdHJ1dGggZm9yIHdoYXQgdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsIGlzIGF0dGVtcHRpbmcgdG8gcHJlZGljdCwgdGhlbgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RpbmcgdGhhdCBmZWF0dXJlIGhlcmUgYWxsb3dzIHRoZSB0b29sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvIGludmVzdGlnYXRlIHRoZSBwZXJmb3JtYW5jZSBvZiB0aGUgbW9kZWwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnkgY29tcGFyaW5nIHRoZSBtb2RlbCdzIHJlc3VsdHMgdG8gdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdyb3VuZCB0cnV0aCBmZWF0dXJlLgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kaWFsb2c+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW3Nob3VsZFNob3dDb3N0UmF0aW9fKHNlbGVjdGVkTGFiZWxGZWF0dXJlLCBtb2RlbFR5cGUsIG11bHRpQ2xhc3MpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbGV4Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaW5wdXQgdmFsdWU9Int7aW5jb3JyZWN0UHJlZENvc3RSYXRpb319IiBsYWJlbD0iQ29zdCBSYXRpbyAoRlAvRk4pIiB0eXBlPSJudW1iZXIiIGNsYXNzPSJ0aHJlc2hvbGQtY29zdC1pbnB1dCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pbnB1dD4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iaGVscC10aXRsZSBoZWxwLXRpdGxlLW1hcmdpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFdoYXQgaXMgY29zdCByYXRpbz8KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iaGVscC10ZXh0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUaGUgY29zdCBvZiBmYWxzZSBwb3NpdGl2ZXMgcmVsYXRpdmUgdG8gZmFsc2UKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZWdhdGl2ZXMuIFJlcXVpcmVkIGZvciBvcHRpbWl6YXRpb24uCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImRpYWxvZy1saW5rIiBvbi10YXA9Im9wZW5EaWFsb2ciPk1vcmUuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0iYXV0byIgdmVydGljYWwtYWxpZ249ImF1dG8iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFdoYXQgaXMgY29zdCByYXRpbz8KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVGhpcyB0ZWxscyB0aGUgdG9vbCBob3cgdG8gb3B0aW1pemUgdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NpZmljYXRpb24gdGhyZXNob2xkcyB3aGVuIHlvdSB1c2UgdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW1pemF0aW9uIHN0cmF0ZWd5IGNvbnRyb2xzLgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAxLjAwID0gZmFsc2UgcG9zaXRpdmVzIGFyZSBlcXVhbGx5IGFzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29zdGx5IGFzIGZhbHNlIG5lZ2F0aXZlcy4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgNC4wMCA9IGZhbHNlIHBvc2l0aXZlcyBhcmUgNCB0aW1lcyBtb3JlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29zdGx5IHRoYW4gZmFsc2UgbmVnYXRpdmVzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDAuMjUgPSBmYWxzZSBuZWdhdGl2ZXMgYXJlIDQgdGltZXMgbW9yZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvc3RseSB0aGFuIGZhbHNlIHBvc2l0aXZlcy4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG91bGRTaG93RmVhdHVyZURyb3Bkb3duXyhzdGF0cyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImZsZXgiPgogICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1kcm9wZG93bi1tZW51IGxhYmVsPSJTbGljZSBieSIgY2xhc3M9InRocmVzaG9sZC1kcm9wZG93biI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItbGlzdGJveCBzbG90PSJkcm9wZG93bi1jb250ZW50IiBzZWxlY3RlZD0ie3tzZWxlY3RlZEJyZWFrZG93bkZlYXR1cmV9fSIgYXR0ci1mb3Itc2VsZWN0ZWQ9Im5hbWUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW2dldEZlYXR1cmVMaXN0XyhzdGF0cyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0gbmFtZT0iW1tpdGVtXV0iPltbZ2V0RmVhdHVyZU5hbWVfKGl0ZW0pXV08L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWxpc3Rib3g+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kcm9wZG93bi1tZW51PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJoZWxwLXRpdGxlIGhlbHAtdGl0bGUtbWFyZ2luIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgV2hhdCBkb2VzIHNsaWNpbmcgZG8/CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImhlbHAtdGV4dCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU2hvd3MgcGVyZm9ybWFuY2UgZm9yIGVhY2ggdmFsdWUgb2YgdGhlIHNlbGVjdGVkCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZS4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImZsZXgiPgogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG91bGRTaG93U2Vjb25kRmVhdHVyZURyb3Bkb3duXyhzZWxlY3RlZEJyZWFrZG93bkZlYXR1cmUpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRyb3Bkb3duLW1lbnUgbGFiZWw9IlNsaWNlIGJ5IChzZWNvbmRhcnkpIiBjbGFzcz0idGhyZXNob2xkLWRyb3Bkb3duIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWxpc3Rib3ggc2xvdD0iZHJvcGRvd24tY29udGVudCIgc2VsZWN0ZWQ9Int7c2VsZWN0ZWRTZWNvbmRCcmVha2Rvd25GZWF0dXJlfX0iIGF0dHItZm9yLXNlbGVjdGVkPSJuYW1lIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW2dldEZlYXR1cmVMaXN0XyhzdGF0cyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaXRlbSBuYW1lPSJbW2l0ZW1dXSI+W1tnZXRGZWF0dXJlTmFtZV8oaXRlbSldXTwvcGFwZXItaXRlbT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWxpc3Rib3g+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRyb3Bkb3duLW1lbnU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW2lzQmluYXJ5Q2xhc3NpZmljYXRpb25fKG1vZGVsVHlwZSwgbXVsdGlDbGFzcyldXSI+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImhlYWRpbmctYW5kLWNhcmQiPgogICAgICAgICAgICAgICAgICAgIDxidXR0b24gY2xhc3M9ImluZmVyZW5jZS1oZWFkZXIgaGVhZGluZyIgb24tdGFwPSJ0b2dnbGVFeHBsb3JlclNldHVwIj4KICAgICAgICAgICAgICAgICAgICAgIEZhaXJuZXNzCiAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJyaWdodC1zaWRlIHJpZ2h0LXNpZGUtcGVyZm9ybWFuY2UtdGFiIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGlyb24taWNvbiBpY29uPSJbW2dldEV4cGFuZENvbGxhcHNlSWNvbihvcGVuZWRFeHBsb3JlcildXSIgY2xhc3M9ImV4cGFuZC1jb2xsYXBzZS1idXR0b24iPjwvaXJvbi1pY29uPgogICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+CiAgICAgICAgICAgICAgICAgICAgPGlyb24tY29sbGFwc2UgY2xhc3M9ImNhcmQiIGlkPSJjb2xsYXBzZWV4cGxvcmVyIiBvcGVuZWQ9Int7b3BlbmVkRXhwbG9yZXJ9fSI+CiAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Iltbc2hvdWxkU2hvd0ZlYXR1cmVEcm9wZG93bl8oc3RhdHMpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb250cm9sLWluZm8taGVhZGVyIGhlbHAtdGl0bGUtbWFyZ2luLWJ1dHRvbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgQXBwbHkgYW4gb3B0aW1pemF0aW9uIHN0cmF0ZWd5CiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb250cm9sLWluZm8tdGV4dCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgU2VsZWN0IGEgc3RyYXRlZ3kgdG8gc2V0IGNsYXNzaWZpY2F0aW9uIHRocmVzaG9sZHMKICAgICAgICAgICAgICAgICAgICAgICAgICBiYXNlZCBvbiB0aGUgc2V0IGNvc3QgcmF0aW8gYW5kIGRhdGEgc2xpY2VzLiBNYW51YWxseQogICAgICAgICAgICAgICAgICAgICAgICAgIGFsdGVyaW5nIHRocmVzaG9sZHMgb3IgY2hhbmdpbmcgY29zdCByYXRpbyB3aWxsCiAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdCBiYWNrIHRvIGN1c3RvbSB0aHJlc2hvbGRzLgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWdyb3VwIGNsYXNzPSJvcHRpbWl6YXRpb24tcmFkaW8tZ3JvdXAiIHNlbGVjdGVkPSJ7e29wdGltaXphdGlvblNlbGVjdGVkfX0iPgogICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gbmFtZT0iY3VzdG9tIiBjbGFzcz0ib3B0aW1pemF0aW9uLXJhZGlvIiBpZD0iY3VzdG9tdGhyZXNoIj5DdXN0b20gdGhyZXNob2xkcwogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249ImluZm8tb3V0bGluZSIgY2xhc3M9ImluZm8taWNvbiB0aHJlc2gtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJib3R0b20iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPkN1c3RvbSB0aHJlc2hvbGRzPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU2V0IHlvdXIgb3duIHRocmVzaG9sZHMgdXNpbmcgdGhlIHRocmVzaG9sZAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNsaWRlcnMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kaWFsb2c+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBuYW1lPSJ1bmF3YXJlIiBjbGFzcz0ib3B0aW1pemF0aW9uLXJhZGlvIj5TaW5nbGUgdGhyZXNob2xkCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHRocmVzaC1pbmZvLWljb24gbm8tcGFkZGluZyIgb24tdGFwPSJvcGVuRGlhbG9nIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0iYXV0byIgdmVydGljYWwtYWxpZ249ImJvdHRvbSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+U2luZ2xlIHRocmVzaG9sZDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9wdGltaXplIGEgc2luZ2xlIHRocmVzaG9sZCBmb3IgYWxsIGRhdGFwb2ludHMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYXNlZCBvbiB0aGUgc3BlY2lmaWVkIGNvc3QgcmF0aW8uCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kaWFsb2c+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBuYW1lPSJkZW1vcGFyaXR5IiBjbGFzcz0ib3B0aW1pemF0aW9uLXJhZGlvIiBkaXNhYmxlZCQ9IltbIXNob3VsZFNob3dGZWF0dXJlUHJDaGFydHNfKHNlbGVjdGVkTGFiZWxGZWF0dXJlLCBzZWxlY3RlZEJyZWFrZG93bkZlYXR1cmUsIGluZmVyZW5jZXMpXV0iPkRlbW9ncmFwaGljIHBhcml0eQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249ImluZm8tb3V0bGluZSIgY2xhc3M9ImluZm8taWNvbiB0aHJlc2gtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJib3R0b20iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPkRlbW9ncmFwaGljIHBhcml0eTwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9wdGltaXplIGEgdGhyZXNob2xkIHBlciBzbGljZSBiYXNlZCBvbiB0aGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcGVjaWZpZWQgY29zdCByYXRpbywgZW5zdXJpbmcgdGhlIGRpZmZlcmVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNsaWNlcyBhY2hpZXZlIGRlbW9ncmFwaGljIHBhcnR5LgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEZW1vZ3JhcGhpYyBwYXJpdHkgbWVhbnMgdGhhdCBzaW1pbGFyCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGVyY2VudGFnZXMgb2YgZGF0YXBvaW50cyBmcm9tIGVhY2ggc2xpY2UgYXJlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJlZGljdGVkIGFzIHBvc2l0aXZlIGNsYXNzaWZpY2F0aW9ucy4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItcmFkaW8tYnV0dG9uIG5hbWU9ImVxdWFsb3BwIiBjbGFzcz0ib3B0aW1pemF0aW9uLXJhZGlvIiBkaXNhYmxlZCQ9IltbIXNob3VsZFNob3dGZWF0dXJlUHJDaGFydHNfKHNlbGVjdGVkTGFiZWxGZWF0dXJlLCBzZWxlY3RlZEJyZWFrZG93bkZlYXR1cmUsIGluZmVyZW5jZXMpXV0iPkVxdWFsIG9wcG9ydHVuaXR5CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHRocmVzaC1pbmZvLWljb24gbm8tcGFkZGluZyIgb24tdGFwPSJvcGVuRGlhbG9nIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0iYXV0byIgdmVydGljYWwtYWxpZ249ImJvdHRvbSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+RXF1YWwgb3Bwb3J0dW5pdHk8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBPcHRpbWl6ZSBhIHRocmVzaG9sZCBwZXIgc2xpY2UgYmFzZWQgb24gdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3BlY2lmaWVkIGNvc3QgcmF0aW8sIGVuc3VyaW5nIHRoZSBkaWZmZXJlbnQKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzbGljZXMgYWNoaWV2ZSBlcXVhbCBvcHBvcnR1bml0eS4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRXF1YWwgb3Bwb3J0dW5pdHkgbWVhbnMgdGhhdCBhbW9uZyB0aG9zZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByZWRpY3RlZCBhcyBwb3NpdGl2ZSBjbGFzc2lmaWNhdGlvbnMsIHRoZXJlIGlzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYSBzaW1pbGFyIHBlcmNlbnRhZ2Ugb2YgY29ycmVjdCBwcmVkaWN0aW9ucyBpbgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVhY2ggc2xpY2UuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kaWFsb2c+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBuYW1lPSJlcXVhbGFjYyIgY2xhc3M9Im9wdGltaXphdGlvbi1yYWRpbyIgZGlzYWJsZWQkPSJbWyFzaG91bGRTaG93RmVhdHVyZVByQ2hhcnRzXyhzZWxlY3RlZExhYmVsRmVhdHVyZSwgc2VsZWN0ZWRCcmVha2Rvd25GZWF0dXJlLCBpbmZlcmVuY2VzKV1dIj5FcXVhbCBhY2N1cmFjeQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249ImluZm8tb3V0bGluZSIgY2xhc3M9ImluZm8taWNvbiB0aHJlc2gtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJib3R0b20iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPkVxdWFsIGFjY3VyYWN5PC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT3B0aW1pemUgYSB0aHJlc2hvbGQgcGVyIHNsaWNlIGJhc2VkIG9uIHRoZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNwZWNpZmllZCBjb3N0IHJhdGlvLCBlbnN1cmluZyB0aGUgZGlmZmVyZW50CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2xpY2VzIGFjaGlldmUgZXF1YWwgYWNjdXJhY3kuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEVxdWFsIGFjY3VyYWN5IG1lYW5zIHRoYXQgdGhlcmUgaXMgYSBzaW1pbGFyCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGVyY2VudGFnZSBvZiBjb3JyZWN0IHByZWRpY3Rpb25zIGluIGVhY2ggc2xpY2UuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kaWFsb2c+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBuYW1lPSJncm91cCIgY2xhc3M9Im9wdGltaXphdGlvbi1yYWRpbyIgZGlzYWJsZWQkPSJbWyFzaG91bGRTaG93RmVhdHVyZVByQ2hhcnRzXyhzZWxlY3RlZExhYmVsRmVhdHVyZSwgc2VsZWN0ZWRCcmVha2Rvd25GZWF0dXJlLCBpbmZlcmVuY2VzKV1dIj5Hcm91cCB0aHJlc2hvbGRzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHRocmVzaC1pbmZvLWljb24gbm8tcGFkZGluZyIgb24tdGFwPSJvcGVuRGlhbG9nIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0iYXV0byIgdmVydGljYWwtYWxpZ249ImJvdHRvbSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+R3JvdXAgdGhyZXNob2xkczwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9wdGltaXplIGEgc2VwYXJhdGUgdGhyZXNob2xkIGZvciBlYWNoIHNsaWNlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmFzZWQgb24gdGhlIHNwZWNpZmllZCBjb3N0IHJhdGlvLgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZGlhbG9nPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWdyb3VwPgogICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICA8L2lyb24tY29sbGFwc2U+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb25maWctbWFpbi1jb250ZW50Ij4KICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tpc0JpbmFyeUNsYXNzaWZpY2F0aW9uXyhtb2RlbFR5cGUsIG11bHRpQ2xhc3MpXV0iIHJlc3RhbXA+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdGl0bGUtcm93Ij4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbGV4Ij4KICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdGl0bGUiPgogICAgICAgICAgICAgICAgICAgICAgICBbW2dldFBlcmZUYWJsZVRpdGxlKHNlbGVjdGVkQnJlYWtkb3duRmVhdHVyZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRTZWNvbmRCcmVha2Rvd25GZWF0dXJlLCBvcHRpbWl6YXRpb25TZWxlY3RlZCwKICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkcyldXQogICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHBlcmZvcm1hbmNlLWluZm8taWNvbiBuby1wYWRkaW5nIiBvbi10YXA9Im9wZW5EaWFsb2ciPgogICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1kaWFsb2cgY2xhc3M9ImRpYWxvZy10ZXh0IiBob3Jpem9udGFsLWFsaWduPSJhdXRvIiB2ZXJ0aWNhbC1hbGlnbj0iYXV0byI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgQ2xhc3NpZmljYXRpb24gUGVyZm9ybWFuY2UgVGFibGUKICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgU2V0IHRoZSBncm91bmQgdHJ1dGggZmVhdHVyZSB0byBleHBsb3JlIG1vZGVsCiAgICAgICAgICAgICAgICAgICAgICAgICAgcGVyZm9ybWFuY2UgaW5jbHVkaW5nIFJPQyBjdXJ2ZXMgYW5kIGNvbmZ1c2lvbgogICAgICAgICAgICAgICAgICAgICAgICAgIG1hdHJpY2VzLgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBTbGljZSB0aGUgZGF0YXNldCBieSBmZWF0dXJlcyBhbmQgZXhwbG9yZSBtb2RlbAogICAgICAgICAgICAgICAgICAgICAgICAgIHBlcmZvcm1hbmNlIGJ5IHNsaWNlLgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBVc2UgdGhlIGZhaXJuZXNzIG9wdGltaXphdGlvbiBzdHJhdGVnaWVzIGFuZCBzZWUgdGhlCiAgICAgICAgICAgICAgICAgICAgICAgICAgaW1wYWN0IG9uIHRoZSB0aHJlc2hvbGRzIGFuZCBwZXJmb3JtYW5jZSBvZiB0aGUKICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRpdmlkdWFsIHNsaWNlcy4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXNvcnQtYm94Ij4KICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBpY29uPSJ1bmZvbGQtbW9yZSIgY2xhc3M9InBlcmYtYnV0dG9uIiBvbi10YXA9ImV4cGFuZEFsbFBlcmZvcm1hbmNlIiBhbHQ9ImV4cGFuZCBhbGwgc2xpY2VzIiB0aXRsZT0iRXhwYW5kIGFsbCBzbGljZXMiPgogICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0idW5mb2xkLWxlc3MiIGNsYXNzPSJwZXJmLWJ1dHRvbiIgb24tdGFwPSJjb2xsYXBzZUFsbFBlcmZvcm1hbmNlIiBhbHQ9ImNvbGxhcHNlIGFsbCBzbGljZXMiIHRpdGxlPSJDb2xsYXBzZSBhbGwgc2xpY2VzIj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRyb3Bkb3duLW1lbnUgbGFiZWw9IlNvcnQgYnkiIGNsYXNzPSJ0aHJlc2hvbGQtZHJvcGRvd24gcGVyZi10YWJsZS1zb3J0LW1lbnUiPgogICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItbGlzdGJveCBzbG90PSJkcm9wZG93bi1jb250ZW50IiBzZWxlY3RlZD0ie3tzZWxlY3RlZEZlYXR1cmVTb3J0fX0iIGF0dHItZm9yLXNlbGVjdGVkPSJuYW1lIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW2dldEZlYXR1cmVTb3J0QnkobW9kZWxUeXBlLCBtdWx0aUNsYXNzKV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pdGVtIG5hbWU9IltbaXRlbV1dIj5bW2l0ZW1dXTwvcGFwZXItaXRlbT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWxpc3Rib3g+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRyb3Bkb3duLW1lbnU+CiAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWhlYWRlciI+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1hcnJvdyI+CiAgICAgICAgICAgICAgICAgICAgICA8aXJvbi1pY29uIGNsYXNzPSJleHBhbmQtY29sbGFwc2UtYnV0dG9uIj48L2lyb24taWNvbj4KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXZhbCI+RmVhdHVyZSBWYWx1ZTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtY291bnQiPkNvdW50PC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcyQ9IltbZ2V0UGVyZlRhYmxlTW9kZWxDbGFzcyhudW1Nb2RlbHMpXV0iPgogICAgICAgICAgICAgICAgICAgICAgTW9kZWwKICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXRocmVzaG9sZCBmbGV4Ij4KICAgICAgICAgICAgICAgICAgICAgIDxkaXY+VGhyZXNob2xkPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0aHJlc2hvbGQtaW5mby1ob2xkZXIiPgogICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHRocmVzaG9sZC1pbmZvLWljb24gbm8tcGFkZGluZyIgb24tdGFwPSJvcGVuRGlhbG9nIj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJhdXRvIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgRXhwbG9yaW5nIENsYXNzaWZpY2F0aW9uIFBlcmZvcm1hbmNlCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVzZSB0aGlzIHNsaWRlciB0byBhZGp1c3QgdGhlIGNsYXNzaWZpY2F0aW9uCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJlc2hvbGQgZm9yIHRoaXMgc2xpY2UuIEluZmVyZW5jZSB2YWx1ZXMgYXQgb3IKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFib3ZlIHRoaXMgdGhyZXNob2xkIGFyZSBjb25zaWRlcmVkIGEgcG9zaXRpdmUKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzaWZpY2F0aW9uLCB3aGlsZSBpbmZlcmVuY2UgdmFsdWVzIGJlbG93IHRoaXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocmVzaG9sZCBhcmUgY29uc2lkZXJlZCBhIG5lZ2F0aXZlIGNsYXNzaWZpY2F0aW9uLgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcm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LWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXZhbCBwZXJmLXRhYmxlLWNsaWNrYWJsZSBwZXJmLXRhYmxlLXRleHQtZW50cnkiIG9uLXRhcD0idG9nZ2xlUGVyZlJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldFByaW50YWJsZVZhbHVlXyhmZWF0dXJlVmFsdWVUaHJlc2hvbGQpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWNvdW50IHBlcmYtdGFibGUtY2xpY2thYmxlIHBlcmYtdGFibGUtbnVtLWVudHJ5IiBvbi10YXA9InRvZ2dsZVBlcmZSb3ciPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXRGZWF0dXJlVmFsdWVDb3VudChpbmZlcmVuY2VTdGF0c18sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlVmFsdWVUaHJlc2hvbGQudGhyZXNob2xkLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcyQ9IltbZ2V0UGVyZlRhYmxlTW9kZWxDbGFzcyhudW1Nb2RlbHMpXV0iIG9uLXRhcD0idG9nZ2xlUGVyZlJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e2ZlYXR1cmVWYWx1ZVRocmVzaG9sZC50aHJlc2hvbGR9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdGV4dC1lbnRyeSBwZXJmLXRhYmxlLWNsaWNrYWJsZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXRNb2RlbE5hbWVfKGluZGV4KV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXRocmVzaG9sZCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e2ZlYXR1cmVWYWx1ZVRocmVzaG9sZC50aHJlc2hvbGR9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1zbGlkZXIgY2xhc3MkPSJbW2dldFNsaWRlckNsYXNzKGluZGV4KV1dIiBlZGl0YWJsZT0idHJ1ZSIgbWluPSIwIiBtYXg9IjEiIHN0ZXA9IjAuMDEiIGltbWVkaWF0ZS12YWx1ZT0ie3tpdGVtLnRocmVzaG9sZH19IiB2YWx1ZT0iW1tpdGVtLnRocmVzaG9sZF1dIiBvbi12YWx1ZS1jaGFuZ2VkPSJyZWZyZXNoSW5mZXJlbmNlc05vUmVnZW5fIiBvbi1pbW1lZGlhdGUtdmFsdWUtY2hhbmdlZD0icmVmcmVzaEluZmVyZW5jZXNOb1JlZ2VuXyIgb24tZG93bj0icmVzZXRPcHRpbWl6YXRpb25TZWxlY3RlZF8iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXNsaWRlcj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1mcCBwZXJmLXRhYmxlLWNsaWNrYWJsZSIgb24tdGFwPSJ0b2dnbGVQZXJmUm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Int7ZmVhdHVyZVZhbHVlVGhyZXNob2xkLnRocmVzaG9sZH19Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1udW0tZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0RlBNb2RlbEluZGV4KGluZmVyZW5jZVN0YXRzXywKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlVmFsdWVUaHJlc2hvbGQudGhyZXNob2xkLCBpbmRleCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlVmFsdWVUaHJlc2hvbGQpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZm4gcGVyZi10YWJsZS1jbGlja2FibGUiIG9uLXRhcD0idG9nZ2xlUGVyZlJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e2ZlYXR1cmVWYWx1ZVRocmVzaG9sZC50aHJlc2hvbGR9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtbnVtLWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldEZOTW9kZWxJbmRleChpbmZlcmVuY2VTdGF0c18sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkLnRocmVzaG9sZCwgaW5kZXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWFjYyBwZXJmLXRhYmxlLWNsaWNrYWJsZSIgb24tdGFwPSJ0b2dnbGVQZXJmUm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Int7ZmVhdHVyZVZhbHVlVGhyZXNob2xkLnRocmVzaG9sZH19Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1udW0tZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0QWNjdXJhY3lNb2RlbEluZGV4KGluZmVyZW5jZVN0YXRzXywKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlVmFsdWVUaHJlc2hvbGQudGhyZXNob2xkLCBpbmRleCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlVmFsdWVUaHJlc2hvbGQpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZjEgcGVyZi10YWJsZS1jbGlja2FibGUiIG9uLXRhcD0idG9nZ2xlUGVyZlJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e2ZlYXR1cmVWYWx1ZVRocmVzaG9sZC50aHJlc2hvbGR9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtbnVtLWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldEYxTW9kZWxJbmRleChpbmZlcmVuY2VTdGF0c18sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkLnRocmVzaG9sZCwgaW5kZXgsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDxpcm9uLWNvbGxhcHNlIG9wZW5lZD0ie3tmZWF0dXJlVmFsdWVUaHJlc2hvbGQub3BlbmVkfX0iPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWVudHJ5LWV4cGFuZGVkIGZsZXgtcm93LXJldmVyc2UiPgogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG91bGRTaG93RmVhdHVyZVByQ2hhcnRzXyhzZWxlY3RlZExhYmVsRmVhdHVyZSwgc2VsZWN0ZWRCcmVha2Rvd25GZWF0dXJlLCBpbmZlcmVuY2VzKV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImNvbmYtbWF0cml4LWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImNvbmYtdGV4dCI+Q29uZnVzaW9uIG1hdHJpeDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e2ZlYXR1cmVWYWx1ZVRocmVzaG9sZC50aHJlc2hvbGR9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRmLWNvbmZ1c2lvbi1tYXRyaXggY291bnRzPSJbW2dldENvbmZ1c2lvbkNvdW50c01vZGVsSW5kZXgoaW5mZXJlbmNlU3RhdHNfLCBmZWF0dXJlVmFsdWVUaHJlc2hvbGQudGhyZXNob2xkLCBpbmRleCwgZmVhdHVyZVZhbHVlVGhyZXNob2xkKV1dIiBsYWJlbD0iW1tnZXRDb25mdXNpb25NYXRyaXhMYWJlbChpbmRleCwgbnVtTW9kZWxzKV1dIiBiYWNrZ3JvdW5kPSJbW2dldENvbmZ1c2lvbk1hdHJpeENvbG9yKGluZGV4KV1dIiBhbGwtaXRlbXM9IltbYWxsQ29uZk1hdHJpeExhYmVsc11dIiBjbGFzcz0iY29uZi1tYXRyaXgiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGYtY29uZnVzaW9uLW1hdHJpeD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY3VydmVzLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImN1cnZlLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icm9jLXRleHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUk9DIGN1cnZlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHRocmVzaG9sZC1pbmZvLWljb24gbm8tcGFkZGluZyIgb24tdGFwPSJvcGVuRGlhbG9nIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0icmlnaHQiIHZlcnRpY2FsLWFsaWduPSJib3R0b20iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJkaWFsb2ctdGl0bGUiPlJPQyBjdXJ2ZTwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEEgcmVjZWl2ZXIgb3BlcmF0aW5nIGNoYXJhY3RlcmlzdGljIChST0MpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VydmUgcGxvdHMgdGhlIHRydWUgcG9zaXRpdmUgcmF0ZSAoVFBSKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFnYWluc3QgdGhlIGZhbHNlIHBvc2l0aXZlIHJhdGUgKEZQUikgYXQKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXJpb3VzIGNsYXNzaWZpY2F0aW9uIHRocmVzaG9sZHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1kaWFsb2c+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icm9jLXgtbGFiZWwiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRmFsc2UgcG9zaXRpdmUgcmF0ZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InJvYy15LWxhYmVsIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFRydWUgcG9zaXRpdmUgcmF0ZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx2ei1saW5lLWNoYXJ0MiBpZD0iW1tnZXRSb2NDaGFydElkKGluZGV4KV1dIiBjbGFzcz0icHItbGluZS1jaGFydCIgeC1heGlzLWZvcm1hdHRlcj0iW1tnZXRTaW1wbGVBeGlzRm9ybWF0dGVyKGF4aXNQcmVjaXNpb24pXV0iIHktYXhpcy1mb3JtYXR0ZXI9IltbZ2V0U2ltcGxlQXhpc0Zvcm1hdHRlcihheGlzUHJlY2lzaW9uKV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3Z6LWxpbmUtY2hhcnQyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY3VydmUtaG9sZGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJyb2MtdGV4dCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBQUiBjdXJ2ZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249ImluZm8tb3V0bGluZSIgY2xhc3M9ImluZm8taWNvbiB0aHJlc2hvbGQtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249InJpZ2h0IiB2ZXJ0aWNhbC1hbGlnbj0iYm90dG9tIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGlhbG9nLXRpdGxlIj5QUiBjdXJ2ZTwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEEgcHJlY2lzaW9uLXJlY2FsbCAoUFIpIGN1cnZlIHBsb3RzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJlY2lzaW9uIGFnYWluc3QgcmVjYWxsIGF0IHZhcmlvdXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc2lmaWNhdGlvbiB0aHJlc2hvbGRzLgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZGlhbG9nPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InByLXgtbGFiZWwiPlJlY2FsbDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InByLXktbGFiZWwiPlByZWNpc2lvbjwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx2ei1saW5lLWNoYXJ0MiBpZD0iW1tnZXRQckNoYXJ0SWQoaW5kZXgpXV0iIGNsYXNzPSJwci1saW5lLWNoYXJ0IiB4LWF4aXMtZm9ybWF0dGVyPSJbW2dldFNpbXBsZUF4aXNGb3JtYXR0ZXIoYXhpc1ByZWNpc2lvbildXSIgeS1heGlzLWZvcm1hdHRlcj0iW1tnZXRTaW1wbGVBeGlzRm9ybWF0dGVyKGF4aXNQcmVjaXNpb24pXV0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdnotbGluZS1jaGFydDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L2lyb24tY29sbGFwc2U+CiAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Iltbc2hvdWxkU2hvd092ZXJhbGxUaHJlc2hvbGRlcl8oc2VsZWN0ZWRCcmVha2Rvd25GZWF0dXJlKV1dIj4KICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXJvdy1leHBhbmRlZCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1hcnJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iYXJyb3ctZHJvcC1kb3duIiBvbi10YXA9InRvZ2dsZVBlcmZSb3ciIGRpc2FibGVkPjwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS12YWwgcGVyZi10YWJsZS10ZXh0LWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIEFsbCBkYXRhcG9pbnRzCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1jb3VudCBwZXJmLXRhYmxlLW51bS1lbnRyeSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldEZlYXR1cmVWYWx1ZUNvdW50KGluZmVyZW5jZVN0YXRzXywKICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJhbGxUaHJlc2hvbGRzKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcyQ9IltbZ2V0UGVyZlRhYmxlTW9kZWxDbGFzcyhudW1Nb2RlbHMpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tvdmVyYWxsVGhyZXNob2xkc319Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS10ZXh0LWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldE1vZGVsTmFtZV8oaW5kZXgpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdGhyZXNob2xkIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Int7b3ZlcmFsbFRocmVzaG9sZHN9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1zbGlkZXIgY2xhc3MkPSJbW2dldFNsaWRlckNsYXNzKGluZGV4KV1dIiBlZGl0YWJsZT0idHJ1ZSIgbWluPSIwIiBtYXg9IjEiIHN0ZXA9IjAuMDEiIGltbWVkaWF0ZS12YWx1ZT0ie3tpdGVtLnRocmVzaG9sZH19IiB2YWx1ZT0iW1tpdGVtLnRocmVzaG9sZF1dIiBvbi12YWx1ZS1jaGFuZ2VkPSJyZWZyZXNoSW5mZXJlbmNlc05vUmVnZW5fIiBvbi1pbW1lZGlhdGUtdmFsdWUtY2hhbmdlZD0icmVmcmVzaEluZmVyZW5jZXNOb1JlZ2VuXyIgb24tZG93bj0icmVzZXRPcHRpbWl6YXRpb25TZWxlY3RlZF8iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLXNsaWRlcj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1mcCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e292ZXJhbGxUaHJlc2hvbGRzfX0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLW51bS1lbnRyeSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXRGUE1vZGVsSW5kZXgoaW5mZXJlbmNlU3RhdHNfLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJhbGxUaHJlc2hvbGRzLCBpbmRleCldXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1mbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e292ZXJhbGxUaHJlc2hvbGRzfX0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLW51bS1lbnRyeSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXRGTk1vZGVsSW5kZXgoaW5mZXJlbmNlU3RhdHNfLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJhbGxUaHJlc2hvbGRzLCBpbmRleCldXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1hY2MiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tvdmVyYWxsVGhyZXNob2xkc319Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1udW0tZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0QWNjdXJhY3lNb2RlbEluZGV4KGluZmVyZW5jZVN0YXRzXywKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVyYWxsVGhyZXNob2xkcywgaW5kZXgpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZjEiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tvdmVyYWxsVGhyZXNob2xkc319Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1udW0tZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0RjFNb2RlbEluZGV4KGluZmVyZW5jZVN0YXRzXywKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVyYWxsVGhyZXNob2xkcywgaW5kZXgpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lbnRyeS1leHBhbmRlZCBmbGV4LXJvdy1yZXZlcnNlIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW3Nob3VsZFNob3dPdmVyYWxsUHJDaGFydF8oc2VsZWN0ZWRMYWJlbEZlYXR1cmUsIHNlbGVjdGVkQnJlYWtkb3duRmVhdHVyZSwgaW5mZXJlbmNlcyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29uZi1tYXRyaXgtaG9sZGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImNvbmYtdGV4dCI+Q29uZnVzaW9uIG1hdHJpeDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tvdmVyYWxsVGhyZXNob2xkc319Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRmLWNvbmZ1c2lvbi1tYXRyaXggY291bnRzPSJbW2dldENvbmZ1c2lvbkNvdW50c01vZGVsSW5kZXgoaW5mZXJlbmNlU3RhdHNfLCBvdmVyYWxsVGhyZXNob2xkcywgaW5kZXgpXV0iIGxhYmVsPSJbW2dldENvbmZ1c2lvbk1hdHJpeExhYmVsKGluZGV4LCBudW1Nb2RlbHMpXV0iIGJhY2tncm91bmQ9IltbZ2V0Q29uZnVzaW9uTWF0cml4Q29sb3IoaW5kZXgpXV0iIGFsbC1pdGVtcz0iW1thbGxDb25mTWF0cml4TGFiZWxzXV0iIGNsYXNzPSJjb25mLW1hdHJpeCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGYtY29uZnVzaW9uLW1hdHJpeD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY3VydmVzLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjdXJ2ZS1ob2xkZXIiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJyb2MtdGV4dCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUk9DIGN1cnZlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249ImluZm8tb3V0bGluZSIgY2xhc3M9ImluZm8taWNvbiB0aHJlc2hvbGQtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZGlhbG9nIGNsYXNzPSJkaWFsb2ctdGV4dCIgaG9yaXpvbnRhbC1hbGlnbj0icmlnaHQiIHZlcnRpY2FsLWFsaWduPSJib3R0b20iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGlhbG9nLXRpdGxlIj5ST0MgY3VydmU8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEEgcmVjZWl2ZXIgb3BlcmF0aW5nIGNoYXJhY3RlcmlzdGljIChST0MpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1cnZlIHBsb3RzIHRoZSB0cnVlIHBvc2l0aXZlIHJhdGUgKFRQUikKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWdhaW5zdCB0aGUgZmFsc2UgcG9zaXRpdmUgcmF0ZSAoRlBSKSBhdAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXJpb3VzIGNsYXNzaWZpY2F0aW9uIHRocmVzaG9sZHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InJvYy14LWxhYmVsIj5GYWxzZSBwb3NpdGl2ZSByYXRlPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InJvYy15LWxhYmVsIj5UcnVlIHBvc2l0aXZlIHJhdGU8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHZ6LWxpbmUtY2hhcnQyIGlkPSJyb2NjaGFydCIgY2xhc3M9InByLWxpbmUtY2hhcnQiIHgtYXhpcy1mb3JtYXR0ZXI9IltbZ2V0U2ltcGxlQXhpc0Zvcm1hdHRlcihheGlzUHJlY2lzaW9uKV1dIiB5LWF4aXMtZm9ybWF0dGVyPSJbW2dldFNpbXBsZUF4aXNGb3JtYXR0ZXIoYXhpc1ByZWNpc2lvbildXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdnotbGluZS1jaGFydDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImN1cnZlLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InJvYy10ZXh0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBQUiBjdXJ2ZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBpY29uPSJpbmZvLW91dGxpbmUiIGNsYXNzPSJpbmZvLWljb24gdGhyZXNob2xkLWluZm8taWNvbiBuby1wYWRkaW5nIiBvbi10YXA9Im9wZW5EaWFsb2ciPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249InJpZ2h0IiB2ZXJ0aWNhbC1hbGlnbj0iYm90dG9tIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+UFIgY3VydmU8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEEgcHJlY2lzaW9uLXJlY2FsbCAoUFIpIGN1cnZlIHBsb3RzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByZWNpc2lvbiBhZ2FpbnN0IHJlY2FsbCBhdCB2YXJpb3VzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzaWZpY2F0aW9uIHRocmVzaG9sZHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InByLXgtbGFiZWwiPlJlY2FsbDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwci15LWxhYmVsIj5QcmVjaXNpb248L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHZ6LWxpbmUtY2hhcnQyIGlkPSJwcmNoYXJ0IiBjbGFzcz0icHItbGluZS1jaGFydCIgeC1heGlzLWZvcm1hdHRlcj0iW1tnZXRTaW1wbGVBeGlzRm9ybWF0dGVyKGF4aXNQcmVjaXNpb24pXV0iIHktYXhpcy1mb3JtYXR0ZXI9IltbZ2V0U2ltcGxlQXhpc0Zvcm1hdHRlcihheGlzUHJlY2lzaW9uKV1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC92ei1saW5lLWNoYXJ0Mj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW2lzTXVsdGlDbGFzc18obW9kZWxUeXBlLCBtdWx0aUNsYXNzKV1dIiByZXN0YW1wPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXRpdGxlLXJvdyI+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZmxleCI+CiAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXRpdGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXROb1RocmVzaG9sZFBlcmZUYWJsZVRpdGxlKHNlbGVjdGVkQnJlYWtkb3duRmVhdHVyZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRTZWNvbmRCcmVha2Rvd25GZWF0dXJlLAogICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlVmFsdWVUaHJlc2hvbGRzKV1dCiAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBpY29uPSJpbmZvLW91dGxpbmUiIGNsYXNzPSJpbmZvLWljb24gcGVyZm9ybWFuY2UtaW5mby1pY29uIG5vLXBhZGRpbmciIG9uLXRhcD0ib3BlbkRpYWxvZyI+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWRpYWxvZyBjbGFzcz0iZGlhbG9nLXRleHQiIGhvcml6b250YWwtYWxpZ249ImF1dG8iIHZlcnRpY2FsLWFsaWduPSJhdXRvIj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZGlhbG9nLXRpdGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICBDbGFzc2lmaWNhdGlvbiBQZXJmb3JtYW5jZSBUYWJsZQogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBTZXQgdGhlIGdyb3VuZCB0cnV0aCBmZWF0dXJlIHRvIGV4cGxvcmUgbW9kZWwKICAgICAgICAgICAgICAgICAgICAgICAgICBwZXJmb3JtYW5jZSBpbmNsdWRpbmcgY29uZnVzaW9uIG1hdHJpY2VzLgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBTbGljZSB0aGUgZGF0YXNldCBhbmQgZXhwbG9yZSBtb2RlbCBwZXJmb3JtYW5jZSBieQogICAgICAgICAgICAgICAgICAgICAgICAgIHNsaWNlLgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZGlhbG9nPgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtc29ydC1ib3giPgogICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249InVuZm9sZC1tb3JlIiBjbGFzcz0icGVyZi1idXR0b24iIG9uLXRhcD0iZXhwYW5kQWxsUGVyZm9ybWFuY2UiIGFsdD0iZXhwYW5kIGFsbCBzbGljZXMiIHRpdGxlPSJFeHBhbmQgYWxsIHNsaWNlcyI+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBpY29uPSJ1bmZvbGQtbGVzcyIgY2xhc3M9InBlcmYtYnV0dG9uIiBvbi10YXA9ImNvbGxhcHNlQWxsUGVyZm9ybWFuY2UiIGFsdD0iY29sbGFwc2UgYWxsIHNsaWNlcyIgdGl0bGU9IkNvbGxhcHNlIGFsbCBzbGljZXMiPgogICAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItZHJvcGRvd24tbWVudSBsYWJlbD0iU29ydCBieSIgY2xhc3M9InRocmVzaG9sZC1kcm9wZG93biBwZXJmLXRhYmxlLXNvcnQtbWVudSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1saXN0Ym94IHNsb3Q9ImRyb3Bkb3duLWNvbnRlbnQiIHNlbGVjdGVkPSJ7e3NlbGVjdGVkRmVhdHVyZVNvcnR9fSIgYXR0ci1mb3Itc2VsZWN0ZWQ9Im5hbWUiPgogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9IltbZ2V0RmVhdHVyZVNvcnRCeShtb2RlbFR5cGUsIG11bHRpQ2xhc3MpXV0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0gbmFtZT0iW1tpdGVtXV0iPltbaXRlbV1dPC9wYXBlci1pdGVtPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItbGlzdGJveD4KICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtaGVhZGVyIj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWFycm93Ij48L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXZhbCI+RmVhdHVyZSBWYWx1ZTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtY291bnQiPkNvdW50PC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcyQ9IltbZ2V0UGVyZlRhYmxlTW9kZWxDbGFzcyhudW1Nb2RlbHMpXV0iPgogICAgICAgICAgICAgICAgICAgICAgTW9kZWwKICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWFjYyI+QWNjdXJhY3k8L2Rpdj4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZW50cmllcy1ob2xkZXIiPgogICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9IltbZmVhdHVyZVZhbHVlVGhyZXNob2xkc11dIiBhcz0iZmVhdHVyZVZhbHVlVGhyZXNob2xkIj4KICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzJD0iW1tnZXRQZXJmVGFibGVSb3dDbGFzcyhmZWF0dXJlVmFsdWVUaHJlc2hvbGQub3BlbmVkKV1dIiBkYXRhLWluZGV4JD0iW1tpbmRleF1dIj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWFycm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBjbGFzcyQ9IltbZ2V0RXhwYW5kQ29sbGFwc2VQZXJmSWNvbkNsYXNzKGZlYXR1cmVWYWx1ZVRocmVzaG9sZC5vcGVuZWQpXV0iIGljb249ImFycm93LWRyb3AtZG93biIgb24tdGFwPSJ0b2dnbGVQZXJmUm93Ij48L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdmFsIHBlcmYtdGFibGUtY2xpY2thYmxlIHBlcmYtdGFibGUtdGV4dC1lbnRyeSIgb24tdGFwPSJ0b2dnbGVQZXJmUm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0UHJpbnRhYmxlVmFsdWVfKGZlYXR1cmVWYWx1ZVRocmVzaG9sZCldXQogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtY291bnQgcGVyZi10YWJsZS1udW0tZW50cnkgcGVyZi10YWJsZS1jbGlja2FibGUgcGVyZi10YWJsZS10ZXh0LWVudHJ5IiBvbi10YXA9InRvZ2dsZVBlcmZSb3ciPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXRNdWx0aUNsYXNzRmVhdHVyZVZhbHVlQ291bnQoaW5mZXJlbmNlU3RhdHNfLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcyQ9IltbZ2V0UGVyZlRhYmxlTW9kZWxDbGFzcyhudW1Nb2RlbHMpXV0iIG9uLXRhcD0idG9nZ2xlUGVyZlJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e2ZlYXR1cmVWYWx1ZVRocmVzaG9sZC50aHJlc2hvbGR9fSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdGV4dC1lbnRyeSBwZXJmLXRhYmxlLWNsaWNrYWJsZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tnZXRNb2RlbE5hbWVfKGluZGV4KV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWFjYyBwZXJmLXRhYmxlLWNsaWNrYWJsZSIgb24tdGFwPSJ0b2dnbGVQZXJmUm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Int7ZmVhdHVyZVZhbHVlVGhyZXNob2xkLnRocmVzaG9sZH19Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS10ZXh0LWVudHJ5IHBlcmYtdGFibGUtbnVtLWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldE11bHRpQ2xhc3NBY2N1cmFjeU1vZGVsSW5kZXgoaW5mZXJlbmNlU3RhdHNfLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4LCBmZWF0dXJlVmFsdWVUaHJlc2hvbGQpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPGlyb24tY29sbGFwc2Ugb3BlbmVkPSJ7e2ZlYXR1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YXRyaXgiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Zi1jb25mdXNpb24tbWF0cml4PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L2lyb24tY29sbGFwc2U+CiAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Iltbc2hvdWxkU2hvd092ZXJhbGxUaHJlc2hvbGRlcl8oc2VsZWN0ZWRCcmVha2Rvd25GZWF0dXJlKV1dIj4KICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXJvdy1leHBhbmRlZCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1hcnJvdyI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iYXJyb3ctZHJvcC1kb3duIiBvbi10YXA9InRvZ2dsZVBlcmZSb3ciIGRpc2FibGVkPjwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS12YWwgcGVyZi10YWJsZS10ZXh0LWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIEFsbCBkYXRhcG9pbnRzCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1jb3VudCBwZXJmLXRhYmxlLW51bS1lbnRyeSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2dldE11bHRpQ2xhc3NGZWF0dXJlVmFsdWVDb3VudChpbmZlcmVuY2VTdGF0c18pXV0KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzJD0iW1tnZXRQZXJmVGFibGVNb2RlbENsYXNzKG51bU1vZGVscyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJ7e292ZXJhbGxUaHJlc2hvbGRzfX0iPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXRleHQtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0TW9kZWxOYW1lXyhpbmRleCldXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1hY2MiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tpbmZlcmVuY2VTdGF0c19dXSIgYXM9ImluZmVyZW5jZVN0YXQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXRleHQtZW50cnkgcGVyZi10YWJsZS1udW0tZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0TXVsdGlDbGFzc0FjY3VyYWN5TW9kZWxJbmRleChpbmZlcmVuY2VTdGF0c18sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXgpXV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lbnRyeS1leHBhbmRlZCBmbGV4LXJvdy1yZXZlcnNlIHNjcm9sbC14Ij4KICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW3Nob3VsZFNob3dPdmVyYWxsUHJDaGFydF8oc2VsZWN0ZWRMYWJlbEZlYXR1cmUsIHNlbGVjdGVkQnJlYWtkb3duRmVhdHVyZSwgaW5mZXJlbmNlcyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29uZi1tYXRyaXgtaG9sZGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImNvbmYtdGV4dCI+Q29uZnVzaW9uIG1hdHJpeDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tpbmZlcmVuY2VTdGF0c19dXSIgYXM9ImluZmVyZW5jZVN0YXQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGYtY29uZnVzaW9uLW1hdHJpeCBjb3VudHM9IltbZ2V0TXVsdGlDbGFzc0NvbmZNYXRyaXgoaW5mZXJlbmNlU3RhdHNfLCBpbmRleCldXSIgbGFiZWw9IltbZ2V0Q29uZnVzaW9uTWF0cml4TGFiZWwoaW5kZXgsIG51bU1vZGVscyldXSIgYmFja2dyb3VuZD0iW1tnZXRDb25mdXNpb25NYXRyaXhDb2xvcihpbmRleCldXSIgYWxsLWl0ZW1zPSJbW2FsbENvbmZNYXRyaXhMYWJlbHNdXSIgY2xhc3M9ImNvbmYtbWF0cml4Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Zi1jb25mdXNpb24tbWF0cml4PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tpc1JlZ3Jlc3Npb25fKG1vZGVsVHlwZSldXSIgcmVzdGFtcD4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS10aXRsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImZsZXgiPgogICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS10aXRsZSI+CiAgICAgICAgICAgICAgICAgICAgICAgIFtbZ2V0Tm9UaHJlc2hvbGRQZXJmVGFibGVUaXRsZShzZWxlY3RlZEJyZWFrZG93bkZlYXR1cmUsCiAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkU2Vjb25kQnJlYWtkb3duRmVhdHVyZSwKICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZVZhbHVlVGhyZXNob2xkcyldXQogICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaW5mby1vdXRsaW5lIiBjbGFzcz0iaW5mby1pY29uIHBlcmZvcm1hbmNlLWluZm8taWNvbiBuby1wYWRkaW5nIiBvbi10YXA9Im9wZW5EaWFsb2ciPgogICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgICAgIDxwYXBlci1kaWFsb2cgY2xhc3M9ImRpYWxvZy10ZXh0IiBob3Jpem9udGFsLWFsaWduPSJhdXRvIiB2ZXJ0aWNhbC1hbGlnbj0iYXV0byI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRpYWxvZy10aXRsZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgUmVncmVzc2lvbiBQZXJmb3JtYW5jZSBUYWJsZQogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICBTZXQgdGhlIGdyb3VuZCB0cnV0aCBmZWF0dXJlIHRvIGV4cGxvcmUgbW9kZWwKICAgICAgICAgICAgICAgICAgICAgICAgICBwZXJmb3JtYW5jZS4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgU2xpY2UgdGhlIGRhdGFzZXQgYW5kIGV4cGxvcmUgbW9kZWwgcGVyZm9ybWFuY2UgYnkKICAgICAgICAgICAgICAgICAgICAgICAgICBzbGljZS4KICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWRpYWxvZz4KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItZHJvcGRvd24tbWVudSBsYWJlbD0iU29ydCBieSIgY2xhc3M9InRocmVzaG9sZC1kcm9wZG93biBwZXJmLXRhYmxlLXNvcnQtbWVudSI+CiAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItbGlzdGJveCBzbG90PSJkcm9wZG93bi1jb250ZW50IiBzZWxlY3RlZD0ie3tzZWxlY3RlZEZlYXR1cmVTb3J0fX0iIGF0dHItZm9yLXNlbGVjdGVkPSJuYW1lIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tnZXRGZWF0dXJlU29ydEJ5KG1vZGVsVHlwZSwgbXVsdGlDbGFzcyldXSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0gbmFtZT0iW1tpdGVtXV0iPltbaXRlbV1dPC9wYXBlci1pdGVtPgogICAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1saXN0Ym94PgogICAgICAgICAgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtaGVhZGVyIj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWFycm93Ij48L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXZhbCI+RmVhdHVyZSBWYWx1ZTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtY291bnQiPkNvdW50PC9kaXY+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lcnJvciI+TWVhbiBlcnJvcjwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZXJyb3IiPk1lZGlhbiBlcnJvcjwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZXJyb3IiPk1lYW4gYWJzb2x1dGUgZXJyb3I8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWVycm9yIj5NZWRpYW4gYWJzb2x1dGUgZXJyb3I8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXNxLWVycm9yIj5NZWFuIHNxdWFyZWQgZXJyb3I8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLXNxLWVycm9yIj5NZWRpYW4gc3F1YXJlZCBlcnJvcjwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lbnRyaWVzLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tyZWdyZXNzaW9uRW50cmllc19dXSI+CiAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtYXJyb3ciPjwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtdmFsIHBlcmYtdGFibGUtdGV4dC1lbnRyeSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2l0ZW0ubmFtZV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1jb3VudCBwZXJmLXRhYmxlLW51bS1lbnRyeSBwZXJmLXRhYmxlLXRleHQtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tpdGVtLmNvdW50XV0KICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJwZXJmLXRhYmxlLWVycm9yIHBlcmYtdGFibGUtbnVtLWVudHJ5IHBlcmYtdGFibGUtdGV4dC1lbnRyeSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbW2Zvcm1hdEVycm9yKGl0ZW0ubWVhbkVycm9yKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lcnJvciBwZXJmLXRhYmxlLW51bS1lbnRyeSBwZXJmLXRhYmxlLXRleHQtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tmb3JtYXRFcnJvcihpdGVtLm1lZGlhbkVycm9yKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1lcnJvciBwZXJmLXRhYmxlLW51bS1lbnRyeSBwZXJmLXRhYmxlLXRleHQtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tmb3JtYXRFcnJvcihpdGVtLm1lYW5BYnNFcnJvcildXQogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtc3EtZXJyb3IgcGVyZi10YWJsZS1udW0tZW50cnkgcGVyZi10YWJsZS10ZXh0LWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZm9ybWF0RXJyb3IoaXRlbS5tZWRpYW5BYnNFcnJvcildXQogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InBlcmYtdGFibGUtZXJyb3IgcGVyZi10YWJsZS1udW0tZW50cnkgcGVyZi10YWJsZS10ZXh0LWVudHJ5Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtbZm9ybWF0RXJyb3IoaXRlbS5tZWFuU3F1YXJlZEVycm9yKV1dCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icGVyZi10YWJsZS1zcS1lcnJvciBwZXJmLXRhYmxlLW51bS1lbnRyeSBwZXJmLXRhYmxlLXRleHQtZW50cnkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgW1tmb3JtYXRFcnJvcihpdGVtLm1lZGlhblNxdWFyZWRFcnJvcildXQogICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InN0YXRzLXRhYiI+CiAgICAgICAgICAgICAgPGZhY2V0cy1vdmVydmlldyBpZD0ib3ZlcnZpZXciIHNlYXJjaC1zdHJpbmc9Int7ZmVhdHVyZVNlYXJjaFZhbHVlfX0iPjwvZmFjZXRzLW92ZXJ2aWV3PgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvaXJvbi1wYWdlcz4KICAgICAgICA8L2Rpdj4KICAgICAgPC9kaXY+CiAgICA8L2Rpdj4KICAgIDxzdHlsZSBpbmNsdWRlPSJkYXNoYm9hcmQtc3R5bGUiPjwvc3R5bGU+CiAgPC90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ICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuICFpbXBvcnRhbnQ7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVaKDApOwogICAgICB9CgogICAgICA6aG9zdChbdmVydGljYWxdKSB7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgfQoKICAgICAgOmhvc3QgOjpzbG90dGVkKCopIHsKICAgICAgICBmbGV4OiAxIDEgYXV0bzsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQoKICAgICAgOmhvc3QgPiAjc3BsaXR0ZXIgewogICAgICAgIGZsZXg6IG5vbmU7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHotaW5kZXg6IDE7CiAgICAgICAgb3ZlcmZsb3c6IHZpc2libGU7CiAgICAgICAgbWluLXdpZHRoOiA4cHg7CiAgICAgICAgbWluLWhlaWdodDogOHB4OwogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLWRpdmlkZXItY29sb3IsICNjY2MpOwogICAgICAgIGZpbGw6IHZhcigtLXByaW1hcnktYmFja2dyb3VuZC1jb2xvciwgI2ZmZik7CiAgICAgICAgQGFwcGx5IC0tdmFhZGluLXNwbGl0LWxheW91dC1zcGxpdHRlcjsKICAgICAgfQoKICAgICAgOmhvc3QoOm5vdChbdmVydGljYWxdKSkgPiAjc3BsaXR0ZXIgewogICAgICAgIGN1cnNvcjogZXctcmVzaXplOwogICAgICB9CgogICAgICA6aG9zdChbdmVydGljYWxdKSA+ICNzcGxpdHRlciB7CiAgICAgICAgY3Vyc29yOiBucy1yZXNpemU7CiAgICAgIH0KCiAgICAgICNoYW5kbGUsCiAgICAgICNzcGxpdHRlciA6OnNsb3R0ZWQoW3Nsb3Q9aGFuZGxlXSkgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDUwJ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YW0tY2hlY2tib3giPgogICAgICAgICAgICAgICAgICAgIFtbX2hwYXJhbU5hbWUoaHBhcmFtLmluZm8pXV0KICAgICAgICAgICAgICAgICAgPC9wYXBlci1jaGVja2JveD4KICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbaHBhcmFtLmZpbHRlci5kb21haW5EaXNjcmV0ZV1dIj4KICAgICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW2hwYXJhbS5maWx0ZXIuZG9tYWluRGlzY3JldGVdXSI+CiAgICAgICAgICAgICAgICAgICAgICA8cGFwZXItY2hlY2tib3ggY2hlY2tlZD0ie3tpdGVtLmNoZWNrZWR9fSIgY2xhc3M9ImRpc2NyZXRlLXZhbHVlLWNoZWNrYm94IiBvbi1jaGFuZ2U9Il9xdWVyeVNlcnZlciI+CiAgICAgICAgICAgICAgICAgICAgICAgIFtbX3ByZXR0eVByaW50KGl0ZW0udmFsdWUpXV0KICAgICAgICAgICAgICAgICAgICAgIDwvcGFwZXItY2hlY2tib3g+CiAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tocGFyYW0uZmlsdGVyLmludGVydmFsXV0iPgogICAgICAgICAgICAgICAgICAgIDxwYXBlci1pbnB1dCBsYWJlbD0iTWluIiB2YWx1ZT0ie3tocGFyYW0uZmlsdGVyLmludGVydmFsLm1pbi52YWx1ZX19IiBhbGxvd2VkX3BhdHRlcm49IlswLTkuZVwtXSIgb24tdmFsdWUtY2hhbmdlZD0iX3F1ZXJ5U2VydmVyIiBlcnJvci1tZXNzYWdlPSJJbnZhbGlkIGlucHV0IiBp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NvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogN3B4OwogICAgICB9CiAgICAgICNoeXBlcnBhcmFtZXRlcnMtbWV0cmljcy1zdGF0dXNlcyB7CiAgICAgICAgZmxleC1iYXNpczogNzAlOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAjaHlwZXJwYXJhbWV0ZXJzLW1ldHJpY3MgewogICAgICAgIGZsZXgtYmFzaXM6IDkwJTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KICAgICAgLmh5cGVycGFyYW1ldGVycyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KICAgICAgLm1ldHJpY3MgewogICAgICAgIGZsZXgtYmFzaXM6IGF1dG87CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICB9CiAgICAgIC5zdGF0dXNlcyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgI3NvcnRpbmctcGFnaW5nIHsKICAgICAgICBmbGV4LWJhc2lzOiAzMCU7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICB9CiAgICAgIC5zb3J0aW5nIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICAucGFnaW5nIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ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H0KCiAgICAgIDpob3N0KFttb2RlPXNjcm9sbF0pIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IGNvdmVyCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT1jb3Zlcl0pICNtYWluQ29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1oZWFkZXItcGFuZWwtY292ZXItY29udGFpbmVyOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIDpob3N0KFttb2RlPWNvdmVyXSkgI21haW5QYW5lbCB7CiAgICAgICAgcG9zaXRpb246IHN0YXRpYzsKICAgICAgfQoKICAgICAgLyoKICAgICAgICogbW9kZTogc3RhbmRhcmQKICAgICAgICovCiAgICAgIDpob3N0KFttb2RlPXN0YW5kYXJkXSkgI21haW5Db250YWluZXIgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zdGFuZGFyZC1jb250YWluZXI7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IHNlYW1lZAogICAgICAgKi8KICAgICAgOmhvc3QoW21vZGU9c2VhbWVkXSkgI21haW5Db250YWluZXIgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zZWFtZWQtY29udGFpbmVyOwogICAgICB9CgoKICAgICAgLyoKICAgICAgICogbW9kZTogd2F0ZXJmYWxsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT13YXRlcmZhbGxdKSAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsLXdhdGVyZmFsbC1jb250YWluZXI7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IHdhdGVyZmFsbC10YWxsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT13YXRlcmZhbGwtdGFsbF0pICNtYWluQ29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1oZWFkZXItcGFuZWwtd2F0ZXJmYWxsLXRhbGwtY29udGFpbmVyOwogICAgICB9CgogICAgICAjZHJvcFNoYWRvdyB7CiAgICAgICAgdHJhbnNpdGlvbjogb3BhY2l0eSAwLjVzOwogICAgICAgIGhlaWdodDogNnB4OwogICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDBweCA1cHggNnB4IC0zcHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zaGFkb3c7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KCiAgICAgICNkcm9wU2hhZG93Lmhhcy1zaGFkb3cgewogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgICNtYWluQ29udGFpbmVyID4gOjpzbG90dGVkKC5maXQpIHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZml0OwogICAgICB9CgogICAgPC9zdHlsZT4KCiAgICA8c2xvdCBpZD0iaGVhZGVyU2xvdCIgbmFtZT0iaGVhZGVyIj48L3Nsb3Q+CgogICAgPGRpdiBpZD0ibWFpblBhbmVsIj4KICAgICAgPGRpdiBpZD0ibWFpbkNvbnRhaW5lciIgY2xhc3MkPSJbW19jb21wdXRlTWFpbkNvbnRhaW5lckNsYXNzKG1vZGUpXV0iPgogICAgIC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PgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLWhlaWdodDogdmFyKC0tcGFwZXItdG9vbGJhci1oZWlnaHQsIDY0cHgpOwogICAgICAgIC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodDogdmFyKC0tcGFwZXItdG9vbGJhci1zbS1oZWlnaHQsIDU2cHgpOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIC1tb3otYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBoZWlnaHQ6IHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1oZWlnaHQpOwogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXBhcGVyLXRvb2xiYXItYmFja2dyb3VuZCwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci10b29sYmFyLWNvbG9yLCB2YXIoLS1kYXJrLXRoZW1lLXRleHQtY29sb3IpKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci10b29sYmFyOwogICAgICB9CgogICAgICA6aG9zdCguYW5pbWF0ZSkgewogICAgICAgIHRyYW5zaXRpb246IHZhcigtLXBhcGVyLXRvb2xiYXItdHJhbnNpdGlvbiwgaGVpZ2h0IDAuMThzIGVhc2UtaW4pOwogICAgICB9CgogICAgICA6aG9zdCgubWVkaXVtLXRhbGwpIHsKICAgICAgICBoZWlnaHQ6IGNhbGModmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLWhlaWdodCkgKiAyKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci10b29sYmFyLW1lZGl1bTsKICAgICAgfQoKICAgICAgOmhvc3QoLnRhbGwpIHsKICAgICAgICBoZWlna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AgLnRvb2xiYXItdG9vbHMgewogICAgICAgICAgaGVpZ2h0OiB2YXIoLS1jYWxjdWxhdGVkLXBhcGVyLXRvb2xiYXItc20taGVpZ2h0KTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgICN0b3BCYXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgLyogbWlkZGxlIGJhciAqLwogICAgICAjbWlkZGxlQmFyIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIDpob3N0KC50YWxsKSAjbWlkZGxlQmFyLAogICAgICA6aG9zdCgubWVkaXVtLXRhbGwpICNtaWRkbGVCYXIgewogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMCUpOwogICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDAlKTsKICAgICAgfQoKICAgICAgLyogYm90dG9tIGJhciAqLwogICAgICAjYm90dG9tQmFyIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1ha2UgZWxlbWVudHMgKGUuZy4gYnV0dG9ucykgcmVzcG9uZCB0byBtb3VzZS90b3VjaCBldmVudHMKICAgICAgICoKICAgICAgICogYC50b29sYmFyLXRvb2xzYCBkaXNhYmxlcyB0b3VjaCBldmVudHMgc28gbXVsdGlwbGUgdG9vbGJhcnMgY2FuIHN0YWNrIGFuZCBub3QKICAgICAgICogYWJzb3JiIGV2ZW50cy4gQWxsIGNoaWxkcmVuIG11c3QgaGF2ZSBwb2ludGVyIGV2ZW50cyByZS1lbmFibGVkIHRvIHdvcmsgYXMKICAgICAgICogZXhwZWN0ZWQuCiAgICAgICAqLwogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZCgqOm5vdChbZGlzYWJsZWRdKSkgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBhdXRvOwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZCgudGl0bGUpIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpczsKICAgICAgICBmb250LXNpemU6IDIwcHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsaW5lLWhlaWdodDogMTsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZmxleDsKICAgICAgfQoKICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoLnRpdGxlKSB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDU2cHg7CiAgICAgIH0KCiAgICAgIC50b29sYmFyLXRvb2xzID4gOjpzbG90dGVkKHBhcGVyLWljb24tYnV0dG9uICsgLnRpdGxlKSB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBUaGUgLS1wYXBlci10b29sYmFyLXRpdGxlIG1peGluIGlzIGFwcGxpZWQgaGVyZSBpbnN0ZWFkIG9mIGFib3ZlIHRvCiAgICAgICAqIGZpeCB0aGUgaXNzdWUgd2l0aCBtYXJnaW4tbGVmdCBiZWluZyBpZ25vcmVkIGR1ZSB0byBjc3Mgb3JkZXJpbmcuCiAgICAgICAqLwogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZCgudGl0bGUpIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci10b29sYmFyLXRpdGxlOwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZChwYXBlci1pY29uLWJ1dHRvbltpY29uPW1lbnVdKSB7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAyNHB4OwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZCguZml0KSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogYXV0bzsKICAgICAgICByaWdodDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICB3aWR0aDogYXV0bzsKICAgICAgICBtYXJnaW46IDA7CiAgICAgIH0KCiAgICAgIC8qIFRPRE8obm9tcyk6IFVudGlsIHdlIGhhdmUgYSBiZXR0ZXIgc29sdXRpb24gZm9yIGNsYXNzZXMgdGhhdCBkb24ndCB1c2UKICAgICAgICogL2RlZXAvIGNyZWF0ZSBvdXIgb3duLgogICAgICAgKi8KICAgICAgLnN0YXJ0LWp1c3RpZmllZCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LXN0YXJ0LWp1c3RpZmllZDsKICAgICAgfQoKICAgICAgLmNlbnRlci1qdXN0aWZpZWQgewogICAgICAgIEBhcHBseSAtLWxheW91dC1jZW50ZXItanVzdGlmaWVkOwogICAgICB9CgogICAgICAuZW5kLWp1c3RpZmllZCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWVuZC1qdXN0aWZpZWQ7CiAgICAgIH0KCiAgICAgIC5hcm91bmQtanVzdGlmaWVkIHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtYXJvdW5kLWp1c3RpZmllZDsKICAgICAgfQoKICAgICAgLmp1c3RpZmllZCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWp1c3RpZmllZDsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8ZGl2IGlkPSJ0b3BCYXIiIGNsYXNzJD0idG9vbGJhci10b29scyBbW19jb21wdXRlQmFyRXh0cmFDbG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taWYiIGlmPSJbW19pc051bWVyaWNDb2x1bW4oY29sdW1uLmluZGV4KV1dIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0iY29sdW1uIj4KICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb2x1bW4tdGl0bGUiPgogICAgICAgICAgICAgICAgW1tjb2x1bW4ubmFtZV1dCiAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPGRpdj4KICAgICAgICAgICAgICAgIDxwYXBlci1yYWRpby1ncm91cCBjbGFzcz0ic2NhbGUtcmFkaW8tZ3JvdXAiIHNlbGVjdGVkPSJ7e2NvbHVtbi5zY2FsZX19Ij4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBuYW1lPSJMSU5FQVIiPgogICAgICAgICAgICAgICAgICAgIExpbmVhcgogICAgICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gaWQ9ImxvZ1NjYWxlQnV0dG9uX1tbY29sdW1uLm5hbWVdXSIgbmFtZT0iTE9HIiBkaXNhYmxlZD0iW1shX2FsbG93TG9nU2NhbGUoY29sdW1uLCBzZXNzaW9uR3JvdXBzLiopXV0iPgogICAgICAgICAgICAgICAgICAgIExvZ2FyaXRobWljCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgICAgICA8cGFwZXItcmFkaW8tYnV0dG9uIG5hbWU9IlFVQU5USUxFIj4KICAgICAgICAgICAgICAgICAgICBRdWFudGlsZQogICAgICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWJ1dHRvbj4KICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tZ3JvdXA+CiAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICA8L3RlbXBsYXRlPgogICAgICA8L2Rpdj4KICAgIDwvZGl2PgoKICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CiAgICAgIC5jb250cm9sLXBhbmVsIHsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQogICAgICAuY29sdW1uIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiA1cHg7CiAgICAgICAgYm9yZGVyOiBzb2xpZCAxcHggZGFya2dyYXk7CiAgICAgICAgcGFkZGluZzogM3B4OwogICAgICB9CiAgICAgIC5jb2x1bW4tdGl0bGUgewogICAgICAgIC8qIEZpdCBldmVyeSB0aXRsZSBpbiBvbmUgbGluZSBzbyB0aGUgcmFkaW8gYm94ZXMgYWxpZ24gdmVydGljYWxseS4gKi8KICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICB9CiAgICAgIC5jb2x1bW5zLWNvbnRhaW5lciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICB9CiAgICAgIC5zY2FsZS1yYWRpby1ncm91cCBwYXBlci1yYWRpby1idXR0b24gewogICAgICAgIHBhZGRpbmc6IDJweDsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQogICAgICBwYXBlci1saXN0Ym94IHsKICAgICAgICBtYXgtaGVpZ2h0OiAxNWVtOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CgogIDxzY3JpcHQ+Ly9+fldFQlBBVEh+fi90Zi1ocGFyYW1zLXNjYWxlLWFuZC1jb2xvci1jb250cm9scy90Zi1ocGFyYW1zLXNjYWxlLWFuZC1jb2xvci1jb250cm9scy5odG1sLmpzClBvbH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hLnN0b3BQcm9wYWdhdGlvbigpKX19Owo8L3NjcmlwdD4KCjxkb20tbW9kdWxlIGlkPSJ2YWFkaW4tZ3JpZC1kYXRhLXByb3ZpZGVyLXRoZW1hYmlsaXR5LXN0eWxlcyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgoKICAgICAgLyogQW5pbSAqLwogICAgICBAa2V5ZnJhbWVzIHZhYWRpbi1ncmlkLXNwaW4tMzYwIHsKICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgICAgICAgfQogICAgICB9CiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyB2YWFkaW4tZ3JpZC1zcGluLTM2MCB7CiAgICAgICAgMTAwJSB7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgI3NwaW5uZXIgewogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHZhcigtLXByaW1hcnktY29sb3IsICMwM0E5RjQpOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTsKICAgICAgICBib3JkZXItcmlnaHQtY29sb3I6IHRyYW5zcGFyZW50OwogICAgICAgIGJvcmRlci10b3AtY29sb3I6IHRyYW5zcGFyZW50OwogICAgICAgIGNvbnRlbnQ6ICIiOwogICAgICAgIGhlaWdodDogMTZweDsKICAgICAgICBsZWZ0OiA1MCU7CiAgICAgICAgbWFyZ2luLWxlZnQ6IC04cHg7CiAgICAgICAgbWFyZ2luLXRvcDogLThweDsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiA1MCU7CiAgICAgICAgd2lkdGg6IDE2cHg7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICBAYXBwbHkoLS12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XMiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KCiAgICAgIEBrZXlmcmFtZXMgYXBwZWFyIHsKICAgICAgICB0byB7CiAgICAgICAgICBvcGFjaXR5OiAxOwogICAgICAgIH0KICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGUgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBhbmltYXRpb246IDFtcyBhcHBlYXI7CiAgICAgIH0KCiAgICAgIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKC13ZWJraXQtbWF4LWRldmljZS1waXhlbC1yYXRpbzogMSkgewogICAgICAgIDpob3N0IHsKICAgICAgICAgIHdpbGwtY2hhbmdlOiB0cmFuc2Zvcm07CiAgICAgICAgfQogICAgICB9CgogICAgICAjaXRlbXMgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgI2l0ZW1zIHsKICAgICAgICBib3JkZXItdG9wOiAwIHNvbGlkIHRyYW5zcGFyZW50OwogICAgICAgIGJvcmRlci1ib3R0b206IDAgc29saWQgdHJhbnNwYXJlbnQ7CiAgICAgIH0KCiAgICAgICNpdGVtcyA+IC52YWFkaW4tZ3JpZC1yb3cgewogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGUtYm9keSB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KCiAgICAgIHZhYWRpbi1ncmlkLXRhYmxlLWhlYWRlciAudmFhZGluLWdyaWQtY2VsbCwKICAgICAgdmFhZGluLWdyaWQtdGFibGUtZm9vdGVyIC52YWFkaW4tZ3JpZC1jZWxsIHsKICAgICAgICB0b3A6IDA7CiAgICAgIH0KCiAgICAgIC52YWFkaW4tZ3JpZC1jZWxsIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KCiAgICAgIC52YWFkaW4tZ3JpZC1jZWxsOm5vdChbZGV0YWlsc2NlbGxdKSB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAudmFhZGluLWdyaWQtY2VsbCA6OnNsb3R0ZWQodmFhZGluLWdyaWQtY2VsbC1jb250ZW50KSB7CiAgICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDsKICAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIC52YWFkaW4tZ3JpZC1jb2x1bW4tcmVzaXplLWhhbmRsZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBjdXJzb3I6IGNvbC1yZXNpemU7CiAgICAgICAgei1pbmRleDogMTsKICAgICAgfQoKICAgICAgLnZhYWRpbi1ncmlkLWNvbHVtbi1yZXNpemUtaGFuZGxlOjpiZWZvcmUgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBjb250ZW50OiAiIjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgd2lkdGg6IDM1cHg7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC01MCUpOwogICAgICB9CgogICAgICBbbGFzdGNvbHVtbl0gLnZhYWRpb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XBsYXRlPgo8L2RvbS1tb2R1bGU+Cgo8ZG9tLW1vZHVsZSBpZD0idmFhZGluLWdyaWQtdGFibGUtdGFibGUtc3R5bGVzIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0KFtpb3NdW2NvbHVtbi1yZXNpemluZ10pICNvdXRlcnNjcm9sbGVyIHsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAjZml4ZWRzaXplciwKICAgICAgI291dGVyc2l6ZXIgewogICAgICAgIGJvcmRlci10b3A6IDAgc29saWQgdHJhbnNwYXJlbnQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMCBzb2xpZCB0cmFuc3BhcmVudDsKICAgICAgfQoKICAgICAgI3RhYmxlIHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgfQoKICAgICAgI3RhYmxlW292ZXJmbG93LWhpZGRlbl0sCiAgICAgICNvdXRlcnNjcm9sbGVyW292ZXJmbG93LWhpZGRlbl0gewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIHZhYWRpbi1ncmlkLXNpemVyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgICNzaXplcndyYXBwZXIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB6LWluZGV4OiAtMTAwOwogICAgICB9CgogICAgICAjcmVvcmRlcmdob3N0IHsKICAgICAgICB2aXNpYmlsaXR5OiBoaWRkZW47CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIG9wYWNpdHk6IDAuNTsK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GxpdC1sYXlvdXQ+CiAgICA8L2Rpdj4KICAgIDxzdHlsZT4KICAgICAgLnBhbmUgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgLnNlY3Rpb24gewogICAgICAgIG1hcmdpbjogMTBweDsKICAgICAgfQogICAgICAjY29udHJvbHMgewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG1heC1oZWlnaHQ6IGZpdC1jb250ZW50OwogICAgICB9CiAgICAgICNwbG90IHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjdmFsdWVzIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDk1cHg7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjZGV0YWlscyB7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtYmFzaXM6IGF1dG87CiAgICAgICAgaGVpZ2h0OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgbWF4LWhlaWdodDogZml0L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lndXJhdGlvbj0iW1tjb25maWd1cmF0aW9uXV0iIHNlc3Npb24tZ3JvdXBzPSJbW3Nlc3Npb25Hcm91cHNdXSI+CiAgICAgICAgICA8L3RmLWhwYXJhbXMtc2NhdHRlci1wbG90LW1hdHJpeC12aWV3PgogICAgICAgIDwvZGl2PgogICAgICA8L2lyb24tcGFnZXM+CiAgICA8L3BhcGVyLWhlYWRlci1wYW5lbD4KCiAgICA8c3R5bGU+CiAgICAgIC50YWItdmlldyB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CiAgICAgIC50YWItYmFyIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoCiAgICAgICAgICAtLXRiLXRvb2xiYXItYmFja2dyb3VuZC1jb2xvciwKICAgICAgICAgIHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpCiAgICAgICAgKTsKICAgICAgfQogICAgICAudGFiIHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgcGFwZXItdGFicyB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICAtLXBhcGVyLXRhYnMtc2VsZWN0aW9uLWJhci1jb2xvcjogd2hpdGU7CiAgICAgICAgLS1wYXBlci10YWJzLWNvbnRlbnQ6IHsKICAgICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkOwogICAgICAgIH0KICAgICAgfQogICAgICB0Zi1ocGFyYW1zLXRhYmxlLXZpZXcgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQogICAgICAuaGVscC1hbmQtZmVlZGJhY2sgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OyAvKiBFbnN1cmUgdGhhdCBpY29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bnRhaW5lciIgb24tY2FtZXJhLXBvc2l0aW9uLWNoYW5nZT0iX29uQ2FtZXJhUG9zaXRpb25DaGFuZ2VkIj4KICAgICAgICAgICAgICAgIDwvdGYtbWVzaC1sb2FkZXI+CiAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgPC90Zi1jYXRlZ29yeS1wYWdpbmF0ZWQtdmlldz4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgPC9kaXY+CiAgICA8L3RmLWRhc2hib2FyZC1sYXlvdXQ+CgogICAgPHN0eWxlIGluY2x1ZGU9ImRhc2hib2FyZC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgLm5vLWRhdGEtd2FybmluZyB7CiAgICAgICAgbWF4LXdpZHRoOiA1NDBweDsKICAgICAgICBtYXJnaW46IDgwcHggYXV0byAwIGF1dG87CiAgICAgIH0KICAgICAgcGFwZXItcmFkaW8tYnV0dG9uIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwYWRkaW5nOiA1cHg7CiAgICAgIH0KICAgICAgLnNpZGViYXItc2VjdGlvbiBoMy50aXRsZSB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWdyZXktODAwKTsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgZm9udC13ZWlnaHQ6IG5vcm1hbDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICB9CgogICAgICAucnVucy1zZWxlY3RvciB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICB9CgogICAgICB0Zi1ydW5zLXNlbGVjdG9yIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CgogICAgICAudmlldy1jb250cm9sIHsKICAgICAgICBkaXNwbGF5OiBibG9jayAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAudmlldy1jb250cm9sIGgzL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FpbGVkIHRvIGxvYWQgdGhlIHNldCBvZiBhY3RpdmUgZGFzaGJvYXJkcy48L2gzPgogICAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgICAgVGhpcyBjYW4gb2NjdXIgaWYgdGhlIFRlbnNvckJvYXJkIGJhY2tlbmQgaXMgbm8gbG9uZ2VyIHJ1bm5pbmcuCiAgICAgICAgICAgICAgICBQZXJoYXBzIHRoaXMgcGFnZSBpcyBjYWNoZWQ/CiAgICAgICAgICAgICAgCgogICAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgICAgSWYgeW91IHRoaW5rIHRoYXQgeW914oCZdmUgZml4ZWQgdGhlIHByb2JsZW0sIGNsaWNrIHRoZSByZWxvYWQKICAgICAgICAgICAgICAgIGJ1dHRvbiBpbiB0aGUgdG9wLXJpZ2h0LgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW2F1dG9SZWxvYWRFbmFibGVkXV0iPgogICAgICAgICAgICAgICAgICBXZeKAmWxsIHRyeSB0byByZWxvYWQgZXZlcnkKICAgICAgICAgICAgICAgICAgW1thdXRvUmVsb2FkSW50ZXJ2YWxTZWNzXV0mbmJzcDtzZWNvbmRzIGFzIHdlbGwuCiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgIAoKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIDxpPkxhc3QgcmVsb2FkOiBbW19sYXN0UmVsb2FkVGltZV1dPC9pPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19kYXRhTG9jYXRpb25dXSI+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+PHA+CiAgICAgICAgICAgICAgICAgICAgPGk+TG9nIGRpcmVjdG9yeToKICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGlkPSJkYXRhX2xvY2F0aW9uIj5bW19kYXRhTG9jYXRpb25dXTwvc3Bhbj48L2k+CiAgICA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hbmRfdGVuc29yYm9hcmQiPlRlbnNvckJvYXJkIHR1dG9yaWFsPC9hPi4KICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIElmIHlvdSB0aGluayBUZW5zb3JCb2FyZCBpcyBjb25maWd1cmVkIHByb3Blcmx5LCBwbGVhc2Ugc2VlCiAgICAgICAgICAgICAgICA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3Jib2FyZC9ibG9iL21hc3Rlci9SRUFETUUubWQjbXktdGVuc29yYm9hcmQtaXNudC1zaG93aW5nLWFueS1kYXRhLXdoYXRzLXdyb25nIj50aGUgc2VjdGlvbiBvZiB0aGUgUkVBRE1FIGRldm90ZWQgdG8gbWlzc2luZyBkYXRhIHByb2JsZW1zPC9hPgogICAgICAgICAgICAgICAgYW5kIGNvbnNpZGVyIGZpbGluZyBhbiBpc3N1ZSBvbiBHaXRIdWIuCiAgICAgICAgICAgICAgCgogICAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgICAgPGk+TGFzdCByZWxvYWQ6IFtbX2xhc3RSZWxvYWRUaW1lXV08L2k+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2RhdGFMb2NhdGlvbl1dIj4KICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT48cD4KICAgICAgICAgICAgICAgICAgICA8aT5EYXRhIGxvY2F0aW9uOgogICAgICAgICAgICAgICAgICAgICAgPHNwYW4gaWQ9ImRhdGFfbG9jYXRpb24iPltbX2RhdGFMb2NhdGlvbl1dPC9zcGFuPjwvaT4KICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19zaG93Tm9TdWNoRGFzaGJvYXJkTWVzc2FnZV1dIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0id2FybmluZy1tZXNzYWdlIj4KICAgICAgICAgICAgICA8aDM+CiAgICAgICAgICAgICAgICBUaGVyZeKAmXMgbm8gZGFzaGJvYXJkIGJ5IHRoZSBuYW1lIG9mCiAgICAgICAgICAgICAgICDigJw8dHQ+W1tfc2VsZWN0ZWREYXNoYm9hcmRdXTwvdHQ+LuKAnQogICAgICAgICAgICAgIDwvaDM+CiAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19hY3RpdmVEYXNoYm9hcmRzTG9hZGVkXV0iPgogICAgICAgICAgICAgICAgPHA+WW91IGNhbiBzZWxlY3QgYSBkYXNoYm9hcmQgZnJvbSB0aGUgbGlzdCBhYm92ZS48L3RlbXBsYXRlPgoKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIDxpPkxhc3QgcmVsb2FkOiBbW19sYXN0UmVsb2FkVGltZV1dPC9pPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19kYXRhTG9jYXRpb25dXSI+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+PHA+CiAgICAgICAgICAgICAgICAgICAgPGk+RGF0YSBsb2NhdGlvbjoKICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGlkPSJkYXRhX2xvY2F0aW9uIj5bW19kYXRhTG9jYXRpb25dXTwvc3Bhbj48L2k+CiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaWQ9ImRhc2hib2FyZHMtdGVtcGxhdGUiIGl0ZW1zPSJbW19kYXNoYm9hcmREYXRhXV0iIGFzPSJkYXNoYm9hcmREYXR1bSI+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9ImRhc2hib2FyZC1jb250YWluZXIiIGRhdGEtZGFzaGJvYXJkJD0iW1tkYXNoYm9hcmREYXR1bS5wbHVnaW5dXSIgZGF0YS1zZWxlY3RlZCQ9IltbX3NlbGVjdGVkU3RhdHVzKF9zZWxlY3RlZERhc2hib2FyZCwgZGFzaGJvYXJkRGF0dW0ucGx1Z2luKV1dIj4KICAgICAgICAgICAgICAKICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgIDwvZGl2PgogICAgICA8L2Rpdj4KICAgIDwvcGFwZXItaGVhZGVyLXBhbmVsPgoKICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTEwMCk7CiAgICAgIH0KCiAgICAgICN0b29sYmFyIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoCiAgICAgICAgICAtLXRiLXRvb2xiYXItYmFja2dyb3VuZC1jb2xvciwKICAgICAgICAgIHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpCiAgICAgICAgKTsKICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgfQoKICAgICAgLnRvb2xiYXItdGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMjBweDsKICAgICAgICBtYXJnaW4tbGVmdDogMTBweDsKICAgICAgICB0ZXh0LXJlbmRlcmluZzogb3B0aW1pemVMZWdpYmlsaXR5OwogICAgICAgIGxldHRlci1zcGFjaW5nOiAtMC4wMjVlbTsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGRpc3BsYXk6IHZhcigtLXRiLXRvb2xiYXItdGl0bGUtZGlzcGxheSwgYmxvY2spOwogICAgICB9CgogICAgICAudG9vbGJhci1tZXNzYWdlIHsKICAgICAgICBvcGFjaXR5OiAwLjc7CiAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgIH0KCiAgICAgIHBhcGVyLXRhYnMgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgLS1wYXBlci10YWJzLXNlbGVjdGlvbi1iYXItY29sb3I6IHdoaXRlOwogICAgICAgIC0tcGFwZXItdGFicy1jb250ZW50OiB7CiAgICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgICAgfQogICAgICB9CgogICAgICBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1jb2xvcjogcmdiYSgyNTUsIDI1NSwgMjU1LCAwLjgpOwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWZvY3VzLWNvbG9yOiB3aGl0ZTsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC1jb2xvcjogd2hpdGU7CiAgICAgICAgLS1wYXBlci1kcm9wZG93bi1tZW51LWljb246IHsKICAgICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1kcm9wZG93bi1tZW51LWlucHV0OiB7CiAgICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWxhYmVsOiB7CiAgICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgfQogICAgICB9CgogICAgICBwYXBlci1kcm9wZG93bi1tZW51IHBhcGVyLWl0ZW0gewogICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgIH0KCiAgICAgICNpbmFjdGl2ZS1kYXNoYm9hcmRzLW1lbnUgewogICAgICAgIC0tcGFwZXItbGlzdGJveC1iYWNrZ3JvdW5kLWNvbG9yOiB2YXIoCiAgICAgICAgICAtLXRiLXRvb2xiYXItYmFja2dyb3VuZC1jb2xvciwKICAgICAgICAgIHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpCiAgICAgICAgKTsKICAgICAgICAtLXBhcGVyLWxpc3Rib3gtY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAuZ2xvYmFsLWFjdGlvbnMgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OyAvKiBFbnN1cmUgdGhhdCBpY29ucyBzdGF5IGFsaWduZWQgKi8KICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLmdsb2JhbC1hY3Rpb25zIGEgewogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgI3Rvb2xiYXItY29udGVudCB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZm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WWwuZ2V0TGltaXQoKX0sX3BhZ2luYXRpb25MaW1pdFZhbGlkYXRlKGEpe2EudGFyZ2V0LnZhbGlkYXRlKCl9LF9wYWdpbmF0aW9uTGltaXRDaGFuZ2VkKGEpe2E9TnVtYmVyLnBhcnNlSW50KGEudGFyZ2V0LnZhbHVlLDEwKTthPT09K2EmJjA8YSYmWWwuc2V0TGltaXQoYSl9fSk7PC9zY3JpcHQ+CjwvZG9tLW1vZHVsZT4KCjxib2R5PgogIDx0Zi10ZW5zb3Jib2FyZCB1c2UtaGFzaCBicmFuZD0iVGVuc29yQm9hcmQiPjwvdGYtdGVuc29yYm9hcmQ+Cgo=", "ok": true, "headers": [["content-type", "text/html; charset=utf-8"]], "status": 200, "status_text": ""}, "http://localhost:6006/font-roboto/oMMgfZMQthOryQo9n22dcuvvDin1pK8aKteLpeZ5c0A.woff2": {"data": "d09GMgABAAAAACn8AA4AAAAAUjgAACmjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmUAcg0oGYACGTBEMCu1810YLg14AATYCJAOHNgQgBYJ0ByAbL0RFB2LYOGCA7DduwB2DjQOQz3hJ9n+ZwI0hWB/YxYSYMBRSFENBsWqrAkWbJBHpUKamYBECLd7YUy2OVYvlKX1dMf05+T/7LtU4wMKUW3v6cz1MLF0FGyHJLEG01r/VMHufgpZJIoGKBHQMKsYkFpgU4tsDmtv9xsaIGoiNiIJRtJKSElLSIdGjQuiRIypl0JtBlKISJSqZZnH/Oq0ZWaYZyYoPCFpukb7+N+xuwk6iBRZMI8WdlLQH1F3R7l157zoCyXjA9AD36nWBrP07PZhwgBLSeMnLEQ4VqJsqlv8siGuabsED3LeKFnxrugO3hMah9NJJ/ipRkvNo0bWSH6xvN8TX2qedvrqte1s1/yDEW6dCUB4tkIxQEeoDTSYMiiaAuBEGJLK/dSEgoaIi0Ua4CGXj/7vX2aa3YewLW7L1Fw6EC+fgxB/7NWWpMKZaUyFMhaxEyArLmA7J/62Zdje5MjlgYyvcOTf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FEuP0M8z0krZRXo2dGVIpgrQZACxNubaIRKbn2lHsmgpZjlM0jyXZTtIjE+SYmfuBjMu9EnBAg0J7SSxU5jouEQW2Q64r7UQXTsi1rKzExqu1A+X6jlOatkw28nEF02OfXiKPKIS2pJjVzEZbbh3ISyxJ723GZchu0mFSaVLr173282DSdX1rOok5z8RfYdVfiCXH0hnhKAmyqsd8skpPf7wplGBVT7cT4/7Y57eJEJrEuNezyksAufPrcCIunfeVFXdJ2HqpdFkoZ1KqYlMukBm/Ja/KOWwUGBVA2qzUUANCRoyyqbbUiKXJc7FH9nO5zSHfEcye4+oFvHDWEbe54KHMapyEvmBaIey6DQ17eZMJ5Ccps8yPphAoIU0opigjziaqITS2h0IHAZOJg0ztFwK+wTcwrzSCwDrvIzxyBPmHfMMp0JDJH6JwCfgTFgBHAL+5BPz43dD42VNaMz8iDuhIZIjIvBGKEtHgB+QcNKFyZXG6iChNoVd1bfMfWhI0wE4A1wvQzAyX4bCzEmN3qWmgWUYfPyXYZ1S1F1muqjkufMQgMCRPQfeuAniJ9At5KbEXeAZLuxWVeHGxnWjrMG7WLQ1mFfOaLe47BD4atnWdUN2Z13y3lDgbc+HC6sgr7+IwIsjc7PHX98u5CYJ6wVv6hZ2bQUWvb15EHej0/q5rrPikXjbcGDnOhsJmr8hO7LRvBu4V/sNalTIU6RBh6Jrts38i4GTzfts3QMAAAA=", "ok": true, "headers": [["content-type", "application/octet-stream"]], "status": 200, "status_text": ""}, "http://localhost:6006/font-roboto/RxZJdnzeo3R5zSexge8UUZBw1xU1rKptJj_0jans920.woff2": {"data": "d09GMgABAAAAACokAA4AAAAAUkQAACnNAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmXocg0oGYACGTBEMCu1A1wwLg14AATYCJAOHNgQgBYMAByAbO0QF3Bhn2DiAgX12b1EEGwcBhTGLomxQFmT/lwnmGE77wayn0NBAJAPXITeLlQAVKYYKjM1mpr7CgS0HNgpkY1bqRLvLsXy3dA8XPXqvM/yN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InPkG3P3JiRAlkIUK83VE+Guys6hlxhiJAQu2q5B9cEhhYPBIf8/JTwAA", "ok": true, "headers": [["content-type", "application/octet-stream"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/plugins_listing": {"data": "eyJzY2FsYXJzIjogeyJkaXNhYmxlX3JlbG9hZCI6IGZhbHNlLCAiZW5hYmxlZCI6IHRydWUsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJzY2FsYXJzIiwgImxvYWRpbmdfbWVjaGFuaXNtIjogeyJ0eXBlIjogIkNVU1RPTV9FTEVNRU5UIiwgImVsZW1lbnRfbmFtZSI6ICJ0Zi1zY2FsYXItZGFzaGJvYXJkIn19LCAiY3VzdG9tX3NjYWxhcnMiOiB7ImRpc2FibGVfcmVsb2FkIjogZmFsc2UsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJDdXN0b20gU2NhbGFycyIsICJsb2FkaW5nX21lY2hhbmlzbSI6IHsidHlwZSI6ICJDVVNUT01fRUxFTUVOVCIsICJlbGVtZW50X25hbWUiOiAidGYtY3VzdG9tLXNjYWxhci1kYXNoYm9hcmQifX0sICJpbWFnZXMiOiB7ImRpc2FibGVfcmVsb2FkIjogZmFsc2UsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJpbWFnZXMiLCAibG9hZGluZ19tZWNoYW5pc20iOiB7InR5cGUiOiAiQ1VTVE9NX0VMRU1FTlQiLCAiZWxlbWVudF9uYW1lIjogInRmLWltYWdlLWRhc2hib2FyZCJ9fSwgImF1ZGlvIjogeyJkaXNhYmxlX3JlbG9hZCI6IGZhbHNlLCAiZW5hYmxlZCI6IGZhbHNlLCAicmVtb3ZlX2RvbSI6IGZhbHNlLCAidGFiX25hbWUiOiAiYXVkaW8iLCAibG9hZGluZ19tZWNoYW5pc20iOiB7InR5cGUiOiAiQ1VTVE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kIjogZmFsc2UsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJXaGF0LUlmIFRvb2wiLCAibG9hZGluZ19tZWNoYW5pc20iOiB7InR5cGUiOiAiQ1VTVE9NX0VMRU1FTlQiLCAiZWxlbWVudF9uYW1lIjogInRmLWludGVyYWN0aXZlLWluZmVyZW5jZS1kYXNoYm9hcmQifX0sICJocGFyYW1zIjogeyJkaXNhYmxlX3JlbG9hZCI6IGZhbHNlLCAiZW5hYmxlZCI6IGZhbHNlLCAicmVtb3ZlX2RvbSI6IGZhbHNlLCAidGFiX25hbWUiOiAiaHBhcmFtcyIsICJsb2FkaW5nX21lY2hhbmlzbSI6IHsidHlwZSI6ICJDVVNUT01fRUxFTUVOVCIsICJlbGVtZW50X25hbWUiOiAidGYtaHBhcmFtcy1kYXNoYm9hcmQifX0sICJtZXNoIjogeyJkaXNhYmxlX3JlbG9hZCI6IGZhbHNlLCAiZW5hYmxlZCI6IGZhbHNlLCAicmVtb3ZlX2RvbSI6IGZhbHNlLCAidGFiX25hbWUiOiAibWVzaCIsICJsb2FkaW5nX21lY2hhbmlzbSI6IHsidHlwZSI6ICJDVVNUT01fRUxFTUVOVCIsICJlbGVtZW50X25hbWUiOiAibWVzaC1kYXNoYm9hcmQifX0sICJwcm9qZWN0b3IiOiB7ImRpc2FibGVfcmVsb2FkIjogdHJ1ZSwgImVuYWJsZWQiOiB0cnVlLCAicmVtb3ZlX2RvbSI6IGZhbHNlLCAidGFiX25hbWUiOiAicHJvamVjdG9yIiwgImxvYWRpbmdfbWVjaGFuaXNtIjogeyJ0eXBlIjogIklGUkFNRSIsICJtb2R1bGVfcGF0aCI6ICIvZGF0YS9wbHVnaW4vcHJvamVjdG9yL2luZGV4LmpzIn19fQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/environment": {"data": "eyJkYXRhX2xvY2F0aW9uIjogIm15RE5OIiwgIndpbmRvd190aXRsZSI6ICIifQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/runs?experiment=": {"data": "WyIuIl0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/experiments": {"data": "W10=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/plugin/scalars/tags?experiment=": {"data": "eyIuIjogeyJsb3NzXzIiOiB7ImRpc3BsYXlOYW1lIjogImxvc3NfMiIsICJkZXNjcmlwdGlvbiI6ICIifSwgImFjY3VyYWN5IjogeyJkaXNwbGF5TmFtZSI6ICJhY2N1cmFjeSIsICJkZXNjcmlwdGlvbiI6ICIifSwgImxvc3NfMSI6IHsiZGlzcGxheU5hbWUiOiAibG9zc18xIiwgImRlc2NyaXB0aW9uIjogIiJ9fX0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/plugin/scalars/scalars?tag=accuracy&run=.&experiment=": {"data": "W1sxNTg3NTY3ODM4LjQzOTk4MjcsIDAsIDAuNzY2NzAwMDI5MzczMTY5XSwgWzE1ODc1Njc4NDEuNjQwMzg5NCwgMSwgMC44NDU3MDAwMjU1NTg0NzE3XSwgWzE1ODc1Njc4NDQuNzU2NjYyNCwgMiwgMC44NjkwMDAwMTc2NDI5NzQ5XSwgWzE1ODc1Njc4NDcuODg5MTE0NiwgMywgMC44ODMzMDAwMDYzODk2MTc5XSwgWzE1ODc1Njc4NTEuMDA1Njg3LCA0LCAwLjg5MDUwMDAwOTA1OTkwNl0sIFsxNTg3NTY3ODU0LjA3MjI4MiwgNSwgMC44OTczMDAwMDQ5NTkxMDY0XSwgWzE1ODc1Njc4NTcuMjA0OTMzMiwgNiwgMC45MDIxMDAwMjY2MDc1MTM0XSwgWzE1ODc1Njc4NjAuMzEyNjYzOCwgNywgMC45MDYwOTk5NzUxMDkxMDAzXSwgWzE1ODc1Njc4NjM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0MDMsIDk1LCAwLjk2MTc5OTk3OTIwOTg5OTldLCBbMTU4NzU2ODU4Mi44MjM4Mzg1LCA5NiwgMC45NjEzOTk5NzI0Mzg4MTIzXSwgWzE1ODc1Njg1ODUuOTM2OTc1LCA5NywgMC45NjIxOTk5ODU5ODA5ODc1XSwgWzE1ODc1Njg1ODkuMTgzNjIzLCA5OCwgMC45NjI0OTk5NzYxNTgxNDIxXSwgWzE1ODc1Njg1OTIuMjc1Mjg1LCA5OSwgMC45NjI1OTk5OTI3NTIwNzUyXV0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/plugin/scalars/scalars?tag=loss_1&run=.&experiment=": {"data": "W1sxNTg3NTY4MjY5LjQ1ODIxNjcsIDAsIDEuMTE4NzQwNTU4NjI0MjY3Nl0sIFsxNTg3NTY4MjczLjA5MjczOTgsIDEsIDAuNzEyMTIyMTQyMzE0OTEwOV0sIFsxNTg3NTY4Mjc2LjcxMjgzODQsIDIsIDAuNDk2MzM5NDk5OTUwNDA4OTRdLCBbMTU4NzU2ODI4MC4wOTA1ODc0LCAzLCAwLjQ5NTgyOTA0NTc3MjU1MjVdLCBbMTU4NzU2ODI4My4yNzcyNzQ0LCA0LCAwLjM0OTY4NzMzNzg3NTM2NjJdLCBbMTU4NzU2ODI4Ni42MTkyNjIsIDUsIDAuNjIyMTUxOTcwODYzMzQyM10sIFsxNTg3NTY4Mjg5Ljc3MzMxNzMsIDYsIDAuMjQwODgxNTYyMjMyOTcxMl0sIFsxNTg3NTY4MjkzLjA1NzcyMDQsIDcsIDAuNDA5NDE5ODM0NjEzODAwMDVdLCBbMTU4NzU2ODI5Ni4zMDM3MjQ4LCA4LCAwLjM3NDMzMjc4NTYwNjM4NDNdLCBbMTU4NzU2ODI5OS40NjgzNDU5LCA5LCAwLjM0MDg5NTY1Mjc3MDk5NjFdLCBbMTU4NzU2ODMwMi43Nzc1ODU3LCAxMCwgMC40Mzg0MDQwODMyNTE5NTMxX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0sIFsxNTg3NTY4NTc2LjM1MzY4NzUsIDk0LCAwLjIwODUyNDQ4MDQ2MjA3NDI4XSwgWzE1ODc1Njg1NzkuNTA3NjU4NSwgOTUsIDAuMTEyNDM5NDUzNjAxODM3MTZdLCBbMTU4NzU2ODU4Mi44MjM3NjUzLCA5NiwgMC4xNTU1MDIzMzQyMzcwOTg3XSwgWzE1ODc1Njg1ODUuOTM2OSwgOTcsIDAuMDk4MjMyODU3ODgyOTc2NTNdLCBbMTU4NzU2ODU4OS4xODM1MjU4LCA5OCwgMC4wOTAzNzgyMDk5NDg1Mzk3M10sIFsxNTg3NTY4NTkyLjI3NTIxLCA5OSwgMC4xMDM5ODcyNTQyMDIzNjU4OF1d", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/font-roboto/d-6IYplOFocCacKzxwXSOJBw1xU1rKptJj_0jans920.woff2": {"data": "d09GMgABAAAAACoMAA4AAAAAUsQAACm2AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmXocg0oGYACGTBEMCu5A1nULg14AATYCJAOHNgQgBYJ+ByAbIkSzoqzwsjiKkj2aj6JicZf9lwnmGDrzUL5ooaWgICnvqxcvLU1UUm052dq0PPEbkDL7t7A4c3dKponrEu8IjX2Sy0PoX9DLJNk9AHsAO6uC0MkqVZH48wM/t95fEVEDtBGpESMixmDAqNgYMLpGpmSIhFWEFSiIoIiFRIli3p2nHuksZyTDeXbXshPuAKlMlW53Zbg7HZue7/8N06wSlnxFE+rSAhYVkmR44D5FCo4yXQlcOX/hZsHaQuZYMcQ8fkufGldr+uACwqKNzkSGPbR7G1BVUZ3KOl0lGRYOQuDT2zTbfVpvBF5fojuuchvk6YE73cxV6dJS//W/1qu/X2vQGiTZDshHKx3JCpgmIwjIGl8FXKUCLIGkY12AuaMOqUzRXNWnLQmqS1HWqdIFnu/vG79/2raDcUAPMPAMtn38TkB/ouZjIAEmGGgThZmsWZkYwdIwtsYh6+N7ZqYra0NPaN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yjv6DYRYi2L1DtJevQkVT9QKyBp2ZSqtWQ6KXRbJi1bFFNiUnLYdJIrOINmVbFvKUICzkRIZydZyEq5GSMPopqqWiNxcRHym+Nbe4rQzvO4aTXbFzA09+TboJEGgbQ84FtoodK4GD45VHoKuhhIqs1CWxTAnsx52aDMzCQ1dmAWq/xGVlwq2WK6l+wbzQZbs2GgoEqJaPZ8YhftPSXXCX6BbePSuo226ApjX0C4peCOiCh/gVyHxc8EuM6SuRTfzEf50M1I8Y9l3d7I79zQ8Foiklr4toqGbY8Jq1YdKhijSf4jbWQ6k+pcVJifSm+80LjSEpEeSuszCOW/5lUQ8xqzqrqMIl3Cvq2/MjACDqnWkU2fiG0Bh4tRk17Q7itkxlHJFPiP1oogCVUQIA5LKAOS800frEEAeawsNSLpqmGqSaT3Tl3tFR0SbXFdGUYimhesYS9Odo0rKnCmMZMHNUT1UxxE1HSTx4mh2oOeLC82drUrJ3CmDZF2GuFATQ0BPhBBVEOsBCA6UBArQgHAaYQAg1pHAB2AsddEdx8dkVhR98VTVTMoTG7Yh1QyHE+ZeSh8nJ1i6koTMli0IQKEwdPjQpVp+FZiiLwMwTv2VqkQMrc+AZGs4uHiHXiwWI1HiPBxoMo3+JRAhhxMFmZIShrxveFm088Fg0isn0oL1CnRTeYkVp+7mO07cw4TETHnZxYTZk/Jn+BwhKuzE6MUMdtNk2gYJFB3pNYx9mxZsqcAxJzx1ptUvlZcFlJF2QG", "ok": true, "headers": [["content-type", "application/octet-stream"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/plugin/graphs/info": {"data": "eyIuIjogeyJydW4iOiAiLiIsICJ0YWdzIjoge30sICJydW5fZ3JhcGgiOiB0cnVlfX0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "http://localhost:6006/data/plugin/graphs/graph?run=.&conceptual=false": {"data": "bm9kZSB7CiAgbmFtZTogIlgiCiAgb3A6ICJQbGFjZWhvbGRlciIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogNzg0CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIHNoYXBlIHsKICAgICAgICBkaW0gewogICAgICAgICAgc2l6ZTogLTEKICAgICAgICB9CiAgICAgICAgZGltIHsKICAgICAgICAgIHNpemU6IDc4NAogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAieSIKICBvcDogIlBsYWNlaG9sZGVyIgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIHVua25vd25fcmFuazogdHJ1ZQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQ2NAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXBlIgogICAgdmFsdWUgewogICAgICBzaGFwZSB7CiAgICAgICAgdW5rbm93bl9yYW5rOiB0cnVlCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjEvdHJ1bmNhdGVkX25vcm1hbC9zaGFwZSIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDIKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfSU5UMzIKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICB0ZW5zb3JfY29udGVudDogIlwwMjBcMDAzXDAwMFwwMDAsXDAwMVwwMDBcMDAwIgogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL3RydW5jYXRlZF9ub3JtYWwvbWVhbiIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfRkxPQVQKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgIH0KICAgICAgICBmbG9hdF92YWw6IDAuMAogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL3RydW5jYXRlZF9ub3JtYWwvc3RkZGV2IgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9GTE9BVAogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgfQogICAgICAgIGZsb2F0X3ZhbDogMC4wNzE0Mjg1NzQ2MjE2Nzc0CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjEvdHJ1bmNhdGVkX25vcm1hbC9UcnVuY2F0ZWROb3JtYWwiCiAgb3A6ICJUcnVuY2F0ZWROb3JtYWwiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL3RydW5jYXRlZF9ub3JtYWwvc2hhcGUiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiA3ODQKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNlZWQiCiAgICB2YWx1ZSB7CiAgICAgIGk6IDAKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJzZWVkMiIKICAgIHZhbHVlIHsKICAgICAgaTogMAogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMS90cnVuY2F0ZWRfbm9ybWFsL211bCIKICBvcDogIk11bCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvdHJ1bmNhdGVkX25vcm1hbC9UcnVuY2F0ZWROb3JtYWwiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL3RydW5jYXRlZF9ub3JtYWwvc3RkZGV2IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogNzg0CiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAzMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjEvdHJ1bmNhdGVkX25vcm1hbCIKICBvcDogIkFkZCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvdHJ1bmNhdGVkX25vcm1hbC9tdWwiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL3RydW5jYXRlZF9ub3JtYWwvbWVhbiIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDc4NAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL3dlaWdodHMiCiAgb3A6ICJWYXJpYWJsZVYyIgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDc4NAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiY29udGFpbmVyIgogICAgdmFsdWUgewogICAgICBzOiAiIgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXBlIgogICAgdmFsdWUgewogICAgICBzaGFwZSB7CiAgICAgICAgZGltIHsKICAgICAgICAgIHNpemU6IDc4NAogICAgICAgIH0KICAgICAgICBkaW0gewogICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2hhcmVkX25hbWUiCiAgICB2YWx1ZSB7CiAgICAgIHM6ICIiCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL3dlaWdodHMvQXNzaWduIgogIG9wOiAiQXNzaWduIgogIGlucHV0OiAibXlETk4vaGlkZGVuMS93ZWlnaHRzIgogIGlucHV0OiAibXlETk4vaGlkZGVuMS90cnVuY2F0ZWRfbm9ybWFsIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL2hpZGRlbjEvd2VpZ2h0cyIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiA3ODQKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInVzZV9sb2NraW5nIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsaWRhdGVfc2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjEvd2VpZ2h0cy9yZWFkIgogIG9wOiAiSWRlbnRpdHkiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL3dlaWdodHMiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMS93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDc4NAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL3plcm9zIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0ZMT0FUCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBmbG9hdF92YWw6IDAuMAogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL2JpYXNlcyIKICBvcDogIlZhcmlhYmxlVjIiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiY29udGFpbmVyIgogICAgdmFsdWUgewogICAgICBzOiAiIgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXBlIgogICAgdmFsdWUgewogICAgICBzaGFwZSB7CiAgICAgICAgZGltIHsKICAgICAgICAgIHNpemU6IDMwMAogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXJlZF9uYW1lIgogICAgdmFsdWUgewogICAgICBzOiAiIgogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMS9iaWFzZXMvQXNzaWduIgogIG9wOiAiQXNzaWduIgogIGlucHV0OiAibXlETk4vaGlkZGVuMS9iaWFzZXMiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL3plcm9zIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL2hpZGRlbjEvYmlhc2VzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInVzZV9sb2NraW5nIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsaWRhdGVfc2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjEvYmlhc2VzL3JlYWQiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvYmlhc2VzIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL2hpZGRlbjEvYmlhc2VzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMS9NYXRNdWwiCiAgb3A6ICJNYXRNdWwiCiAgaW5wdXQ6ICJYIgogIGlucHV0OiAibXlETk4vaGlkZGVuMS93ZWlnaHRzL3JlYWQiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidHJhbnNwb3NlX2EiCiAgICB2YWx1ZSB7CiAgICAgIGI6IGZhbHNlCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidHJhbnNwb3NlX2IiCiAgICB2YWx1ZSB7CiAgICAgIGI6IGZhbHNlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4xL2FkZCIKICBvcDogIkFkZFYyIgogIGlucHV0OiAibXlETk4vaGlkZGVuMS9NYXRNdWwiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL2JpYXNlcy9yZWFkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMS9SZWx1IgogIG9wOiAiUmVsdSIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvYWRkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMi90cnVuY2F0ZWRfbm9ybWFsL3NoYXBlIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9JTlQzMgogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAyCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHRlbnNvcl9jb250ZW50OiAiLFwwMDFcMDAwXDAwMGRcMDAwXDAwMFwwMDAiCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvdHJ1bmNhdGVkX25vcm1hbC9tZWFuIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9GTE9BVAogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgfQogICAgICAgIGZsb2F0X3ZhbDogMC4wCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvdHJ1bmNhdGVkX25vcm1hbC9zdGRkZXYiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0ZMT0FUCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICB9CiAgICAgICAgZmxvYXRfdmFsOiAwLjExNTQ3MDA1MTc2NTQ0MTkKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMi90cnVuY2F0ZWRfbm9ybWFsL1RydW5jYXRlZE5vcm1hbCIKICBvcDogIlRydW5jYXRlZE5vcm1hbCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvdHJ1bmNhdGVkX25vcm1hbC9zaGFwZSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2VlZCIKICAgIHZhbHVlIHsKICAgICAgaTogMAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNlZWQyIgogICAgdmFsdWUgewogICAgICBpOiAwCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4yL3RydW5jYXRlZF9ub3JtYWwvbXVsIgogIG9wOiAiTXVsIgogIGlucHV0OiAibXlETk4vaGlkZGVuMi90cnVuY2F0ZWRfbm9ybWFsL1RydW5jYXRlZE5vcm1hbCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvdHJ1bmNhdGVkX25vcm1hbC9zdGRkZXYiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAzMDAKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMi90cnVuY2F0ZWRfbm9ybWFsIgogIG9wOiAiQWRkIgogIGlucHV0OiAibXlETk4vaGlkZGVuMi90cnVuY2F0ZWRfbm9ybWFsL211bCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvdHJ1bmNhdGVkX25vcm1hbC9tZWFuIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvd2VpZ2h0cyIKICBvcDogIlZhcmlhYmxlVjIiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJjb250YWluZXIiCiAgICB2YWx1ZSB7CiAgICAgIHM6ICIiCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIHNoYXBlIHsKICAgICAgICBkaW0gewogICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgfQogICAgICAgIGRpbSB7CiAgICAgICAgICBzaXplOiAxMDAKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJzaGFyZWRfbmFtZSIKICAgIHZhbHVlIHsKICAgICAgczogIiIKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvd2VpZ2h0cy9Bc3NpZ24iCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL3dlaWdodHMiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL3RydW5jYXRlZF9ub3JtYWwiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMi93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidXNlX2xvY2tpbmciCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWxpZGF0ZV9zaGFwZSIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMi93ZWlnaHRzL3JlYWQiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvd2VpZ2h0cyIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkBteUROTi9oaWRkZW4yL3dlaWdodHMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvemVyb3MiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfRkxPQVQKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGZsb2F0X3ZhbDogMC4wCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvYmlhc2VzIgogIG9wOiAiVmFyaWFibGVWMiIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJjb250YWluZXIiCiAgICB2YWx1ZSB7CiAgICAgIHM6ICIiCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIHNoYXBlIHsKICAgICAgICBkaW0gewogICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2hhcmVkX25hbWUiCiAgICB2YWx1ZSB7CiAgICAgIHM6ICIiCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4yL2JpYXNlcy9Bc3NpZ24iCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL2JpYXNlcyIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvemVyb3MiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMi9iaWFzZXMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidXNlX2xvY2tpbmciCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWxpZGF0ZV9zaGFwZSIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMi9iaWFzZXMvcmVhZCIKICBvcDogIklkZW50aXR5IgogIGlucHV0OiAibXlETk4vaGlkZGVuMi9iaWFzZXMiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMi9iaWFzZXMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9oaWRkZW4yL01hdE11bCIKICBvcDogIk1hdE11bCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvUmVsdSIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvd2VpZ2h0cy9yZWFkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInRyYW5zcG9zZV9hIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInRyYW5zcG9zZV9iIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vaGlkZGVuMi9hZGQiCiAgb3A6ICJBZGRWMiIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvTWF0TXVsIgogIGlucHV0OiAibXlETk4vaGlkZGVuMi9iaWFzZXMvcmVhZCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL2hpZGRlbjIvUmVsdSIKICBvcDogIlJlbHUiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL2FkZCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL291dHB1dC90cnVuY2F0ZWRfbm9ybWFsL3NoYXBlIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9JTlQzMgogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAyCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHRlbnNvcl9jb250ZW50OiAiZFwwMDBcMDAwXDAwMFxuXDAwMFwwMDBcMDAwIgogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvdHJ1bmNhdGVkX25vcm1hbC9tZWFuIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9GTE9BVAogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgfQogICAgICAgIGZsb2F0X3ZhbDogMC4wCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL291dHB1dC90cnVuY2F0ZWRfbm9ybWFsL3N0ZGRldiIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfRkxPQVQKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgIH0KICAgICAgICBmbG9hdF92YWw6IDAuMjAwMDAwMDAyOTgwMjMyMjQKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vb3V0cHV0L3RydW5jYXRlZF9ub3JtYWwvVHJ1bmNhdGVkTm9ybWFsIgogIG9wOiAiVHJ1bmNhdGVkTm9ybWFsIgogIGlucHV0OiAibXlETk4vb3V0cHV0L3RydW5jYXRlZF9ub3JtYWwvc2hhcGUiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2VlZCIKICAgIHZhbHVlIHsKICAgICAgaTogMAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNlZWQyIgogICAgdmFsdWUgewogICAgICBpOiAwCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvdHJ1bmNhdGVkX25vcm1hbC9tdWwiCiAgb3A6ICJNdWwiCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvdHJ1bmNhdGVkX25vcm1hbC9UcnVuY2F0ZWROb3JtYWwiCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvdHJ1bmNhdGVkX25vcm1hbC9zdGRkZXYiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvdHJ1bmNhdGVkX25vcm1hbCIKICBvcDogIkFkZCIKICBpbnB1dDogIm15RE5OL291dHB1dC90cnVuY2F0ZWRfbm9ybWFsL211bCIKICBpbnB1dDogIm15RE5OL291dHB1dC90cnVuY2F0ZWRfbm9ybWFsL21lYW4iCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvd2VpZ2h0cyIKICBvcDogIlZhcmlhYmxlVjIiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImNvbnRhaW5lciIKICAgIHZhbHVlIHsKICAgICAgczogIiIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJzaGFwZSIKICAgIHZhbHVlIHsKICAgICAgc2hhcGUgewogICAgICAgIGRpbSB7CiAgICAgICAgICBzaXplOiAxMDAKICAgICAgICB9CiAgICAgICAgZGltIHsKICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAic2hhcmVkX25hbWUiCiAgICB2YWx1ZSB7CiAgICAgIHM6ICIiCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvd2VpZ2h0cy9Bc3NpZ24iCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvd2VpZ2h0cyIKICBpbnB1dDogIm15RE5OL291dHB1dC90cnVuY2F0ZWRfbm9ybWFsIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL291dHB1dC93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ1c2VfbG9ja2luZyIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbGlkYXRlX3NoYXBlIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvd2VpZ2h0cy9yZWFkIgogIG9wOiAiSWRlbnRpdHkiCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvd2VpZ2h0cyIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkBteUROTi9vdXRwdXQvd2VpZ2h0cyIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvemVyb3MiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9GTE9BVAogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBmbG9hdF92YWw6IDAuMAogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvYmlhc2VzIgogIG9wOiAiVmFyaWFibGVWMiIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImNvbnRhaW5lciIKICAgIHZhbHVlIHsKICAgICAgczogIiIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJzaGFwZSIKICAgIHZhbHVlIHsKICAgICAgc2hhcGUgewogICAgICAgIGRpbSB7CiAgICAgICAgICBzaXplOiAxMAogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXJlZF9uYW1lIgogICAgdmFsdWUgewogICAgICBzOiAiIgogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vb3V0cHV0L2JpYXNlcy9Bc3NpZ24iCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvYmlhc2VzIgogIGlucHV0OiAibXlETk4vb3V0cHV0L3plcm9zIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL291dHB1dC9iaWFzZXMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ1c2VfbG9ja2luZyIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbGlkYXRlX3NoYXBlIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJteUROTi9vdXRwdXQvYmlhc2VzL3JlYWQiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogIm15RE5OL291dHB1dC9iaWFzZXMiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vb3V0cHV0L2JpYXNlcyIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibXlETk4vb3V0cHV0L01hdE11bCIKICBvcDogIk1hdE11bCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvUmVsdSIKICBpbnB1dDogIm15RE5OL291dHB1dC93ZWlnaHRzL3JlYWQiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ0cmFuc3Bvc2VfYSIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ0cmFuc3Bvc2VfYiIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogIm15RE5OL291dHB1dC9hZGQiCiAgb3A6ICJBZGRWMiIKICBpbnB1dDogIm15RE5OL291dHB1dC9NYXRNdWwiCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvYmlhc2VzL3JlYWQiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogImxvc3MvU3BhcnNlU29mdG1heENyb3NzRW50cm9weVdpdGhMb2dpdHMvU2hhcGUiCiAgb3A6ICJTaGFwZSIKICBpbnB1dDogInkiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQ2NAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIm91dF90eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibG9zcy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0cy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0cyIKICBvcDogIlNwYXJzZVNvZnRtYXhDcm9zc0VudHJvcHlXaXRoTG9naXRzIgogIGlucHV0OiAibXlETk4vb3V0cHV0L2FkZCIKICBpbnB1dDogInkiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIlRsYWJlbHMiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDY0CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibG9zcy9Db25zdCIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfSU5UMzIKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpbnRfdmFsOiAwCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogImxvc3MvY3Jvc3NfZW50cm9weSIKICBvcDogIk1lYW4iCiAgaW5wdXQ6ICJsb3NzL1NwYXJzZVNvZnRtYXhDcm9zc0VudHJvcHlXaXRoTG9naXRzL1NwYXJzZVNvZnRtYXhDcm9zc0VudHJvcHlXaXRoTG9naXRzIgogIGlucHV0OiAibG9zcy9Db25zdCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiVGlkeCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImtlZXBfZGltcyIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogImxvc3NfMS90YWdzIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9TVFJJTkcKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfU1RSSU5HCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICB9CiAgICAgICAgc3RyaW5nX3ZhbDogImxvc3NfMSIKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAibG9zc18xIgogIG9wOiAiU2NhbGFyU3VtbWFyeSIKICBpbnB1dDogImxvc3NfMS90YWdzIgogIGlucHV0OiAibG9zcy9jcm9zc19lbnRyb3B5IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL1NoYXBlIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfSU5UMzIKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9ncmFkX3lzXzAiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0ZMT0FUCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICB9CiAgICAgICAgZmxvYXRfdmFsOiAxLjAKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL0ZpbGwiCiAgb3A6ICJGaWxsIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL1NoYXBlIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL2dyYWRfeXNfMCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJpbmRleF90eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL2xvc3MvY3Jvc3NfZW50cm9weV9ncmFkL1Jlc2hhcGUvc2hhcGUiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0lOVDMyCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaW50X3ZhbDogMQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvUmVzaGFwZSIKICBvcDogIlJlc2hhcGUiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvRmlsbCIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZC9SZXNoYXBlL3NoYXBlIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJUc2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZ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gICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL2xvc3MvY3Jvc3NfZW50cm9weV9ncmFkL1NoYXBlXzEiCiAgb3A6ICJTaGFwZSIKICBpbnB1dDogImxvc3MvU3BhcnNlU29mdG1heENyb3NzRW50cm9weVdpdGhMb2dpdHMvU3BhcnNlU29mdG1heENyb3NzRW50cm9weVdpdGhMb2dpdHMiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAib3V0X3R5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvU2hhcGVfMiIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0lOVDMyCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvQ29uc3QiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0lOVDMyCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaW50X3ZhbDogMAogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvUHJvZCIKICBvcDogIlByb2QiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvU2hhcGVfMSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZC9Db25zdCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiVGlkeCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImtlZXBfZGltcyIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZC9Db25zdF8xIgogIG9wOiAiQ29uc3QiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9JTlQzMgogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGludF92YWw6IDAKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL2xvc3MvY3Jvc3NfZW50cm9weV9ncmFkL1Byb2RfMSIKICBvcDogIlByb2QiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvU2hhcGVfMiIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZC9Db25zdF8xIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJUaWR4IgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAia2VlcF9kaW1zIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL2xvc3MvY3Jvc3NfZW50cm9weV9ncmFkL01heGltdW0veSIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfSU5UMzIKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgIH0KICAgICAgICBpbnRfdmFsOiAxCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZC9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ncmFkL2Zsb29yZGl2IgogIGF0dHIgewogICAga2V5OiAiRHN0VCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJTcmNUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIlRydW5jYXRlIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvdHJ1ZWRpdiIKICBvcDogIlJlYWxEaXYiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9jcm9zc19lbnRyb3B5X2dyYWQvVGlsZSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9sb3NzL2Nyb3NzX2VudHJvcHlfZ3JhZC9DYXN0IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy96ZXJvc19saWtlIgogIG9wOiAiWmVyb3NMaWtlIgogIGlucHV0OiAibG9zcy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0cy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0czoxIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0cy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0c19ncmFkL1ByZXZlbnRHcmFkaWVudCIKICBvcDogIlByZXZlbnRHcmFkaWVudCIKICBpbnB1dDogImxvc3MvU3BhcnNlU29mdG1heENyb3NzRW50cm9weVdpdGhMb2dpdHMvU3BhcnNlU29mdG1heENyb3NzRW50cm9weVdpdGhMb2dpdHM6MSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIG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zcy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0cy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0c19ncmFkL1ByZXZlbnRHcmFkaWVudCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC9TaGFwZSIKICBvcDogIlNoYXBlIgogIGlucHV0OiAibXlETk4vb3V0cHV0L01hdE11bCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDIKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJvdXRfdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvYWRkX2dyYWQvU2hhcGVfMSIKICBvcDogIlNoYXBlIgogIGlucHV0OiAibXlETk4vb3V0cHV0L2JpYXNlcy9yZWFkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIm91dF90eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC9Ccm9hZGNhc3RHcmFkaWVudEFyZ3MiCiAgb3A6ICJCcm9hZGNhc3RHcmFkaWVudEFyZ3MiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L2FkZF9ncmFkL1NoYXBlIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC9TaGFwZV8xIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFt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ICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiVHNoYXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvYWRkX2dyYWQvU3VtXzEiCiAgb3A6ICJTdW0iCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbG9zcy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0cy9TcGFyc2VTb2Z0bWF4Q3Jvc3NFbnRyb3B5V2l0aExvZ2l0c19ncmFkL211bCIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvYWRkX2dyYWQvQnJvYWRjYXN0R3JhZGllbnRBcmdzOjEiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIlRpZHgiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIHVua25vd25fcmFuazogdHJ1ZQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImtlZXBfZGltcyIKICAgIHZhbHVlIHs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KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAdHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC9SZXNoYXBlXzEiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvTWF0TXVsX2dyYWQvTWF0TXVsIgogIG9wOiAiTWF0TXVsIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3kiCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvd2VpZ2h0cy9yZWFkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInRyYW5zcG9zZV9hIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInRyYW5zcG9zZV9iIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L01hdE11bF9ncmFkL01hdE11bF8xIgogIG9wOiAiTWF0TXVsIgogIGlucHV0OiAibXlETk4vaGlkZGVuMi9SZWx1IgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3kiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidHJhbnNwb3NlX2EiCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ0cmFuc3Bvc2VfYiIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvTWF0TXVsX2dyYWQvdHVwbGUvZ3JvdXBfZGVwcyIKICBvcDogIk5vT3AiCiAgaW5wdXQ6ICJedHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9NYXRNdWxfZ3JhZC9NYXRNdWwiCiAgaW5wdXQ6ICJedHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9NYXRNdWxfZ3JhZC9NYXRNdWxfMSIKfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9NYXRNdWxfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3kiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvTWF0TXVsX2dyYWQvTWF0TXVsIgogIGlucHV0OiAiXnRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvTWF0TXVsX2dyYWQvdHVwbGUvZ3JvdXBfZGVwcyIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkB0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L01hdE11bF9ncmFkL01hdE11bCIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L01hdE11bF9ncmFkL3R1cGxlL2NvbnRyb2xfZGVwZW5kZW5jeV8xIgogIG9wOiAiSWRlbnRpdHkiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L01hdE11bF9ncmFkL01hdE11bF8xIgogIGlucHV0OiAiXnRyYWluaW5nL2dyYWRpZW50cy9teUROTi9vdXRwdXQvTWF0TXVsX2dyYWQvdHVwbGUvZ3JvdXBfZGVwcyIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkB0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L01hdE11bF9ncmFkL01hdE11bF8xIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL1JlbHVfZ3JhZC9SZWx1R3JhZCIKICBvcDogIlJlbHVHcmFkIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9NYXRNdWxfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3kiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL1JlbHUiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9hZGRfZ3JhZC9TaGFwZSIKICBvcDogIlNoYXBlIgogIGlucHV0OiAibXlETk4vaGlkZGVuMi9NYXRNdWwiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAyCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAib3V0X3R5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9hZGRfZ3JhZC9TaGFwZV8xIgogIG9wOiAiU2hhcGUiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL2JpYXNlcy9yZWFkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIm91dF90eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KfQ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AgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgdW5rbm93bl9yYW5rOiB0cnVlCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAia2VlcF9kaW1zIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjIvYWRkX2dyYWQvUmVzaGFwZSIKICBvcDogIlJlc2hhcGUiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9hZGRfZ3JhZC9TdW0iCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9hZGRfZ3JhZC9TaGFwZSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiVHNoYXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9hZGRfZ3JhZC9TdW1fMSIKICBvcDogIlN1bSIKICBpbnB1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gICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjIvYWRkX2dyYWQvdHVwbGUvY29udHJvbF9kZXBlbmRlbmN5XzEiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL2FkZF9ncmFkL1Jlc2hhcGVfMSIKICBpbnB1dDogIl50cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9hZGRfZ3JhZC90dXBsZS9ncm91cF9kZXBzIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QHRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL2FkZF9ncmFkL1Jlc2hhcGVfMSIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL01hdE11bF9ncmFkL01hdE11bCIKICBvcDogIk1hdE11bCIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL2FkZF9ncmFkL3R1cGxlL2NvbnRyb2xfZGVwZW5kZW5jeSIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvd2VpZ2h0cy9yZWFkIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInRyYW5zcG9zZV9hIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInRyYW5zcG9zZV9iIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9NYXRNdWxfZ3JhZC9NYXRNdWxfMSIKICBvcDogIk1hdE11bCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvUmVsdSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL2FkZF9ncmFkL3R1cGxlL2NvbnRyb2xfZGVwZW5kZW5jeSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgIC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ibG9jOkB0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMi9NYXRNdWxfZ3JhZC9NYXRNdWwiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjIvTWF0TXVsX2dyYWQvdHVwbGUvY29udHJvbF9kZXBlbmRlbmN5XzEiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL01hdE11bF9ncmFkL01hdE11bF8xIgogIGlucHV0OiAiXnRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4yL01hdE11bF9ncmFkL3R1cGxlL2dyb3VwX2RlcHMiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAdHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjIvTWF0TXVsX2dyYWQvTWF0TXVsXzEiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL1JlbHVfZ3JhZC9SZWx1R3JhZCIKICBvcDogIlJlbHVHcmFkIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjIvTWF0TXVsX2dyYWQvdHVwbGUvY29udHJvbF9kZXBlbmRlbmN5IgogIGlucHV0OiAibXlETk4vaGlkZGVuMS9SZWx1IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogLTEKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvU2hhcGUiCiAgb3A6ICJTaGFwZSIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvTWF0TXVsIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIm91dF90eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvU2hhcGVfMSIKICBvcDogIlNoYXBlIgogIGlucHV0OiAibXlETk4vaGlkZGVuMS9iaWFzZXMvcmVhZCIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJvdXRfdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL2FkZF9ncmFkL0Jyb2FkY2FzdEdyYWRpZW50QXJncyIKICBvcDogIkJyb2FkY2FzdEdyYWRpZW50QXJncyIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL2FkZF9ncmFkL1NoYXBlIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvU2hhcGVfMSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDMyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIG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ICAgc2hhcGUgewogICAgICAgICAgdW5rbm93bl9yYW5rOiB0cnVlCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAia2VlcF9kaW1zIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvUmVzaGFwZV8xIgogIG9wOiAiUmVzaGFwZSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL2FkZF9ncmFkL1N1bV8xIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvU2hhcGVfMSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiVHNoYXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAzMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL2FkZF9ncmFkL3R1cGxlL2dyb3VwX2RlcHMiCiAgb3A6ICJOb09wIgogIGlucHV0OiAiXnRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL2FkZF9ncmFkL1Jlc2hhcGUiCiAgaW5wdXQ6ICJedHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvUmVzaGFwZV8xIgp9C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vT3AiCiAgaW5wdXQ6ICJedHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvTWF0TXVsX2dyYWQvTWF0TXVsIgogIGlucHV0OiAiXnRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL01hdE11bF9ncmFkL01hdE11bF8xIgp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMS9NYXRNdWxfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3kiCiAgb3A6ICJJZGVudGl0eSIKICBpbnB1dDogInRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL01hdE11bF9ncmFkL01hdE11bCIKICBpbnB1dDogIl50cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMS9NYXRNdWxfZ3JhZC90dXBsZS9ncm91cF9kZXBzIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QHRyYWluaW5nL2dyYWRpZW50cy9teUROTi9oaWRkZW4xL01hdE11bF9ncmFkL01hdE11bCIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogNzg0CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMS9NYXRNdWxfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3lfMSIKICBvcDogIklkZW50aXR5IgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvTWF0TXVsX2dyYWQvTWF0TXVsXzEiCiAgaW5wdXQ6ICJedHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvTWF0TXVsX2dyYWQvdHVwbGUvZ3JvdXBfZGVwcyIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkB0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vaGlkZGVuMS9NYXRNdWxfZ3JhZC9NYXRNdWxfMSIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiA3ODQKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvR3JhZGllbnREZXNjZW50L2xlYXJuaW5nX3JhdGUiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX0ZMT0FUCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICB9CiAgICAgICAgZmxvYXRfdmFsOiAwLjAwMTAwMDAwMDA0NzQ5NzQ1MTMKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAidHJhaW5pbmcvR3JhZGllbnREZXNjZW50L3VwZGF0ZV9teUROTi9oaWRkZW4xL3dlaWdodHMvQXBwbHlHcmFkaWVudERlc2NlbnQiCiAgb3A6ICJBcHBseUdyYWRpZW50RGVzY2VudCIKICBpbnB1dDogIm15RE5OL2hpZGRlbjEvd2VpZ2h0cyIKICBpbnB1dDogInRyYWluaW5nL0dyYWRpZW50RGVzY2VudC9sZWFybmluZ19yYXRlIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvTWF0TXVsX2dyYWQvdHVwbGUvY29udHJvbF9kZXBlbmRlbmN5XzEiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMS93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDc4NAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidXNlX2xvY2tpbmciCiAgICB2YWx1ZSB7CiAgICAgIGI6IGZhbHNlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9HcmFkaWVudERlc2NlbnQvdXBkYXRlX215RE5OL2hpZGRlbjEvYmlhc2VzL0FwcGx5R3JhZGllbnREZXNjZW50IgogIG9wOiAiQXBwbHlHcmFkaWVudERlc2NlbnQiCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL2JpYXNlcyIKICBpbnB1dDogInRyYWluaW5nL0dyYWRpZW50RGVzY2VudC9sZWFybmluZ19yYXRlIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL2hpZGRlbjEvYWRkX2dyYWQvdHVwbGUvY29udHJvbF9kZXBlbmRlbmN5XzEiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMS9iaWFzZXMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMzAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidXNlX2xvY2tpbmciCiAgICB2YWx1ZSB7CiAgICAgIGI6IGZhbHNlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJ0cmFpbmluZy9HcmFkaWVudERlc2NlbnQvdXBkYXRlX215RE5OL2hpZGRlbjIvd2VpZ2h0cy9BcHBseUdyYWRpZW50RGVzY2VudCIKICBvcDogIkFwcGx5R3JhZGllbnREZXNjZW50IgogIGlucHV0OiAibXlETk4vaGlkZG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fZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3lfMSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkBteUROTi9oaWRkZW4yL2JpYXNlcyIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAxMDAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ1c2VfbG9ja2luZyIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL0dyYWRpZW50RGVzY2VudC91cGRhdGVfbXlETk4vb3V0cHV0L3dlaWdodHMvQXBwbHlHcmFkaWVudERlc2NlbnQiCiAgb3A6ICJBcHBseUdyYWRpZW50RGVzY2VudCIKICBpbnB1dDogIm15RE5OL291dHB1dC93ZWlnaHRzIgogIGlucHV0OiAidHJhaW5pbmcvR3JhZGllbnREZXNjZW50L2xlYXJuaW5nX3JhdGUiCiAgaW5wdXQ6ICJ0cmFpbmluZy9ncmFkaWVudHMvbXlETk4vb3V0cHV0L01hdE11bF9ncmFkL3R1cGxlL2NvbnRyb2xfZGVwZW5kZW5jeV8xIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL291dHB1dC93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ1c2VfbG9ja2luZyIKICAgIHZhbHVlIHsKICAgICAgYjogZmFsc2UKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInRyYWluaW5nL0dyYWRpZW50RGVzY2VudC91cGRhdGVfbXlETk4vb3V0cHV0L2JpYXNlcy9BcHBseUdyYWRpZW50RGVzY2VudCIKICBvcDogIkFwcGx5R3JhZGllbnREZXNjZW50IgogIGlucHV0OiAibXlETk4vb3V0cHV0L2JpYXNlcyIKICBpbnB1dDogInRyYWluaW5nL0dyYWRpZW50RGVzY2VudC9sZWFybmluZ19yYXRlIgogIGlucHV0OiAidHJhaW5pbmcvZ3JhZGllbnRzL215RE5OL291dHB1dC9hZGRfZ3JhZC90dXBsZS9jb250cm9sX2RlcGVuZGVuY3lfMSIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkBteUROTi9vdXRwdXQvYmlhc2VzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAg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ogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQ2NAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9JTlQ2NAogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgfQogICAgICAgIGludDY0X3ZhbDogMQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJldmFsdWF0aW9uL2luX3RvcF9rL0luVG9wS1YyIgogIG9wOiAiSW5Ub3BLVjIiCiAgaW5wdXQ6ICJteUROTi9vdXRwdXQvYWRkIgogIGlucHV0OiAieSIKICBpbnB1dDogImV2YWx1YXRpb24vaW5fdG9wX2svSW5Ub3BLVjIvayIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0lOVDY0CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IC0xCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJldmFsdWF0aW9uL0Nhc3QiCiAgb3A6ICJDYXN0IgogIGlucHV0OiAiZXZhbHVhdGlvbi9pbl90b3Bfay9JblRvcEtWMiIKICBhdHRyIHsKICAgIGtleTogIkRzdFQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiU3JjVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfQk9PTAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIlRydW5jYXRlIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiAtMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAiZXZhbHVhdGlvbi9Db25zdCIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfSU5UMzIKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfSU5UMzIKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpbnRfdmFsOiAwCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogImV2YWx1YXRpb24vTWVhbiIKICBvcDogIk1lYW4iCiAgaW5wdXQ6ICJldmFsdWF0aW9uL0Nhc3QiCiAgaW5wdXQ6ICJldmFsdWF0aW9uL0NvbnN0IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJUaWR4IgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9JTlQzMgogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAia2VlcF9kaW1zIgogICAgdmFsdWUgewogICAgICBiOiBmYWxzZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAiYWNjdXJhY3kvdGFncyIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfU1RSSU5HCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX1NUUklORwogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgfQogICAgICAgIHN0cmluZ192YWw6ICJhY2N1cmFjeSIKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAiYWNjdXJhY3kiCiAgb3A6ICJTY2FsYXJTdW1tYXJ5IgogIGlucHV0OiAiYWNjdXJhY3kvdGFncyIKICBpbnB1dDogImV2YWx1YXRpb24vTWVhbiIKICBhdHRyIHsKICAgIGtleTogIlQiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogImluaXQiCiAgb3A6ICJOb09wIgogIGlucHV0OiAiXm15RE5OL2hpZGRlbjEvYmlhc2VzL0Fzc2lnbiIKICBpbnB1dDogIl5teUROTi9oaWRkZW4xL3dlaWdodHMvQXNzaWduIgogIGlucHV0OiAiXm15RE5OL2hpZGRlbjIvYmlhc2VzL0Fzc2lnbiIKICBpbnB1dDogIl5teUROTi9oaWRkZW4yL3dlaWdodHMvQXNzaWduIgogIGlucHV0OiAiXm15RE5OL291dHB1dC9iaWFzZXMvQXNzaWduIgogIGlucHV0OiAiXm15RE5OL291dHB1dC93ZWlnaHRzL0Fzc2lnbiIKfQpub2RlIHsKICBuYW1lOiAiTWVyZ2UvTWVyZ2VTdW1tYXJ5IgogIG9wOiAiTWVyZ2VTdW1tYXJ5IgogIGlucHV0OiAibG9zc18xIgogIGlucHV0OiAiYWNjdXJhY3kiCiAgYXR0ciB7CiAgICBrZXk6ICJOIgogICAgdmFsdWUgewogICAgICBpOiAyCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvZmlsZW5hbWUvaW5wdXQiCiAgb3A6ICJDb25zdCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX1NUUklORwogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9TVFJJTkcKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgIH0KICAgICAgICBzdHJpbmdfdmFsOiAibW9kZWwiCiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvZmlsZW5hbWUiCiAgb3A6ICJQbGFjZWhvbGRlcldpdGhEZWZhdWx0IgogIGlucHV0OiAic2F2ZS9maWxlbmFtZS9pbnB1dCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX1NUUklORwogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXBlIgogICAgdmFsdWUgewogICAgICBzaGFwZSB7CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvQ29uc3QiCiAgb3A6ICJQbGFjZWhvbGRlcldpdGhEZWZhdWx0IgogIGlucHV0OiAic2F2ZS9maWxlbmFtZSIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX1NUUklORwogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInNoYXBlIgogICAgdmFsdWUgewogICAgICBzaGFwZSB7CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvU2F2ZVYyL3RlbnNvcl9uYW1lcyIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDYKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfU1RSSU5HCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsdWUiCiAgICB2YWx1ZSB7CiAgICAgIHRlbnNvciB7CiAgICAgICAgZHR5cGU6IERUX1NUUklORwogICAgICAgIHRlbnNvcl9zaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiA2CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHN0cmluZ192YWw6ICJteUROTi9oaWRkZW4xL2JpYXNlcyIKICAgICAgICBzdHJpbmdfdmFsOiAibXlETk4vaGlkZGVuMS93ZWlnaHRzIgogICAgICAgIHN0cmluZ192YWw6ICJteUROTi9oaWRkZW4yL2JpYXNlcyIKICAgICAgICBzdHJpbmdfdmFsOiAibXlETk4vaGlkZGVuMi93ZWlnaHRzIgogICAgICAgIHN0cmluZ192YWw6ICJteUROTi9vdXRwdXQvYmlhc2VzIgogICAgICAgIHN0cmluZ192YWw6ICJteUROTi9vdXRwdXQvd2VpZ2h0cyIKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAic2F2ZS9TYXZlVjIvc2hhcGVfYW5kX3NsaWNlcyIKICBvcDogIkNvbnN0IgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDYKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJkdHlwZSIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfU1RSSU5HCiAgICB9CiAgfQog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AgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvY29udHJvbF9kZXBlbmRlbmN5IgogIG9wOiAiSWRlbnRpdHkiCiAgaW5wdXQ6ICJzYXZlL0NvbnN0IgogIGlucHV0OiAiXnNhdmUvU2F2ZVYyIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfU1RSSU5HCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX2NsYXNzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzOiAibG9jOkBzYXZlL0NvbnN0IgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvUmVzdG9yZVYyL3RlbnNvcl9uYW1lcyIKICBvcDogIkNvbnN0IgogIGRldmljZTogIi9kZXZpY2U6Q1BVOjAiCiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogNgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogImR0eXBlIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9TVFJJTkcKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWx1ZSIKICAgIHZhbHVlIHsKICAgICAgdGVuc29yIHsKICAgICAgICBkdHlwZTogRFRfU1RSSU5HCiAgICAgICAgdGVuc29yX3NoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDYKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgc3RyaW5nX3ZhbDogIm15RE5OL2hpZGRlbjEvYmlhc2VzIgogICAgICAgIHN0cmluZ192YWw6ICJteUROTi9oaWRkZW4xL3dlaWdodHMiCiAgICAgICAgc3RyaW5nX3ZhbDogIm15RE5OL2hpZGRlbjIvYmlhc2VzIgogICAgICAgIHN0cmluZ192YWw6ICJteUROTi9oaWRkZW4yL3dlaWdodHMiCiAgICAgICAgc3RyaW5nX3ZhbDogIm15RE5OL291dHB1dC9iaWFzZXMiCiAgICAgICAgc3RyaW5nX3ZhbDogIm15RE5OL291dHB1dC93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJzYXZlL1Jlc3RvcmVWMi9zaGFwZV9hbmRfc2xpY2VzIgogIG9wOiAiQ29uc3QiCiAgZGV2aWNlOiAiL2RldmljZTpDUFU6MCIKICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiA2CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGUiCiAgICB2YWx1ZSB7CiAgICAgIHR5cGU6IERUX1NUUklORwogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbHVlIgogICAgdmFsdWUgewogICAgICB0ZW5zb3IgewogICAgICAgIGR0eXBlOiBEVF9TVFJJTkcKICAgICAgICB0ZW5zb3Jfc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogNgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBzdHJpbmdfdmFsOiAiIgogICAgICAgIHN0cmluZ192YWw6ICIiCiAgICAgICAgc3RyaW5nX3ZhbDogIiIKICAgICAgICBzdHJpbmdfdmFsOiAiIgogICAgICAgIHN0cmluZ192YWw6ICIiCiAgICAgICAgc3RyaW5nX3ZhbDogIiIKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAic2F2ZS9SZXN0b3JlVjIiCiAgb3A6ICJSZXN0b3JlVjIiCiAgaW5wdXQ6ICJzYXZlL0NvbnN0IgogIGlucHV0OiAic2F2ZS9SZXN0b3JlVjIvdGVuc29yX25hbWVzIgogIGlucHV0OiAic2F2ZS9SZXN0b3JlVjIvc2hhcGVfYW5kX3NsaWNlcyIKICBkZXZpY2U6ICIvZGV2aWNlOkNQVTowIgogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIHVua25vd25fcmFuazogdHJ1ZQogICAgICAgIH0KICAgICAgICBzaGFwZSB7CiAgICAgICAgICB1bmtub3duX3Jhbms6IHRydWUKICAgICAgICB9CiAgICAgICAgc2hhcGUgewogICAgICAgICAgdW5rbm93bl9yYW5rOiB0cnVlCiAgICAgICAgfQogICAgICAgIHNoYXBlIHsKICAgICAgICAgIHVua25vd25fcmFuazogdHJ1ZQogICAgICAgIH0KICAgICAgICBzaGFwZSB7CiAgICAgICAgICB1bmtub3duX3Jhbms6IHRydWUKICAgICAgICB9CiAgICAgICAgc2hhcGUgewogICAgICAgICAgdW5rbm93bl9yYW5rOiB0cnVlCiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiZHR5cGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICB0eXBlOiBEVF9GTE9BVAogICAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICAgICAgdHlwZTogRFRfRkxPQVQKICAgICAgICB0eXBlOiBEVF9GTE9BVAogICAgICAgIHR5cGU6IERUX0ZMT0FUCiAgICAgICAgdHlwZTogRFRfRkxPQVQKICAgICAgfQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAic2F2ZS9Bc3NpZ24iCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL2JpYXNlcyIKICBpbnB1dDogInNhdmUvUmVzdG9yZVYyIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL2hpZGRlbjEvYmlhc2VzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInVzZV9sb2NraW5nIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsaWRhdGVfc2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvQXNzaWduXzEiCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4xL3dlaWdodHMiCiAgaW5wdXQ6ICJzYXZlL1Jlc3RvcmVWMjoxIgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL2hpZGRlbjEvd2VpZ2h0cyIKICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9vdXRwdXRfc2hhcGVzIgogICAgdmFsdWUgewogICAgICBsaXN0IHsKICAgICAgICBzaGFwZSB7CiAgICAgICAgICBkaW0gewogICAgICAgICAgICBzaXplOiA3ODQKICAgICAgICAgIH0KICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInVzZV9sb2NraW5nIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidmFsaWRhdGVfc2hhcGUiCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9Cn0Kbm9kZSB7CiAgbmFtZTogInNhdmUvQXNzaWduXzIiCiAgb3A6ICJBc3NpZ24iCiAgaW5wdXQ6ICJteUROTi9oaWRkZW4yL2JpYXNlcyIKICBpbnB1dDogInNhdmUvUmVzdG9yZVYyOjIiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMi9iaWFzZXMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidXNlX2xvY2tpbmciCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWxpZGF0ZV9zaGFwZSIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAic2F2ZS9Bc3NpZ25fMyIKICBvcDogIkFzc2lnbiIKICBpbnB1dDogIm15RE5OL2hpZGRlbjIvd2VpZ2h0cyIKICBpbnB1dDogInNhdmUvUmVzdG9yZVYyOjMiCiAgYXR0ciB7CiAgICBrZXk6ICJUIgogICAgdmFsdWUgewogICAgICB0eXBlOiBEVF9GTE9BVAogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogIl9jbGFzcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgczogImxvYzpAbXlETk4vaGlkZGVuMi93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDMwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAwCiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAidXNlX2xvY2tpbmciCiAgICB2YWx1ZSB7CiAgICAgIGI6IHRydWUKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ2YWxpZGF0ZV9zaGFwZSIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KfQpub2RlIHsKICBuYW1lOiAic2F2ZS9Bc3NpZ25fNCIKICBvcDogIkFzc2lnbiIKICBpbnB1dDogIm15RE5OL291dHB1dC9iaWFzZXMiCiAgaW5wdXQ6ICJzYXZlL1Jlc3RvcmVWMjo0IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL291dHB1dC9iaWFzZXMiCiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfb3V0cHV0X3NoYXBlcyIKICAgIHZhbHVlIHsKICAgICAgbGlzdCB7CiAgICAgICAgc2hhcGUgewogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ1c2VfbG9ja2luZyIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbGlkYXRlX3NoYXBlIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJzYXZlL0Fzc2lnbl81IgogIG9wOiAiQXNzaWduIgogIGlucHV0OiAibXlETk4vb3V0cHV0L3dlaWdodHMiCiAgaW5wdXQ6ICJzYXZlL1Jlc3RvcmVWMjo1IgogIGF0dHIgewogICAga2V5OiAiVCIKICAgIHZhbHVlIHsKICAgICAgdHlwZTogRFRfRkxPQVQKICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJfY2xhc3MiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHM6ICJsb2M6QG15RE5OL291dHB1dC93ZWlnaHRzIgogICAgICB9CiAgICB9CiAgfQogIGF0dHIgewogICAga2V5OiAiX291dHB1dF9zaGFwZXMiCiAgICB2YWx1ZSB7CiAgICAgIGxpc3QgewogICAgICAgIHNoYXBlIHsKICAgICAgICAgIGRpbSB7CiAgICAgICAgICAgIHNpemU6IDEwMAogICAgICAgICAgfQogICAgICAgICAgZGltIHsKICAgICAgICAgICAgc2l6ZTogMTAKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CiAgYXR0ciB7CiAgICBrZXk6ICJ1c2VfbG9ja2luZyIKICAgIHZhbHVlIHsKICAgICAgYjogdHJ1ZQogICAgfQogIH0KICBhdHRyIHsKICAgIGtleTogInZhbGlkYXRlX3NoYXBlIgogICAgdmFsdWUgewogICAgICBiOiB0cnVlCiAgICB9CiAgfQp9Cm5vZGUgewogIG5hbWU6ICJzYXZlL3Jlc3RvcmVfYWxsIgogIG9wOiAiTm9PcCIKICBpbnB1dDogIl5zYXZlL0Fzc2lnbiIKICBpbnB1dDogIl5zYXZlL0Fzc2lnbl8xIgogIGlucHV0OiAiXnNhdmUvQXNzaWduXzIiCiAgaW5wdXQ6ICJec2F2ZS9Bc3NpZ25fMyIKICBpbnB1dDogIl5zYXZlL0Fzc2lnbl80IgogIGlucHV0OiAiXnNhdmUvQXNzaWduXzUiCn0KdmVyc2lvbnMgewogIHByb2R1Y2VyOiAxMzQKfQo=", "ok": true, "headers": [["content-type", "text/x-protobuf; charset=utf-8"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 817} outputId="d5297e32-f9b1-4f79-fabd-0d2b24e754f1" # %tensorboard --logdir=myDNN # + [markdown] id="ZAEMzaXKeRP7" colab_type="text" # As you can see from the Tensorboard output the resulting graph is very clen and organized, hence easy to read. This result is obtained with the usage of name scopes. # + [markdown] id="ogPePpa1ecDx" colab_type="text" # ## Conclusion # + [markdown] id="LZi0TiL5bEc1" colab_type="text" # We could have built this network in infinetly many different ways, each one obtained by changing a single hyper-parameter. # > ### How do you know what combination of hyperparameters is the best for your task? # # The honest answer is that there is no easy way to know. <br> # >"Of course, you can use grid search with cross-validation to find the right hyperparameters, but since there are **many hyperparameters to tune**, and since **training a neural network on a large dataset takes a lot of time**, you will only be able to explore a tiny part of the hyperparameter space in a reasonable amount of time."
5,302,939
/HydrologyOfWorldCities.ipynb
fc80c27c3ff04fda77e2e2d1e0a164d41c6e2378
[]
no_license
amireson/HydrologyOfWorldCities
https://github.com/amireson/HydrologyOfWorldCities
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
311,826
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # # Hydrology of World Cities # # By Andrew Ireson(1) and Simon Mathias(2) # # 1. Global Institute for Water Security, University of Saskatchewan, Canada # 2. University of Durham, UK # # ## Usage # # Run every block of code to import libraries and load functions. To modify cities, edit the block of code below the title "Run the Script:". import matplotlib.pyplot as pl import numpy as np import HWC # ## Run the script: # # Call HWC.GetCityData as many times as needed to get city data. saskatoon=HWC.GetCityData('Saskatoon','') london=HWC.GetCityData('London','United') HWC.PrintCityData(saskatoon) HWC.PrintCityData(london) HWC.PlotP_PE([saskatoon,london],'br') HWC.PlotT([saskatoon,london],'br') # # Optional: plot map # # This script uses the geopandas library, which can be installed using pip: `pip install geopandas` import HWC_maps HWC_maps.PlotMap([saskatoon, london],'br')
1,177
/Air_AQI.ipynb
d65d7a2d58b8237dc9696bc76e3883338af65c0b
[]
no_license
DonadriHema/Air-quality-prediction
https://github.com/DonadriHema/Air-quality-prediction
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
579,522
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # !pip install sklearn # + Data=pd.read_csv(r'C:\Users\S160369\Downloads\city_day.csv',parse_dates = ["Date"]) # - Data # # Features # -->city # -->Date # -->PM2.5 # -->PM2 # -->SO2 # -->NOx # -->NH3 # -->CO # -->O3 # -->Benzene # -->Toluene # -->Xylene # -->AQI # -->AQI_Bucket sns.heatmap(Data.isnull(),yticklabels=False,cbar=False, cmap='viridis') print(Data.isnull().sum()) (Data.isnull().sum()/Data.shape[0]*100).sort_values(ascending=False) Data.describe() #converting dtype of data column to datatime Data['Date']=Data['Date'].apply(pd.to_datetime) ##setting data column as index Data.set_index('Date',inplace=True) Data.columns # # Filling the Nan values present in the pollutants with mean(city wise) Data.iloc[:, 1:13] =Data.groupby("City").transform(lambda x: x.fillna(x.mean())) Data sns.heatmap(Data.isnull(),yticklabels=False,cbar=False, cmap='viridis') Data.iloc[:, 1:13]=Data.fillna(Data.mean()) Data sns.heatmap(Data.isnull(),yticklabels=False,cbar=False, cmap='viridis') # # #The AQI calculation uses 7 measures : PM2.5, PM10,SO2,NOx,NH3,CO and O3 # -->For PM2.5 , PM10 ,SO2, NOx,and NH3 the average value in last 24-hrs is used with the condition of having at least 16 values # -->For CO and O3 the maximum value in last 8-hrs is used. # -->Each measure is converted into a Sub-index based on pre-defined groups. # -->Sometimes measures are not available due to lack of measuring or lack of required data points # -->Final AQI is the maximum Sub-Index with the condition that at least one of PM2.5 and PM10 should be available and at least three out of the seven should be available. # # Calculating Sub-Index # + #PM10 Sub-index calculation def get_PM10_subindex(x): if x<=50: return x elif x> 50 and x<=100: return x elif x > 100 and x<=250: return 100+(x-100)*100/150 elif x >250 and x<=350: return 200+(x-250) elif x >350 and x<=430: return 300+(x-350)*100/80 elif x>430: return 400+(x-430)*100/80 else: return 0 Data["PM10_SubIndex"] =Data["PM10"].astype(int).apply(lambda x: get_PM10_subindex(x)) ##PM2.5 Sub-Index Calculation def get_PM25_subindex(x): if x<=30: return x * 50 /30 elif x> 30 and x<=60: return 50+(x-30)*50/30 elif x > 60 and x<=90: return 100+(x-60)*100/30 elif x >90 and x<=120: return 200+(x-90)*100/30 elif x >120 and x<=250: return 300+(x-350)*100/130 elif x>250: return 400+(x-250)*100/130 else: return 0 Data["PM2.5_SubIndex"] =Data["PM2.5"].astype(int).apply(lambda x: get_PM25_subindex(x)) ##SO2 Sub-Index calculation def get_SO2_subindex(x): if x<=40: return x*50/40 elif x> 40 and x<=80: return 50+(x-40)*100/40 elif x > 80 and x<=380: return 100+(x-80)*100/300 elif x >380 and x<=800: return 200+(x-380)*100/420 elif x >800 and x<=1600: return 300+(x-800)*100/800 elif x>1600: return 400+(x-1600)*100/800 else: return 0 Data["SO2_SubIndex"] =Data["SO2"].astype(int).apply(lambda x:get_SO2_subindex(x)) #NOx Sub-Index calculation def get_NOx_subindex(x): if x<=40: return x*50/40 elif x> 40 and x<=80: return 50+(x-40)*50/40 elif x > 80 and x<=180: return 100+(x-80)*100/100 elif x >180 and x<=280: return 200+(x-180)*100/120 elif x >280 and x<=400: return 300+(x-280)*100/120 elif x>400: return 400+(x-400)*100/120 else: return 0 Data["NOx_SubIndex"] =Data["NOx"].astype(int).apply(lambda x: get_NOx_subindex(x)) ##NH3 Sub-index calculation def get_NH3_subindex(x): if x<=200: return x*50/200 elif x> 200 and x<=400: return 50+(x-200)*50/200 elif x > 400 and x<=800: return 100+(x-400)*100/400 elif x >800 and x<=1200: return 200+(x-800)*100/400 elif x >1200 and x<=1800: return 300+(x-1200)*100/600 elif x>1800: return 400+(x-1800)*100/600 else: return 0 Data["NH3_SubIndex"] =Data["NH3"].astype(int).apply(lambda x: get_NH3_subindex(x)) ## CO Sub-Index Calulation def get_CO_subindex(x): if x<=1: return x*50/1 elif x> 1 and x<=2: return 50+(x-1)*50/1 elif x > 2 and x<=10: return 100+(x-2)*100/8 elif x >10 and x<=17: return 200+(x-10)*100/7 elif x >17 and x<=34: return 300+(x-17)*100/17 elif x>34: return 400+(x-34)*100/17 else: return 0 Data["CO_SubIndex"] =Data["CO"].astype(int).apply(lambda x: get_CO_subindex(x)) ##O3 Sub-Index Calulation def get_O3_subindex(x): if x<=50: return x*50/50 elif x> 50 and x<=100: return 50+(x-50)*50/100 elif x > 100 and x<=168: return 100+(x-100)*100/68 elif x >168 and x<=208: return 200+(x-168)*100/40 elif x >208 and x<=748: return 300+(x-208)*100/539 elif x>748: return 400+(x-400)*100/539 else: return 0 Data["O3_SubIndex"] =Data["O3"].astype(int).apply(lambda x: get_O3_subindex(x)) # - # ## Filling the Nan values of AQI column by taking maximum values out of sub-indexs Data["AQI"] = Data["AQI"].fillna(round(Data[["PM2.5_SubIndex", "PM10_SubIndex", "SO2_SubIndex", "NOx_SubIndex","NH3_SubIndex", "CO_SubIndex", "O3_SubIndex"]].max(axis = 1))) Data sns.heatmap(Data.isnull(),yticklabels=False,cbar=False,cmap='viridis') # + ## AQI bucketing def get_AQI_bucket(x): if x <= 50: return "Good" elif x > 50 and x <= 100: return "Satisfactory" elif x > 100 and x <= 200: return "Moderate" elif x > 200 and x <= 300: return "Poor" elif x > 300 and x <= 400: return "Very Poor" elif x > 400: return "Severe" else: return '0' Data["AQI_Bucket"] = Data["AQI_Bucket"].fillna(Data["AQI"].apply(lambda x: get_AQI_bucket(x))) # - sns.heatmap(Data.isnull(),yticklabels=False,cbar=False,cmap='viridis') Data_city_day = Data.copy() Data_city_day.columns plt.figure(figsize=(12,10)) sns.heatmap(Data.corr(),cmap='coolwarm',annot=True); # + pollutants = ['PM2.5', 'PM10', 'NO', 'NO2', 'NOx', 'NH3', 'CO', 'SO2','O3', 'Benzene', 'Toluene', 'Xylene'] Data_city_day = Data_city_day[pollutants] print('Distribution of different pollutants in last 5 years') Data_city_day.plot(kind='line',figsize=(18,18),cmap='coolwarm',subplots=True,fontsize=10); # - Data[['City','AQI']].groupby('City').mean().sort_values('AQI').plot(kind='bar',cmap='Blues_r',figsize=(8,8)) plt.title('Average AQI in last 5 years'); # # Scatter plot for both PM2.5 vs AQI import matplotlib.pyplot as plt plt.scatter(Data['AQI'],Data['PM2.5']) Data['PM2.5'].hist() final_Data= Data[['AQI', 'AQI_Bucket']].copy() final_Data final_Data['AQI_Bucket'].unique() final_Data['AQI_Bucket'] = final_Data['AQI_Bucket'].map({'Good' :0, 'Satisfactory' :1, 'Moderate' :2, 'Poor' :3, 'Very Poor' :4, 'Severe' :5}).astype(int) #mapping numbers final_Data.head() X = final_Data[['AQI']] y = final_Data[['AQI_Bucket']] # # Random_Forest_Regression # + from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, random_state = 0) clf =RandomForestRegressor(random_state = 0).fit(X_train, y_train) y_pred = clf.predict(X_test) # - print("Enter the value of AQI:") AQI = float(input("AQI : ")) output = clf.predict([[AQI]]) output t1=Data.drop(['City',"PM2.5_SubIndex", "PM10_SubIndex", "SO2_SubIndex", "NOx_SubIndex","NH3_SubIndex", "CO_SubIndex", "O3_SubIndex"],axis=1) train1=t1.drop(['AQI','AQI_Bucket'],axis=1) clf.fit(train1,final_Data) clf.score(train1,final_Data) Y_pred = clf.predict(train1) Y_pred from sklearn.metrics import r2_score print('Coefficient of determination : %.2f'% r2_score(final_Data,Y_pred)) from sklearn.metrics import mean_absolute_error print('mean_absolute_error: %.2f' % mean_absolute_error(final_Data,Y_pred)) clf.predict([[67.854497,114.584029,0.92,18.22,17.15,23.024137,0.92,27.64,133.36,0,0.02,0]])
8,488
/acceleration/plot_global.ipynb
9267162a590fe161b2be56cc212361b7f30ebb72
[]
no_license
erwinlambert/codependence
https://github.com/erwinlambert/codependence
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
409,832
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # ToDo # # Next week: OpenCV, CNN, doc, M5 day; HOML night # # # 4. Join other data # 10. Regularize # 1. Try SVM's # 1. Try polynomial features # 1. Sratified KFolds # 1. Cross validation # 1. Same scales broader boundaries # 2. Feature Importance # 3. Pipelines # 4. Put into functions # # # References # 1. [Dermatologist skin cancer classification CNN](https://towardsdatascience.com/dermatologist-level-skin-cancer-classification-using-neural-network-475f93d7f8c3) # 2. [Painting and Sketching with OpenCV](https://towardsdatascience.com/painting-and-sketching-with-opencv-in-python-4293026d78b) # 2. [Data Visualization in Python with fully-interactive plots Python](https://towardsdatascience.com/the-next-level-of-data-visualization-in-python-dd6e99039d5e) # 2. [how to implement a lightgbm](https://medium.com/@pushkarmandot/https-medium-com-pushkarmandot-what-is-lightgbm-how-to-implement-it-how-to-fine-tune-the-parameters-60347819b7fc) # 2. [Cat Dog classifier CNN](https://machinelearningmastery.com/how-to-develop-a-convolutional-neural-network-to-classify-photos-of-dogs-and-cats/) # 2. [feature importance with xgboost](https://machinelearningmastery.com/feature-importance-and-feature-selection-with-xgboost-in-python/) # 2. [shapley-values](https://medium.com/@santiagof/model-interpretability-making-your-model-confess-shapley-values-5fb95a10a624) # 2. [Find and Draw Contours using OpenCV](https://www.geeksforgeeks.org/find-and-draw-contours-using-opencv-python/) # 2. [Medical Image Segmentation [Part 1] — UNet: Convolutional Networks with Interactive Code](https://medium.com/@SeoJaeDuk/medical-image-segmentation-part-1-unet-convolutional-networks-with-interactive-code-d07231eb29bf) # 2. [Complexity - Morphometrics](https://www.researchgate.net/post/Can_anyone_give_me_information_about_Perimeter_Area_relationship_and_its_importance_mathematically_and_biometrically_plant_leaves_phenomics) # # **Idea**: Add computed features using time windows on each image generating interactions image_count(add) and anatom_site categories # # **Summary:** To train binary classifiers, choose the appropriate metric for your task, evaluate your classifiers using cross-validation, select the precision/recall tradeoff that fits your needs, and compare various models using ROC curves and ROC AUC scores. # # + import pandas as pd import numpy as np import pylab as plt from IPython import display import seaborn as sns sns.set() import matplotlib from pylab import rcParams import itertools import time from random import seed from random import random from matplotlib import pyplot #from skimage.io import imread from PIL import Image import plotly.offline as py py.init_notebook_mode(connected=True) import plotly.graph_objs as go from plotly.subplots import make_subplots #Reading data, calendar and sell_prices train = pd.read_csv('../data/train.csv') test = pd.read_csv('../data/test.csv') sample_submission = pd.read_csv('../data/sample_submission.csv') train.head(2) # - # # Models to try # ### Random Forest from sklearn.ensemble import RandomForestClassifier from sklearn import metrics # Function for comparing different approaches def train_randomForest(X_train, X_valid, y_train, y_valid, test = None, feature_cols=None, plott = False): if feature_cols is None: feature_cols = X_train.columns model = RandomForestClassifier(n_estimators=20, random_state=42) model.fit(X_train[feature_cols], y_train) preds = model.predict_proba(X_valid[feature_cols])[:,1] valid_score = metrics.roc_auc_score(y_valid, preds) if plott: fpr, tpr, _ = metrics.roc_curve(y_valid, preds, pos_label=None) plt.scatter(fpr,tpr) plt.plot(fpr,fpr) plt.xlabel('false positives rate') plt.ylabel('true positives rate') print(f"random forest AUC score: {valid_score}") return valid_score if test is not None: test_pred = model.predict(test) return model, valid_score, test_pred else: return model, valid_score # ### Light Gradient Boosted Machine (lightGBM) # + import lightgbm as lgb def train_lbgm(train, valid, y_train, y_valid, test=None, feature_cols=None, plott=False, num_leaves = 16): if feature_cols is None: feature_cols = train.columns dtrain = lgb.Dataset(train[feature_cols], label=y_train) dvalid = lgb.Dataset(valid[feature_cols], label=y_valid) param = {'num_leaves': num_leaves, 'objective': 'binary', 'metric': 'auc', 'seed': 42} num_round = 20000 print("Training model. Hold on a minute to see the validation score") bst = lgb.train(param, dtrain, num_round, valid_sets=[dvalid], early_stopping_rounds=40, verbose_eval=False) valid_pred = bst.predict(valid[feature_cols]) valid_score = metrics.roc_auc_score(y_valid, valid_pred) print(f"lightbgm AUC score: {valid_score}") if plott: fpr, tpr, _ = metrics.roc_curve(y_valid, valid_pred, pos_label=1) plt.scatter(fpr,tpr) plt.plot(fpr,fpr) plt.xlabel('false positives rate') plt.ylabel('true positives rate') if test is not None: test_pred = bst.predict(test[feature_cols]) return bst, valid_score, test_pred else: return bst, valid_score # - # ### Logistic Regression # + from sklearn.linear_model import LogisticRegression def train_logisticReg(X_train, X_valid, y_train, y_valid, test = None, feature_cols=None, plott = False): if feature_cols is None: feature_cols = X_train.columns clf = LogisticRegression(random_state=42, max_iter=1000) clf.fit(X_train[feature_cols], y_train) preds = clf.predict_proba(X_valid[feature_cols])[:,1] valid_score = metrics.roc_auc_score(y_valid, preds) if plott: fpr, tpr, _ = metrics.roc_curve(y_valid, preds, pos_label=None) plt.scatter(fpr,tpr) plt.plot(fpr,fpr) plt.xlabel('false positives rate') plt.ylabel('true positives rate') print(f"Logistic Regression AUC score: {valid_score}") if test is not None: test_pred = clf.predict(test) return clf, valid_score, test_pred else: return clf, valid_score # - # ### XGBOOST # + import xgboost as xgb from xgboost import XGBClassifier, plot_importance def train_xgb(train, valid, y_train, y_valid, test=None, feature_cols=None, plott=False, num_round = 200,eta = 0.4, alpha=0.0, gamma=0.0, max_depth = 8): if feature_cols is None: feature_cols = train.columns dtrain = xgb.DMatrix(train[feature_cols], label=y_train) dvalid = xgb.DMatrix(valid[feature_cols], label=y_valid) #param = {'num_leaves': num_leaves, 'objective': 'binary', 'metric': 'auc', 'seed': 42 param = {'eta': eta,'alpha':alpha, 'max_depth':max_depth, 'objective': 'multi:softprob', 'gamma': gamma,'num_class': 2} print("Training model.") bst = xgb.train(param, dtrain, num_round, evals=[(dvalid, "valid")], early_stopping_rounds=20, verbose_eval=False) valid_pred = bst.predict(dvalid) valid_score = metrics.roc_auc_score(y_valid, valid_pred[:,1]) print(f"XGBoost AUC score: {valid_score}") if plott: fpr, tpr, _ = metrics.roc_curve(y_valid, valid_pred[:,1], pos_label=None)#, pos_label=1) plt.scatter(fpr,tpr) plt.plot(fpr,fpr) plt.xlabel('false positives rate') plt.ylabel('true positives rate') if test is not None: test_pred = bst.predict(test[feature_cols]) return bst, valid_score, test_pred else: return bst, valid_score # + eta = 0.4 max_depth = 6 D_train = xgb.DMatrix(baseline_train, label = y_train) D_val = xgb.DMatrix(baseline_valid, label = y_valid) param = {'eta': eta,'alpha':0.1, #'delta':0.1, 'max_depth':max_depth, 'objective': 'multi:softprob', 'gamma': 0.00,'num_class': 2} steps = 21 # The number of training iterations model = xgb.train(param, D_train, steps) preds = model.predict(D_val) fpr, tpr, thresholds = metrics.roc_curve(y_valid, preds[:,1], pos_label=None) #plt.scatter(fpr,tpr) #plt.plot(fpr,fpr) #plt.xlabel('false positives rate') #plt.ylabel('true positives rate') # - # ### Extract gender per patient def create_patient_df(train,test): #Create a series with patient_id as index and gender values for train and test patient_gender_train = train.groupby("patient_id").sex.unique().apply(lambda l: l[0]) patient_gender_test = test.groupby("patient_id").sex.unique().apply(lambda l: l[0]) #Convert series into train_patients and test_patients dataframes train_patients = pd.DataFrame(index=patient_gender_train.index.values, data=patient_gender_train.values, columns=["sex"]) test_patients = pd.DataFrame(index=patient_gender_test.index.values, data=patient_gender_test.values, columns=["sex"]) #Extract nun_images with proper groupby train_patients["num_images"] = train.groupby("patient_id").size() test_patients["num_images"] = test.groupby("patient_id").size() #Extract age_span for patient with multiple images train_patients["min_age"] = train.groupby("patient_id").age_approx.min() train_patients["max_age"] = train.groupby("patient_id").age_approx.max() test_patients["min_age"] = test.groupby("patient_id").age_approx.min() test_patients["max_age"] = test.groupby("patient_id").age_approx.max() train_patients["age_span"] = train_patients["max_age"] - train_patients["min_age"] test_patients["age_span"] = test_patients["max_age"] - test_patients["min_age"] #Extract benign_cases and min and max aged for malignant train_patients["benign_cases"] = train.groupby(["patient_id", "benign_malignant"]).size().loc[:, "benign"] train_patients["malignant_cases"] = train.groupby(["patient_id", "benign_malignant"]).size().loc[:, "malignant"] train_patients["min_age_malignant"] = train.groupby(["patient_id", "benign_malignant"]).age_approx.min().loc[:, "malignant"] train_patients["max_age_malignant"] = train.groupby(["patient_id", "benign_malignant"]).age_approx.max().loc[:, "malignant"] return train_patients, test_patients # ## Patient Id Counts train_patients, test_patients = create_patient_df(train,test) print("train_patients shape:",train_patients.shape) print('Malignant cases count train:') print(train_patients.malignant_cases.notnull().value_counts()) train_patients.sort_values(by="malignant_cases", ascending=False).head(2) # ## Preprocess Categorical Variables # # ## Impute and label encode separately for the test-valid-train distributions # # Better suited for production like scenarios. # # Missing values and `SimpleImputer`. The `anatom_site_general_challenge` and sex` category` in the train set has a lot of NaNs, we will repalce them with the `'Unknown'` (try `.mode()`). Is this the best approach ?? # + from sklearn.impute import SimpleImputer from sklearn import preprocessing from sklearn.model_selection import train_test_split # target cols_to_drop = ['image_name','diagnosis', 'benign_malignant','target'] y = train.target X = train.drop(cols_to_drop, axis=1) #Missing values Categorcial values train # Fill NaN with Unknown on anatom_site_general_challenge mode1 = X['anatom_site_general_challenge'].mode()[0] X['anatom_site_general_challenge'].fillna('Unknown', inplace=True) # Fill NaN with mode on 'sex' mode = X['sex'].mode()[0] X['sex'].fillna('Unknown', inplace=True) #Add patient df to train set train_patients_cols_add=["num_images","min_age","max_age","age_span"] X =X.reset_index().merge(train_patients[train_patients_cols_add].reset_index().rename(columns={'index':"patient_id"}), on =["patient_id"]).sort_values(by='index').set_index('index').reset_index(drop=True) #Add patient test set X_test=test.reset_index().merge(test_patients[train_patients_cols_add].reset_index().rename(columns={'index':"patient_id"}), on =["patient_id"]).sort_values(by='index').set_index('index').reset_index(drop=True) # Fill NaN with Unknown on anatom_site_general_challenge X_test['anatom_site_general_challenge'].fillna('Unknown', inplace=True) # Divide data into training and validation subsets X_train, X_valid, y_train, y_valid = train_test_split(X, y, train_size=0.8, test_size=0.2, random_state=42) # All categorical columns object_cols = ['patient_id', 'sex', 'anatom_site_general_challenge'] # Imputation Numerical features # Get names of columns with missing values cols_with_missing = ['num_images','age_approx', 'min_age','max_age','age_span'] my_imputer = SimpleImputer() imputed_X_train = pd.DataFrame(my_imputer.fit_transform(X_train[cols_with_missing]), index=X_train.index) imputed_X_valid = pd.DataFrame(my_imputer.transform(X_valid[cols_with_missing]), index=X_valid.index) # Imputation removed column names; put them back imputed_X_train.columns = X_train[cols_with_missing].columns imputed_X_valid.columns = X_valid[cols_with_missing].columns # Columns that can be safely label encoded and Problematic columns label_cols = ['sex', 'anatom_site_general_challenge'] not_label_cols = ['patient_id', 'age_approx', 'min_age','max_age','age_span','num_images'] # Drop categorical columns that will not be encoded label_X_train = X_train.drop(not_label_cols, axis=1) label_X_valid = X_valid.drop(not_label_cols, axis=1) label_X_test = X_test[label_cols] # Apply label encoder to bad_label_cols label_encoder = preprocessing.LabelEncoder() for col in label_cols: label_X_train[col] = label_encoder.fit_transform(label_X_train[col]) label_X_valid[col] = label_encoder.transform(label_X_valid[col]) label_X_test[col] = label_encoder.transform(label_X_test[col]) #Create baseline data baseline_train = label_X_train.join(imputed_X_train) baseline_valid = label_X_valid.join(imputed_X_valid) baseline_test = label_X_test.join(X_test[cols_with_missing]) # Compute models print("Labeled and imputed features:") lgstc, _ =train_logisticReg(baseline_train, baseline_valid, y_train, y_valid, plott=True) train_randomForest(baseline_train, baseline_valid, y_train, y_valid, plott=True) bst, _ = train_lbgm(baseline_train, baseline_valid, y_train, y_valid, plott=True, num_leaves =16) print("feature_importance:",bst.feature_importance()) xgbst, _ =train_xgb(baseline_train, baseline_valid, y_train, y_valid, plott=True, num_round = 200,eta = 0.4, alpha=0.0, gamma=0.0, max_depth = 16) plot_importance( xgbst, importance_type='gain', show_values=False) baseline_train.head(1) # - # #### Submission baseline results: #xgboost d_test = xgb.DMatrix(baseline_test) sample_submission['target'] = xgbst.predict(d_test)[:,1] sample_submission.to_csv("../data/submission_v11.csv", index=False) sample_submission.head() #lbgm sample_submission['target'] = bst.predict(baseline_test) sample_submission.to_csv("../data/submission_v8.csv", index=False) sample_submission.head() #logistic regression sample_submission['target'] = lgstc.predict_proba(baseline_test)[:,1] sample_submission.to_csv("../data/submission_v12.csv", index=False) sample_submission.head() lgstc.predict_proba(baseline_test)[:,1] print("lbgm Score submission_v6.csv num_leaves 16: 0.6433") print("lbgm Score submission_v7.csv num_leaves 64: 0.6341") print("lbgm Score submission_v8.csv num_leaves 8: 0.6129") print("XGBoost Score submission_v9.csv (eta = 0.1, alpha=0.1, gamma=0.4, max_depth = 8): 0.6389, valid:0.81409") print("XGBoost Score submission_v10.csv (eta = 0.4, alpha=0.1, gamma=0.2, max_depth = 4): 0.6182 valid:0.81077") print("XGBoost Score submission_v11.csv (eta = 0.4, alpha=0.1, gamma=0.2, max_depth = 4): 0.6058 valid:0.7867655") # This is slighty less than when the encoding is use with pandas `factorize()`. Let's try using only the patient # # ### Just patient feature_cols = ["num_images", "min_age", "max_age", "age_span"] train_logisticReg(imputed_X_train, imputed_X_valid, y_train, y_valid,plott=True, feature_cols =feature_cols ) train_randomForest(imputed_X_train, imputed_X_valid, y_train, y_valid,plott=True, feature_cols =feature_cols ) train_xgb(imputed_X_train, imputed_X_valid, y_train, y_valid,plott=True, feature_cols =feature_cols ) bst, _ = train_lbgm(imputed_X_train, imputed_X_valid, y_train, y_valid,plott=True, feature_cols =feature_cols, num_leaves =16 ) print("feature_importance:",bst.feature_importance()) X_train[feature_cols].head(2) # #### Submission patient - lbgm sample_submission['target'] = bst.predict(X_test[feature_cols].astype(int)) sample_submission.to_csv("../data/submission_v5.csv", index=False) sample_submission.head() print("Score submission_v5.csv: 0.6336") # ### One hot enconding # + # Apply one-hot encoder to each column with categorical data label_cols = ['sex', 'anatom_site_general_challenge'] OH_encoder = preprocessing.OneHotEncoder( sparse=False) OH_X_train = pd.DataFrame(OH_encoder.fit_transform(X_train[label_cols])) OH_X_valid = pd.DataFrame(OH_encoder.transform(X_valid[label_cols])) # One-hot encoding removed index; put it back OH_X_train.index = X_train.index OH_X_valid.index = X_valid.index #add column names oh_cols = [] for col in label_cols: for index in range(len(X_train[col].value_counts().index)): oh_cols.append(col+'_'+str(index)) OH_X_train.columns = oh_cols OH_X_valid.columns = oh_cols train_logisticReg(OH_X_train, OH_X_valid, y_train, y_valid,plott=False) train_randomForest(OH_X_train, OH_X_valid, y_train, y_valid,plott=False) train_lbgm(OH_X_train, OH_X_valid, y_train, y_valid,plott=False,feature_cols=OH_X_train.columns) xgbst, _ =train_xgb(OH_X_train, OH_X_valid, y_train, y_valid, plott=False, num_round = 200,eta = 0.4, alpha=0.0, gamma=0.0, max_depth = 8) #plot_importance( xgbst, importance_type='gain', show_values=False) OH_X_train.head(1) # - # Compare with just lable encode alone feature_cols = imputed_X_train.join(OH_X_train).columns baseline_train = imputed_X_train.join(OH_X_train), baseline_train =imputed_X_valid.join(OH_X_valid), train_logisticReg ( y_train, y_valid,plott=False) imputed_X_train.join(OH_X_train).head(2) bst, _ = train_lbgm(X_train.join(OH_X_train).drop(columns=cols_low_card), X_valid.join(OH_X_valid).drop(columns=cols_low_card), y_train, y_valid,plott=False, feature_cols =X_train.join(OH_X_train).drop(columns=cols_low_card).columns ) print("feature_importance:",bst.feature_importance()) X_train.join(OH_X_train).drop(columns=cols_low_card).head(1) # ### 4. Count Encoding # + import category_encoders as ce label_cols = ['patient_id', 'sex', 'anatom_site_general_challenge'] # Create the count encoder count_enc = ce.CountEncoder(cols=label_cols) # Learn encoding from the training set count_encoded = count_enc.fit(X[label_cols]) # Apply encoding to the train and validation sets as new columns # Make sure to add `_count` as a suffix to the new columns count_X_train = count_enc.transform(X_train[label_cols]).add_suffix('_count') count_X_valid = count_enc.transform(X_valid[label_cols]).add_suffix('_count') count_X_train.head(3) # - print("AUC from (OneHot Encode):") _ = train_randomForest(count_X_train, count_X_valid, y_train, y_valid ) _ = train_logisticReg(count_X_train, count_X_valid, y_train, y_valid ) _ = train_lbgm(count_X_train, count_X_valid, y_train, y_valid, feature_cols = count_X_train.columns, num_leaves=16 ) _, _ = train_lbgm(X_train.join(count_X_train).drop(columns=label_cols), X_valid.join(count_X_valid).drop(columns=label_cols), y_train, y_valid,plott=False) X_train.join(count_X_train).drop(columns=cols_low_card).head(1) # ### 4. Add interaction features # # Add interaction features for each pair of categorical features (sex, anatom_site_general_challenge ). Iterate through the pairs of features is with `itertools.combinations`. For each new column, join the values as strings with an underscore, so 13 and 47 would become `"13_47"`. Label encode the values. # + import itertools cat_features = ['sex', 'anatom_site_general_challenge'] def create_interactions(train, valid, cat_features): interactions_train = pd.DataFrame(index=train.index) interactions_valid = pd.DataFrame(index=valid.index) # Iterate through each pair of features, combine them into interaction features encoder = preprocessing.LabelEncoder() for col1, col2 in itertools.combinations(cat_features,2): new_col = col1 +'_'+ col2 new_vals = train[col1].map(str) + '_' + train[col2].map(str) interactions_train[new_col] = encoder.fit_transform(new_vals) new_vals = valid[col1].map(str) + '_' + valid[col2].map(str) interactions_valid[new_col] = encoder.transform(new_vals) return interactions_train, interactions_valid interactions_train, interactions_valid = create_interactions(X_train,X_valid, cat_features) interactions_train.head(1) # - # ## Generate Baseline data # 1. Try all features # + #add imputed and categorical label baseline_train = imputed_X_train.join(label_X_train) baseline_valid = imputed_X_valid.join(label_X_valid) #add interactions baseline_train = baseline_train.join(interactions_train) baseline_valid = baseline_valid.join(interactions_valid) #baseline_train.drop(columns= cols_to_keep, inplace=True) #baseline_valid.drop(columns=cols_to_keep, inplace=True) print("AUC from Approach 2 (Imputation):") train_logisticReg(baseline_train, baseline_valid, y_train, y_valid) train_randomForest(baseline_train, baseline_valid, y_train, y_valid) bst, _ = train_lbgm(baseline_train, baseline_valid, y_train, y_valid, feature_cols = baseline_train.columns) print("feature_importance:",bst.feature_importance()) baseline_train.head(3) # - # 2. Try only imputed # 2. Try only label columns print("Baseline model score") feature_cols = baseline_train.columns.drop('sex') bst, _ = train_lbgm(baseline_train, baseline_valid, y_train , y_valid, feature_cols=feature_cols, plott=True) print("feature_importance:",bst.feature_importance()) baseline_train[feature_cols].head(3) feature_cols = [ 'num_images', 'age_approx', 'min_age', 'max_age', 'age_span', 'sex', 'anatom_site_general_challenge', 'sex_anatom_site_general_challenge' ] bst, _ = train_lbgm(baseline_train, baseline_valid, y_train, y_valid, feature_cols=feature_cols) print("feature_importance:",bst.feature_importance()) baseline_train[feature_cols].head(1) feature_cols = baseline_train.columns.to_list() bst, _ = train_lbgm(baseline_train, baseline_valid, y_train, y_valid, feature_cols=feature_cols) print("feature_importance:",bst.feature_importance()) baseline_train[feature_cols].head(3) # ## Univariate Feature Selection # # The simplest and fastest methods are based on univariate statistical tests. Scikit-learn's feature selection module, `feature_selection.SelectKBest` returns the K best features given some scoring function. For our classification problem, the module provides three different scoring functions: $\chi^2$, ANOVA F-value, and the mutual information score. The F-value measures the linear dependency between the feature variable and the target (might underestimate if nonlinear). The mutual information score is nonparametric and so can capture nonlinear relationships. Using `.fit_transform(features, target)` we get back an array with only the selected features. # + from sklearn.feature_selection import SelectKBest, f_classif, mutual_info_classif # Keep 5 features selector = SelectKBest(mutual_info_classif, k=5) #Use only train set to avoid leakage X_new = selector.fit_transform(baseline_train, y_train) selected_features = pd.DataFrame(selector.inverse_transform(X_new), columns=baseline_train.columns).head() selected_features = selected_features.columns[selected_features.var() != 0].to_list() #baseline_train[selected_features].head(2) selected_features # - feature_cols = selected_features bst, _ = train_lbgm(baseline_train, baseline_valid, y_train, y_valid, feature_cols=feature_cols) print("feature_importance:",bst.feature_importance()) baseline_train[feature_cols].head(3) # ## Try other models # Predict probability target y_pred_p = clf.predict_proba(baseline_valid[selected_features]) # ## Summary # # 1. Too much data, what to do ?? Cloud, Kaggle. Encode images in cloud like env and then use encodings locally. Ignore images for the mean time and include them later on. # 2. Binary classifier # 3. `image_name, patient_id, sex, age_approx, anatom_site_general_challenge, diagnosis, benign_malignant, target` Categorical variables ?? # 4. PCA o tSNE # 4. Ideas: Use ResNet to encode images, other options Inception, VGG, CV2 ?? Which?? # 5. Note that test set DO NOT HAVE: `diagnosis, benign_malignant, target` and the task is to predict ` target` # 6. Is there any other relevant information in the DICOM or tfrecords available in the data set. # 7. What should we use for a cost function # 8. Review Notebooks on Kaggle, see below. # 9. How to work with unbalance datasets, # 10. Benchamark XGBoost... # # # Reference # * [Kaggel notebook](https://www.kaggle.com/allunia/don-t-turn-into-a-smoothie-after-the-shake-up) # # ## Strategy # # 1. Run model with only the metadata, XGBoost, logistic regresion(benchmark), categorical variables # 2. f1 score, note that # 3. Feature importance -- XGBoost, shapely values # 66. Encoding de las imagenes -- mole size ????? # 3. Preprocessing (mole shape) CV2 ("normalise"), # 4. Mid July EDA # 5. Agosto Run-Run-Run # # ## Ideas con Carlos # 1. Usar features de smoothie -- Numero de imagenes por paciente, sacar mas features, benign/malign(no esta train set), # 2. Mirar imagenes: Data augmentation (positives), contornos, y color --- standarizar. # 3. StratifiesKFold para solucionar low positive stats # 4. See categorical variables, oridinal or not. # # Dependencies # !pip install seaborn
26,333
/Example_Notebooks/.ipynb_checkpoints/Readme-checkpoint.ipynb
f8249ed89971362ba25a65daea90c4ad81460d6f
[ "BSD-3-Clause-LBNL" ]
permissive
zhuhapeng/a3dbr
https://github.com/zhuhapeng/a3dbr
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
868
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: a3dbr # language: python # name: a3dbr # --- # ### notebooks with _ST are modified version of Marc's notebooks # ### notebooks with \_pix4d\_HQ are notebooks that use data from the Head quarter of Pix4d which is openely available in the example section on Pix4d website. #
492
/Initialization.ipynb
77b19a3f557f7e678a42cf459aacb35c8a3d603f
[]
no_license
Dilavarj7/Improving-Deep-Neural-Networks
https://github.com/Dilavarj7/Improving-Deep-Neural-Networks
2
0
null
null
null
null
Jupyter Notebook
false
false
.py
279,184
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/Dilavarj7/Improving-Deep-Neural-Networks---Part-I/blob/main/Initialization.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] id="UdrZhqk9s8YO" # # Initialization # # Welcome to the first assignment of "Improving Deep Neural Networks". # # Training your neural network requires specifying an initial value of the weights. A well chosen initialization method will help learning. # # If you completed the previous course of this specialization, you probably followed our instructions for weight initialization, and it has worked out so far. But how do you choose the initialization for a new neural network? In this notebook, you will see how different initializations lead to different results. # # A well chosen initialization can: # - Speed up the convergence of gradient descent # - Increase the odds of gradient descent converging to a lower training (and generalization) error # # To get started, run the following cell to load the packages and the planar dataset you will try to classify. # + colab={"base_uri": "https://localhost:8080/"} id="_lrnyKa9t9Ie" outputId="606fd94a-af3e-47ca-da9c-c9b0a7490bff" from google.colab import drive drive.mount('/content/drive') # + id="jSLsc1VrtFRN" # !cp '/content/drive/MyDrive/AlmaBetter/Cohort Aravali/Module 6/Assignment _ Improving Deep Neural Networks - Part I/Initialization/init_utils.py' '/content' # + colab={"base_uri": "https://localhost:8080/", "height": 265} id="xqBUUN5Ws8YW" outputId="2e6680e6-4f1a-4436-fa19-5140e74a638f" import numpy as np import matplotlib.pyplot as plt import sklearn import sklearn.datasets from init_utils import sigmoid, relu, compute_loss, forward_propagation, backward_propagation from init_utils import update_parameters, predict, load_dataset, plot_decision_boundary, predict_dec # %matplotlib inline plt.rcParams['figure.figsize'] = (7.0, 4.0) # set default size of plots plt.rcParams['image.interpolation'] = 'nearest' plt.rcParams['image.cmap'] = 'gray' # load image dataset: blue/red dots in circles train_X, train_Y, test_X, test_Y = load_dataset() # + [markdown] id="oyERdlgys8YX" # You would like a classifier to separate the blue dots from the red dots. # + [markdown] id="e_kWu5bUs8YX" # ## 1 - Neural Network model # + [markdown] id="Mp3jzbiCs8YY" # You will use a 3-layer neural network (already implemented for you). Here are the initialization methods you will experiment with: # - *Zeros initialization* -- setting `initialization = "zeros"` in the input argument. # - *Random initialization* -- setting `initialization = "random"` in the input argument. This initializes the weights to large random values. # - *He initialization* -- setting `initialization = "he"` in the input argument. This initializes the weights to random values scaled according to a paper by He et al., 2015. # # **Instructions**: Please quickly read over the code below, and run it. In the next part you will implement the three initialization methods that this `model()` calls. # + id="XTZUTovRs8YY" def model(X, Y, learning_rate = 0.01, num_iterations = 15000, print_cost = True, initialization = "he"): """ Implements a three-layer neural network: LINEAR->RELU->LINEAR->RELU->LINEAR->SIGMOID. Arguments: X -- input data, of shape (2, number of examples) Y -- true "label" vector (containing 0 for red dots; 1 for blue dots), of shape (1, number of examples) learning_rate -- learning rate for gradient descent num_iterations -- number of iterations to run gradient descent print_cost -- if True, print the cost every 1000 iterations initialization -- flag to choose which initialization to use ("zeros","random" or "he") Returns: parameters -- parameters learnt by the model """ grads = {} costs = [] # to keep track of the loss m = X.shape[1] # number of examples layers_dims = [X.shape[0], 10, 5, 1] # Initialize parameters dictionary. if initialization == "zeros": parameters = initialize_parameters_zeros(layers_dims) elif initialization == "random": parameters = initialize_parameters_random(layers_dims) elif initialization == "he": parameters = initialize_parameters_he(layers_dims) # Loop (gradient descent) for i in range(0, num_iterations): # Forward propagation: LINEAR -> RELU -> LINEAR -> RELU -> LINEAR -> SIGMOID. a3, cache = forward_propagation(X, parameters) # Loss cost = compute_loss(a3, Y) # Backward propagation. grads = backward_propagation(X, Y, cache) # Update parameters. parameters = update_parameters(parameters, grads, learning_rate) # Print the loss every 1000 iterations if print_cost and i % 1000 == 0: print("Cost after iteration {}: {}".format(i, cost)) costs.append(cost) # plot the loss plt.plot(costs) plt.ylabel('cost') plt.xlabel('iterations (per hundreds)') plt.title("Learning rate =" + str(learning_rate)) plt.show() return parameters # + [markdown] id="77H1vKSJs8YZ" # ## 2 - Zero initialization # # There are two types of parameters to initialize in a neural network: # - the weight matrices $(W^{[1]}, W^{[2]}, W^{[3]}, ..., W^{[L-1]}, W^{[L]})$ # - the bias vectors $(b^{[1]}, b^{[2]}, b^{[3]}, ..., b^{[L-1]}, b^{[L]})$ # # **Exercise**: Implement the following function to initialize all parameters to zeros. You'll see later that this does not work well since it fails to "break symmetry", but lets try it anyway and see what happens. Use np.zeros((..,..)) with the correct shapes. # + id="sl6PX8rEs8YZ" # GRADED FUNCTION: initialize_parameters_zeros def initialize_parameters_zeros(layers_dims): """ Arguments: layer_dims -- python array (list) containing the size of each layer. Returns: parameters -- python dictionary containing your parameters "W1", "b1", ..., "WL", "bL": W1 -- weight matrix of shape (layers_dims[1], layers_dims[0]) b1 -- bias vector of shape (layers_dims[1], 1) ... WL -- weight matrix of shape (layers_dims[L], layers_dims[L-1]) bL -- bias vector of shape (layers_dims[L], 1) """ parameters = {} L = len(layers_dims) # number of layers in the network for l in range(1, L): ### START CODE HERE ### (≈ 2 lines of code) parameters['W' + str(l)] = np.zeros((layers_dims[l], layers_dims[l-1])) parameters['b' + str(l)] = np.zeros((layers_dims[l],1)) ### END CODE HERE ### return parameters # + colab={"base_uri": "https://localhost:8080/"} id="sb5n_8YPs8Ya" outputId="4dd18150-8429-4866-e7b3-7a8a80350095" parameters = initialize_parameters_zeros([3,2,1]) print("W1 = " + str(parameters["W1"])) print("b1 = " + str(parameters["b1"])) print("W2 = " + str(parameters["W2"])) print("b2 = " + str(parameters["b2"])) # + [markdown] id="JVRbbocTs8Ya" # **Expected Output**: # # <table> # <tr> # <td> # **W1** # </td> # <td> # [[ 0. 0. 0.] # [ 0. 0. 0.]] # </td> # </tr> # <tr> # <td> # **b1** # </td> # <td> # [[ 0.] # [ 0.]] # </td> # </tr> # <tr> # <td> # **W2** # </td> # <td> # [[ 0. 0.]] # </td> # </tr> # <tr> # <td> # **b2** # </td> # <td> # [[ 0.]] # </td> # </tr> # # </table> # + [markdown] id="ZhWkT1Dys8Ya" # Run the following code to train your model on 15,000 iterations using zeros initialization. # + colab={"base_uri": "https://localhost:8080/", "height": 614} id="UHJc68kPs8Yb" outputId="b01aa92a-dc00-4850-dc19-36e6e6f4c289" parameters = model(train_X, train_Y, initialization = "zeros") print ("On the train set:") predictions_train = predict(train_X, train_Y, parameters) print ("On the test set:") predictions_test = predict(test_X, test_Y, parameters) # + [markdown] id="Z9kJ-cahs8Yb" # The performance is really bad, and the cost does not really decrease, and the algorithm performs no better than random guessing. Why? Lets look at the details of the predictions and the decision boundary: # + colab={"base_uri": "https://localhost:8080/"} id="cwe1ahh3s8Yb" outputId="eb4ab966-aedf-409f-a92e-473f5c5a8e40" print ("predictions_train = " + str(predictions_train)) print ("predictions_test = " + str(predictions_test)) # + colab={"base_uri": "https://localhost:8080/", "height": 295} id="IKS8uFiOs8Yb" outputId="d1ccad0c-4ad5-430d-ec4b-bda5b2344c96" plt.title("Model with Zeros initialization") axes = plt.gca() axes.set_xlim([-1.5,1.5]) axes.set_ylim([-1.5,1.5]) plot_decision_boundary(lambda x: predict_dec(parameters, x.T), train_X, train_Y) # + [markdown] id="DVWA5FKss8Yc" # The model is predicting 0 for every example. # # In general, initializing all the weights to zero results in the network failing to break symmetry. This means that every neuron in each layer will learn the same thing, and you might as well be training a neural network with $n^{[l]}=1$ for every layer, and the network is no more powerful than a linear classifier such as logistic regression. # + [markdown] id="vWw_b5hOs8Yc" # <font color='blue'> # **What you should remember**: # - The weights $W^{[l]}$ should be initialized randomly to break symmetry. # - It is however okay to initialize the biases $b^{[l]}$ to zeros. Symmetry is still broken so long as $W^{[l]}$ is initialized randomly. # # + [markdown] id="IZDHip5Js8Yc" # ## 3 - Random initialization # # To break symmetry, lets intialize the weights randomly. Following random initialization, each neuron can then proceed to learn a different function of its inputs. In this exercise, you will see what happens if the weights are intialized randomly, but to very large values. # # **Exercise**: Implement the following function to initialize your weights to large random values (scaled by \*10) and your biases to zeros. Use `np.random.randn(..,..) * 10` for weights and `np.zeros((.., ..))` for biases. We are using a fixed `np.random.seed(..)` to make sure your "random" weights match ours, so don't worry if running several times your code gives you always the same initial values for the parameters. # + id="I6mKunXcs8Yd" # GRADED FUNCTION: initialize_parameters_random def initialize_parameters_random(layers_dims): """ Arguments: layer_dims -- python array (list) containing the size of each layer. Returns: parameters -- python dictionary containing your parameters "W1", "b1", ..., "WL", "bL": W1 -- weight matrix of shape (layers_dims[1], layers_dims[0]) b1 -- bias vector of shape (layers_dims[1], 1) ... WL -- weight matrix of shape (layers_dims[L], layers_dims[L-1]) bL -- bias vector of shape (layers_dims[L], 1) """ np.random.seed(3) # This seed makes sure your "random" numbers will be the as ours parameters = {} L = len(layers_dims) # integer representing the number of layers for l in range(1, L): ### START CODE HERE ### (≈ 2 lines of code) parameters['W' + str(l)] = np.random.randn(layers_dims[l],layers_dims[l-1]) * 10 parameters['b' + str(l)] = np.zeros((layers_dims[l],1)) ### END CODE HERE ### return parameters # + colab={"base_uri": "https://localhost:8080/"} id="cpQFySrJs8Yd" outputId="3eb61cc5-d2f9-491f-f26c-3f2df41522ee" parameters = initialize_parameters_random([3, 2, 1]) print("W1 = " + str(parameters["W1"])) print("b1 = " + str(parameters["b1"])) print("W2 = " + str(parameters["W2"])) print("b2 = " + str(parameters["b2"])) # + [markdown] id="FnGqqrOps8Ye" # **Expected Output**: # # <table> # <tr> # <td> # **W1** # </td> # <td> # [[ 17.88628473 4.36509851 0.96497468] # [-18.63492703 -2.77388203 -3.54758979]] # </td> # </tr> # <tr> # <td> # **b1** # </td> # <td> # [[ 0.] # [ 0.]] # </td> # </tr> # <tr> # <td> # **W2** # </td> # <td> # [[-0.82741481 -6.27000677]] # </td> # </tr> # <tr> # <td> # **b2** # </td> # <td> # [[ 0.]] # </td> # </tr> # # </table> # + [markdown] id="TzS3djNNs8Ye" # Run the following code to train your model on 15,000 iterations using random initialization. # + colab={"base_uri": "https://localhost:8080/", "height": 682} id="_S5mjifUs8Ye" outputId="f860a1dc-2c48-479b-ed66-1767c58fbc56" parameters = model(train_X, train_Y, initialization = "random") print ("On the train set:") predictions_train = predict(train_X, train_Y, parameters) print ("On the test set:") predictions_test = predict(test_X, test_Y, parameters) # + [markdown] id="BoVckPIYs8Yf" # If you see "inf" as the cost after the iteration 0, this is because of numerical roundoff; a more numerically sophisticated implementation would fix this. But this isn't worth worrying about for our purposes. # # Anyway, it looks like you have broken symmetry, and this gives better results. than before. The model is no longer outputting all 0s. # + colab={"base_uri": "https://localhost:8080/"} id="y8ZUKaUGs8Yf" outputId="4a8db2d4-f8f7-43fe-c599-dbdf38b3132c" print (predictions_train) print (predictions_test) # + colab={"base_uri": "https://localhost:8080/", "height": 295} id="eRQzy3yps8Yf" outputId="31298e6e-1bc6-4a9c-d5e6-c752c2a76ecc" plt.title("Model with large random initialization") axes = plt.gca() axes.set_xlim([-1.5,1.5]) axes.set_ylim([-1.5,1.5]) plot_decision_boundary(lambda x: predict_dec(parameters, x.T), train_X, train_Y) # + [markdown] id="c7Skld1As8Yf" # **Observations**: # - The cost starts very high. This is because with large random-valued weights, the last activation (sigmoid) outputs results that are very close to 0 or 1 for some examples, and when it gets that example wrong it incurs a very high loss for that example. Indeed, when $\log(a^{[3]}) = \log(0)$, the loss goes to infinity. # - Poor initialization can lead to vanishing/exploding gradients, which also slows down the optimization algorithm. # - If you train this network longer you will see better results, but initializing with overly large random numbers slows down the optimization. # # <font color='blue'> # **In summary**: # - Initializing weights to very large random values does not work well. # - Hopefully intializing with small random values does better. The important question is: how small should be these random values be? Lets find out in the next part! # + [markdown] id="fwuXYx7Us8Yg" # ## 4 - He initialization # # Finally, try "He Initialization"; this is named for the first author of He et al., 2015. (If you have heard of "Xavier initialization", this is similar except Xavier initialization uses a scaling factor for the weights $W^{[l]}$ of `sqrt(1./layers_dims[l-1])` where He initialization would use `sqrt(2./layers_dims[l-1])`.) # # **Exercise**: Implement the following function to initialize your parameters with He initialization. # # **Hint**: This function is similar to the previous `initialize_parameters_random(...)`. The only difference is that instead of multiplying `np.random.randn(..,..)` by 10, you will multiply it by $\sqrt{\frac{2}{\text{dimension of the previous layer}}}$, which is what He initialization recommends for layers with a ReLU activation. # + id="OiZujTFHs8Yh" # GRADED FUNCTION: initialize_parameters_he def initialize_parameters_he(layers_dims): """ Arguments: layer_dims -- python array (list) containing the size of each layer. Returns: parameters -- python dictionary containing your parameters "W1", "b1", ..., "WL", "bL": W1 -- weight matrix of shape (layers_dims[1], layers_dims[0]) b1 -- bias vector of shape (layers_dims[1], 1) ... WL -- weight matrix of shape (layers_dims[L], layers_dims[L-1]) bL -- bias vector of shape (layers_dims[L], 1) """ np.random.seed(3) parameters = {} L = len(layers_dims) - 1 # integer representing the number of layers for l in range(1, L + 1): ### START CODE HERE ### (≈ 2 lines of code) parameters['W' + str(l)] = np.random.randn(layers_dims[l],layers_dims[l-1]) * np.sqrt(2/layers_dims[l-1]) parameters['b' + str(l)] = np.zeros((layers_dims[l],1)) ### END CODE HERE ### return parameters # + colab={"base_uri": "https://localhost:8080/"} id="0Cz3_Yh0s8Yh" outputId="1a14bc79-414b-4726-8266-d05f5be2b121" parameters = initialize_parameters_he([2, 4, 1]) print("W1 = " + str(parameters["W1"])) print("b1 = " + str(parameters["b1"])) print("W2 = " + str(parameters["W2"])) print("b2 = " + str(parameters["b2"])) # + [markdown] id="svVoxAFTs8Yh" # **Expected Output**: # # <table> # <tr> # <td> # **W1** # </td> # <td> # [[ 1.78862847 0.43650985] # [ 0.09649747 -1.8634927 ] # [-0.2773882 -0.35475898] # [-0.08274148 -0.62700068]] # </td> # </tr> # <tr> # <td> # **b1** # </td> # <td> # [[ 0.] # [ 0.] # [ 0.] # [ 0.]] # </td> # </tr> # <tr> # <td> # **W2** # </td> # <td> # [[-0.03098412 -0.33744411 -0.92904268 0.62552248]] # </td> # </tr> # <tr> # <td> # **b2** # </td> # <td> # [[ 0.]] # </td> # </tr> # # </table> # + [markdown] id="ORmGBwf0s8Yi" # Run the following code to train your model on 15,000 iterations using He initialization. # + colab={"base_uri": "https://localhost:8080/", "height": 614} id="DWKtUijrs8Yi" outputId="1bc5cb9f-7c0d-4d88-a6c4-0f41c27d8523" parameters = model(train_X, train_Y, initialization = "he") print ("On the train set:") predictions_train = predict(train_X, train_Y, parameters) print ("On the test set:") predictions_test = predict(test_X, test_Y, parameters) # + colab={"base_uri": "https://localhost:8080/", "height": 295} id="X0ma7TpQs8Yi" outputId="8a0ca504-5599-40f1-e52c-510d0f01ebd5" plt.title("Model with He initialization") axes = plt.gca() axes.set_xlim([-1.5,1.5]) axes.set_ylim([-1.5,1.5]) plot_decision_boundary(lambda x: predict_dec(parameters, x.T), train_X, train_Y) # + [markdown] id="3URpwj6hs8Yi" # **Observations**: # - The model with He initialization separates the blue and the red dots very well in a small number of iterations. # # + [markdown] id="OC4ZzYvHs8Yi" # ## 5 - Conclusions # + [markdown] id="pNWsCd0ks8Yj" # You have seen three different types of initializations. For the same number of iterations and same hyperparameters the comparison is: # # <table> # <tr> # <td> # **Model** # </td> # <td> # **Train accuracy** # </td> # <td> # **Problem/Comment** # </td> # # </tr> # <td> # 3-layer NN with zeros initialization # </td> # <td> # 50% # </td> # <td> # fails to break symmetry # </td> # <tr> # <td> # 3-layer NN with large random initialization # </td> # <td> # 83% # </td> # <td> # too large weights # </td> # </tr> # <tr> # <td> # 3-layer NN with He initialization # </td> # <td> # 99% # </td> # <td> # recommended method # </td> # </tr> # </table> # + [markdown] id="2yin73u_s8Yj" # <font color='blue'> # **What you should remember from this notebook**: # - Different initializations lead to different results # - Random initialization is used to break symmetry and make sure different hidden units can learn different things # - Don't intialize to values that are too large # - He initialization works well for networks with ReLU activations.
20,499
/Guigma-Thierry-Final_project-Part3.ipynb
99f17dab30a6003f7dbb4d2cf866df4f3aeb5b6c
[]
no_license
tguigma/DataViz_Final-Project
https://github.com/tguigma/DataViz_Final-Project
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
421,348
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import numpy as np import networkx as nx from networkx.algorithms.community import k_clique_communities from os import path import pickle import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib # - datadir = 'dataset' sz_clique = 8 edge_th = 2 # + nodes = [] kw2v = dict() edges = [] with open(path.join(datadir, 'AMiner-Author.txt'), 'r') as fin: for i,l in enumerate(fin): if l.startswith('#index '): idx = int(l[7:]) nodes.append(idx) if l.startswith('#t '): kws_ = set([kw.strip().lower() for kw in l[3:].split(';')]) for kw in kws_: if kw not in kw2v: kw2v[kw] = set() kw2v[kw].add(idx) if i % 5000000 == 0: print(i) # - with open(path.join(datadir, 'AMiner-Coauthor.txt'), 'r') as fin: for l in fin: if not l.startswith('#'): continue v1,v2,cnt = l[1:].split() if int(cnt) >= edge_th: edges.append((int(v1),int(v2))) print(len(nodes)) print(len(edges)) print(len(kw2v)) G = nx.Graph() G.add_nodes_from(nodes) G.add_edges_from(edges) coms = list(k_clique_communities(G, sz_clique)) coms = [set(c) for c in coms] coms_ = [] for c in coms: coms_.append(set([int(v) for v in c])) coms = coms_ # + nodes_c = set.union(*[set(c) for c in coms]) nodes_c = set([int(v) for v in nodes_c]) edges_c = [e for e in edges if e[0] in nodes_c and e[1] in nodes_c] kw2v_c = dict() with open(path.join(datadir, 'AMiner-Author.txt'), 'r') as fin: for i,l in enumerate(fin): if l.startswith('#index '): idx = int(l[7:]) if l.startswith('#t '): if idx not in nodes_c: continue kws_ = set([kw.strip().lower() for kw in l[3:].split(';')]) for kw in kws_: if kw not in kw2v_c: kw2v_c[kw] = set() kw2v_c[kw].add(idx) # - # Node to Community v2c = dict() for i,v in enumerate(nodes_c): ls = list() for j,c in enumerate(coms): if v in c: ls.append(j) v2c[v] = ls kws = [k for k,v in kw2v_c.items()] kw2c = [] for i,k in enumerate(kws): cls = [] for v in kw2v_c[k]: cls.append(v2c[v]) kw2c.append(set(np.concatenate(cls))) G_c = nx.Graph() G_c.add_nodes_from(nodes_c) G_c.add_edges_from(edges_c) cls2vec = [] for c in range(len(coms)): vecs = [i if c in clss else -1 for i,clss in enumerate(kw2c)] vecs = list(filter(lambda x: x!=-1, vecs)) cls2vec.append(np.array(vecs)) with open(path.join(datadir, 'aminer-communities-k{}-w{}.pkl'.format(sz_clique, edge_th)), 'wb') as fout: #pickle.dump([nodes, kw2v, kws, edges], fout) #pickle.dump([nodes_c, kw2v_c, edges_c, coms], fout) pickle.dump([nodes_c, kws, kw2c, kw2v_c, coms, cls2vec], fout) # # K5, W2 print(len(coms)) print(len(nodes_c)) print(len(edges_c)) print(len(kw2v_c)) plt.hist([len(c) for c in coms]) plt.show() plt.hist([len(c) for c in coms if len(c) > 20]) plt.show() # # K8, W2 print(len(coms)) print(len(nodes_c)) print(len(edges_c)) print(len(kw2v_c)) plt.hist([len(c) for c in coms]) plt.show() plt.hist([len(c) for c in coms if len(c) > 20]) plt.show() # # K10, W2 print(len(coms)) print(len(nodes_c)) print(len(edges_c)) print(len(kw2v_c)) plt.hist([len(c) for c in coms]) plt.show() plt.hist([len(c) for c in coms if len(c) > 20]) plt.show() # + pos = nx.spring_layout(G_c) nx.draw(G_c, pos, edge_color='k', node_size=25, width=0.3) from matplotlib.axes._axes import _log as matplotlib_axes_logger matplotlib_axes_logger.setLevel('ERROR') norm = matplotlib.colors.Normalize(vmin=0, vmax=len(coms), clip=True) mapper = cm.ScalarMappable(norm=norm, cmap=cm.rainbow) for i,c in enumerate(coms): nx.draw_networkx_nodes(G_c, pos, nodelist=list(c), node_size=25, node_color=mapper.to_rgba(i)) plt.show() # - # # K15, W2 print(len(coms)) print(len(nodes_c)) print(len(edges_c)) print(len(kw2v_c)) plt.hist([len(c) for c in coms]) plt.show() plt.hist([len(c) for c in coms if len(c) > 20]) plt.show() # # K10 print(len(coms)) print(len(nodes_c)) print(len(edges_c)) print(len(kw2v_c)) plt.hist([len(c) for c in coms]) plt.show() plt.hist([len(c) for c in coms if len(c) > 30]) plt.show() # + pos = nx.spring_layout(G_c) nx.draw(G_c, pos, edge_color='k', node_size=25, width=0.3) from matplotlib.axes._axes import _log as matplotlib_axes_logger matplotlib_axes_logger.setLevel('ERROR') norm = matplotlib.colors.Normalize(vmin=0, vmax=len(coms), clip=True) mapper = cm.ScalarMappable(norm=norm, cmap=cm.rainbow) for i,c in enumerate(coms): nx.draw_networkx_nodes(G_c, pos, nodelist=list(c), node_size=25, node_color=mapper.to_rgba(i)) plt.show() # - # # K20 plt.hist([len(c) for c in kw2c]) plt.show() print(len(coms)) for c in coms: if len(c)>50: print(len(c)) # + tmp = np.concatenate([list(c) for c in coms]) print(len(tmp)) from collections import Counter [v for k,v in Counter(tmp).items() if v>2] # - print(len(nodes_c)) print(len(edges_c)) print(len(kw2v_c)) # + #pos = nx.spring_layout(G_c) nx.draw(G_c, pos, edge_color='k', node_size=25, width=0.3) from matplotlib.axes._axes import _log as matplotlib_axes_logger matplotlib_axes_logger.setLevel('ERROR') norm = matplotlib.colors.Normalize(vmin=0, vmax=len(coms), clip=True) mapper = cm.ScalarMappable(norm=norm, cmap=cm.rainbow) for i,c in enumerate(coms): nx.draw_networkx_nodes(G_c, pos, nodelist=list(c), node_size=25, node_color=mapper.to_rgba(i)) plt.show() # - nx.draw(G_c, with_labels=False, node_size=25) nx.draw(G_c, with_labels=False) nx.draw(G, with_labels=False)
5,997
/notebook.ipynb
2a3698b892a0bc314b70ce88beab29bfbec99d55
[]
no_license
blakeruwali/A-Network-Analysis-of-Game-of-Thrones
https://github.com/blakeruwali/A-Network-Analysis-of-Game-of-Thrones
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
240,415
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "3"} # ## 1. Winter is Coming. Let's load the dataset ASAP # <p>If you haven't heard of <em>Game of Thrones</em>, then you must be really good at hiding. Game of Thrones is the hugely popular television series by HBO based on the (also) hugely popular book series <em>A Song of Ice and Fire</em> by George R.R. Martin. In this notebook, we will analyze the co-occurrence network of the characters in the Game of Thrones books. Here, two characters are considered to co-occur if their names appear in the vicinity of 15 words from one another in the books. </p> # <p><img src="https://s3.amazonaws.com/assets.datacamp.com/production/project_76/img/got_network.jpeg" style="width: 550px"></p> # <p>This dataset constitutes a network and is given as a text file describing the <em>edges</em> between characters, with some attributes attached to each edge. Let's start by loading in the data for the first book <em>A Game of Thrones</em> and inspect it.</p> # + tags=["sample_code"] dc={"key": "3"} # Importing modules import pandas as pd # Reading in datasets/book1.csv book1 = pd.read_csv('datasets/book1.csv') # Printing out the head of the dataset print(book1.head()) # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "10"} # ## 2. Time for some Network of Thrones # <p>The resulting DataFrame <code>book1</code> has 5 columns: <code>Source</code>, <code>Target</code>, <code>Type</code>, <code>weight</code>, and <code>book</code>. Source and target are the two nodes that are linked by an edge. A network can have directed or undirected edges and in this network all the edges are undirected. The weight attribute of every edge tells us the number of interactions that the characters have had over the book, and the book column tells us the book number.</p> # <p>Once we have the data loaded as a pandas DataFrame, it's time to create a network. We will use <code>networkx</code>, a network analysis library, and create a graph object for the first book.</p> # + tags=["sample_code"] dc={"key": "10"} # Importing modules import networkx as nx # Creating an empty graph object G_book1 = nx.Graph() # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "17"} # ## 3. Populate the network with the DataFrame # <p>Currently, the graph object <code>G_book1</code> is empty. Let's now populate it with the edges from <code>book1</code>. And while we're at it, let's load in the rest of the books too!</p> # + tags=["sample_code"] dc={"key": "17"} # Iterating through the DataFrame to add edges for _, row in book1.iterrows(): G_book1.add_edge(row['Source'],row['Target'],weight = row['weight']) # Creating a list of networks for all the books books = [G_book1] book_fnames = ['datasets/book2.csv', 'datasets/book3.csv', 'datasets/book4.csv', 'datasets/book5.csv'] for book_fname in book_fnames: book = pd.read_csv(book_fname) G_book = nx.Graph() for _, edge in book.iterrows(): G_book.add_edge(edge['Source'], edge['Target'], weight=edge['weight']) books.append(G_book) # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "24"} # ## 4. Finding the most important character in Game of Thrones # <p>Is it Jon Snow, Tyrion, Daenerys, or someone else? Let's see! Network Science offers us many different metrics to measure the importance of a node in a network. Note that there is no "correct" way of calculating the most important node in a network, every metric has a different meaning.</p> # <p>First, let's measure the importance of a node in a network by looking at the number of neighbors it has, that is, the number of nodes it is connected to. For example, an influential account on Twitter, where the follower-followee relationship forms the network, is an account which has a high number of followers. This measure of importance is called <em>degree centrality</em>.</p> # <p>Using this measure, let's extract the top ten important characters from the first book (<code>book[0]</code>) and the fifth book (<code>book[4]</code>).</p> # + tags=["sample_code"] dc={"key": "24"} # Calculating the degree centrality of book 1 deg_cen_book1 = nx.degree_centrality(books[0]) # Calculating the degree centrality of book 5 deg_cen_book5 = nx.degree_centrality(books[4]) # Sorting the dictionaries according to their degree centrality and storing the top 10 sorted_deg_cen_book1 = sorted(deg_cen_book1.items(), key=lambda x: x[1], reverse =True) # Sorting the dictionaries according to their degree centrality and storing the top 10 sorted_deg_cen_book5 = sorted(deg_cen_book5.items(), key=lambda x: x[1], reverse = True) # Printing out the top 10 of book1 and book5 print(sorted_deg_cen_book1[0:10]) print(sorted_deg_cen_book5[0:10]) # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "31"} # ## 5. Evolution of importance of characters over the books # <p>According to degree centrality, the most important character in the first book is Eddard Stark but he is not even in the top 10 of the fifth book. The importance of characters changes over the course of five books because, you know, stuff happens... ;)</p> # <p>Let's look at the evolution of degree centrality of a couple of characters like Eddard Stark, Jon Snow, and Tyrion, which showed up in the top 10 of degree centrality in the first book.</p> # + tags=["sample_code"] dc={"key": "31"} # %matplotlib inline # Creating a list of degree centrality of all the books evol = [nx.degree_centrality(book) for book in books] # Creating a DataFrame from the list of degree centralities in all the books degree_evol_df = pd.DataFrame.from_records(evol) # Plotting the degree centrality evolution of Eddard-Stark, Tyrion-Lannister and Jon-Snow degree_evol_df[['Eddard-Stark','Tyrion-Lannister','Jon-Snow']].plot() # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "38"} # ## 6. What's up with Stannis Baratheon? # <p>We can see that the importance of Eddard Stark dies off as the book series progresses. With Jon Snow, there is a drop in the fourth book but a sudden rise in the fifth book.</p> # <p>Now let's look at various other measures like <em>betweenness centrality</em> and <em>PageRank</em> to find important characters in our Game of Thrones character co-occurrence network and see if we can uncover some more interesting facts about this network. Let's plot the evolution of betweenness centrality of this network over the five books. We will take the evolution of the top four characters of every book and plot it.</p> # + tags=["sample_code"] dc={"key": "38"} # Creating a list of betweenness centrality of all the books just like we did for degree centrality evol = [nx.betweenness_centrality(book) for book in books] # Making a DataFrame from the list betweenness_evol_df = pd.DataFrame.from_records(evol) # Finding the top 4 characters in every book set_of_char = set() for i in range(5): set_of_char |= set(list(betweenness_evol_df.T[i].sort_values(ascending=False)[0:4].index)) list_of_char = list(set_of_char) # Plotting the evolution of the top characters betweenness_evol_df[list_of_char].plot() # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "45"} # ## 7. What does the Google PageRank algorithm tell us about Game of Thrones? # <p>We see a peculiar rise in the importance of Stannis Baratheon over the books. In the fifth book, he is significantly more important than other characters in the network, even though he is the third most important character according to degree centrality.</p> # <p>PageRank was the initial way Google ranked web pages. It evaluates the inlinks and outlinks of webpages in the world wide web, which is, essentially, a directed network. Let's look at the importance of characters in the Game of Thrones network according to PageRank. </p> # + tags=["sample_code"] dc={"key": "45"} # Creating a list of pagerank of all the characters in all the books evol = [nx.pagerank(book) for book in books] # Making a DataFrame from the list pagerank_evol_df = pd.DataFrame.from_records(evol) # Finding the top 4 characters in every book set_of_char = set() for i in range(5): set_of_char |= set(list(pagerank_evol_df.T[i].sort_values(ascending=False)[0:4].index)) list_of_char = list(set_of_char) # Plotting the top characters pagerank_evol_df[list_of_char].plot(figsize=(13,7)) # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "52"} # ## 8. Correlation between different measures # <p>Stannis, Jon Snow, and Daenerys are the most important characters in the fifth book according to PageRank. Eddard Stark follows a similar curve but for degree centrality and betweenness centrality: He is important in the first book but dies into oblivion over the book series.</p> # <p>We have seen three different measures to calculate the importance of a node in a network, and all of them tells us something about the characters and their importance in the co-occurrence network. We see some names pop up in all three measures so maybe there is a strong correlation between them?</p> # <p>Let's look at the correlation between PageRank, betweenness centrality and degree centrality for the fifth book using Pearson correlation.</p> # + tags=["sample_code"] dc={"key": "52"} # Creating a list of pagerank, betweenness centrality, degree centrality # of all the characters in the fifth book. measures = [nx.pagerank(books[4]), nx.betweenness_centrality(books[4], weight='weight'), nx.degree_centrality(books[4])] # Creating the correlation DataFrame cor = pd.DataFrame.from_records(measures) # Calculating the correlation print(cor.T) # + tags=["context"] run_control={"frozen": true} editable=false deletable=false dc={"key": "59"} # ## 9. Conclusion # <p>We see a high correlation between these three measures for our character co-occurrence network.</p> # <p>So we've been looking at different ways to find the important characters in the Game of Thrones co-occurrence network. According to degree centrality, Eddard Stark is the most important character initially in the books. But who is/are the most important character(s) in the fifth book according to these three measures? </p> # + tags=["sample_code"] dc={"key": "59"} # Finding the most important character in the fifth book, # according to degree centrality, betweenness centrality and pagerank. p_rank, b_cent, d_cent = cor.idxmax(axis =1) # Printing out the top character accoding to the three measures print(p_rank, b_cent, d_cent)
11,022
/yysage/30-10-2h33-nerds-midi-savart.ipynb
800f14b4ac0ce61a4297b58add573cdfdd242f84
[]
no_license
ictus5d/doc
https://github.com/ictus5d/doc
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
106,521
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- from pyscf import scf,gto import numpy as np import inspect from FcMole import FcM import matplotlib.pyplot as plt from pyscf.grad import rhf as grhf #### very important from pyscf.hessian import rhf as hrhf # without those two mf.Gradients() and mf.Hessian() don't work def DeltaV(mol,dL): mol.set_rinv_orig_(mol.atom_coords()[0]) dV=mol.intor('int1e_rinv')*dL[0] mol.set_rinv_orig_(mol.atom_coords()[1]) dV+=mol.intor('int1e_rinv')*dL[1] return -dV # First compare gradient analytical from fcm with the one via finite differences on geometry # mol1=FcM(fcs=[.001,-.001],atom="C 0 0 0; O 0 0 1.8",unit="Bohr",basis="STO-3G") mf1=scf.RHF(mol1) mf1.scf(dm0=mf1.init_guess_by_1e()) mol2=FcM(fcs=[.001,-.001],atom="C 0 0 0; O 0 0 1.81",unit="Bohr",basis="STO-3G") mol3=FcM(fcs=[.001,-.001],atom="C 0 0 0; O 0 0 1.79",unit="Bohr",basis="STO-3G") mf2=scf.RHF(mol2) mf2.scf(dm0=mf2.init_guess_by_1e()) mf3=scf.RHF(mol3) mf3.scf(dm0=mf3.init_guess_by_1e()) fdg=(mf2.energy_tot()-mf3.energy_tot())/.02 fdg g1=mf1.Gradients() g1.run() fdh=(mf2.energy_tot()-2*mf1.energy_tot()+mf3.energy_tot())/.01**2 fdh hs1=mf1.Hessian() hs1.kernel() # + mol0=gto.M(atom="C 0 0 0; O 0 0 1.8",unit="Bohr",basis="STO-3G") mf0=scf.RHF(mol0) mf0.scf() g0=mf0.Gradients() g0.kernel() hs0=mf0.Hessian() hs0.kernel() # - from alch_deriv import alch_deriv # The formula for the gradient is stated in Pople's article (Eq.21) as: # $$ \frac{\partial E}{\partial x}= \sum_{\mu\nu}P_{\mu\nu}\frac{\partial H_{\mu\nu}}{\partial x}+\frac{1}{2}\sum_{\mu\nu\lambda\sigma} # P_{\mu\nu}P_{\lambda\sigma}\frac{\partial}{\partial x}(\mu \lambda | | \nu\sigma)+\frac{\partial V_{nuc}}{\partial x} # -\sum_{\mu\nu}W_{\mu\nu}\frac{\partial S_{\mu\nu}}{\partial x} # $$ # $W$ is an energy weighted density matrix: # $$ W_{\mu\nu}= \sum_i ^{mo.occ.} \epsilon_i c_{\mu i} c_{\nu i}^\dagger # $$ (U,dP)=alch_deriv(mf0,[[0,1],[1,-1]]) P=mf0.make_rdm1() P1=mf1.make_rdm1() np.linalg.norm(dP-(P1-P)) # First piece: # $$ \frac{\partial}{\partial Z} ( P \frac{\partial H^{(1)}}{\partial x})= # \frac{\partial P}{\partial Z}\frac{\partial H^{(1)}}{\partial x}+ P \frac{\partial^2 H^{(1)}}{\partial x \partial Z} # $$ # $\frac{\partial^2 H^{(1)}}{\partial x \partial Z}$ is trivially $\frac{\partial H^{(1)}}{\partial x}$ divided by the atom charge ga=np.zeros((2,3)) ga[0]+=np.einsum('xij,ij->x', g0.hcore_generator()(0),dP) ga[1]+=np.einsum('xij,ij->x', g0.hcore_generator()(1),dP) print(ga) ga[0]+=np.einsum('xij,ij->x', g1.hcore_generator()(0)-g0.hcore_generator()(0),P) ga[1]+=np.einsum('xij,ij->x', g1.hcore_generator()(1)-g0.hcore_generator()(1),P) print(ga) comp1=np.zeros((2,3)) comp1[0]+=np.einsum('xij,ij->x', g1.hcore_generator()(0),mf1.make_rdm1()) comp1[0]-=np.einsum('xij,ij->x', g0.hcore_generator()(0),mf0.make_rdm1()) comp1[1]+=np.einsum('xij,ij->x', g1.hcore_generator()(1),mf1.make_rdm1()) comp1[1]-=np.einsum('xij,ij->x', g0.hcore_generator()(1),mf0.make_rdm1()) comp1 comp1=np.zeros((2,3,10,10)) comp1[0]=g1.hcore_generator()(0)-g0.hcore_generator()(0) comp1[1]=g1.hcore_generator()(1)-g0.hcore_generator()(1) comp2=np.zeros((2,3,10,10)) dL=[.001,-.001] for atm_id in [0,1]: with mol0.with_rinv_at_nucleus(atm_id): vrinv = -mol0.intor('int1e_iprinv', comp=3) shl0, shl1, p0, p1 = mol0.aoslice_by_atom()[atm_id] vrinv*=dL[atm_id] vrinv[:,p0:p1] += (g1.get_hcore()-g0.get_hcore())[:,p0:p1] #bearbeiten vrinv += vrinv.transpose(0,2,1) comp2[atm_id]=vrinv np.allclose(comp1,comp2) # g0.get_hcore() is the integral $<\chi_\mu |\nabla_r \hat{H}^{(1)}|\chi_\nu> $ is composed by two parts: the first refered to the kintic energy operator which is alchemy invariant, the second which has to be computed is refered to the nuclear electron attraction. <br> # To compute this we use moleintor.getints() using as arguments a mol environment (mol._env) with the added fractional charges and a mol._atm desription that show fractional charges. # Not forget to put a minus sign !!!! NUC_FRAC_CHARGE=gto.mole.NUC_FRAC_CHARGE NUC_MOD_OF=gto.mole.NUC_MOD_OF PTR_FRAC_CHARGE=gto.mole.PTR_FRAC_CHARGE denv=mol0._env.copy() datm=mol0._atm.copy() fcs=[.001,-.001] datm[:,NUC_MOD_OF] = NUC_FRAC_CHARGE for i in range (mol0.natm): denv[datm[i,PTR_FRAC_CHARGE]]=fcs[i] dH1=-gto.moleintor.getints('int1e_ipnuc_sph',datm,mol0._bas,denv, None,3,0,'s1') #minus sign ! np.allclose(dH1,g1.get_hcore()-g0.get_hcore()) comp2=np.zeros((2,3,10,10)) dL=[.001,-.001] for atm_id in [0,1]: with mol0.with_rinv_at_nucleus(atm_id): vrinv = -mol0.intor('int1e_iprinv', comp=3) shl0, shl1, p0, p1 = mol0.aoslice_by_atom()[atm_id] vrinv*=dL[atm_id] vrinv[:,p0:p1] += dH1[:,p0:p1] #bearbeiten vrinv += vrinv.transpose(0,2,1) comp2[atm_id]=vrinv np.allclose(comp1,comp2) fdg=np.zeros((2,3)) fdg[0]+=np.einsum('xij,ij->x', g1.hcore_generator()(0),mf1.make_rdm1()) fdg[0]-=np.einsum('xij,ij->x', g0.hcore_generator()(0),mf0.make_rdm1()) fdg[1]+=np.einsum('xij,ij->x', g1.hcore_generator()(1),mf1.make_rdm1()) fdg[1]-=np.einsum('xij,ij->x', g0.hcore_generator()(1),mf0.make_rdm1()) fdg ga=np.zeros((2,3)) ga[0]+=np.einsum('xij,ij->x', g0.hcore_generator()(0),dP) ga[1]+=np.einsum('xij,ij->x', g0.hcore_generator()(1),dP) #print(ga) ga[0]+=np.einsum('xij,ij->x', comp2[0],P) ga[1]+=np.einsum('xij,ij->x', comp2[1],P) print(ga) # # Second piece: # $$\frac{\partial}{\partial Z} (P_{\mu\nu}P_{\lambda\sigma}\frac{\partial}{\partial x}(\mu \lambda | | \nu\sigma) )$$ # here the two electron integral is invariant to alchemy, therefore is sufficient insert the density matrix derivative $dP$ in the following exression. #for the ref molecule aoslices = mol0.aoslice_by_atom() g2e_part2_0=np.zeros((2,3)) for ia in [0,1]: p0, p1 = aoslices [ia,2:] vhf = g0.get_veff(mol0, P) g2e_part2_0[ia]=(np.einsum('xij,ij->x', vhf[:,p0:p1], P[p0:p1]) * 2) # P (Pd/dx(ml||ns)) g2e_part2_0 aoslices = mol1.aoslice_by_atom() g2e_part2_1=np.zeros((2,3)) for ia in [0,1]: p0, p1 = aoslices [ia,2:] vhf = g1.get_veff(mol1, P1) g2e_part2_1[ia]=(np.einsum('xij,ij->x', vhf[:,p0:p1], P1[p0:p1]) * 2) g2e_part2_1 #check the invariance: np.allclose(g0.get_veff(mol0, P),g1.get_veff(mol1, P1),atol=1e-4*np.max(g0.get_veff(mol0, P))) aoslices = mol0.aoslice_by_atom() g2e_part2_d=np.zeros((2,3)) for ia in [0,1]: p0, p1 = aoslices [ia,2:] vhf = g0.get_veff(mol0, P) g2e_part2_d[ia]=(np.einsum('xij,ij->x', vhf[:,p0:p1], dP[p0:p1]) * 2) g2e_part2_d g2e_part2_1-g2e_part2_0 np.allclose(g2e_part2_d,g2e_part2_1-g2e_part2_0,atol=1e-5) # # Third piece: # $$-\sum_{\mu\nu}W_{\mu\nu}\frac{\partial S_{\mu\nu}}{\partial x} # $$ # Luckily $S$ is invariant in alchemy, therefore the different in gradient is just:$$ # -\sum_{\mu\nu}\frac{\partial W_{\mu\nu}}{\partial Z}\frac{\partial S_{\mu\nu}}{\partial x} # $$ # ### Obtaining derivatives of W # $$W= \sum_i ^{mo.occ.} \epsilon_i C_{\mu i} C_{\nu i}^\dagger # $$ # # $$ \frac{\partial W}{\partial Z_I}= \sum_i ^{mo.occ.} \left( \epsilon_i (CU)_{\mu i} C_{\nu i}^\dagger + # \epsilon_i C_{\mu i} (CU)^\dagger_{\nu i} +\frac{\partial \epsilon_i}{\partial Z_I} C_{\mu i} C_{\nu i}^\dagger \right)$$ """ THE CODE IN g.grad_elec() dme0 = mf_grad.make_rdm1e(mo_energy, mo_coeff, mo_occ) W s1 = mf_grad.get_ovlp(mol)%autocall dS/dx for k, ia in enumerate(atmlst): de[k] -= numpy.einsum('xij,ij->x', s1[:,p0:p1], dme0[p0:p1]) * 2 W dS/dx """ #verify that s1 is invariant s1=g0.get_ovlp(mol0) np.allclose(g0.get_ovlp(mol0),g1.get_ovlp(mol1)) #at first by finite differences W1=g1.make_rdm1e() W0=g0.make_rdm1e() fd_dW=W1-W0 # W0 can be constructed via C@np.diag(o*e)@C.T o=mf0.mo_occ O=np.diag(o) e=mf0.mo_energy C=mf0.mo_coeff S=mf0.get_ovlp() F=mf0.get_fock() np.allclose(C@np.diag(e*o)@C.T,W0) #to derive this expression first get dC as dC=C@U #to get d(e) we need to get the fock hamiltonian and than get the new eigenvalues g_ijkl=mol0.intor('int2e_sph') dF2el=np.einsum('ijkl,kl->ij',g_ijkl,dP)-0.5*np.einsum('ijkl,jl->ik',g_ijkl,dP) dV=DeltaV(mol0,[.001,-.001]) np.allclose(mf1.get_fock()-F,dV+dF2el,atol=1e-5) #try to get e in another way , using Roothans equations FC=SCe print(np.allclose(np.linalg.inv(S)@F@(C),C@np.diag(e))) # S^-1 F C= C e print(np.allclose(np.linalg.inv(S)@F@P,W0)) #S^-1 F (C O C.T) = S^-1 F P = C e O C.T =W !!!! e1=np.sort(np.linalg.eig(np.linalg.inv(S)@(F+dV+dF2el))[0]) c1=np.linalg.eig(np.linalg.inv(S)@(F+dV+dF2el))[1] e1 np.allclose(mf1.mo_energy,e1) np.allclose(mf1.mo_coeff,C+dC) # now we derive C@np.diag(o*e)@C.T in tree pieces: # dC@np.diag(o*e)@C.T+C@np.diag(o*e)@dC.T+C@np.diag(o*(e1-e))@C.T dW_a=dC@np.diag(o*e)@C.T+C@np.diag(o*e)@dC.T+C@np.diag(o*(e1-e))@C.T np.max(fd_dW-dW_a) #or equally dW_a1=(C+dC)@np.diag(o*(e1))@(C+dC).T-W0 np.max(fd_dW-dW_a1) np.max(fd_dW-dW_a1) dW_a2=(mf1.mo_coeff)@np.diag(o*(e1))@(mf1.mo_coeff).T-W0 np.max(fd_dW-dW_a2) #the problem is in the C derivatives dW_a3=2*C@U@np.diag(o*e)@C.T+2*C@np.diag(o*e)@U.T@C.T+C@np.diag(o*(e1-e))@C.T np.max(fd_dW-dW_a3) dW_a3=np.linalg.inv(S)@(F+dV+dF2el)@(P+dP)-W0 np.max(fd_dW-dW_a3) W1_contr=np.zeros((2,3)) #with fd_dW funziona ga_dW_contr=np.zeros((2,3)) W0_contr=np.zeros((2,3)) for ia in [0,1]: p0, p1 = mol0.aoslice_by_atom() [ia,2:] W1_contr[ia] -= np.einsum('xij,ij->x', s1[:,p0:p1], W1[p0:p1]) * 2 ga_dW_contr[ia] -= np.einsum('xij,ij->x', s1[:,p0:p1], fd_dW[p0:p1]) * 2 W0_contr[ia] -= np.einsum('xij,ij->x', s1[:,p0:p1], W0[p0:p1]) * 2 ga_dW_contr,W1_contr-W0_contr W1_contr=np.zeros((2,3)) ga_dW_contr=np.zeros((2,3)) W0_contr=np.zeros((2,3)) for ia in [0,1]: p0, p1 = mol0.aoslice_by_atom() [ia,2:] W1_contr[ia] -= np.einsum('xij,ij->x', s1[:,p0:p1], W1[p0:p1]) * 2 ga_dW_contr[ia] -= np.einsum('xij,ij->x', s1[:,p0:p1], dW_a3[p0:p1]) * 2 W0_contr[ia] -= np.einsum('xij,ij->x', s1[:,p0:p1], W0[p0:p1]) * 2 (ga_dW_contr),W1_contr-W0_contr #W=S^-1F P is the way, cause of the orbital rotation S=mf0.get_ovlp() F=mf0.get_fock() g_ijkl=mol0.intor('int2e_sph') dF2el=np.einsum('ijkl,kl->ij',g_ijkl,dP)-0.5*np.einsum('ijkl,jl->ik',g_ijkl,dP) dV=DeltaV(mol0,[.001,-.001]) dW_a3=np.linalg.inv(S)@(F+dV+dF2el)@(P+dP)-W0 # ## At the end the nuclear nuclear part """def grad_nuc(mol, atmlst=None): gs = numpy.zeros((mol.natm,3)) for j in range(mol.natm): q2 = mol.atom_charge(j) <----------------------- derive here r2 = mol.atom_coord(j) for i in range(mol.natm): if i != j: q1 = mol.atom_charge(i) <----------------------- and here r1 = mol.atom_coord(i) r = numpy.sqrt(numpy.dot(r1-r2,r1-r2)) gs[j] -= q1 * q2 * (r2-r1) / r**3 if atmlst is not None: gs = gs[atmlst] return gs """ pass #is now easy to derive this function with respect to the nuclear charges def alc_deriv_grad_nuc(mol,dL, atmlst=None): gs = np.zeros((mol.natm,3)) for j in range(mol.natm): q2 = mol.atom_charge(j) + dL[j] r2 = mol.atom_coord(j) for i in range(mol.natm): if i != j: q1 = mol.atom_charge(i) +dL[i] r1 = mol.atom_coord(i) r = np.sqrt(np.dot(r1-r2,r1-r2)) gs[j] -= q1 * q2 * (r2-r1) / r**3 if atmlst is not None: gs = gs[atmlst] return gs alc_deriv_grad_nuc(mol0,[.001,-.001])-g0.grad_nuc() g1.grad_nuc()-g0.grad_nuc() g0.grad_nuc()
11,791
/Módulo_2_Exercício_10_ITEM_2.ipynb
d60f73a513ad150e25b2f65b7da55b90880cab3c
[]
no_license
jessikamorais/Metodos_Numericos
https://github.com/jessikamorais/Metodos_Numericos
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
87,870
import openpiv.tools import openpiv.process import openpiv.preprocess import openpiv.validation import openpiv.filters import openpiv.scaling import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm # %matplotlib inline # import pandas as pd import os # import cv2s # from scipy import ndimage winsize = 32 searchsize = 64 overlap = 16 dt = 462.44*10**(-6) # + # for i in range(200,300,100): i = 200 File1 = 'frame%05d.png' % i ii = i+1 File2 = 'frame%05d.png' %(ii) print('Frames ', i, ' and ', ii) img_a = openpiv.tools.imread( File1) img_b = openpiv.tools.imread( File2) frame_a = img_a[130:400,200:1200] frame_b = img_b[130:400,200:1200] #rotation angle in degree # frame_a = ndimage.rotate(frame_a, -1) # frame_b = ndimage.rotate(frame_b, -1) # - plt.imshow(img_a,cmap=cm.gray) plt.imshow(frame_a,cmap=cm.gray) plt.imshow(frame_b,cmap=cm.gray) # + u0, v0, sig2noise = openpiv.process.extended_search_area_piv( frame_a.astype(np.int32), frame_b.astype(np.int32), window_size=winsize, overlap=overlap, dt=dt, search_area_size=searchsize, sig2noise_method='peak2peak' ) x, y = openpiv.process.get_coordinates( image_size=frame_a.shape, window_size=winsize, overlap=overlap ) # Scales u0 = u0/80*2*0.001 v0 = v0/235*8.225*0.001 x = x/80*2*0.001 y = y/235*8.225*0.001 # u0, v0, mask = openpiv.validation.global_val(u0,v0,(-0.1,0.1),(-0.3,0)) fig=plt.figure(figsize=(10, 5), dpi= 80, facecolor='w', edgecolor='k') plt.quiver(x,y,u0,v0, angles='xy', scale_units='xy', scale = 160, headlength = 3, headwidth = 2, headaxislength = 3, pivot = 'mid') plt.axis('equal') plt.clim(0,0.06) # plt.colorbar(orientation='horizontal') pic = 'Run20_1_%05d.png' % i plt.savefig(pic, dpi=600, facecolor='w', edgecolor='w') plt.show() plt.close() # - u0 # + u1, v1, mask = openpiv.validation.sig2noise_val( u0, v0, sig2noise, threshold =1.3) u2, v2 = openpiv.filters.replace_outliers( u1, v1, method='localmean', max_iter=100, kernel_size=1) fig=plt.figure(figsize=(10, 5), dpi= 80, facecolor='w', edgecolor='k') plt.quiver(x,y,u2,v2, angles='xy', scale_units='xy', scale = 160, headlength = 3, headwidth = 2, headaxislength = 3, pivot = 'mid') plt.axis('equal') plt.clim(0,0.06) # plt.colorbar(orientation='horizontal') pic = 'Run20_2_%05d.png' % i plt.savefig(pic, dpi=600, facecolor='w', edgecolor='w') plt.show() plt.close() # + active="" # U = pd.DataFrame(data = u2) # V = pd.DataFrame(data = v2) # Ux = U.sub(U.mean(axis=1),axis=0) # Vy = V.sub(V.mean(axis=1),axis=0) # # print(U.mean(axis=1)) # print(V.mean(axis=1)) # # fig=plt.figure(figsize=(6, 3), dpi= 80, facecolor='w', edgecolor='k') # plt.quiver(x,y,Ux,Vy, # (Ux**2+Vy**2)**0.5,cmap = 'jet', # angles='xy', scale_units='xy', scale=160, # headlength = 3, headwidth = 2, headaxislength = 3, pivot = 'mid') # # plt.axis('equal') # plt.clim(0,0.06) # plt.colorbar(orientation='horizontal') # plt.streamplot(x,y,Ux,Vy, # density=[2,1.5], # color = 'black') # plt.xlim(0,0.025) # plt.ylim(0,0.0085) # pic = 'PIVFIG/Run20_Stream_%05d.png' %i # plt.savefig(pic, dpi=600, facecolor='w', edgecolor='w') # # plt.show() # plt.close() # # # File3 = 'PIVFILE/Run20_%05d.txt' %i # openpiv.tools.save(x, y, u2, v2, mask, File3) # # openpiv.tools.display_vector_field(File3,window_size=32, scaling_factor = 10) # - de Padé) dTm = ((ToPade - Tm)/TauM) #Modelagem do termopar derrsum = (Tr - Tm) #Nova variável para calcular a integral de q #Capturando os valores para a construção de gráficos: t_plot.append(t) T_plot.append(T) ToPade_plot.append(ToPade) Tm_plot.append(Tm) return [dT, dToPade, dTm, derrsum] # + id="3rHlOmLfF27n" #Importando a função de Runge Kutta de ordem 4: from rk4_sys import rk4 # + id="tvYW-I5Hdmll" # Resolvendo pelo Método de Runge Kutta de ordem 4: t0 = 0.0 x0 = [T0, To0Pade, Tm0, derrsum0] tf = 200.0 t, x = rk4( model, t0, tf,x0) # + [markdown] id="-XS_4Q2lMLvb" # **Plotando os gráficos das temperaturas T , To e Tm em função do tempo.** *Figura 1* # # + id="DaXaVbP0efGh" colab={"base_uri": "https://localhost:8080/", "height": 753} outputId="a3aaa86d-3ddc-4583-81eb-6517f2f68957" # Plotando os gráficos de temperatura com relação ao tempo: fig, axs = plt.subplots(3) #Plotando o gráfico de T em relação ao tempo: axs[0].plot(t, x[:, 0], 'r') axs[0].set(xlabel='t', ylabel='Temperatura T') #Plotando o gráfico de To em relação ao tempo: axs[1].plot(t, x[:, 1], 'b') axs[1].set(xlabel='t', ylabel="Temperatura To Aproximação de Pade") #Plotando o gráfico de Tm em relação ao tempo: axs[2].plot(t, x[:, 2], 'k') axs[2].set(xlabel='t', ylabel="Temperatura Tm") #Ajustando o tamanho dos gráficos plt.subplots_adjust(left=0.125, bottom=0.1, right=0.9, top=2.5, wspace=0.8, hspace=0.2) plt.show() # + [markdown] id="S0Jat5rqMJHI" # **Plotando um único gráfico para a comparação das temperaturas T , To e Tm em função do tempo.** *Figura 2* # # # + colab={"base_uri": "https://localhost:8080/", "height": 279} id="bFEWmGsT_Lqs" outputId="ebcf4613-4592-4859-bbd8-d20da879a6ea" # Plotando o gráfico de temperaturas com relação ao tempo: figure() plot(t_plot, T_plot,'-r',t_plot, ToPade_plot,'-b',t_plot, Tm_plot,'-y') ylabel('Temperaturas (°C)') xlabel('Tempo (min)') grid() ly. # # Doing this results in this picture: # # <img src="nb_images/proba_map.png" style="width:300px;height:300;"> # <caption><center> <u> **Figure 5** </u>: Each of the 19x19 grid cells colored according to which class has the largest predicted probability in that cell.<br> </center></caption> # # Note that this visualization isn't a core part of the YOLO algorithm itself for making predictions; it's just a nice way of visualizing an intermediate result of the algorithm. # # Another way to visualize YOLO's output is to plot the bounding boxes that it outputs. Doing that results in a visualization like this: # # <img src="nb_images/anchor_map.png" style="width:200px;height:200;"> # <caption><center> <u> **Figure 6** </u>: Each cell gives you 5 boxes. In total, the model predicts: 19x19x5 = 1805 boxes just by looking once at the image (one forward pass through the network)! Different colors denote different classes. <br> </center></caption> # # In the figure above, we plotted only boxes that the model had assigned a high probability to, but this is still too many boxes. You'd like to filter the algorithm's output down to a much smaller number of detected objects. To do so, you'll use non-max suppression. Specifically, you'll carry out these steps: # - Get rid of boxes with a low score (meaning, the box is not very confident about detecting a class) # - Select only one box when several boxes overlap with each other and detect the same object. # # # ### 2.2 - Filtering with a threshold on class scores # # You are going to apply a first filter by thresholding. You would like to get rid of any box for which the class "score" is less than a chosen threshold. # # The model gives you a total of 19x19x5x85 numbers, with each box described by 85 numbers. It'll be convenient to rearrange the (19,19,5,85) (or (19,19,425)) dimensional tensor into the following variables: # - `box_confidence`: tensor of shape $(19 \times 19, 5, 1)$ containing $p_c$ (confidence probability that there's some object) for each of the 5 boxes predicted in each of the 19x19 cells. # - `boxes`: tensor of shape $(19 \times 19, 5, 4)$ containing $(b_x, b_y, b_h, b_w)$ for each of the 5 boxes per cell. # - `box_class_probs`: tensor of shape $(19 \times 19, 5, 80)$ containing the detection probabilities $(c_1, c_2, ... c_{80})$ for each of the 80 classes for each of the 5 boxes per cell. # # **Exercise**: Implement `yolo_filter_boxes()`. # 1. Compute box scores by doing the elementwise product as described in Figure 4. The following code may help you choose the right operator: # ```python # a = np.random.randn(19*19, 5, 1) # b = np.random.randn(19*19, 5, 80) # c = a * b # shape of c will be (19*19, 5, 80) # ``` # 2. For each box, find: # - the index of the class with the maximum box score ([Hint](https://keras.io/backend/#argmax)) (Be careful with what axis you choose; consider using axis=-1) # - the corresponding box score ([Hint](https://keras.io/backend/#max)) (Be careful with what axis you choose; consider using axis=-1) # 3. Create a mask by using a threshold. As a reminder: `([0.9, 0.3, 0.4, 0.5, 0.1] < 0.4)` returns: `[False, True, False, False, True]`. The mask should be True for the boxes you want to keep. # 4. Use TensorFlow to apply the mask to box_class_scores, boxes and box_classes to filter out the boxes we don't want. You should be left with just the subset of boxes you want to keep. ([Hint](https://www.tensorflow.org/api_docs/python/tf/boolean_mask)) # # Reminder: to call a Keras function, you should use `K.function(...)`. # + # GRADED FUNCTION: yolo_filter_boxes def yolo_filter_boxes(box_confidence, boxes, box_class_probs, threshold = .6): """Filters YOLO boxes by thresholding on object and class confidence. Arguments: box_confidence -- tensor of shape (19, 19, 5, 1) boxes -- tensor of shape (19, 19, 5, 4) box_class_probs -- tensor of shape (19, 19, 5, 80) threshold -- real value, if [ highest class probability score < threshold], then get rid of the corresponding box Returns: scores -- tensor of shape (None,), containing the class probability score for selected boxes boxes -- tensor of shape (None, 4), containing (b_x, b_y, b_h, b_w) coordinates of selected boxes classes -- tensor of shape (None,), containing the index of the class detected by the selected boxes Note: "None" is here because you don't know the exact number of selected boxes, as it depends on the threshold. For example, the actual output size of scores would be (10,) if there are 10 boxes. """ # Step 1: Compute box scores ### START CODE HERE ### (≈ 1 line) box_scores =box_confidence*box_class_probs ### END CODE HERE ### # Step 2: Find the box_classes thanks to the max box_scores, keep track of the corresponding score ### START CODE HERE ### (≈ 2 lines) box_classes = K.argmax(box_scores, axis=-1) box_class_scores = K.max(box_scores,axis=-1) ### END CODE HERE ### # Step 3: Create a filtering mask based on "box_class_scores" by using "threshold". The mask should have the # same dimension as box_class_scores, and be True for the boxes you want to keep (with probability >= threshold) ### START CODE HERE ### (≈ 1 line) filtering_mask = box_class_scores>=threshold ### END CODE HERE ### # Step 4: Apply the mask to scores, boxes and classes ### START CODE HERE ### (≈ 3 lines) scores = tf.boolean_mask( box_class_scores, filtering_mask, ) boxes = tf.boolean_mask(boxes,filtering_mask) classes = tf.boolean_mask(box_classes,filtering_mask) ### END CODE HERE ### return scores, boxes, classes # - with tf.Session() as test_a: box_confidence = tf.random_normal([19, 19, 5, 1], mean=1, stddev=4, seed = 1) boxes = tf.random_normal([19, 19, 5, 4], mean=1, stddev=4, seed = 1) box_class_probs = tf.random_normal([19, 19, 5, 80], mean=1, stddev=4, seed = 1) scores, boxes, classes = yolo_filter_boxes(box_confidence, boxes, box_class_probs, threshold = 0.5) print("scores[2] = " + str(scores[2].eval())) print("boxes[2] = " + str(boxes[2].eval())) print("classes[2] = " + str(classes[2].eval())) print("scores.shape = " + str(scores.shape)) print("boxes.shape = " + str(boxes.shape)) print("classes.shape = " + str(classes.shape)) # **Expected Output**: # # <table> # <tr> # <td> # **scores[2]** # </td> # <td> # 10.7506 # </td> # </tr> # <tr> # <td> # **boxes[2]** # </td> # <td> # [ 8.42653275 3.27136683 -0.5313437 -4.94137383] # </td> # </tr> # # <tr> # <td> # **classes[2]** # </td> # <td> # 7 # </td> # </tr> # <tr> # <td> # **scores.shape** # </td> # <td> # (?,) # </td> # </tr> # <tr> # <td> # **boxes.shape** # </td> # <td> # (?, 4) # </td> # </tr> # # <tr> # <td> # **classes.shape** # </td> # <td> # (?,) # </td> # </tr> # # </table> # ### 2.3 - Non-max suppression ### # # Even after filtering by thresholding over the classes scores, you still end up a lot of overlapping boxes. A second filter for selecting the right boxes is called non-maximum suppression (NMS). # <img src="nb_images/non-max-suppression.png" style="width:500px;height:400;"> # <caption><center> <u> **Figure 7** </u>: In this example, the model has predicted 3 cars, but it's actually 3 predictions of the same car. Running non-max suppression (NMS) will select only the most accurate (highest probabiliy) one of the 3 boxes. <br> </center></caption> # # Non-max suppression uses the very important function called **"Intersection over Union"**, or IoU. # <img src="nb_images/iou.png" style="width:500px;height:400;"> # <caption><center> <u> **Figure 8** </u>: Definition of "Intersection over Union". <br> </center></caption> # # **Exercise**: Implement iou(). Some hints: # - In this exercise only, we define a box using its two corners (upper left and lower right): `(x1, y1, x2, y2)` rather than the midpoint and height/width. # - To calculate the area of a rectangle you need to multiply its height `(y2 - y1)` by its width `(x2 - x1)`. # - You'll also need to find the coordinates `(xi1, yi1, xi2, yi2)` of the intersection of two boxes. Remember that: # - xi1 = maximum of the x1 coordinates of the two boxes # - yi1 = maximum of the y1 coordinates of the two boxes # - xi2 = minimum of the x2 coordinates of the two boxes # - yi2 = minimum of the y2 coordinates of the two boxes # - In order to compute the intersection area, you need to make sure the height and width of the intersection are positive, otherwise the intersection area should be zero. Use `max(height, 0)` and `max(width, 0)`. # # In this code, we use the convention that (0,0) is the top-left corner of an image, (1,0) is the upper-right corner, and (1,1) the lower-right corner. # + # GRADED FUNCTION: iou def iou(box1, box2): """Implement the intersection over union (IoU) between box1 and box2      Arguments: box1 -- first box, list object with coordinates (x1, y1, x2, y2)     box2 -- second box, list object with coordinates (x1, y1, x2, y2)     """ # Calculate the (y1, x1, y2, x2) coordinates of the intersection of box1 and box2. Calculate its Area. ### START CODE HERE ### (≈ 5 lines) xi1 = max(box1[0],box2[0]) yi1 = max(box1[1],box2[1]) xi2 = min(box1[2],box2[2]) yi2 = min(box1[3],box2[3]) inter_area = max((xi2-xi1),0)*max((yi2-yi1),0) ### END CODE HERE ###     # Calculate the Union area by using Formula: Union(A,B) = A + B - Inter(A,B) ### START CODE HERE ### (≈ 3 lines) box1_area = (box1[3] - box1[1])*(box1[2]- box1[0]) box2_area = (box2[3] - box2[1])*(box2[2]- box2[0]) union_area = box1_area+box2_area-inter_area ### END CODE HERE ### # compute the IoU ### START CODE HERE ### (≈ 1 line) iou = inter_area/union_area ### END CODE HERE ### return iou # - box1 = (2, 1, 4, 3) box2 = (1, 2, 3, 4) print("iou = " + str(iou(box1, box2))) # **Expected Output**: # # <table> # <tr> # <td> # **iou = ** # </td> # <td> # 0.14285714285714285 # </td> # </tr> # # </table> # You are now ready to implement non-max suppression. The key steps are: # 1. Select the box that has the highest score. # 2. Compute its overlap with all other boxes, and remove boxes that overlap it more than `iou_threshold`. # 3. Go back to step 1 and iterate until there's no more boxes with a lower score than the current selected box. # # This will remove all boxes that have a large overlap with the selected boxes. Only the "best" boxes remain. # # **Exercise**: Implement yolo_non_max_suppression() using TensorFlow. TensorFlow has two built-in functions that are used to implement non-max suppression (so you don't actually need to use your `iou()` implementation): # - [tf.image.non_max_suppression()](https://www.tensorflow.org/api_docs/python/tf/image/non_max_suppression) # - [K.gather()](https://www.tensorflow.org/api_docs/python/tf/gather) # + # GRADED FUNCTION: yolo_non_max_suppression def yolo_non_max_suppression(scores, boxes, classes, max_boxes = 10, iou_threshold = 0.5): """ Applies Non-max suppression (NMS) to set of boxes Arguments: scores -- tensor of shape (None,), output of yolo_filter_boxes() boxes -- tensor of shape (None, 4), output of yolo_filter_boxes() that have been scaled to the image size (see later) classes -- tensor of shape (None,), output of yolo_filter_boxes() max_boxes -- integer, maximum number of predicted boxes you'd like iou_threshold -- real value, "intersection over union" threshold used for NMS filtering Returns: scores -- tensor of shape (, None), predicted score for each box boxes -- tensor of shape (4, None), predicted box coordinates classes -- tensor of shape (, None), predicted class for each box Note: The "None" dimension of the output tensors has obviously to be less than max_boxes. Note also that this function will transpose the shapes of scores, boxes, classes. This is made for convenience. """ max_boxes_tensor = K.variable(max_boxes, dtype='int32') # tensor to be used in tf.image.non_max_suppression() K.get_session().run(tf.variables_initializer([max_boxes_tensor])) # initialize variable max_boxes_tensor # Use tf.image.non_max_suppression() to get the list of indices corresponding to boxes you keep ### START CODE HERE ### (≈ 1 line) nms_indices = tf.image.non_max_suppression(boxes,scores,max_boxes,iou_threshold) ### END CODE HERE ### # Use K.gather() to select only nms_indices from scores, boxes and classes ### START CODE HERE ### (≈ 3 lines) scores = K.gather(scores,nms_indices) boxes =K.gather(boxes,nms_indices) classes = K.gather(classes,nms_indices) ### END CODE HERE ### return scores, boxes, classes # - with tf.Session() as test_b: scores = tf.random_normal([54,], mean=1, stddev=4, seed = 1) boxes = tf.random_normal([54, 4], mean=1, stddev=4, seed = 1) classes = tf.random_normal([54,], mean=1, stddev=4, seed = 1) scores, boxes, classes = yolo_non_max_suppression(scores, boxes, classes) print("scores[2] = " + str(scores[2].eval())) print("boxes[2] = " + str(boxes[2].eval())) print("classes[2] = " + str(classes[2].eval())) print("scores.shape = " + str(scores.eval().shape)) print("boxes.shape = " + str(boxes.eval().shape)) print("classes.shape = " + str(classes.eval().shape)) # **Expected Output**: # # <table> # <tr> # <td> # **scores[2]** # </td> # <td> # 6.9384 # </td> # </tr> # <tr> # <td> # **boxes[2]** # </td> # <td> # [-5.299932 3.13798141 4.45036697 0.95942086] # </td> # </tr> # # <tr> # <td> # **classes[2]** # </td> # <td> # -2.24527 # </td> # </tr> # <tr> # <td> # **scores.shape** # </td> # <td> # (10,) # </td> # </tr> # <tr> # <td> # **boxes.shape** # </td> # <td> # (10, 4) # </td> # </tr> # # <tr> # <td> # **classes.shape** # </td> # <td> # (10,) # </td> # </tr> # # </table> # ### 2.4 Wrapping up the filtering # # It's time to implement a function taking the output of the deep CNN (the 19x19x5x85 dimensional encoding) and filtering through all the boxes using the functions you've just implemented. # # **Exercise**: Implement `yolo_eval()` which takes the output of the YOLO encoding and filters the boxes using score threshold and NMS. There's just one last implementational detail you have to know. There're a few ways of representing boxes, such as via their corners or via their midpoint and height/width. YOLO converts between a few such formats at different times, using the following functions (which we have provided): # # ```python # boxes = yolo_boxes_to_corners(box_xy, box_wh) # ``` # which converts the yolo box coordinates (x,y,w,h) to box corners' coordinates (x1, y1, x2, y2) to fit the input of `yolo_filter_boxes` # ```python # boxes = scale_boxes(boxes, image_shape) # ``` # YOLO's network was trained to run on 608x608 images. If you are testing this data on a different size image--for example, the car detection dataset had 720x1280 images--this step rescales the boxes so that they can be plotted on top of the original 720x1280 image. # # Don't worry about these two functions; we'll show you where they need to be called. # + # GRADED FUNCTION: yolo_eval def yolo_eval(yolo_outputs, image_shape = (720., 1280.), max_boxes=10, score_threshold=.6, iou_threshold=.5): """ Converts the output of YOLO encoding (a lot of boxes) to your predicted boxes along with their scores, box coordinates and classes. Arguments: yolo_outputs -- output of the encoding model (for image_shape of (608, 608, 3)), contains 4 tensors: box_confidence: tensor of shape (None, 19, 19, 5, 1) box_xy: tensor of shape (None, 19, 19, 5, 2) box_wh: tensor of shape (None, 19, 19, 5, 2) box_class_probs: tensor of shape (None, 19, 19, 5, 80) image_shape -- tensor of shape (2,) containing the input shape, in this notebook we use (608., 608.) (has to be float32 dtype) max_boxes -- integer, maximum number of predicted boxes you'd like score_threshold -- real value, if [ highest class probability score < threshold], then get rid of the corresponding box iou_threshold -- real value, "intersection over union" threshold used for NMS filtering Returns: scores -- tensor of shape (None, ), predicted score for each box boxes -- tensor of shape (None, 4), predicted box coordinates classes -- tensor of shape (None,), predicted class for each box """ ### START CODE HERE ### # Retrieve outputs of the YOLO model (≈1 line) box_confidence, box_xy, box_wh, box_class_probs = yolo_outputs # Convert boxes to be ready for filtering functions boxes = yolo_boxes_to_corners(box_xy, box_wh) # Use one of the functions you've implemented to perform Score-filtering with a threshold of score_threshold (≈1 line) scores, boxes, classes = yolo_filter_boxes(box_confidence, boxes, box_class_probs, score_threshold) # Scale boxes back to original image shape. boxes = scale_boxes(boxes, image_shape) # Use one of the functions you've implemented to perform Non-max suppression with a threshold of iou_threshold (≈1 line) scores, boxes, classes = yolo_non_max_suppression(scores, boxes, classes, max_boxes , iou_threshold ) ### END CODE HERE ### return scores, boxes, classes # - with tf.Session() as test_b: yolo_outputs = (tf.random_normal([19, 19, 5, 1], mean=1, stddev=4, seed = 1), tf.random_normal([19, 19, 5, 2], mean=1, stddev=4, seed = 1), tf.random_normal([19, 19, 5, 2], mean=1, stddev=4, seed = 1), tf.random_normal([19, 19, 5, 80], mean=1, stddev=4, seed = 1)) scores, boxes, classes = yolo_eval(yolo_outputs) print("scores[2] = " + str(scores[2].eval())) print("boxes[2] = " + str(boxes[2].eval())) print("classes[2] = " + str(classes[2].eval())) print("scores.shape = " + str(scores.eval().shape)) print("boxes.shape = " + str(boxes.eval().shape)) print("classes.shape = " + str(classes.eval().shape)) # **Expected Output**: # # <table> # <tr> # <td> # **scores[2]** # </td> # <td> # 138.791 # </td> # </tr> # <tr> # <td> # **boxes[2]** # </td> # <td> # [ 1292.32971191 -278.52166748 3876.98925781 -835.56494141] # </td> # </tr> # # <tr> # <td> # **classes[2]** # </td> # <td> # 54 # </td> # </tr> # <tr> # <td> # **scores.shape** # </td> # <td> # (10,) # </td> # </tr> # <tr> # <td> # **boxes.shape** # </td> # <td> # (10, 4) # </td> # </tr> # # <tr> # <td> # **classes.shape** # </td> # <td> # (10,) # </td> # </tr> # # </table> # <font color='blue'> # **Summary for YOLO**: # - Input image (608, 608, 3) # - The input image goes through a CNN, resulting in a (19,19,5,85) dimensional output. # - After flattening the last two dimensions, the output is a volume of shape (19, 19, 425): # - Each cell in a 19x19 grid over the input image gives 425 numbers. # - 425 = 5 x 85 because each cell contains predictions for 5 boxes, corresponding to 5 anchor boxes, as seen in lecture. # - 85 = 5 + 80 where 5 is because $(p_c, b_x, b_y, b_h, b_w)$ has 5 numbers, and and 80 is the number of classes we'd like to detect # - You then select only few boxes based on: # - Score-thresholding: throw away boxes that have detected a class with a score less than the threshold # - Non-max suppression: Compute the Intersection over Union and avoid selecting overlapping boxes # - This gives you YOLO's final output. # ## 3 - Test YOLO pretrained model on images # In this part, you are going to use a pretrained model and test it on the car detection dataset. As usual, you start by **creating a session to start your graph**. Run the following cell. sess = K.get_session() # ### 3.1 - Defining classes, anchors and image shape. # Recall that we are trying to detect 80 classes, and are using 5 anchor boxes. We have gathered the information about the 80 classes and 5 boxes in two files "coco_classes.txt" and "yolo_anchors.txt". Let's load these quantities into the model by running the next cell. # # The car detection dataset has 720x1280 images, which we've pre-processed into 608x608 images. class_names = read_classes("model_data/coco_classes.txt") anchors = read_anchors("model_data/yolo_anchors.txt") image_shape = (720., 1280.) # ### 3.2 - Loading a pretrained model # # Training a YOLO model takes a very long time and requires a fairly large dataset of labelled bounding boxes for a large range of target classes. You are going to load an existing pretrained Keras YOLO model stored in "yolo.h5". (These weights come from the official YOLO website, and were converted using a function written by Allan Zelener. References are at the end of this notebook. Technically, these are the parameters from the "YOLOv2" model, but we will more simply refer to it as "YOLO" in this notebook.) Run the cell below to load the model from this file. yolo_model = load_model("model_data/yolo.h5") # This loads the weights of a trained YOLO model. Here's a summary of the layers your model contains. yolo_model.summary() # **Note**: On some computers, you may see a warning message from Keras. Don't worry about it if you do--it is fine. # # **Reminder**: this model converts a preprocessed batch of input images (shape: (m, 608, 608, 3)) into a tensor of shape (m, 19, 19, 5, 85) as explained in Figure (2). # ### 3.3 - Convert output of the model to usable bounding box tensors # # The output of `yolo_model` is a (m, 19, 19, 5, 85) tensor that needs to pass through non-trivial processing and conversion. The following cell does that for you. yolo_outputs = yolo_head(yolo_model.output, anchors, len(class_names)) # You added `yolo_outputs` to your graph. This set of 4 tensors is ready to be used as input by your `yolo_eval` function. # ### 3.4 - Filtering boxes # # `yolo_outputs` gave you all the predicted boxes of `yolo_model` in the correct format. You're now ready to perform filtering and select only the best boxes. Lets now call `yolo_eval`, which you had previously implemented, to do this. scores, boxes, classes = yolo_eval(yolo_outputs, image_shape) # ### 3.5 - Run the graph on an image # # Let the fun begin. You have created a (`sess`) graph that can be summarized as follows: # # 1. <font color='purple'> yolo_model.input </font> is given to `yolo_model`. The model is used to compute the output <font color='purple'> yolo_model.output </font> # 2. <font color='purple'> yolo_model.output </font> is processed by `yolo_head`. It gives you <font color='purple'> yolo_outputs </font> # 3. <font color='purple'> yolo_outputs </font> goes through a filtering function, `yolo_eval`. It outputs your predictions: <font color='purple'> scores, boxes, classes </font> # # **Exercise**: Implement predict() which runs the graph to test YOLO on an image. # You will need to run a TensorFlow session, to have it compute `scores, boxes, classes`. # # The code below also uses the following function: # ```python # image, image_data = preprocess_image("images/" + image_file, model_image_size = (608, 608)) # ``` # which outputs: # - image: a python (PIL) representation of your image used for drawing boxes. You won't need to use it. # - image_data: a numpy-array representing the image. This will be the input to the CNN. # # **Important note**: when a model uses BatchNorm (as is the case in YOLO), you will need to pass an additional placeholder in the feed_dict {K.learning_phase(): 0}. def predict(sess, image_file): """ Runs the graph stored in "sess" to predict boxes for "image_file". Prints and plots the preditions. Arguments: sess -- your tensorflow/Keras session containing the YOLO graph image_file -- name of an image stored in the "images" folder. Returns: out_scores -- tensor of shape (None, ), scores of the predicted boxes out_boxes -- tensor of shape (None, 4), coordinates of the predicted boxes out_classes -- tensor of shape (None, ), class index of the predicted boxes Note: "None" actually represents the number of predicted boxes, it varies between 0 and max_boxes. """ # Preprocess your image image, image_data = preprocess_image("images/" + image_file, model_image_size = (608, 608)) # Run the session with the correct tensors and choose the correct placeholders in the feed_dict. # You'll need to use feed_dict={yolo_model.input: ... , K.learning_phase(): 0}) ### START CODE HERE ### (≈ 1 line) out_scores, out_boxes, out_classes = sess.run([scores, boxes, classes], feed_dict={ yolo_model.input: image_data, K.learning_phase():0 }) ### END CODE HERE ### # Print predictions info print('Found {} boxes for {}'.format(len(out_boxes), image_file)) # Generate colors for drawing bounding boxes. colors = generate_colors(class_names) # Draw bounding boxes on the image file draw_boxes(image, out_scores, out_boxes, out_classes, class_names, colors) # Save the predicted bounding box on the image image.save(os.path.join("out", image_file), quality=90) # Display the results in the notebook output_image = scipy.misc.imread(os.path.join("out", image_file)) imshow(output_image) return out_scores, out_boxes, out_classes # Run the following cell on the "test.jpg" image to verify that your function is correct. out_scores, out_boxes, out_classes = predict(sess, "test.jpg") # **Expected Output**: # # <table> # <tr> # <td> # **Found 7 boxes for test.jpg** # </td> # </tr> # <tr> # <td> # **car** # </td> # <td> # 0.60 (925, 285) (1045, 374) # </td> # </tr> # <tr> # <td> # **car** # </td> # <td> # 0.66 (706, 279) (786, 350) # </td> # </tr> # <tr> # <td> # **bus** # </td> # <td> # 0.67 (5, 266) (220, 407) # </td> # </tr> # <tr> # <td> # **car** # </td> # <td> # 0.70 (947, 324) (1280, 705) # </td> # </tr> # <tr> # <td> # **car** # </td> # <td> # 0.74 (159, 303) (346, 440) # </td> # </tr> # <tr> # <td> # **car** # </td> # <td> # 0.80 (761, 282) (942, 412) # </td> # </tr> # <tr> # <td> # **car** # </td> # <td> # 0.89 (367, 300) (745, 648) # </td> # </tr> # </table> # The model you've just run is actually able to detect 80 different classes listed in "coco_classes.txt". To test the model on your own images: # 1. Click on "File" in the upper bar of this notebook, then click "Open" to go on your Coursera Hub. # 2. Add your image to this Jupyter Notebook's directory, in the "images" folder # 3. Write your image's name in the cell above code # 4. Run the code and see the output of the algorithm! # # If you were to run your session in a for loop over all your images. Here's what you would get: # # <center> # <video width="400" height="200" src="nb_images/pred_video_compressed2.mp4" type="video/mp4" controls> # </video> # </center> # # <caption><center> Predictions of the YOLO model on pictures taken from a camera while driving around the Silicon Valley <br> Thanks [drive.ai](https://www.drive.ai/) for providing this dataset! </center></caption> # <font color='blue'> # **What you should remember**: # - YOLO is a state-of-the-art object detection model that is fast and accurate # - It runs an input image through a CNN which outputs a 19x19x5x85 dimensional volume. # - The encoding can be seen as a grid where each of the 19x19 cells contains information about 5 boxes. # - You filter through all the boxes using non-max suppression. Specifically: # - Score thresholding on the probability of detecting a class to keep only accurate (high probability) boxes # - Intersection over Union (IoU) thresholding to eliminate overlapping boxes # - Because training a YOLO model from randomly initialized weights is non-trivial and requires a large dataset as well as lot of computation, we used previously trained model parameters in this exercise. If you wish, you can also try fine-tuning the YOLO model with your own dataset, though this would be a fairly non-trivial exercise. # **References**: The ideas presented in this notebook came primarily from the two YOLO papers. The implementation here also took significant inspiration and used many components from Allan Zelener's github repository. The pretrained weights used in this exercise came from the official YOLO website. # - Joseph Redmon, Santosh Divvala, Ross Girshick, Ali Farhadi - [You Only Look Once: Unified, Real-Time Object Detection](https://arxiv.org/abs/1506.02640) (2015) # - Joseph Redmon, Ali Farhadi - [YOLO9000: Better, Faster, Stronger](https://arxiv.org/abs/1612.08242) (2016) # - Allan Zelener - [YAD2K: Yet Another Darknet 2 Keras](https://github.com/allanzelener/YAD2K) # - The official YOLO website (https://pjreddie.com/darknet/yolo/) # **Car detection dataset**: # <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">The Drive.ai Sample Dataset</span> (provided by drive.ai) is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. We are especially grateful to Brody Huval, Chih Hu and Rahul Patel for collecting and providing this dataset.
37,111
/Recommendation_Sytems_with_Python/Pydata_recommendation_systems_anushree.ipynb
f624a2dfd74a076dc43c7651ffcb273823676be1
[]
no_license
anushreesrinivas/Data-Science
https://github.com/anushreesrinivas/Data-Science
0
1
null
null
null
null
Jupyter Notebook
false
false
.py
37,878
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import copy import time import pickle from collections import Counter from itertools import chain import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable as Variable import torchvision import torchvision.transforms as transforms # + last_time = None def start_time(): global last_time last_time = time.time() def take_time(): global last_time new_time = time.time() print("time:", new_time - last_time) last_time = new_time # + def freq_dict(list): freq = {} for item in list: if (item in freq): freq[item] += 1 else: freq[item] = 1 return(freq) def clip(x, a=0, b=1): return(torch.max(torch.min(x, 0*x + b), 0*x + a)) # - def circuit_output(b, c, print_stuff=False): # print(b, c) n_strings = len(b[0]) gate_i = 0 cur_width = b.size()[0] while cur_width > 1: if print_stuff: print(cur_width) print(b) cur_width = round(cur_width/2) outputs = torch.zeros(cur_width, n_strings) for out_i in range(cur_width): in_i1 = out_i*2 in_i2 = out_i*2 + 1 outputs[out_i] = (1 - c[gate_i])*(1 - (1 - b[in_i1])*(1 - b[in_i2])) + c[gate_i]*b[in_i1]*b[in_i2] gate_i += 1 b = outputs return(b[0]) def choose_target(n_bits): global c c = 1.*(torch.rand(n_bits - 1) > .5) while True: c = 1.*(torch.randn(n_bits - 1) > 0) outputs = [circuit_output(1.*(torch.randn(n_bits, 1) > 0), c) for i in range(1000)] # print(sum(outputs)) if sum(outputs) > 400 and sum(outputs) < 600: break outputs = [circuit_output(1.*(torch.randn(n_bits, 1) > 0), c) for i in range(1000)] print("average output of", sum(outputs).item()/1000) print(c) return(c) # + def generate_all_binary_vectors(n_bits, array_so_far=None): if array_so_far == None: array_so_far = [] # print(n_bits, array_so_far) if n_bits == 0: return([array_so_far.copy()]) outputs = [] array_so_far += [0] outputs += generate_all_binary_vectors(n_bits - 1, array_so_far) array_so_far[len(array_so_far) - 1] = 1 outputs += generate_all_binary_vectors(n_bits - 1, array_so_far) del array_so_far[-1] return(outputs) def generate_random_binary_vectors(n_bits, n): return(1.*(torch.rand((n, n_bits)) > .5)) # - # ## Initialize and optimize on hypercube cache = {} # + # possible datasets: full, subset, subset_random, random def run_experiment(c, redundancy, n_epochs, dataset='full', batch_size=100, lr=.003, mom=.999, init_x=None, random_subset_size=10000): print('#'*100) n_bits = len(c) + 1 all_data = None all_data_redundant = None # if doing true GD, generate the full dataset if dataset == 'full': all_data = torch.tensor(generate_all_binary_vectors(n_bits)) all_data_redundant = torch.cat((all_data,)*redundancy, dim=1) # if doing subset SGD, generate the subdataset if dataset == 'subset' or dataset == 'subset_random': all_data = generate_random_binary_vectors(n_bits, random_subset_size) all_data_redundant = torch.cat((all_data,)*redundancy, dim=1) x = init_x if x is None: x = Variable(torch.rand(redundancy*n_bits - 1), requires_grad=True) optimizer = optim.SGD([x], lr=lr, momentum=mom) # optimizer = optim.Adam([x], lr=.1) epochs_since_nonzero_loss = 0 for epoch in range(n_epochs): data = None data_redundant = None if dataset == 'full' or dataset == 'subset': data = all_data data_redundant = all_data_redundant elif dataset == 'subset_random': indices = torch.randint(low=0, high=len(all_data), size=(batch_size,)) data = all_data[indices] data_redundant = all_data_redundant[indices] elif dataset == 'random': data = generate_random_binary_vectors(n_bits, batch_size) data_redundant = torch.cat((data,)*redundancy, dim=1) else: q = 1 + '7' optimizer.zero_grad() output_x = circuit_output(torch.t(data_redundant), x) output_c = circuit_output(torch.t(data), c) loss = torch.mean(torch.abs(output_x - output_c)) loss.backward() optimizer.step() with torch.no_grad(): x.data = clip(x.data) if epoch % 100 == 0: print('*'*50, epoch, '*'*50) print("loss: ", loss.item()) x_snapped = 1.*(x > .5) output_s = circuit_output(torch.t(data_redundant), x_snapped) loss_snapped = torch.mean(torch.abs(output_s - output_c)) print("loss snapped: ", loss_snapped.item()) extremeness = torch.sum(torch.min(torch.abs(x), torch.abs(x - 1))).item() print("distance to nearest vertex: ", extremeness) # print(epochs_since_nonzero_loss) if loss.item() <= 10**-4: # print(loss.item()) epochs_since_nonzero_loss += 1 else: epochs_since_nonzero_loss = 0 if epochs_since_nonzero_loss == 100000: print("qqqq", loss.item(), loss.item() <= 10**-4) print("ending run - zero loss") break if dataset == 'subset' or dataset == 'subset_random': x_snapped = 1.*(x > .5) # indices = torch.randint(low=0, high=len(all_data), size=(100000,)) # data = all_data[indices] # data_redundant = all_data_redundant[indices] # output_c = circuit_output(torch.t(data), c) # output_x = circuit_output(torch.t(data_redundant), x) # output_s = circuit_output(torch.t(data_redundant), x_snapped) # cache['output_c'] = output_c # cache['output_x'] = output_x # cache['output_s'] = output_s output_c = circuit_output(torch.t(all_data), c) output_x = circuit_output(torch.t(all_data_redundant), x) output_s = circuit_output(torch.t(all_data_redundant), x_snapped) loss = torch.mean(torch.abs(output_x - output_c)) loss_snapped = torch.mean(torch.abs(output_s - output_c)) print("final loss on train subset:", loss.item(), loss_snapped.item()) data = None data_redundant = None if dataset == 'full': data = all_data data_redundant = all_data_redundant elif dataset == 'subset' or dataset == 'subset_random': data = generate_random_binary_vectors(n_bits, 10*random_subset_size) data_redundant = torch.cat((data,)*redundancy, dim=1) elif dataset == 'random': data = generate_random_binary_vectors(n_bits, 10*random_subset_size) data_redundant = torch.cat((data,)*redundancy, dim=1) else: q = 1 + '7' output_c = circuit_output(torch.t(data), c) x_snapped = 1.*(x > .5) output_s = circuit_output(torch.t(data_redundant), x_snapped) loss_snapped = torch.mean(torch.abs(output_s - output_c)) print("final model:", x) print("final model snapped:", x_snapped) return loss_snapped.item() # - lengths = [4, 8, 16, 32, 64, 128] cs = {} for n_bits in lengths: cs[n_bits] = choose_target(n_bits) # ## Experimental rainbow - SGD torch.manual_seed(0) run_experiment(cs[64], 4, 1000, dataset='random', batch_size=10, random_subset_size=10000, lr=3, mom=.7) final_losses = {} n_runs = 20 n_epochs = 1000 batch_size = 10 rdcies = [1, 2, 4, 8] for n_bits in lengths: c = cs[n_bits] for rdcy in rdcies: print() print() print('!'*100) print(n_bits, "bits, redundancy of", rdcy) final_losses[(n_bits, rdcy)] = [run_experiment(c, rdcy, n_epochs, dataset='random', batch_size=batch_size, lr=.5, mom=.7, random_subset_size=10000) for _ in range(n_runs)] # + for params in sorted(final_losses): print(params[0], "bits and redundancy of", params[1], "gave average loss of", "%.5f"%torch.Tensor(final_losses[params]).mean().item(), "giving nonzero loss with probability", "%.2f"%(1 - sum(torch.Tensor(final_losses[params]) == 0).item()*1.0/n_runs)) for params in sorted(final_losses): print(params[0], params[1], "%.5f"%torch.Tensor(final_losses[params]).mean().item(), "%.2f"%(1 - sum(torch.Tensor(final_losses[params]) == 0).item()*1.0/n_runs)) # - final_losses[(128, 4)] # + print(x) y = torch.Tensor([1, 0, 0, 0, 0, 0, 0, 0]) output_x = circuit_output(torch.t(data_doubled), x) output_y = circuit_output(torch.t(data_doubled), y) output_c = circuit_output(torch.t(data), c) print(sum(abs(output_x - output_c))) print(sum(abs(output_y - output_c))) # print(data_doubled) # print(output_y) # print(data_doubled[4:5]) # print('*'*100) # print(circuit_output(torch.t(data_doubled[4:5]), y, print_stuff=True)) # + x = torch.Tensor([0, 1, 0]) output_x = circuit_output(torch.t(data), x) output_c = circuit_output(torch.t(data), c) print(sum(abs(output_x - output_c))) # - print(x) print(c) x_orig = x x_clipped = 1.*(x > .5) x # + data = all_data x_tweaked = x_clipped + torch.tensor([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) print(x_tweaked) output_x = circuit_output(torch.t(data), x_clipped) output_x_t = circuit_output(torch.t(data), x_tweaked) output_c = circuit_output(torch.t(data), c) loss = torch.mean(torch.abs((output_x - output_c))) loss_t = torch.mean(torch.abs((output_x_t - output_c))) print(loss_t - loss) # - c - x_clipped # + # -> there are local mins besides the global min # + # check if adding more gates besides AND/OR can help escape a local minimum all_data = generate_all_binary_vectors(4) def target_f(x): o1 = x[0] or x[1] o2 = x[2] or x[3] o3 = o1 and o2 return(o3) def current_f(x): o1 = x[0] or x[1] o2 = .8*(x[2] and x[3]) + .2*(x[2] or x[3]) o3 = .99*o1 + .01*(o1 and o2) return(o3) sum([abs(target_f(x) - current_f(x)) for x in all_data]) # - # ## Check for local minima # + def bitstring_neighbors(b): neighbors = torch.cat((b,)*len(b[0])) neighbors = neighbors + torch.eye(len(b[0])) neighbors %= 2 return(neighbors) def binary_to_decimal(b): nb = len(b[0]) x = torch.Tensor([[2**k for k in range(nb - 1, -1, -1)]]) output = torch.mm(1.*b, 1.*torch.t(x)) return(output.long()) def is_local_min(b, errors, strict=True): error = errors[binary_to_decimal(b).view(-1)[0]] neighbors = bitstring_neighbors(b) neighbor_is = binary_to_decimal(neighbors).view(-1).tolist() neighbor_errors = errors[neighbor_is] min_neighbor_error = min(neighbor_errors) if error < min_neighbor_error: return(True) elif error == min_neighbor_error: if strict: return(False) return(True) return(False) def get_equivalent_neighbors_if_min(b, errors): error = errors[binary_to_decimal(b).view(-1)[0]] neighbors = bitstring_neighbors(b) neighbor_is = binary_to_decimal(neighbors).view(-1).tolist() + binary_to_decimal(b)[0].tolist() neighbor_errors = errors[neighbor_is] min_neighbor_error = min(neighbor_errors) if min_neighbor_error < error: return(set()) output = set() for i in range(len(neighbor_is)): if neighbor_errors[i] == error: output.add(neighbor_is[i]) return(output) # + n_bits = 16 redundancy = 1 n_gates = redundancy*n_bits - 1 c = cs[n_bits] # c = torch.Tensor([0, 0, 1]) # c = torch.Tensor([0, 0, 0, 0, 1, 1, 0]) # c = torch.Tensor([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1]) data = torch.tensor(generate_all_binary_vectors(n_bits)) if redundancy > 1: data = torch.cat((data,)*redundancy, dim=1) circuits = torch.tensor(generate_all_binary_vectors(n_gates)) errors = torch.zeros(len(circuits)) for i in range(len(circuits)): output = circuit_output(torch.t(data), circuits[i]) target = circuit_output(torch.t(data), c) errors[i] = sum(abs(output - target)) print(errors) # - # ### Find single local mins for i in range(len(circuits)): if is_local_min(circuits[i:(i + 1)], errors, strict=True): print(i, circuits[i], errors[i]) # ### Find local min clusters # + cohort_is = [get_equivalent_neighbors_if_min(circuits[i:(i + 1)], errors) for i in range(len(circuits))] original_cohort_is = copy.deepcopy(cohort_is) for run in range(20): for i in range(len(circuits)): set_i = cohort_is[i] for j in set_i: if cohort_is[j] == set(): cohort_is[i] = set() break cluster_ids = [str(i) for i in range(len(circuits))] for run in range(20): for i in range(len(circuits)): if cohort_is[i] == set(): cluster_ids[i] = '' else: for j in cohort_is[i]: cluster_ids[j] = cluster_ids[i] zero_cluster_ids = set() min_cluster_ids = set() for ci in set(cluster_ids): if ci != '': if errors[int(ci)] == 0: zero_cluster_ids.add(ci) else: min_cluster_ids.add(ci) cluster_size_dict = freq_dict(cluster_ids) min_cluster_errors = [errors[int(ci)].item() for ci in min_cluster_ids] min_cluster_sizes = [cluster_size_dict[mci] for mci in min_cluster_ids] zero_cluster_sizes = [cluster_size_dict[zci] for zci in zero_cluster_ids] print(str(len(set(zero_cluster_ids))) + " zero clusters with sizes " + str(zero_cluster_sizes)) print(str(len(set(min_cluster_ids))) + " min clusters with sizes " + str(min_cluster_sizes) + " and errors " + str(min_cluster_errors)) print(cluster_ids) print(cohort_is) # - original_cohort_is
14,180
/Task 5 Data Science & Business Analytics Internship at The Sparks Foundation.ipynb
058a8a89f1383f0c5227fccd0ee1f406291c771a
[]
no_license
VijayChawla12/Data-Science-Business-Analytics-Internship-at-The-Sparks-Foundation
https://github.com/VijayChawla12/Data-Science-Business-Analytics-Internship-at-The-Sparks-Foundation
1
0
null
2021-01-09T18:18:00
2021-01-09T18:12:50
Jupyter Notebook
Jupyter Notebook
false
false
.py
296,073
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # The Sparks Foundation - Data Science & Business Analytics Internship # # Task-5: # Objective: # # ● Perform ‘Exploratory Data Analysis’ on dataset ‘Indian Premier League’ # # ● As a sports analysts, find out the most successful teams, players and factors contributing win or loss of a team. # # ● Suggest teams or players a company should endorse for its products. # # Author: VIJAY CHAWLA # # Imporing the Libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns # %matplotlib inline # # Imporing the Dataset df=pd.read_csv('matches.csv') df.head() df.shape df.columns.values df.info() df.isnull().sum() df.describe() print("Number of Seasons played:", len(df['season'].unique())) print("No. of Matches Played") df['season'].value_counts() # # Visualization sns.countplot(x='season', data=df) sns.countplot(x='winner', data=df) plt.title('Match Winning Teams') plt.xticks(rotation=90) plt.subplots(figsize=(20,10)) sns.countplot(x ='venue',data=df,order=df['venue'].value_counts().index) plt.title('Indian Premier League Venue',fontsize=35) plt.xlabel('Stadium',fontsize=15) plt.ylabel('Matches',fontsize=15) plt.xticks(rotation=-90,fontsize=15) # + plt.figure(figsize=(20,10)) sns.barplot(x= df.player_of_match.value_counts()[:10].index,y= df.player_of_match.value_counts()[:10]) plt.title('Top player of the match Winners',fontsize=35) plt.xlabel('Player',fontsize=25) plt.ylabel('Match',fontsize=25) # + plt.subplots(figsize=(20,10)) sns.countplot('winner', data = df) plt.title('Champion Teams',fontsize=35) plt.xlabel('Teams',fontsize=15) plt.ylabel('Season won',fontsize=15) plt.xticks(rotation=-90,fontsize=15) plt.show() # - # # Conclusion # . Mumbai Indians plays the highest amount of matches and has won more seasons than the other teams # # . Chennai Super Kings ranked the second highest in winning matches followed by Kolkata Knight Riders # # . Eden Gardens hosts the highest number of matches followed by M Chinnaswamy Stadium and Wankhede Stadium # # . CH Gayle won the most MVP awards in Indian Premier League assigned to them and maps to the `user_id` we assigned after they sign up # # Immediately after the end of the experiment, the Product Manager approaches you overly excited and wants you to analyze the success of the experiment. # # You can find the datasets in the `data/2020-03-01` folder. # load the datasets first_pageviews = users = subscriptions = # ## Inspect the data # + # show the first 5 lines of each dataset # + # check the data types and set them properly for each dataset # + # plot first pageview per day to inspect if you can spot any outliers or anything suspicious # + # check the assignment into the experiment. You should see that 7% of the visitors were # assigned to the experiment with a 50/50 split among the two variants # - # The assignment seemed to work as planned. You can now continue with the data prep. # # ## Create experiment dataset # # To simplify the analysis, filter and merge the datasets to only focus on what's relevant. That is, you only care about visitors that were actually assigned to the experiment. Among those, you want to know how many subscribed. The proportion of those, for each group, is the conversion rate. # + # merge the tables so you can see all visitors assigned to the experiment # and whether they subscribed or not # create a dummy column for whether a user subscribed or not # - # ## Inspect experiment data # # Before running the test, you want to spend some time checking the data you collected. # + # plot a timeseries of daily visitors that were assigned to an experiment # plot a line for each exp_id # + # does the time range match the experiment requirements? # Do the lines indicate an equal assignment over time? # - # ## Describing the data # # Compute the differences among the groups, before running a statistical test # + # compute the number of conversion for each experiment group # + # compute the conversion rate for each experiment group # + # interpret the results. From just looking at the numbers, which group performed better # with respect to conversions or conversion rates? # - # You should see that there is a difference in the conversion rate across the different experiment groups. # # Are there any differences among the subscibers for each group with respect to the client application they signed up through? # + # Compute relative frequency for each client_app through which they subscribed in each experiment group # + # interpret and discuss the results # - # ## Test whether the difference in conversion rate is significant # # It is time for the statistical test! # + # compute the two arrays/series to be passed to the t-test # + # run the test and compute the p-value, without the equal variance assumption # + # Write up your conclusion and discuss # - # The experiment unfortunately did not result in a significant difference among the two groups. That is, you cannot conclude that the upsells were in fact improving the conversion rates. You still doubt whether you've done everything in the right way. # # During a coffee break, you overheard some colleague talking about how they are contemplating about getting newspaper subscription. They said they have been going to the newspaper website a few times already but they're not sure if they're willing to pay the price. You start thinking that you were maybe a little to rushed with starting the analysis on the first day after the experiment ended. It might take some time for people to subscribe after the first pageview... # + # check the latest date a subscription was registered # + # Using the Five-number summary, check how long it takes for users to subscribe after their first visit # + # What is flawed when computing the five-number summary using this sample? # - # ## Considering time it takes to subscribe # # The team decides to wait for the analysis until the end of the month to allow users to subscribe. On April 1st, the Product Manager approaches you with even more excitement and pushes you to redo the analysis. # # The data for the additional subscribers that signed up between the day of your first analysis and today can be found in `data/2020-04-01/`. # # **Important:** The new data does not include any of the data that were included in the previous datasets. # + # load the newest data for subscriptions and their corresponding mapping in the users dataset # + # combine the newest data with the existing datasets # + # From here on, you're on your own. Redo the analysis from above with the new dataset. # Make sure to run a few inspections to make sure your data is how you expect it to be # After analyzing, provide a summary and a discussion including your communication to the Product Team
7,090
/homework_9/hw_titanic.ipynb
379d03d70b554af0018b89f7e5e346b1acdda3cc
[]
no_license
eszakharova/prog_4year
https://github.com/eszakharova/prog_4year
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
94,226
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import time, re from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from bs4 import BeautifulSoup with open("page.html") as f: soup = BeautifulSoup(f, 'html.parser') titles = soup.select('span > span.cont > span.text_cut') amounts = soup.select('span > span.cont > span.amount > span.pink_txt') links = soup.select('a[href]') # ids = soup.find_all(string=re.compile("id_")) # print(ids) for link in links: example = str(link.replace('\n','').replace(' ','') start_index = example.find("id_1") print(example[start_index:start_index+7]) # links = list(map(lambda link: # str(link.text.replace('\n','').replace(',','').strip()), # links # )) # p = re.compile(example) # m = p.search("id") # print(m) # var url = "/contest/"+season_id+"/"+startup_id+"/popup"; # <a href="javascript:fnStartupPopup('60','1168');" id="id_1168"> #id_1 # a href="javascript:fnstartupPopup # print(len(titles)) # print(len(amounts)) # print(len(links)) titles = list(map(lambda title: title.text.strip() ,titles)) amounts = list(map(lambda amount: int(amount.text.replace('원','').replace(',','').strip()), amounts )) results = {} for i in range(len(titles)): title = titles[i] # title = euc2utf(title) amount = amounts[i] results[title] = amount # key 값에 따라 내림차순으로 정렬 results = sorted(results.items(), key=lambda x: x[1], reverse=True) # with open('result.txt', 'w') as f: for i in range(len(results)): data = (f"{i+1}, {results[i][0]}, {results[i][1]}원, \n") f.write(data) # sorted(d.items(), key=lambda x: x[1], reverse=True) # with open('result.csv','w', newline='') as f: # w = csv.writer(f) # w.writerows(result.keys()) # w.writerows(result.values()) # span class="name_text_cut" 이 제목 # span class="amount" > span class="pink_txt" 가 모집금액 #id_1382 > span > span.cont > span.name.text_cut #id_1428 > span > span.cont > span.amount > span.pink_txt # -
2,248
/Projeto_AED_DanielVictor.ipynb
db6f873dc096ce6b719fb0930535619288ff3d2d
[]
no_license
danivict/Estatistica-Aplicada-a-Computacao
https://github.com/danivict/Estatistica-Aplicada-a-Computacao
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
832,348
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Projeto_AED # Importação das bibliotecas necessárias(pandas, numpy e matplotlib(apresentação de gráficos)). import pandas as pd import numpy as np import matplotlib.pyplot as plt # ## #Atividade em sala de aula # + raw_data = {'regiment': ['Nighthawks', 'Nighthawks', 'Nighthawks', 'Nighthawks', 'Dragoons', 'Dragoons', 'Dragoons', 'Dragoons', 'Scouts', 'Scouts', 'Scouts', 'Scouts'], 'company': ['1st', '1st', '2nd', '2nd', '1st', '1st', '2nd', '2nd','1st', '1st', '2nd', '2nd'], 'name': ['Miller', 'Jacobson', 'Ali', 'Milner', 'Cooze', 'Jacon', 'Ryaner', 'Sone', 'Sloan', 'Piger', 'Riani', 'Ali'], 'preTestScore': [4, 24, 31, 2, 3, 4, 24, 31, 2, 3, 2, 3], 'postTestScore': [25, 94, 57, 62, 70, 25, 94, 57, 62, 70, 62, 70]} df = pd.DataFrame(raw_data, columns = ['regiment', 'company', 'name', 'preTestScore', 'postTestScore']) df # - df.groupby(df['regiment']) list(df.groupby(df['regiment'])) df.groupby(df['regiment']).count() df.groupby([df['regiment'],df['postTestScore']]).count() # --- # # Projeto # # Parte I: Queimadas em unidades de conservação ambiental no Brasil # ### em que governo se criou mais UCs, de acordo com os dados? Use gráficos e tabelas para ilustrar sua resposta; # Leitura do DataFrame com o ```pd.read_table``` através do link fornecido pelo PDF da atividade. df = pd.read_table("http://www.icmbio.gov.br/acessoainformacao/images/stories/PDA/Planilhas/Planilhas_CSV/DIMIF-queima.csv", delimiter = ";") # Foi usado o delimiter para separar as colunas da devida forma. bolso = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 2019) & (df["Ano de criação"].values <= 2020)]).value_counts() temer = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 2017) & (df["Ano de criação"].values <= 2018)]).value_counts() dilma = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 2012) & (df["Ano de criação"].values <= 2016)]).value_counts() lula = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 2004) & (df["Ano de criação"].values <= 2011)]).value_counts() FHC = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1995) & (df["Ano de criação"].values <= 2003)]).value_counts() itamar = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1993) & (df["Ano de criação"].values <= 1995)]).value_counts() collor = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1991) & (df["Ano de criação"].values <= 1992)]).value_counts() sarney = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1986) & (df["Ano de criação"].values <= 1990)]).value_counts() figueiredo = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1980) & (df["Ano de criação"].values <= 1985)]).value_counts() geisel = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1975) & (df["Ano de criação"].values <= 1979)]).value_counts() medici = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1970) & (df["Ano de criação"].values <= 1974)]).value_counts() silva = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1968) & (df["Ano de criação"].values <= 1969)]).value_counts() castelo = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1965) & (df["Ano de criação"].values <= 1967)]).value_counts() goulart = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1962) & (df["Ano de criação"].values <= 1964)]).value_counts() jk = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1957) & (df["Ano de criação"].values <= 1961)]).value_counts() nereu = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1956) & (df["Ano de criação"].values <= 1956)]).value_counts() cafe = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1955) & (df["Ano de criação"].values <= 1955)]).value_counts() vargas2 = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1952) & (df["Ano de criação"].values <= 1954)]).value_counts() eurico = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1947) & (df["Ano de criação"].values <= 1951)]).value_counts() jose = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1946) & (df["Ano de criação"].values <= 1946)]).value_counts() vargas1 = pd.Series(df["Ano de criação"].values[(df["Ano de criação"].values >= 1930) & (df["Ano de criação"].values <= 1945)]).value_counts() # Função para criação de classes. def dist_frequencia_classes(x, nc='sturges'): fa,classes= np.histogram(x, bins=nc) fa = fa.astype(int) fr = np.around(fa/fa.sum()*100,decimals=2) fc = np.cumsum(fa).astype(int) classe_str = [] for i in range(len(classes)): if i<=len(classes)-2: classe_str.append('{:2.2f} |-- {:2.2f}' .format(classes[i],classes[i+1])) else: break return pd.DataFrame({'Classes':classe_str, 'fi': fa, 'fr': fr, 'Fc': fc }).set_index('Classes') # Concatenação de todos os DataFrames gerados pela função. tabela = pd.concat([dist_frequencia_classes(vargas1.index, nc = 1), dist_frequencia_classes(jose.index, nc = 1), dist_frequencia_classes(eurico.index, nc = 1), dist_frequencia_classes(vargas2.index, nc = 1), dist_frequencia_classes(cafe.index, nc = 1), dist_frequencia_classes(nereu.index, nc = 1), dist_frequencia_classes(jk.index, nc = 1), dist_frequencia_classes(goulart.index, nc = 1), dist_frequencia_classes(castelo.index, nc = 1), dist_frequencia_classes(silva.index, nc = 1), dist_frequencia_classes(medici.index, nc = 1), dist_frequencia_classes(geisel.index, nc = 1), dist_frequencia_classes(figueiredo.index, nc = 1), dist_frequencia_classes(sarney.index, nc = 1), dist_frequencia_classes(collor.index, nc = 1), dist_frequencia_classes(itamar.index, nc = 1), dist_frequencia_classes(FHC.index, nc = 1), dist_frequencia_classes(lula.index, nc = 1), dist_frequencia_classes(dilma.index, nc = 1), dist_frequencia_classes(temer.index, nc = 1), dist_frequencia_classes(bolso.index, nc = 1)]) tabela = tabela.reset_index() # Nomeação dos índices de acordo com o nome do presidente eleito para aquele governo. tabela.index = ["Vargas1", "José Linhares", "Eurico Gaspar Dutra", "Vargas2", "Café Filho", "Nereu Ramos", "Juscelino Kubitschek", "João Goulart", "Castelo Branco", "Costa e Silva", "Médici", "Geisel", "Figueiredo", "Sarney", "Fernando Collor", "Itamar Franco", "Fernando Henrique Cardoso", "Lula", "Dilma", "Temer", "Bolso"] tabela = tabela.drop(["fr", "Fc"], axis=1) # Criação de gráficos de barra com a função ```plot.bar``` da biblioteca matplotlib. tabela["fi"].plot.barh() # Tabela criada com a concatenação dos DataFrames. tabela # --- # ### Construa um dataframe de bioma referencial por categoria de UC (dica: groupby) e construa um gráfico relacionando as duas variáveis; # Construção do DataFrame relacionando as colunas "Bioma Referencial" e "Categoria da UC: sigla federal" com # o método sum, sendo atribuído à uma variável chamada "bio". bio = df.groupby([df["Bioma referencial"], df["Categoria da UC: sigla federal"]]).sum() bio # Criação de um novo DataFrame com apenas os anos das áreas queimadas, através de filtragem. burn = df.iloc[:,9:].fillna('0') burn # Validando as colunas do DataFrame, transformando os valores do mesmo para "float". for i in burn.columns: for j in range(len(burn.index)): burn[i][j] = burn[i][j].replace('.','') burn[i][j] = burn[i][j].replace(',','.') burn = burn.astype('float') burn # Criação de Series para cada ano cuja os valores são diferentes de 0(zero). g1 = burn["Área queimada em 2018"][burn["Área queimada em 2018"] != 0] g2 = burn["Área queimada em 2017"][burn["Área queimada em 2018"] != 0] g3 = burn["Área queimada em 2016"][burn["Área queimada em 2018"] != 0] g4 = burn["Área queimada em 2015"][burn["Área queimada em 2018"] != 0] g5 = burn["Área queimada em 2014"][burn["Área queimada em 2018"] != 0] g6 = burn["Área queimada em 2013"][burn["Área queimada em 2018"] != 0] g7 = burn["Área queimada em 2012"][burn["Área queimada em 2018"] != 0] # A partir da Series criadas acima, é construído um gráfico para cada ano, sendo assim, possível a melhor análise da situação daquele ano. plt.bar(g1.reset_index().index, g1.values) plt.title(g1.name) plt.bar(g2.reset_index().index, g2.values) plt.title(g2.name) plt.bar(g3.reset_index().index, g3.values) plt.title(g3.name) plt.bar(g4.reset_index().index, g4.values) plt.title(g4.name) plt.bar(g5.reset_index().index, g5.values) plt.title(g5.name) plt.bar(g6.reset_index().index, g6.values) plt.title(g6.name) plt.bar(g7.reset_index().index, g7.values) plt.title(g7.name) # ### monte um gráfico da quantidade de área queimada por ano, mostrando a evolução das queimadas; # Como já fiz com que o DataFrame de áreas queimadas fosse maleável, é possivel, apartir dele, obter dados para construção do gráfico. burn # DataFrame de Áreas Queimadas # Total das áreas queimadas no respectivo ano. soma_areas = burn.sum() soma_areas # Construção do gráfico com os dados que foram gerados acima. plt.bar(range(2012, 2019), soma_areas.values) # --- # ### Construa uma tabela que relacione estados e área queimada, respondendo qual o estado que mais e o que menos teve área queimada nos anos computados na pesquisa. df # Modificação dos valores da coluna "Coordenação Regional do ICMBio", deixando apenas o UF do estado, utilizando um ```for``` para tratamento de string. for i in range(len(df.index)): df["Coordenação Regional do ICMBio"][i] = df["Coordenação Regional do ICMBio"][i][-2:] df # Com o DataFrame de Áreas queimadas já pronto para manipulação, relaciono-o com a coluna dos estados(Coordenação Regional do ICMBio). burn # Concatenção da coluna "Coordenação Regional do ICMBio" ao DataFrame de Áreas queimadas, afim de relacioná-las. areastate = pd.concat([df["Coordenação Regional do ICMBio"], burn], axis = 1) areastate # Relacionando o DataFrame de acordo com a coluna "Coordenação Regional do ICMBio", utilizando o método ```groupby```. areajoined = areastate.groupby(areastate["Coordenação Regional do ICMBio"]).sum() areajoined # Organização de dados para adquirição da informação sobre qual estado queimou mais área e qual queimou menos. # **Piauí - PI : MAIOR ÁREA QUEIMADA** # # **Paraíba - PB : MENOR ÁREA QUEIMADA** areajoined.T.sum().sort_values(ascending = False) # --- # # Parte II: Desmatamentos em unidades de conservação ambiental no Brasil # Importação do DataFrame disponibilizado pelo PDF da atividade com o método ```pd.read_table```, utilizando novamente o "delimiter" a fim de melhor organição do DataFrame. desma = pd.read_table("http://www.icmbio.gov.br/acessoainformacao/images/stories/PDA/Planilhas/Planilhas_CSV/DIMIF_desmatamento.csv", delimiter = ';') desma # A coluna "Área estimada da UC (ha)" me parece diferente de um tipo númerico... tente consertá-la! desma = desma[1:] desma["Área estimada da UC (ha)"] = desma["Área estimada da UC (ha)"].str.replace('.', '').astype("float") / 1000 desma # Agora, qual será o maior valor da coluna "Área estimada da UC (ha)"? # Obtenção do maior valor na coluna "Área estimada da UC (ha)", usando o método ```max```. desma["Área estimada da UC (ha)"].max() # Faça um gráfico cujo mostre a Área estimada em relação com a Coordenação Regional. plt.barh(desma["Coordenação Regional do ICMBio"], desma["Área estimada da UC (ha)"]) # Aparentemente há colunas inválidas... remova-as! desma = desma.drop(["Unnamed: 21", "Unnamed: 32", "Unnamed: 31"], axis = 1) desma # Qual coordenação regional aparece com mais frequência? desma["Coordenação Regional do ICMBio"].value_counts().index[0] # Seu índice está errado, conserte-o para que comece contando do 0(zero)! # Reindexação com o método ```reset_index``` e exclusão da coluna "index". desma = desma.reset_index().drop("index", axis=1) desma ^{(i)})\log\left(1- a^{[2] (i)}\right) \large{)} \small\tag{13}$$ # # **Exercise**: Implement `compute_cost()` to compute the value of the cost $J$. # # **Instructions**: # - There are many ways to implement the cross-entropy loss. To help you, we give you how we would have implemented # $- \sum\limits_{i=0}^{m} y^{(i)}\log(a^{[2](i)})$: # ```python # logprobs = np.multiply(np.log(A2),Y) # cost = - np.sum(logprobs) # no need to use a for loop! # ``` # # (you can use either `np.multiply()` and then `np.sum()` or directly `np.dot()`). # # + # GRADED FUNCTION: compute_cost def compute_cost(A2, Y, parameters): """ Computes the cross-entropy cost given in equation (13) Arguments: A2 -- The sigmoid output of the second activation, of shape (1, number of examples) Y -- "true" labels vector of shape (1, number of examples) parameters -- python dictionary containing your parameters W1, b1, W2 and b2 Returns: cost -- cross-entropy cost given equation (13) """ m = Y.shape[1] # number of example # Retrieve W1 and W2 from parameters ### START CODE HERE ### (≈ 2 lines of code) W1 = parameters['W1'] W2 = parameters['W2'] ### END CODE HERE ### # Compute the cross-entropy cost ### START CODE HERE ### (≈ 2 lines of code) logprobs = np.multiply(np.log(A2),Y) + np.multiply(np.log(1-A2), 1-Y) ### END CODE HERE ### cost = -1/m * np.sum(logprobs) cost = np.squeeze(cost) # makes sure cost is the dimension we expect. # E.g., turns [[17]] into 17 assert(isinstance(cost, float)) return cost # + A2, Y_assess, parameters = compute_cost_test_case() print("cost = " + str(compute_cost(A2, Y_assess, parameters))) # - # **Expected Output**: # <table style="width:20%"> # <tr> # <td>**cost**</td> # <td> 0.692919893776 </td> # </tr> # # </table> # Using the cache computed during forward propagation, you can now implement backward propagation. # # **Question**: Implement the function `backward_propagation()`. # # **Instructions**: # Backpropagation is usually the hardest (most mathematical) part in deep learning. To help you, here again is the slide from the lecture on backpropagation. You'll want to use the six equations on the right of this slide, since you are building a vectorized implementation. # # <img src="images/grad_summary.png" style="width:600px;height:300px;"> # # <!-- # $\frac{\partial \mathcal{J} }{ \partial z_{2}^{(i)} } = \frac{1}{m} (a^{[2](i)} - y^{(i)})$ # # $\frac{\partial \mathcal{J} }{ \partial W_2 } = \frac{\partial \mathcal{J} }{ \partial z_{2}^{(i)} } a^{[1] (i) T} $ # # $\frac{\partial \mathcal{J} }{ \partial b_2 } = \sum_i{\frac{\partial \mathcal{J} }{ \partial z_{2}^{(i)}}}$ # # $\frac{\partial \mathcal{J} }{ \partial z_{1}^{(i)} } = W_2^T \frac{\partial \mathcal{J} }{ \partial z_{2}^{(i)} } * ( 1 - a^{[1] (i) 2}) $ # # $\frac{\partial \mathcal{J} }{ \partial W_1 } = \frac{\partial \mathcal{J} }{ \partial z_{1}^{(i)} } X^T $ # # $\frac{\partial \mathcal{J} _i }{ \partial b_1 } = \sum_i{\frac{\partial \mathcal{J} }{ \partial z_{1}^{(i)}}}$ # # - Note that $*$ denotes elementwise multiplication. # - The notation you will use is common in deep learning coding: # - dW1 = $\frac{\partial \mathcal{J} }{ \partial W_1 }$ # - db1 = $\frac{\partial \mathcal{J} }{ \partial b_1 }$ # - dW2 = $\frac{\partial \mathcal{J} }{ \partial W_2 }$ # - db2 = $\frac{\partial \mathcal{J} }{ \partial b_2 }$ # # !--> # # - Tips: # - To compute dZ1 you'll need to compute $g^{[1]'}(Z^{[1]})$. Since $g^{[1]}(.)$ is the tanh activation function, if $a = g^{[1]}(z)$ then $g^{[1]'}(z) = 1-a^2$. So you can compute # $g^{[1]'}(Z^{[1]})$ using `(1 - np.power(A1, 2))`. # + # GRADED FUNCTION: backward_propagation def backward_propagation(parameters, cache, X, Y): """ Implement the backward propagation using the instructions above. Arguments: parameters -- python dictionary containing our parameters cache -- a dictionary containing "Z1", "A1", "Z2" and "A2". X -- input data of shape (2, number of examples) Y -- "true" labels vector of shape (1, number of examples) Returns: grads -- python dictionary containing your gradients with respect to different parameters """ m = X.shape[1] # First, retrieve W1 and W2 from the dictionary "parameters". ### START CODE HERE ### (≈ 2 lines of code) W1 = parameters['W1'] W2 = parameters['W2'] ### END CODE HERE ### # Retrieve also A1 and A2 from dictionary "cache". ### START CODE HERE ### (≈ 2 lines of code) A1 = cache['A1'] A2 = cache['A2'] ### END CODE HERE ### # Backward propagation: calculate dW1, db1, dW2, db2. ### START CODE HERE ### (≈ 6 lines of code, corresponding to 6 equations on slide above) dZ2 = A2 - Y dW2 = 1/m * np.dot(dZ2, A1.T) db2 = 1/m * np.sum(dZ2, axis=1, keepdims=True) dZ1 = np.multiply(W2.T, np.multiply(dZ2, 1 - np.power(A1,2))) dW1 = 1/m * np.dot(dZ1, X.T) db1 = 1/m * np.sum(dZ1, axis=1, keepdims=True) ### END CODE HERE ### grads = {"dW1": dW1, "db1": db1, "dW2": dW2, "db2": db2} return grads # + parameters, cache, X_assess, Y_assess = backward_propagation_test_case() grads = backward_propagation(parameters, cache, X_assess, Y_assess) print ("dW1 = "+ str(grads["dW1"])) print ("db1 = "+ str(grads["db1"])) print ("dW2 = "+ str(grads["dW2"])) print ("db2 = "+ str(grads["db2"])) # - # **Expected output**: # # # # <table style="width:80%"> # <tr> # <td>**dW1**</td> # <td> [[ 0.01018708 -0.00708701] # [ 0.00873447 -0.0060768 ] # [-0.00530847 0.00369379] # [-0.02206365 0.01535126]] </td> # </tr> # # <tr> # <td>**db1**</td> # <td> [[-0.00069728] # [-0.00060606] # [ 0.000364 ] # [ 0.00151207]] </td> # </tr> # # <tr> # <td>**dW2**</td> # <td> [[ 0.00363613 0.03153604 0.01162914 -0.01318316]] </td> # </tr> # # # <tr> # <td>**db2**</td> # <td> [[ 0.06589489]] </td> # </tr> # # </table> # **Question**: Implement the update rule. Use gradient descent. You have to use (dW1, db1, dW2, db2) in order to update (W1, b1, W2, b2). # # **General gradient descent rule**: $ \theta = \theta - \alpha \frac{\partial J }{ \partial \theta }$ where $\alpha$ is the learning rate and $\theta$ represents a parameter. # # **Illustration**: The gradient descent algorithm with a good learning rate (converging) and a bad learning rate (diverging). Images courtesy of Adam Harley. # # <img src="images/sgd.gif" style="width:400;height:400;"> <img src="images/sgd_bad.gif" style="width:400;height:400;"> # # # + # GRADED FUNCTION: update_parameters def update_parameters(parameters, grads, learning_rate = 1.2): """ Updates parameters using the gradient descent update rule given above Arguments: parameters -- python dictionary containing your parameters grads -- python dictionary containing your gradients Returns: parameters -- python dictionary containing your updated parameters """ # Retrieve each parameter from the dictionary "parameters" ### START CODE HERE ### (≈ 4 lines of code) W1 = parameters['W1'] b1 = parameters['b1'] W2 = parameters['W2'] b2 = parameters['b2'] ### END CODE HERE ### # Retrieve each gradient from the dictionary "grads" ### START CODE HERE ### (≈ 4 lines of code) dW1 = grads['dW1'] db1 = grads['db1'] dW2 = grads['dW2'] db2 = grads['db2'] ## END CODE HERE ### # Update rule for each parameter ### START CODE HERE ### (≈ 4 lines of code) W1 -= learning_rate * dW1 b1 -= learning_rate * db1 W2 -= learning_rate * dW2 b2 -= learning_rate * db2 ### END CODE HERE ### parameters = {"W1": W1, "b1": b1, "W2": W2, "b2": b2} return parameters # + parameters, grads = update_parameters_test_case() parameters = update_parameters(parameters, grads) print("W1 = " + str(parameters["W1"])) print("b1 = " + str(parameters["b1"])) print("W2 = " + str(parameters["W2"])) print("b2 = " + str(parameters["b2"])) # - # **Expected Output**: # # # <table style="width:80%"> # <tr> # <td>**W1**</td> # <td> [[-0.00643025 0.01936718] # [-0.02410458 0.03978052] # [-0.01653973 -0.02096177] # [ 0.01046864 -0.05990141]]</td> # </tr> # # <tr> # <td>**b1**</td> # <td> [[ -1.02420756e-06] # [ 1.27373948e-05] # [ 8.32996807e-07] # [ -3.20136836e-06]]</td> # </tr> # # <tr> # <td>**W2**</td> # <td> [[-0.01041081 -0.04463285 0.01758031 0.04747113]] </td> # </tr> # # # <tr> # <td>**b2**</td> # <td> [[ 0.00010457]] </td> # </tr> # # </table> # ### 4.4 - Integrate parts 4.1, 4.2 and 4.3 in nn_model() #### # # **Question**: Build your neural network model in `nn_model()`. # # **Instructions**: The neural network model has to use the previous functions in the right order. # + # GRADED FUNCTION: nn_model def nn_model(X, Y, n_h, num_iterations = 10000, print_cost=False): """ Arguments: X -- dataset of shape (2, number of examples) Y -- labels of shape (1, number of examples) n_h -- size of the hidden layer num_iterations -- Number of iterations in gradient descent loop print_cost -- if True, print the cost every 1000 iterations Returns: parameters -- parameters learnt by the model. They can then be used to predict. """ np.random.seed(3) n_x = layer_sizes(X, Y)[0] n_y = layer_sizes(X, Y)[2] # Initialize parameters, then retrieve W1, b1, W2, b2. Inputs: "n_x, n_h, n_y". Outputs = "W1, b1, W2, b2, parameters". ### START CODE HERE ### (≈ 5 lines of code) parameters = initialize_parameters(n_x, n_h, n_y) W1 = parameters['W1'] b1 = parameters['b1'] W2 = parameters['W2'] b2 = parameters['b2'] ### END CODE HERE ### # Loop (gradient descent) for i in range(0, num_iterations): ### START CODE HERE ### (≈ 4 lines of code) # Forward propagation. Inputs: "X, parameters". Outputs: "A2, cache". A2, cache = forward_propagation(X, parameters) # Cost function. Inputs: "A2, Y, parameters". Outputs: "cost". cost = compute_cost(A2, Y, parameters) # Backpropagation. Inputs: "parameters, cache, X, Y". Outputs: "grads". grads = backward_propagation(parameters, cache, X, Y) # Gradient descent parameter update. Inputs: "parameters, grads". Outputs: "parameters". parameters = update_parameters(parameters, grads) ### END CODE HERE ### # Print the cost every 1000 iterations if print_cost and i % 1000 == 0: print ("Cost after iteration %i: %f" %(i, cost)) return parameters # + X_assess, Y_assess = nn_model_test_case() parameters = nn_model(X_assess, Y_assess, 4, num_iterations=10000, print_cost=False) print("W1 = " + str(parameters["W1"])) print("b1 = " + str(parameters["b1"])) print("W2 = " + str(parameters["W2"])) print("b2 = " + str(parameters["b2"])) # - # **Expected Output**: # # <table style="width:90%"> # <tr> # <td>**W1**</td> # <td> [[-4.18494056 5.33220609] # [-7.52989382 1.24306181] # [-4.1929459 5.32632331] # [ 7.52983719 -1.24309422]]</td> # </tr> # # <tr> # <td>**b1**</td> # <td> [[ 2.32926819] # [ 3.79458998] # [ 2.33002577] # [-3.79468846]]</td> # </tr> # # <tr> # <td>**W2**</td> # <td> [[-6033.83672146 -6008.12980822 -6033.10095287 6008.06637269]] </td> # </tr> # # # <tr> # <td>**b2**</td> # <td> [[-52.66607724]] </td> # </tr> # # </table> # ### 4.5 Predictions # # **Question**: Use your model to predict by building predict(). # Use forward propagation to predict results. # # **Reminder**: predictions = $y_{prediction} = \mathbb 1 \text{{activation > 0.5}} = \begin{cases} # 1 & \text{if}\ activation > 0.5 \\ # 0 & \text{otherwise} # \end{cases}$ # # As an example, if you would like to set the entries of a matrix X to 0 and 1 based on a threshold you would do: ```X_new = (X > threshold)``` # + # GRADED FUNCTION: predict def predict(parameters, X): """ Using the learned parameters, predicts a class for each example in X Arguments: parameters -- python dictionary containing your parameters X -- input data of size (n_x, m) Returns predictions -- vector of predictions of our model (red: 0 / blue: 1) """ # Computes probabilities using forward propagation, and classifies to 0/1 using 0.5 as the threshold. ### START CODE HERE ### (≈ 2 lines of code) A2, cache = forward_propagation(X, parameters) predictions = np.round(A2) ### END CODE HERE ### return predictions # + parameters, X_assess = predict_test_case() predictions = predict(parameters, X_assess) print("predictions mean = " + str(np.mean(predictions))) # - # **Expected Output**: # # # <table style="width:40%"> # <tr> # <td>**predictions mean**</td> # <td> 0.666666666667 </td> # </tr> # # </table> # It is time to run the model and see how it performs on a planar dataset. Run the following code to test your model with a single hidden layer of $n_h$ hidden units. # + # Build a model with a n_h-dimensional hidden layer parameters = nn_model(X, Y, n_h = 4, num_iterations = 10000, print_cost=True) # Plot the decision boundary plot_decision_boundary(lambda x: predict(parameters, x.T), X, Y[0]) plt.title("Decision Boundary for hidden layer size " + str(4)) # - # **Expected Output**: # # <table style="width:40%"> # <tr> # <td>**Cost after iteration 9000**</td> # <td> 0.218607 </td> # </tr> # # </table> # # Print accuracy predictions = predict(parameters, X) print ('Accuracy: %d' % float((np.dot(Y,predictions.T) + np.dot(1-Y,1-predictions.T))/float(Y.size)*100) + '%') # **Expected Output**: # # <table style="width:15%"> # <tr> # <td>**Accuracy**</td> # <td> 90% </td> # </tr> # </table> # Accuracy is really high compared to Logistic Regression. The model has learnt the leaf patterns of the flower! Neural networks are able to learn even highly non-linear decision boundaries, unlike logistic regression. # # Now, let's try out several hidden layer sizes. # ### 4.6 - Tuning hidden layer size (optional/ungraded exercise) ### # # Run the following code. It may take 1-2 minutes. You will observe different behaviors of the model for various hidden layer sizes. # + # This may take about 2 minutes to run plt.figure(figsize=(16, 32)) hidden_layer_sizes = [1, 2, 3, 4, 5, 20, 50] for i, n_h in enumerate(hidden_layer_sizes): plt.subplot(5, 2, i+1) plt.title('Hidden Layer of size %d' % n_h) parameters = nn_model(X, Y, n_h, num_iterations = 5000) plot_decision_boundary(lambda x: predict(parameters, x.T), X, Y[0]) predictions = predict(parameters, X) accuracy = float((np.dot(Y,predictions.T) + np.dot(1-Y,1-predictions.T))/float(Y.size)*100) print ("Accuracy for {} hidden units: {} %".format(n_h, accuracy)) # - # **Interpretation**: # - The larger models (with more hidden units) are able to fit the training set better, until eventually the largest models overfit the data. # - The best hidden layer size seems to be around n_h = 5. Indeed, a value around here seems to fits the data well without also incurring noticable overfitting. # - You will also learn later about regularization, which lets you use very large models (such as n_h = 50) without much overfitting. # **Optional questions**: # # Some optional/ungraded questions that you can explore if you wish: # - What happens when you change the tanh activation for a sigmoid activation or a ReLU activation? # - Play with the learning_rate. What happens? # - What if we change the dataset? (See part 5 below!) # <font color='blue'> # **You've learnt to:** # - Build a complete neural network with a hidden layer # - Make a good use of a non-linear unit # - Implemented forward propagation and backpropagation, and trained a neural network # - See the impact of varying the hidden layer size, including overfitting. # Nice work! # ## 5) Performance on other datasets # If you want, you can rerun the whole notebook (minus the dataset part) for each of the following datasets. # + # Datasets noisy_circles, noisy_moons, blobs, gaussian_quantiles, no_structure = load_extra_datasets() datasets = {"noisy_circles": noisy_circles, "noisy_moons": noisy_moons, "blobs": blobs, "gaussian_quantiles": gaussian_quantiles} ### START CODE HERE ### (choose your dataset) dataset = 'noisy_moons' ### END CODE HERE ### X, Y = datasets[dataset] X, Y = X.T, Y.reshape(1, Y.shape[0]) # make blobs binary if dataset == "blobs": Y = Y%2 # Visualize the data plt.scatter(X[0, :], X[1, :], c=Y[0], s=40, cmap=plt.cm.Spectral); # - # ## 6) Implement this MLP on Planar dataset using Pytorch/MXnet with autograd function to achieve feedforward, gradient calculation and backpropagation # + # Enter your code here import os import sys import time import torch import torchvision import numpy as np import torch.nn as nn from torchvision import transforms from torch.utils.data import DataLoader, TensorDataset # + X, Y = load_planar_dataset() n_x = layer_sizes(X, Y)[0] n_h = layer_sizes(X, Y)[1] n_y = layer_sizes(X, Y)[2] X_train = torch.tensor(X.T) y_train = torch.tensor(Y.T) X_train = X_train.type(torch.float32) y_train = y_train.type(torch.float32) # - class Net(nn.Module): def __init__(self): super(Net,self).__init__() self.W1 = nn.Parameter(torch.randn(n_x,n_h,requires_grad=True) * 0.01) self.b1 = nn.Parameter(torch.zeros(n_h,requires_grad=True)) self.W2 = nn.Parameter(torch.randn(n_h,n_y,requires_grad=True) * 0.01) self.b2 = nn.Parameter(torch.zeros(n_y,requires_grad=True)) def forward(self, X): X = X.reshape((-1, n_x)) H = torch.tanh(X @ self.W1 + self.b1) # Here '@' stands for dot product operation return torch.sigmoid(H @ self.W2 + self.b2) net = Net() criterion = nn.BCEWithLogitsLoss() # + num_iterations = 10000 lr = 1.2 optimizer = torch.optim.SGD(net.parameters(), lr=lr) for i in range(num_iterations): net.train() optimizer.zero_grad() y_hat = net(X_train) loss = criterion(y_hat, y_train) loss.backward() optimizer.step() # - def torch_predict(X_train): X_train = torch.tensor(X_train) X_train = X_train.type(torch.float32) predictions = net(X_train) predictions = np.round(predictions.detach().numpy()).T return predictions predictions = torch_predict(X_train) # Print accuracy print ('Accuracy: %d' % float((np.dot(Y,predictions.T) + np.dot(1-Y,1-predictions.T))/float(Y.size)*100) + '%') X.shape # Visulization of your decision boundary plot_decision_boundary(lambda x: torch_predict(x), X, Y[0]) plt.title("Decision Boundary for hidden layer size " + str(4)) # Reference: # - http://scs.ryerson.ca/~aharley/neural-networks/ # - http://cs231n.github.io/neural-networks-case-study/ # - deep_learning_by_andrew_ng_coursera
32,163
/experiments/2. archattribute/text_correlation.ipynb
f0e8c8489df8b0fbf0b39657af012b90d313de77
[]
no_license
vdefont/archipelago
https://github.com/vdefont/archipelago
0
0
null
2021-04-03T23:31:44
2021-04-03T03:39:43
null
Jupyter Notebook
false
false
.py
16,817
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/boujrafh/BackendConsumingRestApiToken/blob/master/Copie_de_evalutate_strat.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + colab={"base_uri": "https://localhost:8080/"} id="AKCU_HAbrNaX" outputId="b929f9b0-949a-4cfa-a700-aa2bb250c28b" import numpy as np import pandas as pd import matplotlib.pyplot as plt # !pip install mplfinance import mplfinance as mpf # !pip install talib-binary import talib as ta from datetime import datetime # + id="uZaOalyeszHG" data = pd.read_json("/content/drive/MyDrive/dev/BNB-USDT_1m.json") df = data.rename(columns={0: "date", 1: "open", 2: "high", 3: "low", 4: "close", 5: "volume"}, inplace=False) # + id="hVD211oXteAs" def add_flag(dataframe, add_plots, ref_name, price_ref_name, color, marker, to_add=True, shift_percent=0.01): if ref_name in dataframe: have_indicator = dataframe[ref_name].isin([1]).any().any() if have_indicator: signal_indexes = np.where(dataframe[ref_name] == 1) for ssi in signal_indexes[0]: if to_add: dataframe[ref_name][ssi] = ( dataframe.iloc[ssi][price_ref_name] + dataframe.iloc[ssi][ price_ref_name] * shift_percent) else: dataframe[ref_name][ssi] = ( dataframe.iloc[ssi][price_ref_name] - dataframe.iloc[ssi][ price_ref_name] * shift_percent) flags = mpf.make_addplot(dataframe[ref_name], panel=0, ylabel=ref_name, color=color, type='scatter', markersize=150, marker=marker) add_plots.append(flags) # + id="jjVDILfhpVZi" df_part = df.iloc[0:].copy() # + id="GasqpIgAtQVo" add_plots = [] # + id="Xo6b797zpOL2" # Stoch df_part["slowk"], df_part["slowd"] = ta.STOCH(df_part.high, df_part.low, df_part.close) slowk = mpf.make_addplot(df_part["slowk"], panel=1, ylabel='slowk', color='blue') add_plots.append(slowk) slowd = mpf.make_addplot(df_part["slowd"], panel=1, ylabel='slowd', color='red') add_plots.append(slowd) # + id="Qd7qUWtitk6t" # rsi14 df_part["rsi14"] = ta.RSI(df_part.close, 14) rsi14 = mpf.make_addplot(df_part["rsi14"], panel=2, ylabel='rsi14', color='blue') add_plots.append(rsi14) # rsi28 df_part["rsi28"] = ta.RSI(df_part.close, 28) rsi28 = mpf.make_addplot(df_part["rsi28"], panel=2, ylabel='rsi28', color='red') add_plots.append(rsi28) # + id="54PqZKGdtyFp" # TEMA - Triple Exponential Moving Average df_part['tema'] = ta.TEMA(df_part.close, 9) tema = mpf.make_addplot(df_part["tema"], panel=0, ylabel='tema', color='c', markersize=150) add_plots.append(tema) # + id="PhWOmSzttyO_" #ema10 df_part["ema10"] = ta.EMA(df_part.close, 10) ema10 = mpf.make_addplot(df_part["ema10"], panel=0, ylabel='ema10', color='red', markersize=150) add_plots.append(ema10) #ema50 df_part["ema50"] = ta.EMA(df_part.close, 50) ema50 = mpf.make_addplot(df_part["ema50"], panel=0, ylabel='ema50', color='orange', markersize=150) add_plots.append(ema50) # + id="q-F9AUU_1AkP" # Bollinger Bands df_part["bb_upperband"], df_part["bb_middleband"], df_part["bb_lowerband"] =ta.BBANDS(df_part.close, 20, 2, 2) bb_upperband = mpf.make_addplot(df_part["bb_upperband"], panel=0, ylabel='bb_upperband', color='red', linestyle='dashdot') add_plots.append(bb_upperband) bb_middleband = mpf.make_addplot(df_part["bb_middleband"], panel=0, ylabel='bb_middleband', color='blue', linestyle='dashdot') add_plots.append(bb_middleband) bb_lowerband = mpf.make_addplot(df_part["bb_lowerband"], panel=0, ylabel='bb_lowerband', color='darkgreen', linestyle='dashdot') add_plots.append(bb_lowerband) # + id="AXdPqVWMtyXH" # df_part.loc[ # ( # (df_part['ema10'] > df_part['ema50'])& # (df_part['tema'] >= df_part['ema50'] + df_part['ema50'] * 0.0005)& # (df_part['tema'] > df_part['ema10']) & # (df_part['low'] < df_part['ema50']) & # (df_part['slowk'] < 75) & # (df_part['slowk'] > df_part['slowd']) # ), # "open_indicator"] = 1 # print(df_part.head()) # + colab={"base_uri": "https://localhost:8080/"} id="i_QHB-ba99Xp" outputId="6ff646f9-2be2-4297-ce65-6fa3498f3755" df_part.loc[ ( (df_part['tema'] >= df_part['ema50'] + df_part['ema50'] * 0.0005)& (df_part['slowk'] > 40)& (df_part['rsi14'] > 30)& (df_part['rsi14'].shift(1) < df_part['rsi14'])& # (df_part['ema10'].shift(1) < df_part['ema10'])& (df_part['tema'].shift(1) < df_part['tema'])& (df_part['low'] > df_part['bb_lowerband']) & (df_part['high'] < df_part['bb_middleband']) & ( (df_part['low'].shift(1) <= df_part['bb_lowerband'].shift(1)) | (df_part['low'].shift(2) <= df_part['bb_lowerband'].shift(2)) | (df_part['low'].shift(3) <= df_part['bb_lowerband'].shift(3)) | (df_part['low'].shift(4) <= df_part['bb_lowerband'].shift(4)) ) ), "open_indicator"] = 1 print(df_part[df_part["open_indicator"] == 1].head()) # + colab={"base_uri": "https://localhost:8080/"} id="CThLXqLQH0yO" outputId="2e158731-6a5b-4c4d-d40c-d92cc3db5d7b" df_part["won"] = np.nan for i, cell in enumerate(df_part.iterrows()): if cell[1]["open_indicator"] > 0: open_price = cell[1]["open"] for c, r in df_part.iloc[i+1:i+120].iterrows(): if r["open"] < open_price - open_price*0.005: break if r["open"] >= open_price + open_price*0.005: df_part.at[cell[0], "won"] = 1 break print(df_part[df_part["open_indicator"] == 1].head()) print(df_part[df_part["won"] == 1].head()) # + colab={"base_uri": "https://localhost:8080/", "height": 595} id="HsfLYirVkAQL" outputId="46a0c7a1-492c-4078-c754-b13dd99475bf" nbr_open_indicator = len(df_part[df_part["open_indicator"]==1]) nbr_won= len(df_part[df_part["won"]==1]) form = datetime.fromtimestamp(df_part[0]["date"]) print(f"from: {form}") print(f"won: {1 + (nbr_won / nbr_open_indicator) * 100}%") # + id="37OzBVM-mIPy" df_part['date_ms'] = pd.to_datetime(df_part['date'], unit='ms') df_part.set_index('date_ms', inplace=True, drop=True) # + colab={"base_uri": "https://localhost:8080/"} id="UXejG1Z813Q1" outputId="00a98a41-8f09-4bce-a362-accfe5f4cab7" add_flag(df_part, add_plots, "close_indicator", "high", "red", "v", True) add_flag(df_part, add_plots, "open_indicator", "low", "green", "^", False) add_flag(df_part, add_plots, "won", "low", "purple", "*", False) # + id="FKPX7eUTtydn" # pkwargs = dict(type='candle', style='starsandstripes', addplot=add_plots) # mpf.plot(df_part, figscale=2.5, volume=False,returnfig=True,**pkwargs) = "RCB-III": response = "R" else: #print(row["pathologic_response_pcr_rd"],row["pathologic_response_rcb_class"],file = sys.stderr) response = "NA" #else: #print(row["pathologic_response_pcr_rd"],row["pathologic_response_rcb_class"],file = sys.stderr) # response = "NA" return response fpath = download_GEO_matrix("GSE25065_series_matrix.txt.gz", '/geo/series/GSE25nnn/GSE25065/matrix/',destination=tmp_dir) df = read_matrix(fpath) os.remove(fpath) df.index.name = "sample_name" cols = [u'age_years', u'chemosensitivity_prediction', u'clinical_ajcc_stage', u'clinical_nodal_status', u'clinical_t_stage', u'dlda30_prediction', u'drfs_1_event_0_censored', u'drfs_even_time_years', u'er_status_ihc', u'erbb2_status', u'esr1_status', u'ggi_class', u'grade', u'her2_status', u'pam50_class', u'pr_status_ihc',u'rcb_0_i_prediction', u'sample id', u'set_class', u'source', u'tissue', u'title'] #'type_taxane','pathologic_response_pcr_rd','pathologic_response_rcb_class' df[["title","pathologic_response_pcr_rd"]].groupby("pathologic_response_pcr_rd").count() df[["title","pathologic_response_rcb_class"]].groupby("pathologic_response_rcb_class").count() df["response"] = df.apply(lambda row : RCB2response(row),axis =1 ) # drop NA response s = df[df["response"] == "NA"].index.values print("samples with NA response", df[df["response"] == "NA"].shape[0]) df = df[df["response"] != "NA"] df["drug"] = df["type_taxane"].apply(lambda x : drug_dict[x]) df = df[["drug","response",'pathologic_response_pcr_rd','pathologic_response_rcb_class','type_taxane'] + cols] for drug in list(set(df["drug"].values)): d = df[df["drug"]==drug] d.sort_values(by="sample_name",inplace=True) d.to_csv(root_dir+"/preprocessed/annotations/"+"GSE25065_response."+drug+".tsv",sep = "\t") print(drug,"R:",d[d["response"]=="R"].shape[0],"S:",d[d["response"]=="S"].shape[0]) df.head() # ### GSE33072 - resistance to erlotinib (25) and PI3K pathway inhibitors (sorafenib, 37) in non-small cell lung cancer # According to the paper, the main outcome measure is disease control rate (DCR) at 8 weeks. # DC was assessed by radiologists and defined as a CR, PR or SD according to the RECIST. # https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4211116/#SD1 # #### Sorafenib # - month-to-progression - 'pfsm (month):ch1' # - whether DC or not '8_week_disease control_1yes_0no:ch1' and '8-week disease control (1=yes, 0=no):ch1' # - sensitive if DC, resistant otherwise # # # #### Erlotinib # - whether DC or not - not available neither in GEO phenoData nor in publications # - month-to-progression - 'progression-free survival time (months):ch1' # # Geeleher 2014 et al. calcluate Pearson's $r$ between months-to-progression and predicted responses. # # DC at eight weeks was unavailable for erlotinib-treated patients; therefore we used months-to-progression (PFSM) to define resistant and sensitive patients. Since eight weeks is approximately 1.86 months, we assigned patients with months-to-progression < 1.86 as resistant and months-to-progression >= 1.86 as sensitive. This is an uncertain assignment. # Erlotinib-treated patients had DC annotation and were assigned to sensitive if DC, and resistant otherwise. #fpath = download_GEO_matrix("GSE33072_series_matrix.txt.gz", # '/geo/series/GSE33nnn/GSE33072/matrix/',destination=tmp_dir) #df = read_matrix(fpath) # annotation in GEO is messed up, therefore read phenoData with R GEOquery df = pd.read_csv("GSE33072_annotation.tsv",sep="\t",index_col=0) df = df.dropna(subset=["treatment:ch1"]) df_e = df[df["treatment:ch1"] == "erlotinib"] df_s = df[df["treatment:ch1"] == "sorafenib"] #print("Erlotinib:",df_e.shape[0],"Sorafenib:",df_s.shape[0]) df_s.loc[:,"drug"] = "Sorafenib" df_s.loc[:,"response"] = "R" df_s.loc[df_s["8-week disease control (1=yes, 0=no):ch1"] == 1.0, "response"] = "S" cols_order = ["drug","response",'pfsm (month):ch1',"treatment:ch1",'8_week_disease control_1yes_0no:ch1', '8-week disease control (1=yes, 0=no):ch1', 'pfsc (1=progressed; 0=not progressed):ch1'] df_s = df_s[list(cols_order)+list(df_s.columns.values)] df_s = df_s.T.drop_duplicates().T df_s = df_s.dropna(how="all",axis=1) df_s.index.name = "sample_name" df_s.sort_values(by="sample_name",inplace=True) print("Sorafenib","R:",df_s.loc[df_s["response"]=="R",:].shape[0],"S:", df_s.loc[df_s["response"]=="S",:].shape[0]) df_s.to_csv(root_dir+"/preprocessed/annotations/"+"GSE33072_response."+"Sorafenib"+".tsv",sep = "\t") df_s.head(3) df_e.loc[:,"drug"] = "Erlotinib" df_e.loc[:,"response"] = "S" df_e.loc[df_e['progression-free survival time (months):ch1']< 1.86, "response"] = "R" df_e = df_e.dropna(how="all",axis=1) cols_order = ["drug","response",'progression-free survival time (months):ch1',"treatment:ch1","treatment:ch1", 'progression-free survival status:ch1'] df_e = df_e[list(cols_order)+list(df_e.columns.values)] df_e = df_e.T.drop_duplicates().T print("Erlotinib","R:",df_e.loc[df_e["response"]=="R",:].shape[0],"S:", df_e.loc[df_e["response"]=="S",:].shape[0]) df_e.index.name = "sample_name" df_e.sort_values(by="sample_name",inplace=True) df_e.to_csv(root_dir+"/preprocessed/annotations/"+"GSE33072_response."+"Erlotinib"+".tsv",sep = "\t") df_e.head(3) # ### GSE9782 - response and survival with bortezomib compared to dexamethasone in patients with multiple myeloma # - Two arrays HG-U133A(GPL96) and HG-U133B(GPL97) for each patient # - "characteristics_ch1.1" - Dex - Dexamethasone (76), PS341 - Bortezomib (188) # - Response: # - "characteristics_ch1.7" - PGx_Response : complete response (CR), partial response (PR), minimal response (MR), no change (NC), or PD (progressive disease) # # [from 10.1182/blood-2006-09-044974] # - "characteristics_ch1.8" - PGx_Responder : R - responder, NR - non-responder # Samples with PGx_Response = IE and PGx_Responder = IE were excluded, because this group was not explined in the text # + df_a = pd.read_csv("GSE9782-GPL96_annotation.tsv",sep="\t",index_col=0) df_a.index.name = "sample_name" df_a.sort_values(by="sample_name",inplace=True) df_a = df_a.loc[df_a["characteristics_ch1.8"] != "PGx_Responder = IE",] df_a.loc[:,"response_detailed"] = df_a["characteristics_ch1.7"].apply(lambda x: x.replace("PGx_Response = ","")) df_a.loc[df_a["characteristics_ch1.8"]=="PGx_Responder = NR","response"] = "R" df_a.loc[df_a["characteristics_ch1.8"]=="PGx_Responder = R","response"] = "S" df_a_dex = df_a[df_a["characteristics_ch1.1"] == "treatment = Dex"] df_a_dex .loc[:,"drug"] = "Dexamethasone" df_a_bort = df_a[df_a["characteristics_ch1.1"] == "treatment = PS341"] df_a_bort.loc[:,"drug"] = "Bortezomib" print("HG-U133A:","Dexamethasone - ",df_a_dex.shape[0],"\tBortezomib - ",df_a_bort.shape[0]) df_b = pd.read_csv("GSE9782-GPL97_annotation.tsv",sep="\t",index_col=0) df_b.index.name = "sample_name" df_b.sort_values(by="sample_name",inplace=True) df_b = df_b.loc[df_b["characteristics_ch1.8"] != "PGx_Responder = IE",] df_b.loc[:,"response_detailed"] = df_b["characteristics_ch1.7"].apply(lambda x: x.replace("PGx_Response = ","")) df_b.loc[df_b["characteristics_ch1.8"]=="PGx_Responder = NR","response"] = "R" df_b.loc[df_b["characteristics_ch1.8"]=="PGx_Responder = R","response"] = "S" df_b_dex = df_b[df_b["characteristics_ch1.1"] == "treatment = Dex"] df_b_dex .loc[:,"drug"] = "Dexamethasone" df_b_bort = df_b[df_b["characteristics_ch1.1"] == "treatment = PS341"] df_b_bort.loc[:,"drug"] = "Bortezomib" print("HG-U133B:","Dexamethasone - ",df_b_dex.shape[0],"\tBortezomib - ",df_b_bort.shape[0]) # + cols_order = ["drug","response","response_detailed",'title',u'characteristics_ch1.1',u'characteristics_ch1.7',u'characteristics_ch1.8'] df_a_bort = df_a_bort[cols_order+list(df_a_bort.columns.values)].T.drop_duplicates().T df_a_bort.to_csv(root_dir+"/preprocessed/annotations/"+"GSE9782-GPL96_response."+"Bortezomib"+".tsv",sep = "\t") print("Bortezomib - GPL96","R:",df_a_bort[df_a_bort["response"]=="R"].shape[0], "S:",df_a_bort[df_a_bort["response"]=="S"].shape[0]) df_b_bort = df_b_bort[cols_order+list(df_b_bort.columns.values)].T.drop_duplicates().T df_b_bort.to_csv(root_dir+"/preprocessed/annotations/"+"GSE9782-GPL97_response."+"Bortezomib"+".tsv",sep = "\t") print("Bortezomib - GPL97","R:",df_b_bort[df_b_bort["response"]=="R"].shape[0], "S:",df_b_bort[df_b_bort["response"]=="S"].shape[0]) df_a_dex = df_a_dex[cols_order+list(df_a_dex.columns.values)].T.drop_duplicates().T df_a_dex.to_csv(root_dir+"/preprocessed/annotations/"+"GSE9782-GPL96_response."+"Dexamethasone"+".tsv",sep = "\t") print("Dexamethasone - GPL96","R:",df_a_dex[df_a_dex["response"]=="R"].shape[0], "S:",df_a_dex[df_a_dex["response"]=="S"].shape[0]) df_b_dex = df_b_dex[cols_order+list(df_b_dex.columns.values)].T.drop_duplicates().T df_b_dex.to_csv(root_dir+"/preprocessed/annotations/"+"GSE9782-GPL97_response."+"Dexamethasone"+".tsv",sep = "\t") print("Dexamethasone - GPL97","R:",df_b_dex[df_b_dex["response"]=="R"].shape[0], "S:",df_b_dex[df_b_dex["response"]=="S"].shape[0]) # - # ## Docetaxel # * GSE28796 tmp_dir = "/home/olya/SFU/Hossein/NEW_Project/raw_data/downloads/" fpath = download_GEO_matrix("GSE28796_series_matrix.txt.gz",'/geo/series/GSE28nnn/GSE28796/matrix/' ,destination=tmp_dir) df = read_matrix(fpath) df = df.loc[:,["pathological complete response","replicate","sample"]] df.columns = ["pathological complete response","replicate","patient"] df["drug"] = "Docetaxel" df.index.name = "sample_name" df["response"] = "R" df.loc[df["pathological complete response"] == "yes","response"] = "S" df = df.loc[:,["drug","response","patient","replicate","pathological complete response"]] df.to_csv(root_dir+"/preprocessed/annotations/"+"GSE28796_response.Docetaxel.tsv",sep ="\t") df # ## Paclitaxel # * GSE15622 (Paclitaxel pre-treatment) # * GSE22513 fpath = download_GEO_matrix("GSE15622_series_matrix.txt.gz",'/geo/series/GSE15nnn/GSE15622/matrix/' ,destination=tmp_dir) df = read_matrix(fpath) df= df.loc[df["treatment"] == "Paclitaxel",:] df["drug"] = "Paclitaxel" df.index.name = "sample_name" df.shape df = df.loc[df["title"].str.contains("pre-treatment"), :] df["patient"] = df["title"].apply(lambda x : x.split(",")[0]) df.loc[df["clinical group"]=="pre_pacli_resist","response"] = "R" df.loc[df["clinical group"]=="pre_pacli_sens","response"] = "S" df = df.loc[:,["drug","patient","response","clinical group","ca-125 coefficient"]] df.to_csv(root_dir+"/preprocessed/annotations/"+"GSE15622_response.Paclitaxel.tsv",sep ="\t") df fpath = download_GEO_matrix("GSE22513_series_matrix.txt.gz",'/geo/series/GSE22nnn/GSE22513/matrix/' ,destination=tmp_dir) df = read_matrix(fpath) df["drug"] = "Paclitaxel" df["title"] = df["title"].apply(lambda x : x.replace("non-pCR breast biopsy, ","")) df["title"] = df["title"].apply(lambda x : x.replace("pCR breast biopsy, ","")) df["patient"] = df["title"].apply(lambda x : x.split(" ")[1]) df["replicate"] = df["title"].apply(lambda x : x.split(" ")[3]) df.index.name = "sample_name" df["response"] = "R" df.loc[df["pathological complete response"] == "yes","response"] = "S" df = df.loc[:,["drug", "response","patient","replicate","pathological complete response"]] df.to_csv(root_dir+"/preprocessed/annotations/"+"GSE22513_response.Paclitaxel.tsv",sep ="\t") df # ## Bortezomib # * GSE55145 fpath = download_GEO_matrix("GSE55145_series_matrix.txt.gz",'/geo/series/GSE55nnn/GSE55145/matrix/' ,destination=tmp_dir) df = read_matrix(fpath) df["drug"] = "Bortezomib" df["response"] = "S" # S = 39 (8 RCEP + 6 CR + 10 RCIF +15 TBRP) # R = 28 (12 Prog + 6 RMin + 10 stable) df.loc[df["post-induction (bortezomib) treatment response"] == "Prog (Progressive disease, no treatment response)","response"] = "R" df.loc[df["post-induction (bortezomib) treatment response"] == "RMin (Minimal treatment response)","response"] = "R" df.loc[df["post-induction (bortezomib) treatment response"] == "stable (stable disease, no treatment response)","response"] = "R" df = df.loc[:,["drug","response",'microarray_batch', u'post-induction (bortezomib) treatment response', u'source', u'title']] df.to_csv(root_dir+"/preprocessed/annotations/"+"GSE55145_response.Bortezomib.tsv",sep ="\t") df # ## Cisplatin # * GSE23554 fpath = download_GEO_matrix("GSE23554_series_matrix.txt.gz",'/geo/series/GSE23nnn/GSE23554/matrix/' ,destination=tmp_dir) df = read_matrix(fpath) df["drug"] = "Cisplatin" cols = df.columns.values df["response"] = "R" df.loc[df["cisplatin response (complete response or incomplete response)"] == "CR","response"] = "S" df = df.loc[:,["drug","response"] + list(cols)] df.to_csv(root_dir+"/preprocessed/annotations/"+"GSE23554_response.Cisplatin.tsv",sep ="\t") df # # PDX # Supplementary file nm.3954-S2.xlsx from https://www.nature.com/articles/nm.3954, tab "PCT curve metrics" # # - all combinational treatemnts were excluded # - records containing '-->' or '-->-->' signs in ResponseCategory were excluded; these records correspond non-stable response, e.g. PR --> PD means SD-->-->PD means # - we focus on 5 drugs: 'Cetuximab', 'Paclitaxel', 'Gemcitabine', '5-Fluorouracil', 'Erlotinib'; # 'Tamoxifen' has no "S" xenografts # # add download of annotation file df = pd.read_excel("/home/olya/SFU/Hossein/PDX/nm.3954-S2.xlsx","PCT curve metrics") print(df.shape) df.drop_duplicates(inplace=True) print("Combo drugs responses dropped:",df.loc[df["Treatment type"]=="combo",:].shape[0]) df = df.loc[df["Treatment type"]=="single",:] print(df.shape) df.head() # + #df[["Model","Treatment"]].groupby("Treatment").size() # - df[["Model","ResponseCategory"]].groupby("ResponseCategory").size() drug_dict = {"5FU":"5-Fluorouracil","erlotinib":"Erlotinib","cetuximab":"Cetuximab", "gemcitabine-50mpk":"Gemcitabine","paclitaxel":"Paclitaxel"} response_dict = {"CR":"S","PR":"S","SD":"R","PD":"R"} df = df.loc[df["Treatment"].isin(drug_dict.keys()),:] print("Records for drugs",drug_dict.values(),df.shape[0]) df[["Model","Treatment"]].groupby("Treatment").size() df = df.loc[~df["ResponseCategory"].str.contains("-->"),:] df.groupby("ResponseCategory").size() # + df.loc[:,"drug"] = df["Treatment"].apply(lambda x : drug_dict[x]) df.loc[:,"response"] = df["ResponseCategory"].apply(lambda x : response_dict[x]) df = df[["Model","drug","response","ResponseCategory","Treatment","Treatment target", "Treatment type","BestResponse","Day_BestResponse","BestAvgResponse","Day_BestAvgResponse","TimeToDouble","Day_Last"]] for drug in drug_dict.values(): d = df.loc[df["drug"]==drug,:] d.set_index("Model",inplace = True,drop=True) d.index.name = "sample_name" d.sort_values(by="sample_name",inplace=True) d.to_csv(root_dir+"/preprocessed/annotations/"+"PDX_response."+drug+".tsv",sep = "\t") print(drug,"R:",d[d["response"]=="R"].shape[0], "S:",d[d["response"]=="S"].shape[0]) d.head(3) # - # # TCGA # # Ding et al. 2016, Supplementary tables , tab "Table S2" # # "bcr_patient_barcode" matches with first 12 symbols in sample barcore. One patient in TCGA may have more than one tumor sample and even one or several normal samples. # response_dict = {'Clinical Progressive Disease':"R",'Complete Response':"S", 'Partial Response':"S",'Stable Disease':"R"} # add download of annotation file df = pd.read_excel("/home/olya/SFU/Hossein/TCGA/annotation_Ding2016/bioinfo16_supplementary_tables.xlsx", "Table S2") df = df.drop_duplicates() df.drop([0,2],inplace=True) cols = df.loc[1,:] df = df.drop(1) df.columns = cols df.loc[:,"cohort"] = df["Cancer"].apply(lambda x: re.search(r'\((.*?)\)',x).group(1)) df.loc[:,"response"] = df["measure_of_response"].apply(lambda x: response_dict[x]) print(df.shape) dup_indices = df.loc[df[["bcr_patient_barcode", "days_to_drug_therapy_start","days_to_drug_therapy_end"]].duplicated(keep=False),:].index.values df = df[["bcr_patient_barcode","cohort","drug_name","response","measure_of_response", "days_to_drug_therapy_start","days_to_drug_therapy_end","DrugBank ID", "days_to_initial_pathologic_diagnosis","method_of_sample_procurement", "days_to_sample_procurement","days_to_new_tumor_event_after_initial_treatment", "additional_pharmaceutical_therapy","new_tumor_event_additional_surgery_procedure", "history_of_neoadjuvant_treatment"]] df.rename({"drug_name":"drug"},axis="columns",inplace=True) df.head() for group in df.iloc[2:10,0:7].groupby("bcr_patient_barcode"): pass def exclude_combos(df_group): if df_group.shape[0] == 1: return df_group d = df_group.T.to_dict() keys_to_remove = set() for key in d.keys(): start = d[key]["days_to_drug_therapy_start"] end = d[key]["days_to_drug_therapy_end"] #print(key,start,end) for key2 in d.keys(): if key2 != key: start2 = d[key2]["days_to_drug_therapy_start"] end2 = d[key2]["days_to_drug_therapy_end"] if not (end < start2) and not (end2 < start): # if not non-overlapping time intervals keys_to_remove.add(key) keys_to_remove.add(key2) #print(list(keys_to_remove)) return df_group.loc[~df_group.index.isin(keys_to_remove),:] exclude_combos(group[1]) df_single = [] for group in df.groupby("bcr_patient_barcode"): df_single.append(exclude_combos(group[1])) df_single = pd.concat(df_single) print(df_single.shape) print("Records with combo drugs excluded:",df.shape[0] - df_single.shape[0]) df_single.head() # + drugs = list(set(['Docetaxel', 'Cisplatin', 'Erlotinib', 'Bortezomib','5-Fluorouracil', 'Tamoxifen', 'Cetuximab', 'Paclitaxel', 'Gemcitabine'] + EGFRi_drugs)) for drug in drugs: d = df_single[df_single["drug"] == drug ] print(drug, d.shape[0],"R:",d[d["response"] =="R"].shape[0],"S:",d[d["response"] =="S"].shape[0] ) if d.shape[0] > 0 : d.set_index("bcr_patient_barcode",drop=True,inplace=True) d.to_csv(root_dir+"/preprocessed/annotations/"+"TCGA_response."+drug+".tsv",sep = "\t") # - d.head(3) # # GDSC # # ### Continuous response - log(IC50) values # # * Supplementary files from "A landscape of pharmacogenomic interactions in cancer" by Iorio F et al. Cell. 2016: # TableS4A.xlsx from https://www.cancerrxgene.org/gdsc1000/GDSC1000_WebResources//Data/suppData/TableS4A.xlsx , tab 'TableS4A-IC50s' # # * Also, log(IC50) for are available here ftp://ftp.sanger.ac.uk/pub/project/cancerrxgene/releases/current_release/v17.3_fitted_dose_response.xlsx # (ln(IC50), these values seem to be just slightly different) # # ### Binary response # # * Supplementary files from Iorio F et al. 2016 # https://www.cancerrxgene.org/gdsc1000/GDSC1000_WebResources///Data/suppData/TableS5C.xlsx # # Cell line names were replaced with corresponding COSMIC ids from # https://www.cancerrxgene.org/gdsc1000/GDSC1000_WebResources//Data/suppData/TableS1E.xlsx # ### GDSC - binarized response COSMIC_ids = pd.read_excel(tmp_dir+"TableS1E.xlsx") COSMIC_ids = COSMIC_ids.iloc[2:,[1,2]] COSMIC_ids = COSMIC_ids.iloc[:-1,] COSMIC_ids.columns = ["name",'COSMIC'] # 1002 pair, all IDs are unique #print(COSMIC_ids.shape[0],len(set(COSMIC_ids["name"])),len(set(COSMIC_ids["COSMIC"]))) COSMIC_ids.set_index("name",inplace=True,drop=True) names2COSMIC = dict(COSMIC_ids["COSMIC"]) # + df = pd.read_excel(tmp_dir+"TableS5C.xlsx") df.drop([0,1,2],inplace=True) df = df.iloc[:,1:] df.set_index("TableS5C - Binarized Drug IC50s, refers to figure 5",inplace=True,drop=True) df.columns = df.loc["Screened Compounds:",:].values df = df.iloc[1:,:] df.index.name = "cell_line" IC50_thr = df.iloc[0,:] IC50_thr.name = "logIC50_threshold" df = df.iloc[1:,:] df.rename(names2COSMIC,axis="index",inplace=True) drugs = set(nine_drugs+EGFRi_drugs).intersection(set(df.columns.values)) df = df.loc[:,drugs] df.sort_values(by="cell_line",inplace=True) df.to_csv(root_dir+"/preprocessed/annotations/"+"GDSC_response."+"all_drugs"+".tsv",sep = "\t") df.head() # - df_ic50 = pd.read_excel(tmp_dir+"TableS4A.xlsx",'TableS4A-IC50s') df_ic50 = df_ic50.iloc[3:,:] df_ic50.drop(['TableS4A - Whole set of log(IC50s) across all the screened compounds and cell lines, related to Figure 4'],axis=1,inplace=True) df_ic50.columns = df_ic50.iloc[0,:].values df_ic50 = df_ic50.iloc[1:,:] df_ic50.index = df_ic50.iloc[:,0].values df_ic50.index.name = "cell_line" df_ic50 = df_ic50.iloc[:,1:] df_ic50.sort_values(by="cell_line",inplace=True) df_ic50.to_csv(root_dir+"/preprocessed/annotations/"+"GDSC_response."+"logIC50.all_drugs"+".tsv",sep = "\t") df_ic50[list(drugs)].head() IC50_thr = IC50_thr[list(drugs)].to_dict() IC50_thr df_long = [] for drug in drugs: d1 = df_ic50.loc[:,[drug]] d1.columns = ["logIC50"] d2 = df.loc[:,[drug]] d2.columns = ["response"] d1.dropna(inplace=True) d2.dropna(inplace=True) d = pd.concat([d2,d1],axis=1) d.loc[:,"drug"] = drug d.index.name = "sample_name" df_long.append(d) if d.shape[0] >0 : d.to_csv(root_dir+"/preprocessed/annotations/"+"GDSC_response."+drug+".tsv",sep = "\t") print(drug,"total:",d.shape[0],"R:",d.loc[d["logIC50"]>IC50_thr[drug],:].shape[0], "S:",d.loc[d["logIC50"]<=IC50_thr[drug],:].shape[0]) df_long = pd.concat(df_long) df_long.loc[:,"logIC50"] = df_long["logIC50"].apply(np.float) df_long.head() # ### log(IC50) in R and S groups plt.figure(figsize=(20,7)) sns.violinplot(x="drug", y="logIC50", hue="response",data=df_long,split=True) # this curve fitting is imprecize #sns.swarmplot(x="drug", y="logIC50", hue="response",data=df_long) plt.figure(figsize=(20,7)) sns.swarmplot(x="drug", y="logIC50", hue="response",data=df_long) # # CCLE # # #### Problems : # "GSM886946":"COLO-699" and "GSM887546":"RPMI 6666" are absent in annotation # # drug response data: # wget https://data.broadinstitute.org/ccle_legacy_data/pharmacological_profiling/CCLE_NP24.2009_Drug_data_2015.02.24.csv # # cell line annotation: # wget https://data.broadinstitute.org/ccle_legacy_data/cell_line_annotations/CCLE_sample_info_file_2012-10-18.txt # # expression annotation # wget ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE36nnn/GSE36133/matrix/GSE36133_series_matrix.txt.gz # # # #### Drugs # "Paclitaxel","Erlotinib" # # Targeted EGFRi : 'Erlotinib', 'Lapatinib', 'ZD-6474' # # # fpath = download_GEO_matrix("GSE36133_series_matrix.txt.gz",'/geo/series/GSE36nnn/GSE36133/matrix/' ,destination=tmp_dir) df = read_matrix(fpath) df.head() anno = pd.read_csv(root_dir+ "/preprocessed/annotations/CCLE_sample_info_file_2012-10-18.txt",sep = "\t") anno = anno[["CCLE name","Cell line primary name"]] anno.set_index("Cell line primary name",drop=True,inplace=True) CCLE_names_dict = anno.to_dict()['CCLE name'] #CCLE_names_dict mapped_CCLE_names = set(df["title"].values).intersection(set(CCLE_names_dict.keys())) not_mapped_CCLE_names = set(df["title"].values).difference(set(CCLE_names_dict.keys())) not_mapped_GSM = set(df["title"].values).difference(set(CCLE_names_dict.keys())) len(CCLE_names_dict.keys()), len(mapped_CCLE_names), len(set(df["title"].values)), len(set(CCLE_names_dict.keys())),not_mapped_CCLE_names df = df.loc[df["title"].isin(mapped_CCLE_names ),:] df["CCLE_name"] = df["title"].apply(lambda x: CCLE_names_dict[x]) #df["title"] +"_" + df["primary site"].apply(str.upper) df.to_csv(root_dir+ "/preprocessed/annotations/CCLE_expessions.annotations.tsv",sep = "\t") df.head() ccle_exprs = pd.read_csv(root_dir+"/preprocessed/exprs/GSE36133.BrainArray.RMAlog2Average.ENTREZID.Expr.tsv", sep ="\t") samples_annotated = set(ccle_exprs.columns.values).intersection(set(df.index.values)) #df.loc[samples_annotated ,"CCLE_name"].to_dict() ccle_exprs = ccle_exprs.loc[:,samples_annotated] ccle_exprs.rename(df.loc[samples_annotated ,"CCLE_name"].to_dict(),axis="columns",inplace=True) ccle_exprs.sort_index(inplace = True) ccle_exprs.sort_index(inplace = True,axis=1) #ccle_exprs.to_csv(root_dir+"/preprocessed/exprs/GSE36133.BrainArray.RMAlog2Average.ENTREZID.Expr_renamed.tsv",sep ="\t") ccle_exprs.head() response = pd.read_csv(root_dir+"/preprocessed/annotations/"+"CCLE_NP24.2009_Drug_data_2015.02.24.csv",sep=",") set(response["Compound"].values) response_9drugs = response.loc[response["Compound"].isin(["Paclitaxel","Erlotinib"]),:] response_EGFR = response.loc[response["Compound"].isin(['Erlotinib', 'Lapatinib', 'ZD-6474']),:] response_9drugs.set_index("CCLE Cell Line Name",inplace=True) response_9drugs.index.name = "CCLE_name" response_9drugs.to_csv(root_dir+"/preprocessed/annotations/"+"CCLE.responses.Paclitaxel_Erlotinib.tsv", sep = "\t") response_EGFR.set_index("CCLE Cell Line Name",inplace=True) response_EGFR.index.name = "CCLE_name" response_EGFR.to_csv(root_dir+"/preprocessed/annotations/"+"CCLE.responses.EGFRi.tsv", sep = "\t")
32,318
/P2.ipynb
2ef5eca96a00a634bad8e086f32bde3e2c2b2319
[]
no_license
Ludvins/Practicas_GD
https://github.com/Ludvins/Practicas_GD
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
30,903
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <html> # <table width="100%" cellspacing="2" cellpadding="2" border="1"> # <tbody> # <tr> # <td valign="center" align="center" width="25%"><img src="media/decartes.jpg" # alt="DeCART Icon" width="128" height="171"><br> # </td> # <td valign="center" align="center" width="75%"> # <h1 align="center"><font size="+1">DeCART Summer School<br> # for<br> # Biomedical Data Science</font></h1></td> # <td valign="center" align="center" width="25%"><img # src="media/U_Health_stacked_png_red.png" alt="Utah Health # Logo" width="128" height="134"><br> # </td> # </tr> # </tbody> # </table> # <br> # </html> # # # Basic Numeric Data Characterization # # Numpy provides a number of functions/methods for characterizing import os import numpy as np import utils import numpy.random as ra import pandas as pd from quizzes.characterizing_numeric_data import * pd.__version__ # + DATADIR = os.path.join(os.path.expanduser("~"),"DATA") HRDIR = os.path.join(DATADIR,"Numerics", "mimic2", "hr", "subjects") BPDIR = os.path.join(DATADIR,"Numerics", "mimic2", "bp", "subjects") hr_files = os.listdir(HRDIR) # - # ## Heart Rate file for patient ``3325`` # # We are going to start with using [Pandas](http://pandas.pydata.org/) to read, summarize, and visualize numeric data. We are going to start with the MIMIC2 patient ``#3325``. This is what the first five lines of the file looks like (You can explore this in the Linux shell with less, more, or cat. # # ```Python # 88 # 84 # 87 # 78 # 85 # ``` # # Pandas has two basic functions for reading in tabular data: [``read_table``](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_table.html) and [``read_csv``](https://pandas.pydata.org/pandas-docs/stable/generat # # ed/pandas.read_csv.html). They are really the smae function with different default values for the delimiter, the character that is used to separate the data on each row: (a tab (``\t``) character for ``read_table`` and a comma (``,``) for ``read_csv``. We will use ``read_table`` to read in the heart rate values. # # Both of these functions swill return a [Pandas DataFrame](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html) which is a # >Two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). # # Going back to an earlier analogy, a data structure is a complex molecule of data. # # A Pandas DataFrame is an object (everything is an object), and so it has attributes and methods. Two of the methods we will use right off the bat are # # * [``head()``](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.head.html#pandas.DataFrame.head) # * [``tail()``](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.tail.html#pandas.DataFrame.tail) # # which return the first (last) n (default=5) rows of the DataFrame. # # ### Read in the data and look at the head # + hr = pd.read_table(os.path.join(HRDIR,'3235.txt')) hr.head() # - # The DataFrame provides an **index** for each row (e.g. $0, 1, 2, \cdots$). It will also display the label (name) for each column. # # ### Does anything seem wrong? hr.shape, hr.size # ### Reread the data, specifying what to use for the header hr = pd.read_table(os.path.join(HRDIR,'3235.txt'), header=None) hr.head() # This looks better but zero for a column label/name is not very meaningful. We can provide names to use for the columns with a ``names`` keyword argument. # # ### Reread the data providing a name for the heart rate column hr = pd.read_table(os.path.join(HRDIR,'3235.txt'), header=None, names=["heart_rate",]) hr.head() # ### DataFrame Attributes # # DataFrames have attributes that describe it, including # # * ``shape``: shape of the frame # * ``size``: total number of elements in the frame # * ``dtypes``: the data types for each column in the frame print(hr.shape, hr.size) print(hr.dtypes) # ## Exercise # # Use the Pandas ``read_table``function to read in the blood pressure data for the same patient (``3235``). Answer the following questions: # # 1. How many rows are in the blood pressure data frame? # 1. What data type (e.g. np.uint8) is used for the first column (systolic) of measurements? bp = pd.read_table(os.path.join(BPDIR,'3235.txt'), header=None, names=["systolic_bp","diastolic_bp"]) bp.head() print(bp.shape, bp.size) print(bp.dtypes) # + data_shape(485) # - # #### Compute summary statistics # # We can compute summary statistics on a Pandas DataFrame or Series using either a numpy function or a method of the DataFrame or Series. # # ### How do we know what numpy functions are defined or what methods a DataFrame has? print(hr.max()) np.max(hr) np.max(hr["heart_rate"]) hr["heart_rate"].max() # ## Exercise # # What is the median value of the diastolic blood pressure for patient 3235? # + diastolic=bp["diastolic_bp"] diastolic.median() print(bp.median()) # - median_diastolic(54.0) # ### Python Aside # # It can often become confusing of what variables (including functions) are alive and well in your workspace. Python provides some functions for exploring this question: # # * `dir()` # * `globals()` # * `locals()` # # IPython provides magics for this `%who` and `%whos` # # I find keeping track of variables in Jupyter notebooks more important than in traditional scripting because I end up with a lot of global variables. # %who # %whos # ## Exercise # # To explore equality of floating point numbers, perturb your answer by adding ``0.1``, ``0.01``, etc. until your perturbed answer is considered equal. median_diastolic(54.0+ 0.000000000000001) # ## [``describe()``](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.describe.html) # # Pandas DataFrames (Series) come with a ``describe()`` method that provides summary statistics. hr.describe() # ## Creating a New Column # # We can create a new column in the DataFrame with a simple assignment statement: hr["one"] = 1 hr["range"] = range(len(hr)) hr["inverse range"] = range(len(hr),0, -1) hr.head() # We can also create a new column based on a function of the existing columns. # # We can do this in two ways # # ### Method 1 hr["range_diff"] = hr["inverse range"] - hr["range"] hr.head() # ### Method 2 # # Our second method uses the [``apply()``]() method and a function. For this, I frequently use [**anonymous function**](https://docs.python.org/3/tutorial/controlflow.html#lambda-expressions). # # #### Anonymous Functions # # The syntax for anonymous functions is as follows: # # ```Python # lambda variable(s): some_function_of_the_variable(s) # ``` # # So an anonymous doubling function would be # # ```Python # lambda x: 2*x # ``` # # Here is an anonymous function that returns the upper case version of a string # # ```Python # lambda y: y.upper() # ``` # # #### Pandas ``apply()`` # # * ``apply()`` applies a function to each element in the DataFrame (Series) # * We specify whether we want to apply the function by columns or rows by specifying the keyword argument ``axis`` (which defaults to 0 for columns) # * Remembering to set `axis` is very important and something I frequently to do # * When we apply by rows, we get a variable that contains each row; we can access specific columns within the row hr["range_diff2"] = hr.apply(lambda row: row["range_diff"] - row["range"], axis=1) hr.head() # ## Exercise: # # [Data standardization](http://scikit-learn.org/stable/modules/preprocessing.html) transforms numeric data ($x$) by subtracting the mean ($\mu_x$) and dividing by the standard deviation ($\sigma_x$): # # $$\tilde{x} = \frac{x-\mu_x}{\sigma_x}$$ # # Read in one of the heart rate data files and compute the standardized form of the data. Assign this normalized heart rate to the DataFrame with a label of **"normalized hr"**. # + hr2 = pd.read_table(os.path.join(HRDIR,'10804.txt'), header=None, names=["heart_rate",]) hr2.head() hr2["normalized hr"]=(hr2["heart_rate"]-hr2["heart_rate"].mean())/hr2["heart_rate"].std() hr2.tail() # - # ## Exercise # # # The student's t-test is often used to comapre two populations. Using ``len``, ``math.sqrt`` and numpy methods/functions compute the [t value](https://en.wikipedia.org/wiki/Student%27s_t-test#Independent_two-sample_t-test) for two files. # # $$t = \frac{\bar{{X_1}}-\bar{X_2}}{s_{X_1X_2}\sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}$$ where # $$s_{X_1X_2} = \sqrt{\frac{(n_1-1)s_{X_1}^2 + (n_2-1)s_{X_2}^2}{n_1+n_2-2}}$$. # 1. Pick two heart rate files and comptue the t value for the two files. # <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">University of Uah Data Science for Health</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Brian E. Chapman</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
9,436
/day7_reading_journal.ipynb
1b4f90e8d1a5b39d23cef609614b47a086fcfd06
[]
no_license
SungwooPark/ReadingJournal
https://github.com/SungwooPark/ReadingJournal
0
0
null
2016-01-24T20:21:01
2016-01-21T03:15:26
null
Jupyter Notebook
false
false
.py
17,400
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # # Day 7 Reading Journal # # This journal includes several required exercises, but it is meant to encourage active reading more generally. You should use the journal to take detailed notes, catalog questions, and explore the content from Think Python deeply. # # Reading: Think Python Chapter 11, 12 # # **Due: Thursday, February 18 at 12 noon** # # # ## [Chapter 11](http://www.greenteapress.com/thinkpython/html/thinkpython012.html) # # **Quick check:** In about one sentence using your own words, what is a dictionary? # - Dictionary is a list-like thing but instead of integer indices, indicies can be almost any type. # Notes # ===== # - dict() function creates an empty dictionary # - You can also use {} and key-value separated by commas to make new dictionary. For example, you can do something like {'fruit':'tomato','vegetable':'daniel','chips':'salsa'} # - The in operator can be used to look up whether specific key (not value) exists in a dictionary # - You can use values method to get all the values in a dictionary as a list. # - A singleton is a list that contains a single element # - A hash is a function that takes a value and returns an integer # - A previously computed value that is stored for later use is called a memo # - You can modify mutable global variables without declaring it inside a function but to chage the value of global variable, you have to use the keyword 'global' to tell your fuction not to create a local variable of same name. # + [markdown] is_question=true problem="Exercise 11.2" # ### Exercise 2 # # Dictionaries have a [method called `get`](https://docs.python.org/2/library/stdtypes.html#mapping-types-dict) that takes a key and a default value. If the key appears in the dictionary, `get` returns the corresponding value; otherwise it returns the default value. For example: # # ``` # >>> h = histogram('a') # >>> print h # {'a': 1} # >>> h.get('a', 0) # 1 # >>> h.get('b', 0) # 0 # ``` # # Use `get` to write `histogram` more concisely. You should be able to eliminate the `if` statement. Add unit tests for your histogram implementation. # + solution="Exercise 11.2" def histogram(s): d = dict() for c in s: d[c] = d.get(c,0) + 1 return d print histogram('elephants') # + [markdown] is_question=true problem="Exercise 11.4" # ### Exercise 4 # # Modify `reverse_lookup` so that it builds and returns a list of all keys that map to `v`, or an empty list if there are none. Add unit tests for your implementation. # + solution="Exercise 11.4" def reverse_lookup(d, v): t = [] for k in d: if d[k] == v: t.append(k) return t h = histogram('elephants') print reverse_lookup(h,2) print reverse_lookup(h,3) print reverse_lookup(h,1) # - # If you'd like to learn more about errors and exceptions, you can check out the [Python tutorial](https://docs.python.org/2/tutorial/errors.html) or read ahead to [Appendix A](http://www.greenteapress.com/thinkpython/html/thinkpython021.html) of Think Python. If you choose to use doctest for your unit testing, it can also [deal with exceptions](https://docs.python.org/2/library/doctest.html#what-about-exceptions). # **Quick check** What type of objects can be used as keys to a dictionary, i.e. what property must they have? # Objects that are immutable (i.e, string, integers) can be ussed as keys to a dictionary. # + [markdown] is_question=true problem="Exercise 11.6" # ### Exercise 6 (modified) # # Create a memoized version of your Levenshtein distance function from Day 7. What kind of performance change do you see? # # Optional: If you'd like to get some quantitative results, you could check out the [timeit](https://docs.python.org/2/library/timeit.html) module # # Note: You can also study Fibonacci here if you prefer. # + solution="Exercise 11.6" def levenshtein(s,len_s,t,len_t): #store key as string of 2 ints - (len_s)(len_t) - i.e. 23 len_s = 2 len_t = 3 known = dict() key = str(len_s) + str(len_t) if key in known: return known[key] if len_s == 0: known[key] = len_t return len_t if len_t == 0: known[key] = len_s return len_s if s[len_s-1] == t[len_t-1]: cost = 0 else: cost = 1 res = min(levenshtein(s,len_s-1,t,len_t)+1,levenshtein(s,len_s,t,len_t-1)+1,levenshtein(s,len_s-1,t,len_t-1)+cost) known[key] = res return res word1 = 'kitten' word2 = 'sitting' print levenshtein(word1,len(word1),word2,len(word2)) # - # ## [Chapter 12](http://www.greenteapress.com/thinkpython/html/thinkpython013.html) # # **Quick check:** In about one sentence using your own words, what is a tuple? # - A tuple is a sequence of values that is immutable # Notes # ===== # - Syntatically, a tuple is a comma separated list of values. (Ex. t = 'a','b','c') # - It is common to enclose tuples within parenthesis # - To create a tuple with single element, you have to include a comma at the end. (ex. t1 = 'a',) # - You can also create a tuple with in-build function tuple() # - You can't modify an element in a tuple but you can replace one element with another. # - Tuple assignment can be used to assign values to multiple variables at the same time # - \* gathers argument for a function # - zip is a built-in function that takes two or more sequences and zipz into a list of tuples. # - You can't use mmethods like sort or reverse on tuples which are immutable but you can use built-in functions sorted() or reversed() because they return a new list in sorted or reversed order. # + [markdown] is_question=true problem="Exercise 12.1" # ### Exercise 1 # # Many of the built-in functions use variable-length argument tuples. For example, `max` and `min` can take any number of arguments: # # ``` # >>> max(1,2,3) # 3 # ``` # # But `sum` does not. # # ``` # >>> sum(1,2,3) # TypeError: sum expected at most 2 arguments, got 3 # ``` # # Write a function called ```sumall``` that takes any number of arguments and returns their sum. # # Write unit tests for your function. Do I actually need to keep saying this? Let's assume it's always a good idea :) # + solution="Exercise 12.1" def sumall(*args): my_sum = 0 for arg in args: my_sum += arg return my_sum sumall(2,3,4,5) # - # If you're interested in more flexible ways to pass arguments to functions, check out the [Python tutorial](https://docs.python.org/2/tutorial/controlflow.html#more-on-defining-functions). For instance, you can also use keyword arguments, which are collected into a dictionary just like `*` gathers variable numbers of positional arguments into a tuple. # # This pattern is very common for defining functions with complex optional behaviors in Python, and you will often see definitions like: # # ``` # def my_func(required_argument1, *arguments, **keywords): # ... # ``` # + [markdown] is_question=true problem="Exercise 12 sort" # ### Exercise # # Write a function `sort_by_last_letter` that takes a list of words and returns a new list with the words sorted alphabetically by the _last letter_ in the word. Hint: use the **Decorate, Sort, Undecorate** pattern. Write unit tests for your function. # + solution="Exercise 12 sort" def sort_by_last_letter(words): t = [] for word in words: t.append((word[-1],word)) t.sort() res = [] for last_letter, word in t: res.append(word) return res print sort_by_last_letter(['hello','world','hi','software','design']) # - # **Quick check** Give an example of when you might use each sequence type: # # - tuple # # - list # # - string # - You use tuples when you want a sequence that are immutable. Ex. a sequence to be used as a key for a dictionary # - When you have to modify an element in a list, you use a list # - When you have a sequence of character that you don't want to modify, you use a string # + [markdown] is_question=true problem="Exercise 12.3" # ### Exercise 3 # # Write a function called `most_frequent` that takes a string and prints the letters in decreasing order of frequency. Find text samples from several different languages and see how letter frequency varies between languages. Compare your results with the tables at http://en.wikipedia.org/wiki/Letter_frequencies. # # Allen's solution (try it on your own first): http://thinkpython.com/code/most_frequent.py. # + solution="Exercise 12.3" def most_frequent(text): d = dict() for letter in text: if letter not in d: d[letter] = 1 else: d[letter] += 1 t = [] for key in d: t.append((d[key],key)) t.sort(reverse=True) for freq, letter in t: print letter, text = "" fin = open('pride_and_prejudice.txt') #Pride and Prejudice from Project Gutenberg for line in fin: text += line.strip().lower() most_frequent(text) print french_text = "" fin = open('french_text.txt') for line in fin: french_text += line.strip().lower() most_frequent(french_text) # + [markdown] is_question=true problem="Exercise 12.6" # ### Challenge: Exercise 6 (optional) # # From a [Car Talk Puzzler](http://www.cartalk.com/content/puzzlers): # # What is the longest English word, that remains a valid English word, as you remove its letters one at a time? # # Now, letters can be removed from either end, or the middle, but you can’t rearrange any of the letters. Every time you drop a letter, you wind up with another English word. If you do that, you’re eventually going to wind up with one letter and that too is going to be an English word—one that’s found in the dictionary. I want to know what’s the longest word and how many letters does it have? # # I’m going to give you a little modest example: Sprite. Ok? You start off with sprite, you take a letter off, one from the interior of the word, take the r away, and we’re left with the word spite, then we take the e off the end, we’re left with spit, we take the s off, we’re left with pit, it, and I. # # Write a program to find all words that can be reduced in this way, and then find the longest one. # # This exercise is a little more challenging than most, so here are some suggestions: # # - You might want to write a function that takes a word and computes a list of all the words that can be formed by removing one letter. These are the “children” of the word. # - Recursively, a word is reducible if any of its children are reducible. As a base case, you can consider the empty string reducible. # - The word list from [Chapter 9.1](http://www.greenteapress.com/thinkpython/html/thinkpython010.html) Exercise 1 doesn’t contain single letter words. So you might want to add “I”, “a”, and the empty string. # - To improve the performance of your program, you might want to memoize the words that are known to be reducible. # # Allen's solution: http://thinkpython.com/code/reducible.py. # + solution="Exercise 12.6" fin = open('words.txt') words = ['i','a'] for line in fin: words.append(line.strip()) known = dict() #contains a word as a key and a list of all its children word as a value def compute_children(word): #Returns a list of all children word if len(word) == 0: return [] if word in known: return known[word] if word in words: res = [] for i in range(len(word)-1): res += compute_children(word[:i]+word[i+1:]) res.append(word) known[word] = res return res else: return [] print compute_children('sprite') # + [markdown] is_question=true problem="Feedback" # ## Reading Journal feedback # # Have any comments on this Reading Journal? Feel free to leave them below and we'll read them when you submit your journal entry. This could include suggestions to improve the exercises, topics you'd like to see covered in class next time, or other feedback. # # If you have Python questions or run into problems while completing the reading, you should post them to Piazza instead so you can get a quick response before your journal is submitted. # + [markdown] feedback_response=true solution="Feedback" # on 3.x whereas strings are ascii by default and a prefix 'u' is required # to write unicode strings in python 2.x # 2. c (Note:- string literals when separated with space are written together they get concatenated.) # 3. b (Note:- ‘R’ stands for raw string this suppresses the meaning of escape characters and they get printed in the String.) # 4. a (Note:- Find method returns the lowest index at which the string is found.) # 5. b (Note: rFind method returns the highest index at which the string is found.) # ```
12,929
/Object Detection (reduced errors).ipynb
9f819813b30e5dbf3674c09d9b69150e2b2b7b2a
[]
no_license
raksup/ObjectDetection
https://github.com/raksup/ObjectDetection
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
152,829
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Recommender Systems 2020/21 # # # ## Practice 4 - Building an ItemKNN Recommender From Scratch # # This practice session is created to provide a guide to students of how to crete a recommender system from scratch, going from the data loading, processing, model creation, evaluation, hyperparameter tuning and a sample submission to the competition. # # Outline: # - Data Loading with Pandas (MovieLens 10M, link: http://files.grouplens.org/datasets/movielens/ml-10m.zip) # - Data Preprocessing # - Dataset splitting in Train, Validation and Testing # - Similarity Measures # - Collaborative Item KNN # - Evaluation Metrics # - Evaluation Procedure # - Hyperparameter Tuning # - Submission to competition # + __author__ = 'Fernando Benjamín Pérez Maurera' __credits__ = ['Fernando Benjamín Pérez Maurera'] __license__ = 'MIT' __version__ = '0.1.0' __maintainer__ = 'Fernando Benjamín Pérez Maurera' __email__ = 'fernandobenjamin.perez@polimi.it' __status__ = 'Dev' import os from typing import Tuple, Callable, Dict, Optional, List import numpy as np import pandas as pd import scipy.sparse as sp from sklearn.model_selection import train_test_split # - # ## Dataset Loading with pandas # # The Movielens 10M dataset is a collection of ratings given by users to items. They are stored in a columnar `.dat` file using `::` as separators for each attribute, and every row follows this structure: `<user_id>::<item_id>::<rating>::<timestamp>`. # # The function `read_csv` from pandas provides a wonderful and fast interface to load tabular data like this. For better results and performance we provide the separator `::`, the column names `["user_id", "item_id", "ratings", "timestamp"]`, and the types of each attribute in the `dtype` parameter. # + # pd.read_csv? # - def load_data(): return pd.read_csv("./data/Movielens_10M/ml-10M100K/ratings.dat", sep="::", names=["user_id", "item_id", "ratings", "timestamp"], header=None, dtype={"user_id": np.int32, "item_id": np.int32, "ratings": np.int32, "timestamp": np.int64}) ratings = load_data() ratings # ## Data Preprocessing # # This section wors with the previously-loaded ratings dataset and extracts the number of users, number of items, and min/max user/item identifiers. Exploring and understanding the data is an essential step prior fitting any recommender/algorithm. # # In this specific case, we discover that item identifiers go between 1 and 65133, however, there are only 10677 different items (meaning that ~5/6 of the items identifiers are not present in the dataset). To ease further calculations, we create new contiguous user/item identifiers, we then assign each user/item only one of these new identifiers. To keep track of these new mappings, we add them into the original dataframe using the `pd.merge` function. # + # pd.merge? # - def preprocess_data(ratings: pd.DataFrame): unique_users = ratings.user_id.unique() unique_items = ratings.item_id.unique() num_users, min_user_id, max_user_id = unique_users.size, unique_users.min(), unique_users.max() num_items, min_item_id, max_item_id = unique_items.size, unique_items.min(), unique_items.max() print(num_users, min_user_id, max_user_id) print(num_items, min_item_id, max_item_id) mapping_user_id = pd.DataFrame({"mapped_user_id": np.arange(num_users), "user_id": unique_users}) mapping_item_id = pd.DataFrame({"mapped_item_id": np.arange(num_items), "item_id": unique_items}) ratings = pd.merge(left=ratings, right=mapping_user_id, how="inner", on="user_id") ratings = pd.merge(left=ratings, right=mapping_item_id, how="inner", on="item_id") return ratings ratings = preprocess_data(ratings) ratings # ## Dataset Splitting into Train, Validation, and Test # # This is the last part before creating the recommender. However, this step is super *important*, as it is the base for the training, parameters optimization, and evaluation of the recommender(s). # # In here we read the ratings (which we loaded and preprocessed before) and create the `train`, `validation`, and `test` User-Rating Matrices (URM). It's important that these are disjoint to avoid information leakage from the train into the validation/test set, in our case, we are safe to use the `train_test_split` function from `scikit-learn` as the dataset only contains *one* datapoint for every `(user,item)` pair. On another topic, we first create the `test` set and then we create the `validation` by splitting again the `train` set. # # # `train_test_split` takes an array (or several arrays) and divides it into `train` and `test` according to a given size (in our case `testing_percentage` and `validation_percentage`, which need to be a float between 0 and 1). # # After we have our different splits, we create the *sparse URMs* by using the `csr_matrix` function from `scipy`. # + # train_test_split? # + def dataset_splits(ratings, num_users, num_items, validation_percentage: float, testing_percentage: float): seed = 1234 (user_ids_training, user_ids_test, item_ids_training, item_ids_test, ratings_training, ratings_test) = train_test_split(ratings.mapped_user_id, ratings.mapped_item_id, ratings.ratings, test_size=testing_percentage, shuffle=True, random_state=seed) (user_ids_training, user_ids_validation, item_ids_training, item_ids_validation, ratings_training, ratings_validation) = train_test_split(user_ids_training, item_ids_training, ratings_training, test_size=validation_percentage, ) urm_train = sp.csr_matrix((ratings_training, (user_ids_training, item_ids_training)), shape=(num_users, num_items)) urm_validation = sp.csr_matrix((ratings_validation, (user_ids_validation, item_ids_validation)), shape=(num_users, num_items)) urm_test = sp.csr_matrix((ratings_test, (user_ids_test, item_ids_test)), shape=(num_users, num_items)) return urm_train, urm_validation, urm_test # - urm_train, urm_validation, urm_test = dataset_splits(ratings, num_users=69878, num_items=10677, validation_percentage=0.10, testing_percentage=0.20) urm_train urm_validation urm_test # ## Cosine Similarity # # We can implement different versions of a cosine similarity. Some of these are faster and others are slower. # # The most simple version is just to loop item by item and calculate the similarity of item pairs. # $$ W_{i,j} # = cos(v_i, v_j) # = \frac{v_i \cdot v_j}{|| v_i || ||v_j ||} # = \frac{\Sigma_{u \in U}{URM_{u,i} \cdot URM_{u,j}}}{\sqrt{\Sigma_{u \in U}{URM_{u,i}^2}} \cdot \sqrt{\Sigma_{u \in U}{URM_{u,j}^2}} + shrink} $$ # # + def naive_similarity(urm: sp.csc_matrix, shrink: int): num_items = urm.shape[1] weights = np.empty(shape=(num_items, num_items)) for item_i in range(num_items): item_i_profile = urm[:, item_i] # mx1 vector for item_j in range(num_items): item_j_profile = urm[:, item_j] # mx1 vector numerator = item_i_profile.T.dot(item_j_profile).todense()[0,0] denominator = (np.sqrt(np.sum(item_i_profile.power(2))) * np.sqrt(np.sum(item_j_profile.power(2))) + shrink + 1e-6) weights[item_i, item_j] = numerator / denominator np.fill_diagonal(weights, 0.0) return weights # - # Another (faster) version of the similarity is by operating on vector products # $$ W_{i,I} # = cos(v_i, URM_{I}) # = \frac{v_i \cdot URM_{I}}{|| v_i || IW_{I} + shrink} $$ # # and where # # $$ IW_{i} = \sqrt{{\Sigma_{u \in U}{URM_{u,i}^2}}}$$ def vector_similarity(urm: sp.csc_matrix, shrink: int): item_weights = np.sqrt( np.sum(urm.power(2), axis=0) ).A.flatten() num_items = urm.shape[1] urm_t = urm.T weights = np.empty(shape=(num_items, num_items)) for item_id in range(num_items): numerator = urm_t.dot(urm[:, item_id]).A.flatten() denominator = item_weights[item_id] * item_weights + shrink + 1e-6 weights[item_id] = numerator / denominator np.fill_diagonal(weights, 0.0) return weights # Lastly, a faster but more memory-intensive version of the similarity is by operating on matrix products # $$ W # = \frac{URM^{t} \cdot URM}{IW^{t} IW + shrink} $$ def matrix_similarity(urm: sp.csc_matrix, shrink: int): item_weights = np.sqrt( np.sum(urm.power(2), axis=0) ).A numerator = urm.T.dot(urm) denominator = item_weights.T.dot(item_weights) + shrink + 1e-6 weights = numerator / denominator np.fill_diagonal(weights, 0.0) return weights urm_csc = urm_train.tocsc() shrink = 5 slice_size = 100 # %%time naive_weights = naive_similarity(urm_csc[:slice_size,:slice_size], shrink) naive_weights # %%time vector_weights = vector_similarity(urm_csc[:slice_size,:slice_size], shrink) vector_weights # %%time matrix_weights = matrix_similarity(urm_csc[:slice_size,:slice_size], shrink) matrix_weights np.array_equal(naive_weights, vector_weights) np.array_equal(vector_weights, matrix_weights) # ## Collaborative Filtering ItemKNN Recommender # # This step creates a `CFItemKNN` class that represents a Collaborative Filtering ItemKNN Recommender. As we have mentioned in previous practice sessions, our recommenders have two main functions: `fit` and `recommend`. # # The first receives the similarity function and the dataset with which it will create the similarities, the result of this function is to save the similarities (`weights`) into the class instance. # # The second function takes a user id, the train URM, the recommendation lenght and a boolean value to remove already-seen items from users. It returns a recommendation list for the user. class CFItemKNN(object): def __init__(self, shrink: int): self.shrink = shrink self.weights = None def fit(self, urm_train: sp.csc_matrix, similarity_function): if not sp.isspmatrix_csc(urm_train): raise TypeError(f"We expected a CSC matrix, we got {type(urm_train)}") self.weights = similarity_function(urm_train, self.shrink) def recommend(self, user_id: int, urm_train: sp.csr_matrix, at: Optional[int] = None, remove_seen: bool = True): user_profile = urm_train[user_id] ranking = user_profile.dot(self.weights).A.flatten() if remove_seen: user_profile_start = urm_train.indptr[user_id] user_profile_end = urm_train.indptr[user_id+1] seen_items = urm_train.indices[user_profile_start:user_profile_end] ranking[seen_items] = -np.inf ranking = np.flip(np.argsort(ranking)) return ranking[:at] itemknn_recommender = CFItemKNN(shrink=50) itemknn_recommender # + # %%time itemknn_recommender.fit(urm_train.tocsc(), matrix_similarity) # - for user_id in range(10): print(itemknn_recommender.recommend(user_id=user_id, urm_train=urm_train, at=10, remove_seen=True)) # ## Evaluation Metrics # # In this practice session we will be using the same evaluation metrics defined in the Practice session 2, i.e., precision, recall and mean average precision (MAP). # + def recall(recommendations: np.array, relevant_items: np.array) -> float: is_relevant = np.in1d(recommendations, relevant_items, assume_unique=True) recall_score = np.sum(is_relevant) / relevant_items.shape[0] return recall_score def precision(recommendations: np.array, relevant_items: np.array) -> float: is_relevant = np.in1d(recommendations, relevant_items, assume_unique=True) precision_score = np.sum(is_relevant) / recommendations.shape[0] return precision_score def mean_average_precision(recommendations: np.array, relevant_items: np.array) -> float: is_relevant = np.in1d(recommendations, relevant_items, assume_unique=True) precision_at_k = is_relevant * np.cumsum(is_relevant, dtype=np.float32) / (1 + np.arange(is_relevant.shape[0])) map_score = np.sum(precision_at_k) / np.min([relevant_items.shape[0], is_relevant.shape[0]]) return map_score # - # ## Evaluation Procedure # # The evaluation procedure returns the averaged accuracy scores (in terms of precision, recall and MAP) for all users (that have at least 1 rating in the test set). It also calculates the number of evaluated and skipped users. It receives a recommender instance, and the train and test URMs. def evaluator(recommender: object, urm_train: sp.csr_matrix, urm_test: sp.csr_matrix): recommendation_length = 10 accum_precision = 0 accum_recall = 0 accum_map = 0 num_users = urm_train.shape[0] num_users_evaluated = 0 num_users_skipped = 0 for user_id in range(num_users): user_profile_start = urm_test.indptr[user_id] user_profile_end = urm_test.indptr[user_id+1] relevant_items = urm_test.indices[user_profile_start:user_profile_end] if relevant_items.size == 0: num_users_skipped += 1 continue recommendations = recommender.recommend(user_id=user_id, at=recommendation_length, urm_train=urm_train, remove_seen=True) accum_precision += precision(recommendations, relevant_items) accum_recall += recall(recommendations, relevant_items) accum_map += mean_average_precision(recommendations, relevant_items) num_users_evaluated += 1 accum_precision /= max(num_users_evaluated, 1) accum_recall /= max(num_users_evaluated, 1) accum_map /= max(num_users_evaluated, 1) return accum_precision, accum_recall, accum_map, num_users_evaluated, num_users_skipped # + # %%time accum_precision, accum_recall, accum_map, num_user_evaluated, num_users_skipped = evaluator(itemknn_recommender, urm_train, urm_test) # - accum_precision, accum_recall, accum_map, num_user_evaluated, num_users_skipped # ## Hyperparameter Tuning # # This step is fundamental to get the best performance of an algorithm, specifically, because we will train different configurations of the parameters for the `CFItemKNN` recommender and select the best performing one. # # In order for this step to be meaningful (and to avoid overfitting on the test set), we perform it using the `validation` URM as test set. # # This step is the longest one to run in the entire pipeline when building a recommender. # + def hyperparameter_tuning(): shrinks = [0,1,5,10,50] results = [] for shrink in shrinks: print(f"Currently trying shrink {shrink}") itemknn_recommender = CFItemKNN(shrink=shrink) itemknn_recommender.fit(urm_train.tocsc(), matrix_similarity) ev_precision, ev_recall, ev_map, _, _ = evaluator(itemknn_recommender, urm_train, urm_validation) results.append((shrink, (ev_precision, ev_recall, ev_map))) return results # + # %%time hyperparameter_results = hyperparameter_tuning() # - hyperparameter_results # ## Submission to competition # # This step serves as a similar step that you will perform when preparing a submission to the competition. Specially after you have chosen and trained your recommender. # # For this step the best suggestion is to select the most-performing configuration obtained in the hyperparameter tuning step and to train the recommender using both the `train` and `validation` set. Remember that in the competition you *do not* have access to the test set. # # We simulated the users to generate recommendations by randomly selecting 100 users from the original identifiers. Do consider that in the competition you are most likely to be provided with the list of users to generate recommendations. # # Another consideration is that, due to easier and faster calculations, we replaced the user/item identifiers with new ones in the preprocessing step. For the competition, you are required to generate recommendations using the dataset's original identifiers. Due to this, this step also reverts back the newer identifiers with the ones originally found in the dataset. # # Last, this step creates a function that writes the recommendations for each user in the same file in a tabular format following this format: # ```csv # <user_id>,<item_id_1> <item_id_2> <item_id_3> <item_id_4> <item_id_5> <item_id_6> <item_id_7> <item_id_8> <item_id_9> <item_id_10> # ``` # # Always verify the competitions' submission file model as it might vary from the one we presented here. best_shrink = 0 urm_train_validation = urm_train + urm_validation best_recommender = CFItemKNN(shrink=best_shrink) best_recommender.fit(urm_train_validation.tocsc(), matrix_similarity) users_to_recommend = np.random.choice(ratings.user_id.unique(), size=100, replace=False) users_to_recommend mapping_to_item_id = dict(zip(ratings.mapped_item_id, ratings.item_id)) mapping_to_item_id def prepare_submission(ratings: pd.DataFrame, users_to_recommend: np.array, urm_train: sp.csr_matrix, recommender: object): users_ids_and_mappings = ratings[ratings.user_id.isin(users_to_recommend)][["user_id", "mapped_user_id"]].drop_duplicates() items_ids_and_mappings = ratings[["item_id", "mapped_item_id"]].drop_duplicates() mapping_to_item_id = dict(zip(ratings.mapped_item_id, ratings.item_id)) recommendation_length = 10 submission = [] for idx, row in users_ids_and_mappings.iterrows(): user_id = row.user_id mapped_user_id = row.mapped_user_id recommendations = recommender.recommend(user_id=mapped_user_id, urm_train=urm_train, at=recommendation_length, remove_seen=True) submission.append((user_id, [mapping_to_item_id[item_id] for item_id in recommendations])) return submission submission = prepare_submission(ratings, users_to_recommend, urm_train_validation, best_recommender) submission def write_submission(submissions): with open("./submission.csv", "w") as f: for user_id, items in submissions: f.write(f"{user_id},{' '.join([str(item) for item in items])}\n") write_submission(submission) # ## Exercises # In this lecture we saw the most simple version of Cosine Similarity, where it just includes a shrink factor. There are different optimizations that we can do to it. # # - Implement TopK Neighbors # - When calculating the cosine similarity we used `urm.T.dot(urm)` to calculate the enumerator. However, depending of the dataset and the number of items, this matrix could not fit in memory. Implemenent a `block` version, faster than our `vector` version but that does not use `urm.T.dot(urm)` beforehand. # - Implement Adjusted Cosine [Formula link](http://www10.org/cdrom/papers/519/node14.html) # - Implement Dice Similarity [Wikipedia Link](https://en.wikipedia.org/wiki/Sørensen–Dice_coefficient) # - Implement an implicit CF ItemKNN. # - Implement a CF UserKNN model
21,073
/Lectures/13_2_Bootstrap.ipynb
eea9c034c710596178110576de946292f9b3d85b
[]
no_license
bonchae/DataScience
https://github.com/bonchae/DataScience
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
204,058
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + id="I9ZygAHeJKeS" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 918} outputId="34370d7f-61ef-49f5-ee7d-22dd1784cad6" from datascience import * path_data = 'https://github.com/data-8/textbook/raw/gh-pages/data/' sf2015 = Table.read_table(path_data + 'san_francisco_2015.csv') sf2015 # + id="1LhEGFyPJNxh" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 168} outputId="9c2db5d8-56a6-47fb-f145-eb0611cc6927" sf2015.where('Job', are.equal_to('Mayor')) # + id="iJu8GSQmJN0B" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 850} outputId="700eacf8-8c3e-4c29-f09e-578fb30c4f11" sf2015.sort('Total Compensation') # + id="cfgOFHhOJN2h" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="4930509a-9dee-4a89-c726-10a264062601" sf2015 = sf2015.where('Salaries', are.above(10000)) sf2015.num_rows # + id="UKQLf-ERJN5R" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 339} outputId="86d7b65b-9018-4e42-aeee-321d05b532ba" import numpy as np # %matplotlib inline import matplotlib.pyplot as plots plots.style.use('fivethirtyeight') sf_bins = np.arange(0, 700000, 25000) sf2015.select('Total Compensation').hist(bins=sf_bins) # + id="7aL1ETnyJLKq" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 296} outputId="21f570b3-7898-447e-9296-5c5ede0549ec" sf2015.sort('Total Compensation', descending=True).show(2) # + id="5RlVy6MSJLNh" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="cd7f4aa1-d74c-484f-d949-11c215ab76f9" pop_median = percentile(50, sf2015.column('Total Compensation')) pop_median # + id="XrUAq45gJLXA" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 340} outputId="13886323-c53c-40b6-b64f-fce992418314" our_sample = sf2015.sample(500, with_replacement=False) our_sample.select('Total Compensation').hist(bins=sf_bins) # + id="y4tSQPdbJLaJ" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="352829c8-afbb-450d-a82e-f8aa15c47cf6" est_median = percentile(50, our_sample.column('Total Compensation')) est_median # + id="48B1jWsAJLdA" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 339} outputId="7847b35b-76b0-4820-97eb-3e360ab0b464" resample_1 = our_sample.sample() resample_1.select('Total Compensation').hist(bins=sf_bins) # + id="RLpy2m8mJLfx" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="875b78f6-48c4-4a8d-c1be-d932b2fbbcbb" resampled_median_1 = percentile(50, resample_1.column('Total Compensation')) resampled_median_1 # + id="50E2v0VjJLiS" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="7e68cdd0-915a-4a54-f01a-c54607007d7b" resample_2 = our_sample.sample() resampled_median_2 = percentile(50, resample_2.column('Total Compensation')) resampled_median_2 # + id="VcozfjbVKXiI" colab_type="code" colab={} def bootstrap_median(original_sample, label, replications): """Returns an array of bootstrapped sample medians: original_sample: table containing the original sample label: label of column containing the variable replications: number of bootstrap samples """ just_one_column = original_sample.select(label) medians = make_array() for i in np.arange(replications): bootstrap_sample = just_one_column.sample() resampled_median = percentile(50, bootstrap_sample.column(0)) medians = np.append(medians, resampled_median) return medians # + id="MjESAPj6KXk2" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 340} outputId="2e8d8776-23c7-4021-c793-06636a1fc561" bstrap_medians = bootstrap_median(our_sample, 'Total Compensation', 5000) resampled_medians = Table().with_column('Bootstrap Sample Median', bstrap_medians) resampled_medians.hist() plots.scatter(pop_median, 0, color='red', s=30); # + id="Yd7_Du4zKXne" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="0a95a558-2d3f-4ba3-9a9a-b110fa51a16b" left = percentile(2.5, bstrap_medians) left # + id="HHavhcqhKXqL" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="22527b56-b9fe-4945-b458-1cf2a9494cc1" right = percentile(97.5, bstrap_medians) right # + id="W8uekBSpKXso" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 340} outputId="fe75a5b5-7d25-4f74-e67f-c494187261c4" resampled_medians.hist() plots.plot(make_array(left, right), make_array(0, 0), color='yellow', lw=3, zorder=1) plots.scatter(pop_median, 0, color='red', s=30, zorder=2); # + id="lIcJMj0VKXvN" colab_type="code" colab={} left_ends = make_array() right_ends = make_array() total_comps = sf2015.select('Total Compensation') for i in np.arange(100): first_sample = total_comps.sample(500, with_replacement=False) medians = bootstrap_median(first_sample, 'Total Compensation', 5000) left_ends = np.append(left_ends, percentile(2.5, medians)) right_ends = np.append(right_ends, percentile(97.5, medians)) intervals = Table().with_columns( 'Left', left_ends, 'Right', right_ends ) # + id="dZLyqXlEKXx5" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 388} outputId="765e6278-a1d7-497e-f5a5-f2f85782e8f7" intervals # + id="1QZtl9iWK_Qs" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="27d32b2c-f366-44f1-f646-88a5504ddfc4" pop_median # + id="i1S4YNF2K_T6" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="bf046b66-6df8-4707-c2db-587f3af50a53" intervals.where('Left', are.below(pop_median)).where('Right', are.above(pop_median)).num_rows # + id="sqr7Y5tiK_W3" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 558} outputId="d9b033cd-f3cf-4c20-e178-d260bca27d0c" replication_number = np.ndarray.astype(np.arange(1, 101), str) intervals2 = Table(replication_number).with_rows(make_array(left_ends, right_ends)) plots.figure(figsize=(8,8)) for i in np.arange(100): ends = intervals2.column(i) plots.plot(ends, make_array(i+1, i+1), color='gold') plots.plot(make_array(pop_median, pop_median), make_array(0, 100), color='red', lw=2) plots.xlabel('Median (dollars)') plots.ylabel('Replication') plots.title('Population Median and Intervals of Estimates'); i in range(N): solved_groups = {} parameter_group_params = {} parameter_group_params = parameter_realz[i] solved_group_hillslopes_dict = {} for group_id in groups_to_calibrate: parameter_group_id = group_id[0] climate_group_id = group_id[1] vz = parameter_group_params[parameter_group_id]['vz'](**parameter_group_params[parameter_group_id]) gz = parameter_group_params[parameter_group_id]['gz'](**parameter_group_params[parameter_group_id]) rew = REW(vz, gz, **{'pet':climate_group_forcing[climate_group_id].pet, 'ppt':climate_group_forcing[climate_group_id].ppt, 'aspect':90}) storageVZ = np.zeros(np.size(t)) storageGZ = np.zeros(np.size(t)) discharge = np.zeros(np.size(t)) leakage = np.zeros(np.size(t)) ET = np.zeros(np.size(t)) # Resample pet and ppt to integration timestep ppt = np.array(rew.ppt[start_date:stop_date].resample(resample_freq_hillslope).ffill()) pet = np.array(rew.pet[start_date:stop_date].resample(resample_freq_hillslope).ffill()) # Solve group hillslope for l in range(len(t)): rew.vz.update(dt,**{'ppt':ppt[l],'pet':pet[l]}) storageVZ[l] = rew.vz.storageVZ leakage[l] = rew.vz.leakage ET[l] = rew.vz.ET rew.gz.update(dt,**{'leakage':leakage[l]}) storageGZ[l] = rew.gz.storageGZ discharge[l] = rew.gz.discharge # resample as daily data solved_groups[group_id] = pd.DataFrame({'discharge':discharge}, index=timestamps_hillslope).resample('D').mean() total_area = 0 for rew_id in ids_in_subwatershed: total_area += rew_config[rew_id]['area_sqkm'] name = str(i) + 'discharge' solved_subwatershed = pd.DataFrame({name:np.zeros(len(timestamps_hillslope))}, index=timestamps_hillslope).resample('D').mean() solved_subwatershed_array = np.zeros(int(len(solved_subwatershed))) for rew_id in ids_in_subwatershed: solved_subwatershed_array += rew_config[rew_id]['area_sqkm']/total_area*solved_groups[rew_config[rew_id]['group']]['discharge'] solved_subwatershed[name] = solved_subwatershed_array solved_subwatersheds.append(solved_subwatershed) solved_subwatersheds = pd.concat(solved_subwatersheds,axis=1) # - # ## Model goodness of fit # # Here, each model run is compared to calibration data using the objective function as defined above. The user must specify the pickled dataframe with calibration runoff data in units of cm/day. Calibration data must be available at least from `spinup_date` to `stop_date`. # + calibration_data_filename = 'elder_runoff.p' calibration_data = pickle.load( open(os.path.join(parent_dir,'calibration_data',calibration_data_filename))) calibration_data = calibration_data[spinup_date:stop_date] col_name = calibration_data.columns[0] calibration_data.columns = ['calibration_data'] df = pd.concat([calibration_data, solved_subwatersheds],1) nses = [] for i in range(N): name = str(i) + 'discharge' if np.isfinite(np.sum(df[name][spinup_date:stop_date])): if int(np.sum(df[name][spinup_date:stop_date])) == 0: nses.append(-1) else: nses.append(objective_function( df['calibration_data'][spinup_date:stop_date], df[name][spinup_date:stop_date])) else: nses.append(-9999) best_column = str(np.argmax(nses)) + 'discharge' i = int(best_column.replace('discharge','')) fig = plt.figure(figsize=(8,4)) plt.plot(df[['calibration_data',best_column]][spinup_date:stop_date]) plt.legend(['Calibration data', 'Best model run (NSE = %0.2f)' % np.max(nses)]) plt.xlabel('Date') plt.ylabel('Runoff [cm/day]') plt.title( subwatershed_name + ' subwatershed calibration results') html = mpld3.fig_to_html(fig) print 'The best fit parameter set has an NSE of %0.2f' % (np.max(nses)) for j, parameter_group in enumerate(parameter_ranges.keys()): for k, parameter in enumerate(parameter_ranges[parameter_group].keys()): new_value = parameter_realz[i][parameter_group][parameter] print 'The best fit value for parameter %s in parameter group %s is %f' % (parameter, parameter_group, new_value) # + # Note: working in Folium, ALL projections must be converted to epsg='4326' watershed_name = 'sf_below_tenmile' subwatershed_name = 'elder' #Add watershed shapefile_path = os.path.join(parent_dir, 'raw_data','watershed_poly', watershed_name + '.shp') basins_shape = gp.GeoDataFrame.from_file(shapefile_path).to_crs(epsg='4326') basins_shape['coords'] = basins_shape['geometry'].apply(lambda x: x.representative_point().coords[:]) basins_shape['coords'] = [coords[0] for coords in basins_shape['coords']] basins = basins_shape.to_crs(epsg='4326').to_json() bounds = basins_shape.exterior.bounds mapa = folium.Map([basins_shape['coords'][0][1], basins_shape['coords'][0][0]], tiles='Stamen Terrain') folium.GeoJson( basins, style_function=lambda feature: { 'color' : '#00ff00', 'fillOpacity': .05 } ).add_to(mapa) shapefile_path = os.path.join(parent_dir, 'raw_data','watershed_poly', subwatershed_name + '.shp') basins_shape = gp.GeoDataFrame.from_file(shapefile_path).to_crs(epsg='4326') basins_shape['coords'] = basins_shape['geometry'].apply(lambda x: x.representative_point().coords[:]) basins_shape['coords'] = [coords[0] for coords in basins_shape['coords']] basins = basins_shape.to_crs(epsg='4326').to_json() folium.GeoJson( basins, style_function=lambda feature: { 'color' : '#FF0000', 'opacity': 0.4 } ).add_to(mapa) iframe = folium.element.IFrame(html=html, width=650, height=400) popup = folium.Popup(iframe, max_width=2650) folium.Marker([basins_shape['coords'][0][1], basins_shape['coords'][0][0]], popup=popup, icon=folium.Icon(color='red',icon='info-sign')).add_to(mapa) streams_path = glob.glob(os.path.join(parent_dir,'raw_data','streams_poly','*.shp'))[0] streams_shape = gp.GeoDataFrame.from_file(streams_path).to_crs(epsg='4326') streams = gp.GeoDataFrame(streams_shape['geometry'], crs=streams_shape.crs) streams['RGBA'] = '#0000ff' streams = streams.to_crs(epsg='4326').to_json() colors = [] folium.GeoJson( streams, style_function=lambda feature: { 'color' : feature['properties']['RGBA'], 'weight' : 4, 'opacity': 1 } ).add_to(mapa) calibration_output_name = subwatershed_name + '_calibration.html' mapa.fit_bounds([[ bounds['miny'].loc[0], bounds['minx'].loc[0]], [ bounds['maxy'].loc[0], bounds['maxx'].loc[0]]]) mapa.save(os.path.join(parent_dir, 'calibration_output', calibration_output_name)) mapa.save(os.path.join(calibration_output_name)) mapa # - end(valid_auc) train_scores.append(np.mean(train_scores)) # Needed for creating dataframe of validation scores fold_names = list(range(n_folds)) fold_names.append('overall') # Dataframe of validation scores metrics = pd.DataFrame({'fold': fold_names, 'train': train_scores, 'valid': valid_scores}) return submission, feature_importances, metrics def plot_feature_importances(df): """ Plot importances returned by a model. This can work with any measure of feature importance provided that higher importance is better. Args: df (dataframe): feature importances. Must have the features in a column called `features` and the importances in a column called `importance Returns: shows a plot of the 15 most importance features df (dataframe): feature importances sorted by importance (highest to lowest) with a column for normalized importance """ # Sort features according to importance df = df.sort_values('importance', ascending = False).reset_index() # Normalize the feature importances to add up to one df['importance_normalized'] = df['importance'] / df['importance'].sum() # Make a horizontal bar chart of feature importances plt.figure(figsize = (10, 6)) ax = plt.subplot() # Need to reverse the index to plot most important on top ax.barh(list(reversed(list(df.index[:15]))), df['importance_normalized'].head(15), align = 'center', edgecolor = 'k') # Set the yticks and labels ax.set_yticks(list(reversed(list(df.index[:15])))) ax.set_yticklabels(df['feature'].head(15)) # Plot labeling plt.xlabel('Normalized Importance'); plt.title('Feature Importances') plt.show() return df # + # Separate out the train and test sets train = feature_matrix[feature_matrix['set'] == 'train'] test = feature_matrix[feature_matrix['set'] == 'test'] # One hot encoding train = pd.get_dummies(train) test = pd.get_dummies(test) # Align dataframes on the columns train, test = train.align(test, join = 'inner', axis = 1) test = test.drop(columns = ['TARGET']) print('Final Training Shape: ', train.shape) print('Final Testing Shape: ', test.shape) # - submission, fi, metrics = model(train, test) metrics fi_sorted = plot_feature_importances(fi) submission.to_csv('AutoEngineering.csv', index = False)
16,209
/homework/Day75-Back_Propagation_HW.ipynb
29c7338b9186d6142a4eea5aa885a2e3888b60fa
[]
no_license
fangggggg87/2nd-ML100Days
https://github.com/fangggggg87/2nd-ML100Days
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
17,605
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # 作業目標: # # 通過建立多層的神經網路, 了解權值矩陣更新 # # 作業重點: # # 3 層神經網路 # # 通過增加更多的中間層,以對更多關係的組合進行建模 # # syn1 權值矩陣將隱層的組合輸出映射到最終結果, # # 而在更新 syn1 的同時,還需要更新 syn0 權值矩陣, # # 以從輸入資料中更好地產生這些組合 # + import numpy as np # Sigmoid 函數可以將任何值都映射到一個位於 0 到 1 範圍內的值。通過它,我們可以將實數轉化為概率值 def nonlin(x,deriv=False): if(deriv==True): return x*(1-x) return 1/(1+np.exp(-x)) X = np.array([ [0,0,1], [0,1,1], [1,0,1], [1,1,1] ]) # define y for output dataset y = np.array([[0,0,1,1]]).T # + # seed random numbers to make calculation # deterministic (just a good practice) np.random.seed(1) #亂數設定產生種子得到的權重初始化集仍是隨機分佈的, #但每次開始訓練時,得到的權重初始集分佈都是完全一致的。 # initialize weights randomly with mean 0 syn0 = 2*np.random.random((3,1)) - 1 # define syn1 syn1 = 2*np.random.random((3,1)) - 1 iter = 0 #該神經網路權重矩陣的初始化操作。 #用 “syn0” 來代指 (即“輸入層-第一層隱層”間權重矩陣) #用 “syn1” 來代指 (即“輸入層-第二層隱層”間權重矩陣) syn0_history = [syn0] # - # 神經網路訓練 # for 迴圈反覆運算式地多次執行訓練代碼,使得我們的網路能更好地擬合訓練集 # + for iter in range(10000): # forward propagation l0 = X l1 = nonlin(np.dot(l0,syn0)) ''' 新增 l2_error 該值說明了神經網路預測時“丟失”的數目。 l2_delta 該值為經確信度加權後的神經網路的誤差,除了確信誤差很小時,它近似等於預測誤差。 ''' # how much did we miss? l1_error = y - l1 # multiply how much we missed by the # slope of the sigmoid at the values in l1 l1_delta = l1_error * nonlin(l1,True) # update weights syn0 += np.dot(l0.T,l1_delta) # syn1 update weights print("Output After Training:") print(l1) print("\n\n") print(l1) # + import matplotlib.pyplot as plt # %matplotlib inline #適用於 Jupyter Notebook, 宣告直接在cell 內印出執行結果 plt.plot(syn0_history[0], ms=3, lw=1.5, color='black') plt.xlabel(r'$L1$', fontsize=16) plt.show()
2,038
/PYTHON/Notebooks/.ipynb_checkpoints/GeoH5-checkpoint.ipynb
9d1993be58726fd36c7e5a54163cecbfd474079c
[]
no_license
fourndo/ScriptsBank
https://github.com/fourndo/ScriptsBank
3
2
null
null
null
null
Jupyter Notebook
false
false
.py
9,843
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import h5py import numpy as np import ipywidgets as widgets # #!/usr/bin/env python # -*- coding: utf-8 -*- # + # Load in GA h5 work_dir ="C:\\Users\\DominiqueFournier\\Google Drive\\Research\\Tli_Kwi_Cho\\Modelling\\" fileName ="Test.geoh5" f = h5py.File(work_dir+fileName, 'r') # + # -*- coding: utf-8 -*- keys = list(f['GEOSCIENCE']['Objects'].keys()) for key in keys: print("ID: "+f['GEOSCIENCE']['Objects'][key].attrs['ID'] + ", Name: " + f['GEOSCIENCE']['Objects'][key].attrs['Name']) # + def geoh5Reader(h5File): def listObjects(name): for key in keys: if name == project['GEOSCIENCE']['Objects'][key].attrs['Name']: print(project['GEOSCIENCE']['Objects'][key]['Vertices']['x']) return project = h5py.File(work_dir+fileName, 'r+') keys = list(f['GEOSCIENCE']['Objects'].keys()) names = [] for key in keys: names += [project['GEOSCIENCE']['Objects'][key].attrs['Name']] out = widgets.interactive(listObjects, name=widgets.Dropdown( options=names, value=names[0], description='Objects', disabled=False, ) ) return out, project # - out, project = geoh5Reader(work_dir+fileName) display(out) project.close() Data = np.c_[aa['Vertices']['x'], aa['Vertices']['y'], aa['Vertices']['z']]
1,819
/notebooks/make_analysis.ipynb
59245cd7c7cb7e8463745d0a02bc5d42359870cf
[]
no_license
brhillman/e3smplot
https://github.com/brhillman/e3smplot
1
2
null
2023-01-11T21:00:10
2021-11-18T18:01:46
Jupyter Notebook
Jupyter Notebook
false
false
.py
225,774
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: e3smplot # language: python # name: e3smplot # --- # %matplotlib inline # %load_ext autoreload # %autoreload 2 from glob import glob import sys, os import xarray import ngl import numpy from e3smplot.e3sm_utils import area_average, open_dataset, get_mapping_file from e3smplot.e3sm_utils import get_grid_name, can_retrieve_field, is_latlon from e3smplot.pyngl import compare_maps from e3smplot.mpl import compare_time_series, compare_zonal_means import os.path import datetime # + # A short, meaningful name with which to label plots and set output filenames. # Does not need to match the case name of the model run, but does need to match # one of the data_paths keys below! test_case_name = 'SCREAM' # Set control case names. We will compare the test_case_name against each of # these cntl_case_names = ('CERES-SYN', 'ERA5', )#'GPM') #'ne1024 Oct9', 'CERES-SYN', 'ERA5') # Period to compare; None means no limit (determined by available data, only overlapping periods) t1, t2 = ('2020-01-30 00:00:00', None) # Path were we can find netcdf files with output from the test/model case data_paths = { # Raw files #'Run 1' : '/global/cscratch1/sd/terai/e3sm_scratch/cori-knl/20201112.SCREAMv0dyamond2.F2010-SCREAM-HR-DYAMOND2.ne1024pg2_r0125_oRRS18to6v3.cori-knl.1536x8x16/run', #'Run 2': '/global/cscratch1/sd/terai/e3sm_scratch/cori-knl/SCREAMv0.SCREAM-DY2.ne1024pg2.20201127/run', # Regridded files 'Run 1' : '/global/cfs/cdirs/e3sm/terai/SCREAM/DYAMOND2/Output/20201112/regridded', 'SCREAM' : '/global/cfs/cdirs/e3sm/terai/SCREAM/DYAMOND2/Output/20201127/regridded', 'ne4pg2': '/global/cscratch1/sd/bhillma/e3sm_scratch/cori-knl/20201112.dyamond2.F2010-SCREAM-HR.ne4pg2_ne4pg2.cori-knl.2x42x2/run', 'ne1024 Oct9' : '/global/cscratch1/sd/terai/e3sm_scratch/cori-knl/master.ne1024pg2_r0125_oRRS18to6v3.F2010-SCREAM-HR-DYAMOND2.cori-knl_intel.1536x8x16.DY2_Oct9.20201009-16/run', 'ne256 lamlow': '/global/cscratch1/sd/bogensch/E3SM_simulations/master.ne256pg2_r0125_oRRS18to6v3.F2010-SCREAM-HR-DYAMOND2.cori-knl_intel.1024x16x8.DY2_Oct6.20201022-16.lamlow.001a/run', 'ne256 rrtmg' : '/global/cscratch1/sd/bhillma/scream/cases/9bfb38267.ne256pg2_r0125_oRRS18to6v3.F2010-SCREAM-HR-DYAMOND2.cori-knl_intel.192x16x8.rrtmg.20201021-0921/run', 'ne256 rrtmgp': '/global/cscratch1/sd/bhillma/scream/cases/9bfb38267.ne256pg2_r0125_oRRS18to6v3.F2010-SCREAM-HR-DYAMOND2.cori-knl_intel.192x16x8.rrtmgp.20201021-1722/run', 'ne4 rrtmg': '/global/cscratch1/sd/bhillma/e3sm_scratch/cori-knl/SMS_Ld5.ne4_ne4.FC5AV1C-L.cori-knl_intel.add-optics-outputs/run', 'ne4 rrtmgp': '/global/cscratch1/sd/bhillma/e3sm_scratch/cori-knl/SMS_Ld5.ne4_ne4.FC5AV1C-L.cori-knl_intel.cam-rrtmgp.add-optics-outputs/run', 'ne1024 Nov05': '/global/cscratch1/sd/terai/E3SM_simulations/master.ne1024pg2_r0125_oRRS18to6v3.F2010-SCREAM-HR-DYAMOND2.cori-knl_intel.1536x8x16.DY2_Nov05branch_SHOC_P3_AB_bugfix.20201105-16', 'CERES-SYN': '/global/cfs/cdirs/e3sm/terai/Obs_datasets/CERES', 'ERA5': '/global/cfs/cdirs/e3sm/bhillma/obs_datasets/ERA5', 'GPM': '/global/cfs/cdirs/e3sm/terai/Obs_datasets/GPM/DYAMOND2_period', } # List of fields we want to make map plots for variables = ( # 3D vars # TODO: do something useful with these #'PMID', 'T', 'CLOUD', 'EMIS', 'TOT_CLD_VISTAU', #'TOT_ICLD_VISTAU', 'LIQ_ICLD_VISTAU', 'ICE_ICLD_VISTAU', # # 2D vars 'FSNTOA', 'FSNTOAC', 'FLNT', 'FLNTC', 'RESTOM', 'CLDTOT', 'CLDLOW', 'CLDMED', 'CLDHGH', 'TMCLDLIQ', 'TMCLDICE', 'PRECT', 'SHFLX', 'TREFHT', 'TMQ', 'PS', 'WINDSPD_10M', 'LHFLX', ) # Glob strings for searching for case files. For model cases, you may want to # search for different history tapes (h0, h1, h2, etc). # For some of the obs datasets, we have separate files for different categories # of fields. glob_strings = { #'ERA5': {v: '*.nc' for v in variables}, 'ERA5': {'PRECT' : 'ERA5_surf_2020*.nc' , 'SHFLX' : 'ERA5_surf_2020*.nc' , 'LHFLX' : 'ERA5_surf_2020*.nc' , 'TREFHT' : 'ERA5_surf_2020*.nc' , 'TMQ' : 'ERA5_surf_2020*.nc' , 'WINDSPD_10M': 'ERA5_surf_2020*.nc' , 'PS' : 'ERA5_surf_2020*.nc' , 'T' : 'ERA5_TandQ_2020*.nc',}, 'GPM': {'PRECT' : '3B-HHR.MS.MRG.3IMERG.2020*.nc',}, 'MAC': {'TMCLDLIQ': 'maclwp_cloudlwpave_*', 'TOTALLWP': 'maclwp_totallwpave_*'}, 'CERES-SYN': {v: '*_20200101-20200229.nc' for v in variables}, # For model-model comparisons, need to specify history tape number 'ne1024 Oct9': {v: '*.h1.*.nc' for v in variables}, 'ne1024 rrtmg': {v: '*.h1.*.nc' for v in variables}, 'ne256 rrtmg' : {v: '*.h1.*.nc' for v in variables}, 'ne256 rrtmgp': {v: '*.h1.*.nc' for v in variables}, 'ne256 lamlow': {v: '*.h1.*.nc' for v in variables}, 'ne4 rrtmg': {v: '*.h0.*.nc' for v in variables}, 'ne4 rrtmgp': {v: '*.h0.*.nc' for v in variables}, # Map variables to files for SCREAM-HR production run. # TODO: make this more flexible 'Run 1': {v: '20201112.SCREAMv0dyamond2.F2010-SCREAM-HR-DYAMOND2.ne1024pg2_r0125_oRRS18to6v3.cori-knl.1536x8x16.eam.h[0-9]*.nc' for v in variables}, 'SCREAM': {v: 'SCREAMv0.SCREAM-DY2.ne1024pg2.20201127.eam.h4.*.nc' if v == 'PMID' else 'SCREAMv0.SCREAM-DY2.ne1024pg2.20201127.eam.h[0-9]*.nc' for v in variables}, 'ne4pg2': {v: '*.eam.h[0-9]*.nc' for v in variables}, } # Override glob strings for specific cases glob_strings['SCREAM']['PS'] = 'SCREAMv0.SCREAM-DY2.ne1024pg2.20201127.eam.h1.*.nc' # Time offsets; hack so we can compare F-cases. # HOW TO USE THIS FEATURE: in the event that you want to compare a run for a # different time period that what we have observations for, you can use this to # manually adjust the time coordinate of the simulation. This is certainly a # hack, but allows us to use my code that attempts to find an overlapping time # period to compare with the correct observations. This is a list of time # offsets for the "test" (run you want to evaluate) and "cntl" (run or obs you # want to evaluate against) cases. It should be a datetime.timedelta object. As # an example for usage, say you meant to start a run for the DYAMOND2 period # (2020-01-20), but accidentally ran an F-case (0001-01-01). We want a time # offset in that case of 365 * 2019 + 20 days. Any entries in this list that are # None type will not add an offset (the default behavior). #time_offsets = [datetime.timedelta(days=(365*2019+20)), None] time_offsets = {c: None for c in [test_case_name, *cntl_case_names]} time_offsets['ne256 lamlow'] = datetime.timedelta(days=(365*2019+20)) time_offsets['ne4 rrtmgp'] = datetime.timedelta(days=(365*2000)) time_offsets['ne4 rrtmg'] = datetime.timedelta(days=(365*2000)) # Where should we write the plot files? tmp_name = test_case_name.replace(' ', '_') graphics_root = f'./graphics/{tmp_name}' #graphics_root = f'/global/cfs/cdirs/e3sm/www/bhillma/scream/dyamond2/graphics/{tmp_name}' # Where we keep our grids and map files. Make sure this is in scratch space, # these things can get quite large mapping_root = '/global/cscratch1/sd/bhillma/grids' # Flags to control what kind of plots to make. You probably want to make them # all, but being able to disable for testing is useful. Some of them take quite # a while to make. do_contour_maps = True do_time_series = True do_zonal_means = True do_zonal_profiles = True do_anomalies = True # Before we do anything, make sure our plot directory exists os.makedirs(graphics_root, exist_ok=True) # - # ## Summary statistics if False: from matplotlib import pyplot from e3smplot.e3sm_utils import get_data, get_area_weights, area_average import numpy variables = ('FSNTOA', 'TMQ', 'PRECT', 'CLDTOT', 'SHFLX', 'TREFHT') ref_cases = { 'FSNTOA': 'CERES-SYN', 'TMQ' : 'ERA5', 'PRECT' : 'ERA5', 'CLDTOT': 'CERES-SYN', 'SHFLX' : 'ERA5', 'TREFHT': 'ERA5', } colors = { 'Run 2' : 'tab:blue', 'Run 1' : 'tab:purple', 'ne4pg2' : 'tab:green', 'CERES-SYN': 'black', 'ERA5' : 'black', 'Reference': 'black', } units = { 'FSNTOA': 'W/m$^2$', 'TMQ' : 'mm', 'PRECT' : 'mm/d', 'CLDTOT': '%', 'SHFLX' : 'W/m$^2$', 'TREFHT': 'K', } test_cases = ('Run 2', 'Run 1')#'ne4pg2') # Get time range to plot over v = variables[0] files = [f for f in glob(f'{data_paths[test_case_name]}/{glob_strings[test_case_name][v]}') if can_retrieve_field(f, v)] with open_dataset(files, chunks={'time': 1}) as ds: t1 = str(min(ds.time.values)) t2 = str(max(ds.time.values)) print(f'Computing summary statistics for time period {t1:s} to {t2:s}') labeled_cases = [] figure, axes = pyplot.subplots(1, len(variables), figsize=(10, 5)) for ivar, v in enumerate(variables): ax = figure.add_axes(axes[ivar]) cases = (ref_cases[v], *test_cases) for icase, case in enumerate(cases): print(case, v) # Find files files = [f for f in glob(f'{data_paths[case]}/{glob_strings[case][v]}') if field_in_dataset(f, v)] # Read data with open_dataset(files, chunks={'time': 1}) as ds: # grab data da = get_data(ds, v) wt = get_area_weights(ds) # Subset data in time da = da.sel(time=slice(t1, t2)) if 'time' in wt.dims: wt = wt.sel(time=slice(t1, t2)) # Compute a time-series of area-means a = area_average(da, wt, dims=[d for d in da.dims if d != 'time']) # Compute daily averages a = a.resample(time='1D').mean(keep_attrs=True) # Compute mean for control case; used to compute relative anomalies from reference means a_mean = a.mean().values if icase == 0: a_cntl = a_mean # Compute anomaly and maybe scale #yvals = (a - a_cntl).values #/ abs(a_cntl)).values yvals = a.values # Define x-axis location for each variable/case. Optionally add some jitter to # the x-axis locations to scatter points horizontally a little so that we can # see them all without overlapping too much. #xvals = ((ivar + 1) * numpy.ones(len(a)) + (icase) * 0.1) dx = 0.1 #1.0 / len(variables) #plot_size = dx * (len(cases)-1) #plot_start = -(plot_size) / 2.0 #plot_end = plot_start + plot_size xloc = icase * dx #plot_start + (icase * dx) xvals = numpy.random.normal(loc=xloc, size=len(a), scale=dx/10) # Get labels; use "Reference" for the control cases if icase == 0: label = 'Reference' else: label = case # Make sure we only label each case once if label in labeled_cases: label=None else: labeled_cases.append(label) # Make scatter plot of relative anomalies pl1 = ax.scatter(xvals, yvals, marker='.', alpha=0.5, color=colors[case], label=label) #pl2 = ax2.scatter(xvals, yvals, marker='.', alpha=0.5, color=colors[case], label=None) # Plot mean as a small bar y = numpy.mean(yvals) pl2 = ax.plot([xloc - dx/2.0, xloc + dx/2.0], [y, y], color=colors[case], label=None) # Label means for control case #if icase == 0: # ax.text(xloc - dx, a_cntl, f'{a_cntl:.1f}', ha='right', va='bottom') # #ax.text(xvals[0] - dx, -0.001, f'{da.attrs["units"]:^10s}', ha='right', va='top') if v not in units.keys(): print(f'adding unit {a.units} for {v}') units[v] = a.units #ax.set_ylabel('Anomaly (scaled)') #ax.set_ylim([-max(abs(numpy.array(ax.get_ylim()))), max(abs(numpy.array(ax.get_ylim())))]) #xticks = [i + dx * (len(test_cases)) / 2.0 for i in range(len(variables))] #ax.set_xticks(xticks) #ax.set_xlim([-1, 1]) ax.xaxis.set_ticks([]) #ax.set_xticklabels([f'{v}\n({units[v]} x{scale_factors[v]})' # if v in scale_factors.keys() # else f'{v}\n({units[v]})' for v in variables]) #ax.grid(axis='both', color='0.2', alpha=0.5, linestyle='dashed') #ax.legend(loc='best') ax.spines['left'].set_position('center') ax.spines['right'].set_color('none') #ax.spines['bottom'].set_position('center') ax.spines['top'].set_color('none') #ax.spines['bottom'].set_position(['outward', 0]) ax.spines['bottom'].set_color('none') ax.xaxis.set_ticks_position('bottom') ax.yaxis.set_ticks_position('left') ax.set_xlabel(f'{v} ({units[v]})') # ## Anomalies # + from matplotlib import pyplot from e3smplot.e3sm_utils import get_data, get_area_weights, area_average import numpy summary_variables = ('FSNTOA', 'FLNT', 'RESTOM', 'TMQ', 'PRECT', 'CLDTOT', 'SHFLX', 'LHFLX', 'TREFHT') ref_cases = { 'FSNTOA': 'CERES-SYN', 'FLNT' : 'CERES-SYN', 'RESTOM': 'CERES-SYN', 'TMQ' : 'ERA5', 'PRECT' : 'ERA5', 'CLDTOT': 'CERES-SYN', 'SHFLX' : 'ERA5', 'LHFLX' : 'ERA5', 'TREFHT': 'ERA5', } colors = { 'SCREAM' : 'tab:blue', 'Run 1' : 'tab:purple', 'ne4pg2' : 'tab:green', 'CERES-SYN': 'black', 'ERA5' : 'black', 'Reference': 'black', } scale_factors = { 'TMQ': 10, 'PRECT': 10, 'TREFHT': 10, } units = { 'FSNTOA': 'W/m$^2$', 'FLNT' : 'W/m$^2$', 'RESTOM': 'W/m$^2$', 'TMQ' : 'mm', 'PRECT' : 'mm/d', 'CLDTOT': '%', 'SHFLX' : 'W/m$^2$', 'LHFLX' : 'W/m$^2$', 'TREFHT': 'K', } short_names = { 'FSNTOA': 'Net SW flux at TOA', 'FLNT': 'Net LW flux at TOA', 'RESTOM': 'Net flux at TOA', 'TMQ': 'Precipitable water', 'PRECT': 'Rain rate', 'CLDTOT': 'Cloud fraction', 'SHFLX': 'Senible heat flux', 'LHFLX': 'Latent heat flux', 'TREFHT': 'Near surface temperature', } test_cases = ('SCREAM',)#'ne4pg2') # Get time range to plot over v = summary_variables[0] files = [f for f in glob(f'{data_paths[test_case_name]}/{glob_strings[test_case_name][v]}') if can_retrieve_field(f, v)] with open_dataset(files, chunks={'time': 1}) as ds: if t1 is None: t1 = str(min(ds.time.values)) if t2 is None: t2 = str(max(ds.time.values)) print(f'Computing anomalies for time period {t1:s} to {t2:s}') labeled_cases = [] figure, ax = pyplot.subplots(1,1, figsize=(10, 5)) for ivar, v in enumerate(summary_variables): for icase, case in enumerate((ref_cases[v], *test_cases)): print(case, v) # Find files files = [f for f in glob(f'{data_paths[case]}/{glob_strings[case][v]}') if can_retrieve_field(f, v)] # Read data with open_dataset(files, chunks={'time': 1}) as ds: # grab data da = get_data(ds, v) wt = get_area_weights(ds) # Subset data in time da = da.sel(time=slice(t1, t2)) if 'time' in wt.dims: wt = wt.sel(time=slice(t1, t2)) # Compute a time-series of area-means a = area_average(da, wt, dims=[d for d in da.dims if d != 'time']) # Compute daily averages a = a.resample(time='1D').mean(keep_attrs=True) # Scale by scale factor to put all values on same yaxis scale #if v in scale_factors.keys(): a.values = scale_factors[v] * a.values # Compute mean for control case; used to compute relative anomalies from reference means a_mean = a.mean().values if icase == 0: a_cntl = a_mean # Compute anomaly and maybe scale yvals = (a - a_cntl).values #/ abs(a_cntl)).values if v in scale_factors.keys(): yvals = [scale_factors[v] * y for y in yvals] # Define x-axis location for each variable/case. Optionally add some jitter to # the x-axis locations to scatter points horizontally a little so that we can # see them all without overlapping too much. #xvals = ((ivar + 1) * numpy.ones(len(a)) + (icase) * 0.1) dx = 1.0 / len(variables) xloc = ivar + (icase * dx) xvals = numpy.random.normal(loc=xloc, size=len(a), scale=dx/10) # Get labels; use "Reference" for the control cases if icase == 0: label = 'Reference' else: label = case # Make sure we only label each case once if label in labeled_cases: label=None else: labeled_cases.append(label) # Make scatter plot of relative anomalies pl1 = ax.scatter(xvals, yvals, marker='.', alpha=0.5, color=colors[case], label=label) #pl2 = ax2.scatter(xvals, yvals, marker='.', alpha=0.5, color=colors[case], label=None) # Plot mean as a small bar y = numpy.mean(yvals) pl2 = ax.plot([xloc - dx/2.0, xloc + dx/2.0], [y, y], color=colors[case], label=None) # Label means for control case if icase == 0: ax.text(xvals[0] - dx, 0.001, f'{a_cntl:.1f}', ha='right', va='bottom') #ax.text(xvals[0] - dx, -0.001, f'{da.attrs["units"]:^10s}', ha='right', va='top') if v not in units.keys(): print(f'adding unit {a.units} for {v}') units[v] = a.units ax.set_ylabel('Anomaly (scaled)') ax.set_ylim([-max(abs(numpy.array(ax.get_ylim()))), max(abs(numpy.array(ax.get_ylim())))]) xticks = [i + dx * (len(test_cases)) / 2.0 for i in range(len(summary_variables))] ax.set_xticks(xticks) ax.set_xlim([xticks[0]-1, xticks[-1]+1]) ax.set_xticklabels([ f'{short_names[v]} ({units[v]} x{scale_factors[v]})' if v in scale_factors.keys() else f'{short_names[v]} ({units[v]})' for v in summary_variables ], rotation=45.0, ha='right', va='top') ax.grid(axis='both', color='0.2', alpha=0.5, linestyle='dashed') ax.legend(loc='best') figure.savefig(f'{graphics_root}/scream_dyamond2_anomalies.png', bbox_inches='tight', dpi=800) # - # ## Contour maps if do_contour_maps: for vname in variables: # For map plots we only compare two at a time so we can look at differences for cntl_case_name in cntl_case_names: print(f'Making {test_case_name} vs {cntl_case_name} contour maps for {vname}...') # Find files and make sure we can retrieve variable if vname not in glob_strings[test_case_name] or vname not in glob_strings[cntl_case_name]: continue test_files = sorted([f for f in glob(f'{data_paths[test_case_name]}/{glob_strings[test_case_name][vname]}') if can_retrieve_field(f, vname)]) cntl_files = sorted([f for f in glob(f'{data_paths[cntl_case_name]}/{glob_strings[cntl_case_name][vname]}') if can_retrieve_field(f, vname)]) if len(test_files) == 0: print(f' Could not find {vname} in {test_case_name} files; skipping.') continue elif len(cntl_files) == 0: print(f' Could not find {vname} in {cntl_case_name} files; skipping.') continue # Figure out what mapping files we need based on test and obs data if get_grid_name(test_files[0]) != get_grid_name(cntl_files[0]): map_file = get_mapping_file(test_files[0], cntl_files[0], mapping_root) else: map_file = None # Compare maps figname = f'{graphics_root}/maps/{vname}_{test_case_name.replace(" ", "_")}_vs_{cntl_case_name.replace(" ", "_")}_maps.png' os.makedirs(os.path.dirname(figname), exist_ok=True) compare_maps.main( test_files, cntl_files, vname, figname, test_name=test_case_name, cntl_name=cntl_case_name, time_offsets=(time_offsets[test_case_name], time_offsets[cntl_case_name]), map_file=map_file, t1=t1, verbose=True, lbAutoManage=False, lbTitleFontHeightF=0.02, lbLabelFontHeightF=0.02, mpCenterLonF=180.0, ) print('Done making maps.'); sys.stdout.flush() # ## Zonal means if do_zonal_means: for vname in variables: # Find files and make sure we can retrieve variable files, names = zip(*[ (sorted(glob(f'{data_paths[n]}/{glob_strings[n][vname]}')), n) for n in [test_case_name, *cntl_case_names] if vname in glob_strings[n] ]) # Only files we can find variable name in #files, names = zip(*[(f,n) if can_retrieve_field(f, vname) else (None, None) # for (f,n) in zip(files, names)]) ffiles = [] nnames = [] for file_list, name in zip(files, names): files_with_var = [f for f in file_list if can_retrieve_field(f, vname)] if len(files_with_var) > 0: ffiles.append(files_with_var) nnames.append(name) files, names = ffiles, nnames if len(files) < 2: continue # Figure out what mapping files we need based on test and obs data default_grid_file = sorted(glob(f'{data_paths["CERES-SYN"]}/*.nc'))[0] maps = [get_mapping_file(f[0], default_grid_file, mapping_root) if not is_latlon(f[0]) else None for f in files] # Make zonal mean plots print(f'Making zonal mean plots for {vname}...') figname = f'{graphics_root}/zonal/{vname}_{test_case_name.replace(" ", "_")}_vs_all_zonal.png' os.makedirs(os.path.dirname(figname), exist_ok=True) compare_zonal_means.main( files, names, vname, figname, maps=maps, time_offsets=[time_offsets[n] for n in names], t1=t1, verbose=True, dpi=800, ) # ## Time series of global means if do_time_series: for vname in variables: # Find files and make sure we can retrieve variable files, names = zip(*[ (sorted(glob(f'{data_paths[n]}/{glob_strings[n][vname]}')), n) for n in [test_case_name, *cntl_case_names] if vname in glob_strings[n] ]) # Only files we can find variable name in #files, names = zip(*[(f,n) for (f,n) in zip(files, names) if can_retrieve_field(f, vname)]) ffiles = [] nnames = [] for file_list, name in zip(files, names): files_with_var = [f for f in file_list if can_retrieve_field(f, vname)] if len(files_with_var) > 0: ffiles.append(files_with_var) nnames.append(name) files, names = ffiles, nnames if len(files) == 0: continue # Make time series plots print(f'Making time series for {vname}...') figname = f'{graphics_root}/time_series/{vname}_{test_case_name.replace(" ", "_")}_vs_all_timeseries.png' os.makedirs(os.path.dirname(figname), exist_ok=True) #if min([get_data(open_dataset(f), vname).min().values for f in files]) > 0: kwargs['ymin'] = 0 compare_time_series.main( files, vname, figname, names, time_offsets=[time_offsets[n] for n in names], t1=t1, verbose=True, dpi=800 ) print('foo') from e3smplot.mpl import compare_zonal_profiles from e3smplot.e3sm_utils import get_data cases = ('ERA5',) if do_zonal_profiles: for vname in ('T',): #variables: # Find files and make sure we can retrieve variable files, names = zip(*[ (sorted(glob(f'{data_paths[n]}/{glob_strings[n][vname]}')), n) for n in cases if vname in glob_strings[n] ]) # Only files we can find variable name in #files, names = zip(*[(f,n) if can_retrieve_field(f, vname) else (None, None) # for (f,n) in zip(files, names)]) ffiles = [] nnames = [] for file_list, name in zip(files, names): files_with_var = [f for f in file_list if can_retrieve_field(f, vname)] if len(files_with_var) > 0: ffiles.append(files_with_var) nnames.append(name) files, names = ffiles, nnames print(files) #if len(files) < 2: continue # Figure out what mapping files we need based on test and obs data default_grid_file = sorted(glob(f'{data_paths["CERES-SYN"]}/*.nc'))[0] maps = [get_mapping_file(f[0], default_grid_file, mapping_root) if not is_latlon(f[0]) else None for f in files] # Make zonal mean plots print(f'Making zonal mean profile plots for {vname}...') figname = f'{graphics_root}/zonal/{vname}_{test_case_name.replace(" ", "_")}_vs_all_zonal.png' os.makedirs(os.path.dirname(figname), exist_ok=True) compare_zonal_profiles.main( files, names, vname, figname, maps=maps, time_offsets=[time_offsets[n] for n in names], t1=t1, verbose=True, dpi=800, ) levels = (200, 300, 400, 500, 600, 700, 800, 850, 925, 1000) files = sorted(glob(f'{data_paths[test_case_name]}/{glob_strings[test_case_name]["PMID"]}')) pressure_files = [f for f in files if can_retrieve_field(f, 'PMID')] files = sorted(glob(f'{data_paths[test_case_name]}/{glob_strings[test_case_name]["T"]}')) data_files = [f for f in files if can_retrieve_field(f, 'T')] ds_t = xarray.open_mfdataset(data_files, drop_variables=('P3_input_dim', 'P3_output_dim'), chunks={'time': 1, 'lev': 1}) ds_p = xarray.open_mfdataset(pressure_files, drop_variables=('P3_input_dim', 'P3_output_dim'), chunks={'time': 1, 'lev': 1}) from e3smplot.e3sm_utils import get_data t = get_data(ds_t, 'T') p = get_data(ds_p, 'PMID') import dask pressure_levels = xarray.DataArray( numpy.array(levels), dims=('level'), attrs={'long_name': 'Pressure level', 'units': 'hPa'} ) t_int = xarray.DataArray( dask.array.from_array( numpy.nan*numpy.ones([t.time.size, len(levels), t.lat.size, t.lon.size]), chunks=(1, 1, t.lat.size, t.lon.size) ), dims=('time', 'level', 'lat', 'lon'), coords={'time': t.time, 'level': pressure_levels, 'lat': t.lat, 'lon': t.lon} ) *__, pressure_levels_b = xarray.broadcast(t_int, pressure_levels) pressure_levels_b = pressure_levels_b.chunk({'time': 1, 'level': 1}) c1 = dask.array.meshgrid(*[getattr(p, c).data if c != 'time' else numpy.arange(len(p.time)) for c in p.dims], indexing='ij') c2 = dask.array.meshgrid(*[getattr(pressure_levels_b, c).data if c != 'time' else numpy.arange(len(pressure_levels_b.time)) for c in pressure_levels_b.dims], indexing='ij') c1[0] c1[0].rechunk([1, 1, *c1[0].shape[2:]]) c1 = [c.rechunk([1, 1, *c.shape[2:]]) for c in c1] c2 = [c.rechunk([1, 1, *c.shape[2:]]) for c in c2] c1_reshaped = [c.reshape(numpy.prod(p.shape)) for c in c1] c2_reshaped = [c.reshape(numpy.prod(pressure_levels_b.shape)) for c in c2] from scipy.interpolate import griddata s2 = numpy.prod(pressure_levels_b.shape) s1 = numpy.prod(p.shape) result = dask.array.map_overlap(griddata, c1_reshaped, t.data.reshape(s1), c2_reshaped) #.reshape(s2) t_int_mean = t_int.mean(dim=('time', 'lon'), keep_attrs=True) t_mean = t.mean(dim=('time', 'lon'), keep_attrs=True) t_int_mean.shape from matplotlib import pyplot figure, axes = pyplot.subplots(2, 1) # + figure, axes = pyplot.subplots(2, 1) ax = figure.add_axes(axes[0]) pl = ax.pcolormesh(t_mean.lat, t_mean.lev, t_mean) ax.set_xlabel('latitude') ax.set_ylabel(f'{t_mean.lev.long_name} ({t_mean.lev.units})') ax = figure.add_axes(axes[1]) pl = ax.pcolormesh(t_int_mean.lat, t_int_mean.level, t_int_mean) ax.set_xlabel('latitude') ax.set_ylabel(f'{t_int_mean.level.long_name} ({t_int_mean.level.units})') # Reverse direction of vertical axes since using pressure coordinates for ax in axes: ax.set_ylim(ax.get_ylim()[::-1]) # -
28,968
/examples/Demand_Side_Management/DSMtesting.ipynb
c08848dfd52b784513f215e8707f617c8d1b8e8a
[ "MIT" ]
permissive
passion4energy/FINE
https://github.com/passion4energy/FINE
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
255,331
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # DSM (BETA Phase!) import functions import FINE as fn # ## Get basic energy system data dsm_test_esM_ = functions.dsm_test_esM() # ## Run without DSM for reference purposes # + """ Given a one-node system with two generators, check whether the load and generation is shifted correctly in both directions with and without demand side management. """ functions.run_esM_without_DSM() # - # ## Run with DSM (tFwd=tBwd=1) # w/o & w/- time series aggregation functions.run_esM_with_DSM(timeSeriesAggregation=False, tBwd=1, tFwd=1) functions.run_esM_with_DSM(True, numberOfTypicalPeriods=23, tBwd=1, tFwd=1) # ## Run with DSM (tFwd=2, tBwd=0) functions.run_esM_with_DSM(timeSeriesAggregation=False, tBwd=0, tFwd=2) # ## Running into trouble # # If tBwd + tFwd +1 is not divisor of total number of timesteps (24), infeasibilities can occur. These can be fixed with relaxing the dynamic state of charge constaints. Less notable for a larger amount of time steps! functions.run_esM_with_DSM(timeSeriesAggregation=False, tBwd=2, tFwd=2)
1,310
/Source_code/Day2/Day2.ipynb
52e6697f44530caf332694bfbc1a44634a29069a
[]
no_license
jaewookie/datalearning
https://github.com/jaewookie/datalearning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
133,608
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## MNIST 맛보기 # - 손글씨 숫자 인식 import sys, os sys.path.append("../../dataset") import numpy as np import pickle from mnist import load_mnist import matplotlib.pylab as plt # + # (train_image_data, train_label_data), (test_image_data, test_label_data)=load_mnist(flatten = True, normalize = False) # + # print(train_image_data.shape) # print(train_label_data.shape) # print(test_image_data.shape) # print(test_label_data.shape) # + # image = train_image_data[0] # image.shape # + # image_reshaped = image.reshape(28,28) # image_reshaped.shape # + # label = train_label_data[0] # plt.figure(figsize = (4,4)) # plt.title("sample of " + str(label)) # plt.imshow(image_reshaped, cmap = "gray") # plt.show # + # def test_mnist(x): # image = train_image_data[x] # image_reshaped = image.reshape(28,28) # label = train_label_data[x] # plt.figure(figsize = (4,4)) # plt.title("sample of " + str(label)) # plt.imshow(image_reshaped, cmap = "gray") # plt.show # + # test_mnist(59999) # - # ## 신경망의 손글씨 숫자 추론 # - 기존 학습된 자료를 토대로 정확도 확인 def sigmoid(x): return 1/(1+np.exp(-x)) def softmax(matrix): maximum_of_matrix = np.max(matrix) difference_from_maximum = matrix - maximum_of_matrix exponential_of_difference = np.exp(difference_from_maximum) sum_of_exponential= np.sum(exponential_of_difference) y = exponential_of_difference / sum_of_exponential return y # + def get_data(): (image_train, label_train), (image_test, label_test)=load_mnist(flatten = True, normalize = False) return image_test, label_test def init_network(): with open("sample_weight.pkl", 'rb') as f: network = pickle.load(f) return network def predict(network, x): W1, W2, W3 = network['W1'], network['W2'], network['W3'] b1, b2, b3 = network['b1'], network['b2'], network['b3'] a1 = np.dot(x, W1)+b1 z1 = sigmoid(a1) a2 = np.dot(z1, W2)+b2 z2 = sigmoid(a2) a3 = np.dot(z2, W3)+b3 y = softmax(a3) return y # + images, labels = get_data() network = init_network() accuracy_cnt = 0 for i in range(len(images)): y = predict(network, images[i]) p = np.argmax(y) if p == labels[i]: accuracy_cnt += 1 print("Accuracy:"+str(float(accuracy_cnt) / len(images))) # + ## 배치 구현 images, labels = get_data() network = init_network() batch_size = 100 accuracy_cnt = 0 for i in range(0, len(images), batch_size): x_batch = images[i:i+batch_size] y_batch = predict(network, x_batch) p = np.argmax(y_batch, axis=1) accuracy_cnt += np.sum(p == labels[i:i+batch_size]) print("Accuracy:"+str(float(accuracy_cnt) / len(images))) # - # ## Loss Function (손실함수) # - mse ( 평균 제곱 오차 ) # - cee ( 교차 엔트로피 오차 ) y = [0.1, 0.05, 0.6, 0.0, 0.05, 0.1, 0.0, 0.1, 0.0, 0.0] true = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] def mean_squared_error(y, t): return 0.5*np.sum((y-t)**2) mean_squared_error(np.array(y), np.array(true)) y=[0.1, 0.05, 0.1, 0.0, 0.05, 0.1, 0.0, 0.6, 0.0, 0.0] mean_squared_error(np.array(y), np.array(true)) def cross_entropy_error(y, t): delta = 1e-7 return -np.sum(t*np.log(y+delta)) y = [0.1, 0.05, 0.6, 0.0, 0.05, 0.1, 0.0, 0.1, 0.0, 0.0] true = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] cross_entropy_error(np.array(y), np.array(true)) y=[0.1, 0.05, 0.1, 0.0, 0.05, 0.1, 0.0, 0.6, 0.0, 0.0] cross_entropy_error(np.array(y), np.array(true)) # ### mini - batch (x_train, t_train), (x_test, t_test)=load_mnist(normalize = True, one_hot_label=true) print(x_train.shape) print(t_train.shape) train_size = x_train.shape[0] batch_size = 10 batch_mask = np.random.choice(train_size, batch_size) x_batch = x_train[batch_mask] t_batch = t_train[batch_mask] np.random.choice(60000, 10) def cross_entropy_error_one_hot(y, t): if y.ndim == 1: t = t.reshape(1, t.size) y = y.reshape(1, y.size) batch_size = y.shape[0] return -np.sum(t*np.log(y))/batch_size def cross_entropy_error_label(y, t): if y.ndim == 1: t = t.reshape(1, t.size) y = y.reshape(1, y.size) batch_size = y.shape[0] return -np.sum(np.log(y[np.arange(batch_size),t]))/batch_size # ## Numerical Different And Gradiant # - 손실함수의 최소값을 갖는 가중치를 찾기 위해 사용한다. def numerical_differential(f, x): h = 1e-4 return (f(x+h)-f(x-h))/(2*h) def function_1(x): return 0.01*x**2 + 0.1*x x = np.arange(0.0, 20.0, 0.1) y = function_1(x) plt.figure(figsize=(15, 10)) plt.xlabel('x') plt.ylabel('f(x)') plt.plot(x, y) plt.show() numerical_differential(function_1, 5) numerical_differential(function_1, 10) def function_2(x): return x[0]**2 + x[1]**2 def numerical_gradient(f, x): h = 1e-3 grad = np.zeros_like(x) for index in range(x.size): tmp_val = x[index] x[index] = tmp_val+h fxh1 = f(x) x[index] = tmp_val-h fxh2 = f(x) grad[index] = (fxh1 - fxh2 )/(2*h) x[index] = tmp_val return grad numerical_gradient(function_2, np.array([3.0, 4.0])) numerical_gradient(function_2, np.array([0.0, 2.0])) numerical_gradient(function_2, np.array([3.0, 0.0])) def gradient_descent(f, init_x, lr=0.01, step_num = 100): x = init_x x_history = [] for i in range(step_num): x_history.append(x.copy()) grad = numerical_gradient(f, x) x -= lr*grad return x, np.array(x_history) init_x = np.array([-3.0, 4.0]) lr = 0.1 step_num = 100 x, x_history = gradient_descent(function_2, init_x, lr=lr, step_num=step_num) print(x) # ## 신경망에서의 기울기 예제 import sys, os import numpy as np # + def softmax(matrix): maximum_of_matrix = np.max(matrix) difference_from_maximum = matrix - maximum_of_matrix exponential_of_difference = np.exp(difference_from_maximum) sum_of_exponential= np.sum(exponential_of_difference) y = exponential_of_difference / sum_of_exponential return y def cross_entropy_error(y, t): delta = 1e-7 return -np.sum(t*np.log(y+delta)) def numerical_gradient(f, x): h = 1e-3 grad = np.zeros_like(x) it = np.nditer(x, flags=['multi_index'], op_flags=['readwrite']) while not it.finished: idx = it.multi_index tmp_val = x[idx] x[idx] = float(tmp_val)+h fxh1 = f(x) x[idx] = tmp_val - h fxh2 = f(x) grad[idx] = (fxh1 - fxh2) / (2*h) x[idx] = tmp_val it.iternext() return grad # - class simpleNet: def __init__(self): self.w = np.random.randn(2,3) def predict(self, x): return np.dot(x, self.w) def loss(self, x, t): z = self.predict(x) y = softmax(z) loss = cross_entropy_error(y, t) return loss net = simpleNet() print(net.w) x = np.array([0.6, 0.9]) p = net.predict(x) print(p) np.argmax(p) t = np.array([0, 0, 1]) net.loss(x, t) def f(w): return net.loss(x, t) dw = numerical_gradient(f, net.w) print(dw) f = lambda w: net.loss(x, t) dw = numerical_gradient(f, net.w) print(dw) # ## 2층 신경망 클래스 구현하기! import sys, os sys.path.append("../../dataset") import numpy as np import pickle from mnist import load_mnist import matplotlib.pylab as plt def step_function(x): return np.array(x>0, dtype=np.int) def sigmoid(x): return 1/(1+np.exp(-x)) def relu(x): return np.maximum(0,x) def relu_grad(x): grad = np.zeros(x) grad[x>=0] = 1 return grad def sigmoid_grad(x): return (1.0-sigmoid(x))*sigmoid(x) def softmax(x): if x.ndim == 2: x = x.T x = x-np.max(x, axis=0) y = np.exp(x)/np.sum(np.exp(x),axis=0) return y.T x = x - np.max(x) return np.exp(x) / np.sum(np.exp(x)) def mean_squared_error(y,t): return 0.5*np.sum((y-t)**2) def cross_entropy_error(y, t): if y.ndim == 1: t = t.reshape(1, t.size) y = y.reshape(1, y.size) if t.size == y.size: t = t.argmax(axis=1) batch_size = y.shape[0] return -np.sum(np.log(y[np.arange(batch_size), t]+1e-7)) / batch_size def softmax_loss(X,t): y = softmax(X) return cross_entropy_error(y, t) def numerical_gradient(f, x): h = 1e-3 grad = np.zeros_like(x) it = np.nditer(x, flags=['multi_index'], op_flags=['readwrite']) while not it.finished: idx = it.multi_index tmp_val = x[idx] x[idx] = float(tmp_val)+h fxh1 = f(x) x[idx] = tmp_val - h fxh2 = f(x) grad[idx] = (fxh1 - fxh2) / (2*h) x[idx] = tmp_val it.iternext() return grad class TwoLayerNet: def __init__(self, input_size, hidden_size, output_size, weight_init_std=0.01): self.params = {'W1':weight_init_std*np.random.randn(input_size, hidden_size), 'b1':np.zeros(hidden_size), 'W2':weight_init_std*np.random.randn(hidden_size, output_size), 'b2':np.zeros(output_size), } self.count = 0 def predict(self, x): W1, W2 = self.params['W1'], self.params['W2'] b1, b2 = self.params['b1'], self.params['b2'] a1 = np.dot(x, W1) + b1 z1 = sigmoid(a1) a2 = np.dot(z1, W2) + b2 y = sigmoid(a2) return y def loss(self, x, t): y = self.predict(x) return cross_entropy_error(y, t) def accuracy(self, x, t): y=self.predict(x) y=np.argmax(y, axis=1) t=np.argmax(t, axis=1) accuracy = np.sum(y==t) / float(x.shape[0]) return accuracy def numerical_gradient(self, x, t): loss_W = lambda W: self.loss(x, t) grads={'W1':numerical_gradient(loss_W, self.params['W1']), 'b1':numerical_gradient(loss_W, self.params['b1']), 'W2':numerical_gradient(loss_W, self.params['W2']), 'b2':numerical_gradient(loss_W, self.params['b2']) } return grads def gradient(self, x, t): W1, W2 = self.params['W1'], self.params['W2'] b1, b2 = self.params['b1'], self.params['b2'] grads = {} batch_num = x.shape[0] a1 = np.dot(x, W1) + b1 z1 = sigmoid(a1) a2 = np.dot(z1, W2) + b2 y = sigmoid(a2) dy = (y-t)/batch_num grads['W2'] = np.dot(z1.T, dy) grads['b2'] = np.sum(dy, axis=0) dz1 = np.dot(dy, W2.T) da1 = sigmoid_grad(a1)*dz1 grads['W1'] = np.dot(x.T, da1) grads['b1'] = np.sum(da1, axis=0) return grads net = TwoLayerNet(input_size=784, hidden_size=50, output_size=10) print(net.params["W1"].shape) print(net.params["b1"].shape) print(net.params["W2"].shape) print(net.params["b2"].shape) x = np.random.rand(100, 784) y = net.predict(x) # + x = np.random.rand(100, 784) t = np.random.rand(100, 10) grads = net.numerical_gradient(x,t) # - print(grads["W1"].shape) print(grads["b1"].shape) print(grads["W2"].shape) print(grads["b2"].shape) (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) train_loss_list=[] iters_num=10000 train_size = x_train.shape[0] batch_size = 100 learning_rate = 0.1 iter_per_epoch = max(train_size/batch_size, 1) network = TwoLayerNet(input_size=784, hidden_size=50, output_size=10) for i in range(iters_num): batch_mask=np.random.choice(train_size, batch_size) x_batch = x_train[batch_mask] t_batch = t_train[batch_mask] grad = network.gradient(x_batch, t_batch) for key in ('W1', 'b1', 'W2', 'b2'): network.params[key] -= learning_rate*grad[key] loss = network.loss(x_batch, t_batch) train_loss_list.append(loss) if i % iter_per_epoch==0: print("loss: "+str(loss)) # + x = np.arange(len(train_loss_list)) plt.figure(figsize=(15,10)) plt.plot(x, train_loss_list, label='train acc') plt.xlabel('iteration') plt.ylabel('loss') plt.show() # - (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) train_loss_list = [] train_acc_list = [] test_acc_list = [] iters_num = 10000 train_size=x_train.shape[0] batch_size=100 learning_rate=0.1 iter_per_epoch = max(train_size/batch_size, 1) network = TwoLayerNet(input_size=784, hidden_size=50, output_size=10) for i in range(iters_num): batch_mask=np.random.choice(train_size, batch_size) x_batch = x_train[batch_mask] t_batch = t_train[batch_mask] grad = network.gradient(x_batch, t_batch) for key in ('W1', 'b1', 'W2', 'b2'): network.params[key] -= learning_rate*grad[key] loss = network.loss(x_batch, t_batch) train_loss_list.append(loss) if i % iter_per_epoch==0: train_acc = network.accuracy(x_train, t_train) test_acc = network.accuracy(x_test, t_test) train_acc_list.append(train_acc) test_acc_list.append(test_acc) print("loss: "+str(loss)+", train acc: "+str(train_acc)+", test acc: "+str(test_acc)) # + markers = {'train':'o', 'test': 's'} x = np.arange(len(train_acc_list)) plt.figure(figsize=(15,10)) plt.plot(x, train_acc_list, label='train acc') plt.plot(x, test_acc_list, label='test acc', linestyle='--') plt.xlabel('epochs') plt.ylabel('accuracy') plt.ylim(0,1.0) plt.legend(loc='lower right') plt.show() # -
13,705
/ETL_function_test.ipynb
06672075ebd0b3d853f5d614afbca1a6373225c3
[]
no_license
donovancai/Movies-ETL
https://github.com/donovancai/Movies-ETL
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
26,133
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: PythonData # language: python # name: pythondata # --- # + import json import pandas as pd import numpy as np import re from sqlalchemy import create_engine import psycopg2 #from config import db_password import time # 1. Create a function that takes in three arguments; # Wikipedia data, Kaggle metadata, and MovieLens rating data (from Kaggle) def extract_transform_load(x, y, z): # 2. Read in the kaggle metadata and MovieLens ratings CSV files as Pandas DataFrames. kaggle_metadata = pd.read_csv(f'{file_dir}movies_metadata.csv', low_memory=False) ratings = pd.read_csv(f'{file_dir}ratings.csv') # 3. Open the read the Wikipedia data JSON file. with open(f'{file_dir}wikipedia-movies.json', mode='r') as file: wiki_movies_raw = json.load(file) # 4. Read in the raw wiki movie data as a Pandas DataFrame. wiki_movies_df = pd.DataFrame(wiki_movies_raw) # 5. Return the three DataFrames return wiki_movies_df, kaggle_metadata, ratings # 6 Create the path to your file directory and variables for the three files. file_dir = '/home/donovan/SCS/Local/Movies-ETL/' # Wikipedia data wiki_file = f'{file_dir}/wikipedia.movies.json' # Kaggle metadata kaggle_file = f'{file_dir}/movies_metadata.csv' # MovieLens rating data. ratings_file = f'{file_dir}/ratings.csv' # 7. Set the three variables in Step 6 equal to the function created in Step 1. wiki_file, kaggle_file, ratings_file = extract_transform_load(wiki_file, kaggle_file, ratings_file) # - # 8. Set the DataFrames from the return statement equal to the file names in Step 6. wiki_movies_df = wiki_file kaggle_metadata = kaggle_file ratings = ratings_file # 9. Check the wiki_movies_df DataFrame. wiki_movies_df.head() # 10. Check the kaggle_metadata DataFrame. kaggle_metadata.head() # 11. Check the ratings DataFrame. ratings.head() ctangular_426264_5ececb663fa0f.jpeg') # Helper function to read in images labels, boxes, scores = model.predict(image) # Get all predictions on an image predictions = model.predict_top(image) # Same as above, but returns only the top predictions x = visualize.show_labeled_image(image, boxes, labels) # Plot predictions on a single image print(labels, boxes, scores) print(predictions) #plt.imshow(x) # images = [...] # visualize.plot_prediction_grid(model, images) # Plot predictions on a list of images # visualize.detect_video(model, 'input_video.mp4', 'output.avi') # Run inference on a video # visualize.detect_live(model) # Run inference on a live webcam # + colab={"base_uri": "https://localhost:8080/"} id="iXhcJdAHBTeM" outputId="729f2418-293f-4286-c21d-eea5ef871314" # !pip install detecto # + id="G0oSMgTcBHdd" # + id="NStH7ZvhBHg9"
2,932
/.ipynb_checkpoints/cavcalc1000nvt-checkpoint.ipynb
7c427e74e2f1db00ef0d92ff858a5a98ede4fc26
[]
no_license
AHTARazzak/machine_learning_scripts
https://github.com/AHTARazzak/machine_learning_scripts
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
250,961
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python # language: python # name: conda-env-python-py # --- # <a href="https://cognitiveclass.ai/"> # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Ad/CCLog.png" width="200" align="center"> # </a> # <h1>Write and Save Files in Python</h1> # <p><strong>Welcome!</strong> This notebook will teach you about write the text to file in the Python Programming Language. By the end of this lab, you'll know how to write to file and copy the file.</p> # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="https://cocl.us/NotebooksPython101"> # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Ad/TopAd.png" width="750" align="center"> # </a> # </div> # <h2>Table of Contents</h2> # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <ul> # <li><a href="write">Writing Files</a></li> # <li><a href="copy">Copy a File</a></li> # </ul> # <p> # Estimated time needed: <strong>15 min</strong> # </p> # </div> # # <hr> # <h2 id="write">Writing Files</h2> # We can open a file object using the method <code>write()</code> to save the text file to a list. To write the mode, argument must be set to write <b>w</b>. Let’s write a file <b>Example2.txt</b> with the line: <b>“This is line A”</b> # + # Write line to file with open('/resources/data/Example2.txt', 'w') as writefile: writefile.write("This is line A") # - # We can read the file to see if it worked: # + jupyter={"outputs_hidden": false} # Read file with open('/resources/data/Example2.txt', 'r') as testwritefile: print(testwritefile.read()) # - # We can write multiple lines: # + # Write lines to file with open('/resources/data/Example2.txt', 'w') as writefile: writefile.write("This is line A\n") writefile.write("This is line B\n") # - # The method <code>.write()</code> works similar to the method <code>.readline()</code>, except instead of reading a new line it writes a new line. The process is illustrated in the figure , the different colour coding of the grid represents a new line added to the file after each method call. # <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%204/Images/WriteLine.png" width="500" /> # You can check the file to see if your results are correct # + jupyter={"outputs_hidden": false} # Check whether write to file with open('/resources/data/Example2.txt', 'r') as testwritefile: print(testwritefile.read()) # - # By setting the mode argument to append **a** you can append a new line as follows: # + jupyter={"outputs_hidden": false} # Write a new line to text file with open('/resources/data/Example2.txt', 'a') as testwritefile: testwritefile.write("This is line C\n") # - # You can verify the file has changed by running the following cell: # + jupyter={"outputs_hidden": false} # Verify if the new line is in the text file with open('/resources/data/Example2.txt', 'r') as testwritefile: print(testwritefile.read()) # - # We write a list to a <b>.txt</b> file as follows: # + jupyter={"outputs_hidden": false} # Sample list of text Lines = ["This is line A\n", "This is line B\n", "This is line C\n"] Lines # + jupyter={"outputs_hidden": false} # Write the strings in the list to text file with open('Example2.txt', 'w') as writefile: for line in Lines: print(line) writefile.write(line) # - # We can verify the file is written by reading it and printing out the values: # + jupyter={"outputs_hidden": false} # Verify if writing to file is successfully executed with open('Example2.txt', 'r') as testwritefile: print(testwritefile.read()) # - # We can again append to the file by changing the second parameter to <b>a</b>. This adds the code: # + jupyter={"outputs_hidden": false} # Append the line to the file with open('Example2.txt', 'a') as testwritefile: testwritefile.write("This is line D\n") # - # We can see the results of appending the file: # + jupyter={"outputs_hidden": false} # Verify if the appending is successfully executed with open('Example2.txt', 'r') as testwritefile: print(testwritefile.read()) # - # <hr> # <h2 id="copy">Copy a File</h2> # Let's copy the file <b>Example2.txt</b> to the file <b>Example3.txt</b>: # + jupyter={"outputs_hidden": false} # Copy file to another with open('Example2.txt','r') as readfile: with open('Example3.txt','w') as writefile: for line in readfile: writefile.write(line) # - # We can read the file to see if everything works: # + jupyter={"outputs_hidden": false} # Verify if the copy is successfully executed with open('Example3.txt','r') as testwritefile: print(testwritefile.read()) # - # After reading files, we can also write data into files and save them in different file formats like **.txt, .csv, .xls (for excel files) etc**. Let's take a look at some examples. # Now go to the directory to ensure the <b>.txt</b> file exists and contains the summary data that we wrote. # <hr> # <h2>The last exercise!</h2> # <p>Congratulations, you have completed your first lesson and hands-on lab in Python. However, there is one more thing you need to do. The Data Science community encourages sharing work. The best way to share and showcase your work is to share it on GitHub. By sharing your notebook on GitHub you are not only building your reputation with fellow data scientists, but you can also show it off when applying for a job. Even though this was your first piece of work, it is never too early to start building good habits. So, please read and follow <a href="https://cognitiveclass.ai/blog/data-scientists-stand-out-by-sharing-your-notebooks/" target="_blank">this article</a> to learn how to share your work. # <hr> # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <h2>Get IBM Watson Studio free of charge!</h2> # <p><a href="https://cocl.us/NotebooksPython101bottom"><img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Ad/BottomAd.png" width="750" align="center"></a></p> # </div> # <h3>About the Authors:</h3> # <p><a href="https://www.linkedin.com/in/joseph-s-50398b136/" target="_blank">Joseph Santarcangelo</a> is a Data Scientist at IBM, and holds a PhD in Electrical Engineering. His research focused on using Machine Learning, Signal Processing, and Computer Vision to determine how videos impact human cognition. Joseph has been working for IBM since he completed his PhD.</p> # Other contributors: <a href="www.linkedin.com/in/jiahui-mavis-zhou-a4537814a">Mavis Zhou</a> # <hr> # <p>Copyright &copy; 2018 IBM Developer Skills Network. This notebook and its source code are released under the terms of the <a href="https://cognitiveclass.ai/mit-license/">MIT License</a>.</p>
7,177
/notebooks/k_nearest_neighbors.ipynb
1292b0e339a63c9ed5c590cb8992e4c7bada74cb
[]
no_license
jbrownuf07/datasciencelearnings
https://github.com/jbrownuf07/datasciencelearnings
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
1,450
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # K-Nearest Neighbors # # # [Reference](https://machinelearningmastery.com/tutorial-to-implement-k-nearest-neighbors-in-python-from-scratch/) DATA_FILE_PATH = '../data/iris.csv' # # Steps in KNN # # * **Step 1:** Calculate the Euclidean Distance # * **Step 2:** Get Nearest Neighbors # * **Step 3:** Make Predictions # Define Euclidean Distance between 2 rows def dist(row1, row2): distance = 0.0 for i in range(len(row1) - 1): distance += (row1[i] - row2[i])**2 return sqrt(distance) ence. # ## take the words/ songs from dj tweets to see their influence on the community as a whole. # ## who are the top retweeters? favs, mentions # # ## get top 100 retweeters of a particular tweet # # # + import twitter, sys, csv #Twitter API credentials consumer_key = "hIoOQQgK5HusBIbgAUwHZRmBJ" consumer_secret = "3l4uYDcfwk0tRH5fSRWFuM1vDpG2K1nsmllCOo7aH85Ktd4HFP" access_token = "186711396-Q9cxllquYn9FQcXxPwQGl9eDf20FtSgFagYDeboS" access_token_secret = "69J7Jex6hNvQDCxoK6wfBoHn6IJQraGU5bN605KafrNHP" auth=twitter.oauth.OAuth(access_token, access_token_secret, consumer_key, consumer_secret) q='kaskade' print sys.stderr, "Filtering the public timeline = \"%s\"" % q twitter_api=twitter.Twitter(auth=auth) twitter_stream= twitter.TwitterStream(auth=twitter_api.auth) stream= twitter_stream.statuses.filter(track=q) with open("output2.csv", "a") as csv_file: csv.writer(csv_file).writerow(["ID_STR", "CREATED_AT","SCREEN_NAME", "TEXT", "HASHTAGS"]) for tweet in stream: print(tweet)['id_str'],tweet['created_at'], tweet['user']['screen_name'].encode('utf-8'), tweet['text'].encode('utf-8'), [hashtag['text'].encode('utf-8') for hashtag in tweet['entities']['hashtags']] for hashtag in tweet['entities']['hashtags']: csv.writer(csv_file).writerow([ tweet['id_str'], tweet['created_at'], tweet['user']['screen_name'].encode('utf-8'), tweet['text'].encode('utf-8'), hashtag['text'].encode('utf-8') ]) # - import pandas as pd calvin=pd.read_csv('tweets.csv') calvin calvin=calvin.drop(['location'], axis=1) calvin.head() pd.get_dummies(calvin)
2,595
/notebooks/API/twitch_api_calls.ipynb
f4bf18e835b483aebe235b31649d7e86ca61dfbf
[]
no_license
katerinadek/StarFish
https://github.com/katerinadek/StarFish
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
3,854
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import requests from twitchAPI.twitch import Twitch CLIENT_ID = 'no' CLIENT_SECRET = 'i said no' # Create an instance of the twitch API client twitch = Twitch(CLIENT_ID, CLIENT_SECRET) twitch.authenticate_app([]) # Get the ID of the user accessing the resource user_info = twitch.get_users(logins=['Awesimous']) user_id = user_info['data'][0]['id'] def authorize(client_id = CLIENT_ID, client_secret = CLIENT_SECRET): '''Get OAuth token''' x = requests.post(f"https://id.twitch.tv/oauth2/token?client_id={client_id}&client_secret={client_secret}&grant_type=client_credentials") x = x.json() token = x["access_token"] return token def request(api_endpoint, headers, params): '''Return a resource as json''' response = requests.get(url = api_endpoint, headers = headers, params = params).json() return response # - # Get the user token token = authorize() # + # Define the endpoint for the "Search Categories" resource base_uri = 'https://api.twitch.tv/helix/' API_ENDPOINT = base_uri + 'search/channels' # Define the parameters of the call params = { 'query': 'DanGheesling', 'first': 1 } # Use the token to "authenticate" headers = { 'Client-ID' : CLIENT_ID, 'Authorization': f'Bearer {token}' } response = request(API_ENDPOINT, headers, params) response # Quill18: 18219250 # Northernlion: 14371185 # DanGheesling: 30923466 # + API_ENDPOINT = base_uri + 'teams/channel' # Define the parameters of the call params = { 'broadcaster_id': '30923466' } # Use the token to "authenticate" headers = { 'Client-ID' : CLIENT_ID, 'Authorization': f'Bearer {token}' } response = request(API_ENDPOINT, headers, params) response # - API_ENDPOINT, token, headers, params, CLIENT_SECRET
2,075
/Week4_31052021/Day2/rolling_statistics.ipynb
d2a4a752f787feafc1badee11bfdf8ff81e6e1ab
[]
no_license
AbigalChulchill/MyFinTechHomework
https://github.com/AbigalChulchill/MyFinTechHomework
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
225,072
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import pandas as pd import numpy as np import seaborn as sns import matplotlib # %matplotlib inline train = pd.read_csv("train.csv",encoding='latin_1',na_values=['#NAME?']) test = pd.read_csv("test.csv",encoding='latin_1',na_values=['#NAME?']) ss = pd.read_csv("sampleSubmission.csv",encoding='latin_1',na_values=['#NAME?']) train.head() test.head() print(train.shape) print(test.shape) print(ss.shape) def find_outliers_tukey(x): q1 = x.quantile(.25) q3 = x.quantile(.75) iqr = q3 - q1 floor = q1 - 1.5*iqr ceiling = q3 + 1.5*iqr outlier_indices = list(x.index[(x < floor) | (x > ceiling)]) outlier_values = list(x[outlier_indices]) return outlier_indices, outlier_values print("x9") x9_indices,x9_values = find_outliers_tukey(train['x9']) print(np.sort(x9_values)) print("x11") x11_indices,x11_values = find_outliers_tukey(train['x11']) print(np.sort(x11_values)) #train["x9"] = np.where(df1[x9] >250, 3,df1['infant deaths']) train.loc[train.x9>250,"x9"]=np.nan train.x9 = train.x9.transform(lambda x : x.fillna(x.median())) import numpy as np import math def power(value): if (value > 250): return train.x9.median() else: return value #train["x9"] = train["x9"].apply(power) print("x9") x9_indices,x9_values = find_outliers_tukey(train['x9']) print(np.sort(x9_values)) train train["source"] = "train" test["source"] = "test" dataf = pd.concat([train,test],axis=0,sort=False) dataf.head() dataf.nunique() dataf.isna().sum() dataf[dataf.duplicated()].sum() pandas_profiling.ProfileReport(dataf) # + # calculate the correlation matrix corr = dataf.corr() # plot the heatmap sns.heatmap(corr, xticklabels=corr.columns, yticklabels=corr.columns) # - dataf.x9.value_counts() dataf.x8.value_counts() dataf.describe(percentiles=[0.95]) def applymode(x): a = x.mode()[0] return x.fillna(a) dataf.x6=dataf.groupby(["x14"]).x6.transform(applymode) dataf.x8=dataf.groupby(["x14"]).x8.transform(applymode) dataf.x13=dataf.groupby(["x14","x8"]).x13.transform(applymode) dataf.x15=dataf.groupby(['x11']).x15.transform(applymode) dataf.drop(columns=["x2","x3","x4","x10","x16","x17","x18","x19"],inplace=True) #x12 dataf_col_category = dataf.select_dtypes(exclude=[np.number]).columns dataf_col_Integer = dataf.columns.difference(dataf_col_category) dataf[dataf_col_category].nunique() dataf_one_hot = pd.get_dummies(dataf[dataf_col_category]) data_model = pd.concat([dataf_one_hot,dataf[dataf_col_Integer]],axis=1) data_model.head() train_modified = data_model.loc[data_model.source_train==1.0,:] test_modified = data_model.loc[data_model.source_train==0.0,:] train_modified=train_modified.drop(['source_test', 'source_train'],axis=1) test_modified=test_modified.drop(['source_test', 'source_train','y'],axis=1) train_modified.head() test_modified.head() train_modified.to_csv("train_ready_for_model.csv",index=False) test_modified.to_csv("test_ready_for_model.csv",index=False) p).split("(")[0] decomp_method = suff+"/" if not os.path.exists(BES_data_folder+Treatment+decomp_method): os.makedirs(BES_data_folder+Treatment+decomp_method) fname = BES_data_folder+Treatment+decomp_method+suff+".pkl" with open(fname, "wb") as f: pickle.dump( decomp, f ) fname = BES_data_folder+Treatment+decomp_method+suff+".hdf" BES_decomp.to_hdf(fname,suff) ## add load/save # - # LOAD decomp results if False or ( 'decomp' not in globals() ): suff = "FactorAnalysis" print("Loading: ",suff) decomp_method = suff+"/" if not os.path.exists(BES_data_folder+Treatment+decomp_method): os.makedirs(BES_data_folder+Treatment+decomp_method) fname = BES_data_folder+Treatment+decomp_method+suff+".pkl" with open(fname, "rb") as f: decomp = pickle.load(f) fname = BES_data_folder+Treatment+decomp_method+suff+".hdf" BES_decomp = pd.read_hdf(fname) n_components = decomp.components_.shape[0] # + figsz = (3,3) if hasattr(decomp, 'explained_variance_ratio_'): print('explained variance ratio (first 30): %s' % str(decomp.explained_variance_ratio_[0:30]) ) if hasattr(decomp, 'explained_variance_'): print('explained variance (first 30): %s' % str(decomp.explained_variance_[0:30]) ) plt.figure(figsize = figsz) plt.plot( range(1,n_components+1), decomp.explained_variance_, linewidth=2) plt.xlabel('n_components') plt.ylabel('explained_variance_') if hasattr(decomp, 'noise_variance_'): if isinstance(decomp.noise_variance_, float): print('noise variance: %s' % str(decomp.noise_variance_) ) if hasattr(decomp, 'score'): print('average log-likelihood of all samples: %s' % str(decomp.score(BES_std)) ) if hasattr(decomp, 'score_samples') and not np.isinf( decomp.score(BES_std) ): pd.DataFrame( decomp.score_samples(BES_std) ).hist(bins=100,figsize = figsz) if hasattr(decomp, 'n_iter_'): print('number of iterations: %s' % str(decomp.n_iter_) ) if hasattr(decomp, 'loglike_'): plt.figure(figsize = figsz) plt.plot( decomp.loglike_, linewidth=2 ) plt.xlabel('n_iter') plt.ylabel('log likelihood') if hasattr(decomp, 'error_'): plt.figure(figsize = figsz) plt.plot( decomp.error_, linewidth=2) plt.xlabel('n_iter') plt.ylabel('error') # + # 0.07954041 0.03892755 0.03553862 0.01885494 0.01562524 # 50.4286187 24.68006591 22.53148776 11.95403344 9.90639926 # - decomp # + # # %%time n_comps = min(n_components,20) comp_labels = {} for comp_no in range(0,n_comps): fig, axes = plt.subplots(ncols=2) ax = axes[1] comp = pd.DataFrame( decomp.components_[comp_no], index = BES_reduced.columns, columns = ["components_"] ) comp["comp_absmag"] = comp["components_"].abs() comp = comp.sort_values(by="comp_absmag",ascending=True) ax.set_xlabel("abs. variable coeffs") ax.set_title("Histogram of abs. variable coeffs") comp["comp_absmag"].hist( bins=30, ax=ax, figsize=(10,6) ) # set top abs_mag variable to label comp_labels[comp_no] = comp.index[-1:][0] # last label (= highest magnitude) # if top abs_mag variable is negative if comp[-1:]["components_"].values[0] < 0: comp["components_"] = -comp["components_"] decomp.components_[comp_no] = -decomp.components_[comp_no] BES_decomp[comp_no] = -BES_decomp[comp_no] ax = axes[0] title = "Comp. "+str(comp_no)+" (" + comp.index[-1:][0] + ")" comp_labels[comp_no] = title ax.set_title( title ) ax.set_xlabel("variable coeffs") xlim = (min(comp["components_"].min(),-1) , max(comp["components_"].max(),1) ) comp["components_"].tail(30).plot( kind='barh', ax=ax,figsize=(10,6), xlim=xlim ) fname = BES_data_folder + Treatment +decomp_method + title.replace("/","_") +".png" fig.savefig( fname, bbox_inches='tight' ) if comp_no >2: plt.close() # + x_axis = 0 y_axis = 1 xlim = np.floor( BES_decomp.loc[ :, x_axis ].min() ), np.ceil( BES_decomp.loc[ :, x_axis ].max() ) ylim = np.floor( BES_decomp.loc[ :, y_axis ].min() ), np.ceil( BES_decomp.loc[ :, y_axis ].max() ) if suff == 'SparsePCA': xlim = BES_decomp.loc[ :, x_axis ].min() , BES_decomp.loc[ :, x_axis ].max() ylim = BES_decomp.loc[ :, y_axis ].min() , BES_decomp.loc[ :, y_axis ].max() # - # + # for ordinal categorical # winter, autumn cmap_name = "winter" decomp_label_col = 'lr_scale__Right' label_stub = decomp_label_col.split("__")[0] fig = plt.figure( figsize=(16,10) ) plt.scatter(BES_decomp.loc[ :, x_axis ], BES_decomp.loc[ :, y_axis ], cmap = plt.get_cmap(cmap_name), c = BES_reduced[decomp_label_col].values, edgecolor = "None", alpha = 0.9) # edgecolors=col, plt.xlim(xlim) plt.ylim(ylim) cats = cat_dictionary[ label_stub ] labels = ( cats[0], str(0), cats[-1], str(len( cats ) - 1) ) plt.colorbar().set_label('{} = {}, {} = {}'.format(*labels)) plt.title( 'Decomposition of BES dataset; labelled variable: ' + decomp_label_col ) plt.xlabel( comp_labels[x_axis] ) plt.ylabel( comp_labels[y_axis] ) plt.show() fig.savefig( BES_data_folder+Treatment+decomp_method+label_stub+".png", bbox_inches='tight' ) # + # for ordinal categorical # winter, autumn cmap_name = "winter" decomp_label_col = 'al_scale__Authoritarian' label_stub = decomp_label_col.split("__")[0] fig = plt.figure( figsize=(16,10) ) plt.scatter(BES_decomp.loc[ :, x_axis ], BES_decomp.loc[ :, y_axis ], cmap = plt.get_cmap(cmap_name), c = BES_reduced[decomp_label_col].values, edgecolor = "None", alpha = 0.9) # edgecolors=col, plt.xlim(xlim) plt.ylim(ylim) cats = cat_dictionary[ label_stub ] labels = ( cats[0], str(0), cats[-1], str(len( cats ) - 1) ) plt.colorbar().set_label('{} = {}, {} = {}'.format(*labels)) plt.title( 'Decomposition of BES dataset; labelled variable: ' + decomp_label_col ) plt.xlabel( comp_labels[x_axis] ) plt.ylabel( comp_labels[y_axis] ) plt.show() fig.savefig( BES_data_folder+Treatment+decomp_method+label_stub+".png", bbox_inches='tight' ) # + # SUPER USEFUL FOR FEATURE EXTRACTION/VARIABLE PREP! if hasattr(decomp, 'noise_variance_'): if not isinstance(decomp.noise_variance_, float): NoiseVariance = pd.DataFrame( decomp.noise_variance_ , index = BES_std.columns, columns = ["noise_variance_"]) NoiseVariance.hist( bins = int(len( NoiseVariance )/10) ) NoiseVariance = NoiseVariance.sort_values(by="noise_variance_") display( NoiseVariance ) display( NoiseVariance[ NoiseVariance["noise_variance_"]>.9 ].sort_index() ) # - # + # # who are the "improbables"? # if hasattr(decomp, 'score_samples'): # most_likely = pd.DataFrame(decomp.score_samples(BES_std)).quantile(.999).values[0] # least_likely = pd.DataFrame(decomp.score_samples(BES_std)).quantile(.001).values[0] # print("least likely") # display(BES_num_and_cat.loc[ BES_reduced.index[decomp.score_samples(BES_std)<least_likely] ]) # # who are the "stereotypes"? # print("most likely") # display(BES_num_and_cat.loc[ BES_reduced.index[decomp.score_samples(BES_std)>most_likely ] ]) # # check to see balance of missing values! # - # + # # %%time import numpy as np from sklearn.cluster import MeanShift, estimate_bandwidth from sklearn.datasets.samples_generator import make_blobs X = X_r # The following bandwidth can be automatically detected using bandwidth = estimate_bandwidth(X, quantile=0.2, n_samples=500) ms = MeanShift(bandwidth=bandwidth, bin_seeding=True) ms.fit(X) labels = ms.labels_ cluster_centers = ms.cluster_centers_ labels_unique = np.unique(labels) n_clusters_ = len(labels_unique) print("number of estimated clusters : %d" % n_clusters_) fig = plt.figure( figsize=(16,10) ) plt.clf() colors = cycle('bgrcmykbgrcmykbgrcmykbgrcmyk') for k, col in zip(range(n_clusters_), colors): my_members = labels == k cluster_center = cluster_centers[k] plt.plot(X[my_members, x_axis], X[my_members, y_axis], col + '.') plt.plot(cluster_center[x_axis], cluster_center[y_axis], 'o', markerfacecolor=col, markeredgecolor='k', markersize=14) plt.xlim(xlim) plt.ylim(ylim) plt.xlabel( comp_labels[x_axis] ) plt.ylabel( comp_labels[y_axis] ) plt.title('Estimated number of clusters: %d' % n_clusters_) # plt.show() fig.savefig(BES_data_folder+Treatment+decomp_method+"Cluster_estimation.png",bbox_inches='tight') # - # + colours = cycle('ycmkgbr') markers = cycle('v^<>,oD*x+') cat_col_mar_dict = {} # category-colour-marker dictionary # basic set of common ones! cat_col_mar_dict['Conservative'] = ('b', '.') cat_col_mar_dict['Conservative Party'] = ('b', '.') cat_col_mar_dict['The Conservative candidate'] = ('b', '.') cat_col_mar_dict['Labour'] = ('r', '.') cat_col_mar_dict['Labour Party'] = ('r', '.') cat_col_mar_dict['The Labour candidate'] = ('r', '.') cat_col_mar_dict['Green Party'] = ('g', '.') cat_col_mar_dict['The Green candidate'] = ('g', '.') cat_col_mar_dict['Plaid Cymru'] = ('k', '.') cat_col_mar_dict['The Plaid Cymru candidate'] = ('k', '.') cat_col_mar_dict['Scottish National Party'] = ('c', '.') cat_col_mar_dict['United Kingdom Independence Party'] = ('m', '.') cat_col_mar_dict['The UKIP candidate'] = ('m', '.') cat_col_mar_dict['Liberal Democrat'] = ('orange', '.') cat_col_mar_dict['Liberal Democrats'] = ('orange', '.') cat_col_mar_dict['The Liberal Democrat candidate'] = ('orange', '.') # + # %%time dummy_list = var_type[ var_type["type"]==3 ].index # non-ordinal categories fig_no = 0 for decomp_label_col in dummy_list: if decomp_label_col in ["profile_religion","country", 'polKnowMay','polKnowOsborne', 'polKnowClegg', 'polKnowBercow', 'polKnowMiliband', 'registered', 'ns_sec']: continue fig = plt.figure( figsize=(16,10) ) decomp_label_categories = [ x for x in BES_reduced.columns if (decomp_label_col + "_") in x ] if len(decomp_label_categories) == 0: continue # 'No party is best able to handle this issue' drop_cat_list = ['profile_education_age', 'profile_ethnicity_White British'] for drop_cat in drop_cat_list: if drop_cat in decomp_label_categories: decomp_label_categories.remove(drop_cat) replace_dict = {'Scottish National Party (SNP)' : 'Scottish National Party', 'United Kingdom Independence Party (UKIP)' : 'United Kingdom Independence Party'} lab_to_cat = {} sample_sizes = {} for cat in decomp_label_categories: lab = re.search('_([^_]+)$',cat).groups()[0] if lab in replace_dict.keys(): # replace party name variants with single version lab = replace_dict[lab] if lab not in cat_col_mar_dict.keys(): # try to give parties consistent colour, marker pairs cat_col_mar_dict[lab] = (next(colours),next(markers)) sample_sizes[lab] = sum( BES_reduced[ cat ]==1 ) lab_to_cat[lab] = cat for lab in sorted(sample_sizes, key=sample_sizes.get, reverse=True): samp = sample_sizes[lab] (col, mar) = cat_col_mar_dict[lab] cat_entries = BES_reduced[ lab_to_cat[lab] ]==1 plt.scatter(BES_decomp.loc[ cat_entries, x_axis ], BES_decomp.loc[ cat_entries, y_axis ], c= col, marker=mar, label=lab + "(N="+str(samp)+")", edgecolors=col, alpha = .9 ) plt.xlim(xlim) plt.ylim(ylim) plt.xlabel( comp_labels[x_axis] ) plt.ylabel( comp_labels[y_axis] ) plt.legend(prop={'size':8}) plt.title('Decomposition of BES dataset; labelled variable: ' + decomp_label_col) fig.savefig( BES_data_folder+Treatment+decomp_method+decomp_label_col, bbox_inches='tight' ) if fig_no >1: plt.close() fig_no = fig_no + 1 # - # + col = "euRefVote" df = BES_decomp.loc[ : , [x_axis,y_axis] ].copy() max_cols = 4 # reduce length of subcategories cats = list(cat_dictionary[col]) for catno in range( len( cats ) ): words = cats[catno].split(" ") word_array = np.array( [len(x) for x in words] ) + 1 max_words = np.where( np.cumsum( word_array )<25 )[0].max() cats[catno] = " ".join( words[0:max_words+1] ) # add a category column to split the graphs on df[col] = BES_numeric[col].astype('category').cat.rename_categories( cats ) # add N=??? sample size to each category type! sample_sizes = df[col].value_counts().loc[cats].values cat_plus_sample_sizes = ["".join([x," (N=", str(y),")"]) for x,y in zip(cats, sample_sizes)] df[col].cat.rename_categories( cat_plus_sample_sizes, inplace=True ) # formatting n_cols = len(df[col].dropna().unique()) n_rows = np.ceil(n_cols/max_cols) col_wrap = min(max_cols,n_cols) size = 13.5/col_wrap # make the actual graphs g = sns.FacetGrid(df, col=col,size=size,col_wrap=col_wrap) g.map(sns.kdeplot, x_axis, y_axis, shade=True, shade_lowest=False).set_titles("{col_name}") # plt.xlim(xlim) # plt.ylim(ylim) # plt.xlim(-3, 3) # plt.ylim(-3, 3) # labels and title plt.subplots_adjust( top = 1-( .05 + .01*n_rows ) ) g.set_xlabels( comp_labels[x_axis] ) g.set_ylabels( comp_labels[y_axis] ) g.fig.suptitle(col, fontsize=14, fontweight='bold') # save to file g.savefig(BES_data_folder+Treatment+decomp_method+col+"_kde", bbox_inches='tight') # - # + # # %%time dummy_list = var_type[ var_type["type"]==3 ].index sns.set(font_scale=.8) # non-ordinal categories fig_no = 0 for decomp_label_col in dummy_list: if decomp_label_col in ["profile_religion","country", 'polKnowMay','polKnowOsborne', 'polKnowClegg', 'polKnowBercow', 'polKnowMiliband', 'registered', 'country_of_residence1','country_of_residence2', 'polKnowMiliband', 'polKnowClegg', 'polKnowOsborne', 'polKnowMay', 'polKnowBercow', 'polKnowKerryW9', 'polKnowHollandeW9', 'polKnowNetanyahuW9', 'polKnowPutinW9', 'polKnowMerkelW9', 'polKnowAssadW9', 'ns_sec', 'EUMIICategory', 'age', 'Age', 'euRefExpectation', 'country_of_residence2', 'country_of_residence1', 'profile_lea', 'profile_oslaua', 'pano', 'EUMIICategory']: continue # col = "euRefVote" # fig = plt.figure( figsize=(16,10) ) col = decomp_label_col df = BES_decomp.loc[ : , [x_axis,y_axis] ].copy() max_cols = 4 # reduce length of subcategories cats = list(cat_dictionary[col]) for catno in range( len( cats ) ): words = cats[catno].split(" ") word_array = np.array( [len(x) for x in words] ) + 1 max_words = np.where( np.cumsum( word_array )<30 )[0].max() cats[catno] = " ".join( words[0:max_words+1] ) # NOTE - can cause problems if 2+ truncated subcategories are identical # add a category column to split the graphs on df[col] = BES_numeric[col].astype('category').cat.rename_categories( cats ) # add N=??? sample size to each category type! sample_sizes = df[col].value_counts().loc[cats].values cat_plus_sample_sizes = ["".join([x," (N=", str(y),")"]) for x,y in zip(cats, sample_sizes)] df[col].cat.rename_categories( cat_plus_sample_sizes, inplace=True ) # formatting n_cols = len(df[col].dropna().unique()) n_rows = np.ceil(n_cols/max_cols) col_wrap = min(max_cols,n_cols) size = 13.5/col_wrap # make the actual graphs g = sns.FacetGrid(df, col=col,size=size,col_wrap=col_wrap) g.map(sns.kdeplot, x_axis, y_axis, shade=True, shade_lowest=False).set_titles("{col_name}") plt.xlim(xlim) plt.ylim(ylim) # plt.xlim(-3, 3) # plt.ylim(-3, 3) # labels and title plt.subplots_adjust( top = 1-( .05 + .01*n_rows ) ) g.set_xlabels( comp_labels[x_axis] ) g.set_ylabels( comp_labels[y_axis] ) g.fig.suptitle(col, fontsize=14, fontweight='bold') # save to file g.savefig(BES_data_folder+Treatment+decomp_method+col+"_kde", bbox_inches='tight') if fig_no >1: plt.close() fig_no = fig_no + 1 # + # %%time # col = "edlevel" # df = BES_decomp.loc[ : , [x_axis,y_axis] ].copy() # max_cols = 4 # # reduce length of subcategories # cats = list(cat_dictionary[col]) # for catno in range( len( cats ) ): # words = cats[catno].split(" ") # word_array = np.array( [len(x) for x in words] ) + 1 # max_words = np.where( np.cumsum( word_array )<25 )[0].max() # cats[catno] = " ".join( words[0:max_words+1] ) # add a category column to split the graphs on # df[col] = BES_numeric[col].astype('category').cat.rename_categories( cats ) # # add N=??? sample size to each category type! # sample_sizes = df[col].value_counts().loc[cats].values # cat_plus_sample_sizes = ["".join([x," (N=", str(y),")"]) for x,y in zip(cats, sample_sizes)] # df[col].cat.rename_categories( cat_plus_sample_sizes, inplace=True ) # # formatting # n_cols = len(df[col].dropna().unique()) # n_rows = np.ceil(n_cols/max_cols) # col_wrap = min(max_cols,n_cols) # size = 13.5/col_wrap # make the actual graphs # g = sns.FacetGrid(df, col=col,size=size,col_wrap=col_wrap) fig = plt.figure( figsize=(16,10) ) sns.kdeplot(BES_decomp.loc[ : , [x_axis,y_axis] ], shade=True, shade_lowest=False, n_levels=20) #, shade=True, shade_lowest=False) # g.set_titles("{col_name}") # plt.xlim(xlim) # plt.ylim(ylim) # plt.xlim(-3, 3) # plt.ylim(-3, 3) # labels and title # plt.subplots_adjust( top = 1-( .05 + .01*n_rows ) ) # g.set_xlabels( comp_labels[x_axis] ) # g.set_ylabels( comp_labels[y_axis] ) # g.fig.suptitle(col, fontsize=14, fontweight='bold') plt.xlabel( comp_labels[x_axis] ) plt.ylabel( comp_labels[y_axis] ) plt.title('Decomposition of BES dataset; Overview') # save to file fig.savefig(BES_data_folder+Treatment+decomp_method+"overview"+"_kde", bbox_inches='tight') # - # + # %%time # Load BES Panel for Wave 8 BES_Panel = pd.read_stata(BES_data_folder+"BES2015_W8_v1.3.dta") # 130Mb #(31409, 733) # BES_Panel = pd.read_stata(BES_data_folder+BES2015_W8_v1.6.dta") print( BES_Panel.shape ) # - # + BES_Panel = pd.read_stata(BES_data_folder+"BES2015_W8_v1.3.dta") weights = BES_Panel['wt_full_W8'] print(weights.shape) samples = BES_decomp.loc[ : , [x_axis,y_axis] ] samples = np.swapaxes(samples,0,1) print(samples.shape) # - #create mesh grid x = np.linspace(xlim[0], xlim[1], 100) y = np.linspace(ylim[0], ylim[1], 100) xx, yy = np.meshgrid(x, y) #Evaluate the kde on a grid pdf = gaussian_kde(samples.values, weights=weights.values) zz = pdf((np.ravel(xx), np.ravel(yy))) zz = np.reshape(zz, xx.shape) gc.collect() kwargs = dict(extent=(xlim[0], xlim[1], ylim[0], ylim[1]), cmap='hot', origin='lower') plt.figure() plt.imshow(zz, **kwargs) plt.title('kde') plt.tight_layout() plt.show() from matplotlib import mlab, cm levels = np.arange(0, 0.16, 0.01) # Boost the upper limit to avoid truncation errors. norm = cm.colors.Normalize(vmax=abs(zz).max(), vmin=-abs(zz).max()) cmap = cm.PRGn cset1 = plt.contourf(xx, yy, zz, levels, cmap=cm.get_cmap(cmap, len(levels) - 1), norm=norm, ) # + BES_Panel = pd.read_stata(BES_data_folder+"BES2015_W8_v1.3.dta") # weights = BES_Panel['wt_full_W8'] weights = BES_Panel['wt_core_W8'].dropna() print(weights.shape) # samples = BES_decomp.loc[ : , [x_axis,y_axis] ] samples = BES_decomp.loc[ BES_Panel['wt_core_W8'].notnull() , [x_axis,y_axis] ] samples = np.swapaxes(samples,0,1) print(samples.shape) # + # # %%time #create mesh grid x = np.linspace(xlim[0], xlim[1], 100) y = np.linspace(ylim[0], ylim[1], 100) xx, yy = np.meshgrid(x, y) #Evaluate the kde on a grid pdf = gaussian_kde(samples.values, weights=weights.values) zz = pdf((np.ravel(xx), np.ravel(yy))) zz = np.reshape(zz, xx.shape) # - from matplotlib import mlab, cm vmax=abs(zz).max() vmin=-abs(zz).max() levels = np.arange(vmin*1.1, vmax*1.1, (vmax-vmin)/30) # Boost the upper limit to avoid truncation errors. norm = cm.colors.Normalize(vmax=vmax, vmin=vmin) cmap = cm.PRGn cset1 = plt.contourf(xx, yy, zz, levels, cmap=cm.get_cmap(cmap, len(levels) - 1), norm=norm, ) gc.collect() # + # From here! # http://nbviewer.jupyter.org/gist/tillahoffmann/f844bce2ec264c1c8cb5 import numpy as np from scipy.spatial.distance import cdist class gaussian_kde(object): """Representation of a kernel-density estimate using Gaussian kernels. Kernel density estimation is a way to estimate the probability density function (PDF) of a random variable in a non-parametric way. `gaussian_kde` works for both uni-variate and multi-variate data. It includes automatic bandwidth determination. The estimation works best for a unimodal distribution; bimodal or multi-modal distributions tend to be oversmoothed. Parameters ---------- dataset : array_like Datapoints to estimate from. In case of univariate data this is a 1-D array, otherwise a 2-D array with shape (# of dims, # of data). bw_method : str, scalar or callable, optional The method used to calculate the estimator bandwidth. This can be 'scott', 'silverman', a scalar constant or a callable. If a scalar, this will be used directly as `kde.factor`. If a callable, it should take a `gaussian_kde` instance as only parameter and return a scalar. If None (default), 'scott' is used. See Notes for more details. weights : array_like, shape (n, ), optional, default: None An array of weights, of the same shape as `x`. Each value in `x` only contributes its associated weight towards the bin count (instead of 1). Attributes ---------- dataset : ndarray The dataset with which `gaussian_kde` was initialized. d : int Number of dimensions. n : int Number of datapoints. neff : float Effective sample size using Kish's approximation. factor : float The bandwidth factor, obtained from `kde.covariance_factor`, with which the covariance matrix is multiplied. covariance : ndarray The covariance matrix of `dataset`, scaled by the calculated bandwidth (`kde.factor`). inv_cov : ndarray The inverse of `covariance`. Methods ------- kde.evaluate(points) : ndarray Evaluate the estimated pdf on a provided set of points. kde(points) : ndarray Same as kde.evaluate(points) kde.pdf(points) : ndarray Alias for ``kde.evaluate(points)``. kde.set_bandwidth(bw_method='scott') : None Computes the bandwidth, i.e. the coefficient that multiplies the data covariance matrix to obtain the kernel covariance matrix. .. versionadded:: 0.11.0 kde.covariance_factor : float Computes the coefficient (`kde.factor`) that multiplies the data covariance matrix to obtain the kernel covariance matrix. The default is `scotts_factor`. A subclass can overwrite this method to provide a different method, or set it through a call to `kde.set_bandwidth`. Notes ----- Bandwidth selection strongly influences the estimate obtained from the KDE (much more so than the actual shape of the kernel). Bandwidth selection can be done by a "rule of thumb", by cross-validation, by "plug-in methods" or by other means; see [3]_, [4]_ for reviews. `gaussian_kde` uses a rule of thumb, the default is Scott's Rule. Scott's Rule [1]_, implemented as `scotts_factor`, is:: n**(-1./(d+4)), with ``n`` the number of data points and ``d`` the number of dimensions. Silverman's Rule [2]_, implemented as `silverman_factor`, is:: (n * (d + 2) / 4.)**(-1. / (d + 4)). Good general descriptions of kernel density estimation can be found in [1]_ and [2]_, the mathematics for this multi-dimensional implementation can be found in [1]_. References ---------- .. [1] D.W. Scott, "Multivariate Density Estimation: Theory, Practice, and Visualization", John Wiley & Sons, New York, Chicester, 1992. .. [2] B.W. Silverman, "Density Estimation for Statistics and Data Analysis", Vol. 26, Monographs on Statistics and Applied Probability, Chapman and Hall, London, 1986. .. [3] B.A. Turlach, "Bandwidth Selection in Kernel Density Estimation: A Review", CORE and Institut de Statistique, Vol. 19, pp. 1-33, 1993. .. [4] D.M. Bashtannyk and R.J. Hyndman, "Bandwidth selection for kernel conditional density estimation", Computational Statistics & Data Analysis, Vol. 36, pp. 279-298, 2001. Examples -------- Generate some random two-dimensional data: >>> from scipy import stats >>> def measure(n): >>> "Measurement model, return two coupled measurements." >>> m1 = np.random.normal(size=n) >>> m2 = np.random.normal(scale=0.5, size=n) >>> return m1+m2, m1-m2 >>> m1, m2 = measure(2000) >>> xmin = m1.min() >>> xmax = m1.max() >>> ymin = m2.min() >>> ymax = m2.max() Perform a kernel density estimate on the data: >>> X, Y = np.mgrid[xmin:xmax:100j, ymin:ymax:100j] >>> positions = np.vstack([X.ravel(), Y.ravel()]) >>> values = np.vstack([m1, m2]) >>> kernel = stats.gaussian_kde(values) >>> Z = np.reshape(kernel(positions).T, X.shape) Plot the results: >>> import matplotlib.pyplot as plt >>> fig = plt.figure() >>> ax = fig.add_subplot(111) >>> ax.imshow(np.rot90(Z), cmap=plt.cm.gist_earth_r, ... extent=[xmin, xmax, ymin, ymax]) >>> ax.plot(m1, m2, 'k.', markersize=2) >>> ax.set_xlim([xmin, xmax]) >>> ax.set_ylim([ymin, ymax]) >>> plt.show() """ def __init__(self, dataset, bw_method=None, weights=None): self.dataset = np.atleast_2d(dataset) if not self.dataset.size > 1: raise ValueError("`dataset` input should have multiple elements.") self.d, self.n = self.dataset.shape if weights is not None: self.weights = weights / np.sum(weights) else: self.weights = np.ones(self.n) / self.n # Compute the effective sample size # http://surveyanalysis.org/wiki/Design_Effects_and_Effective_Sample_Size#Kish.27s_approximate_formula_for_computing_effective_sample_size self.neff = 1.0 / np.sum(self.weights ** 2) self.set_bandwidth(bw_method=bw_method) def evaluate(self, points): """Evaluate the estimated pdf on a set of points. Parameters ---------- points : (# of dimensions, # of points)-array Alternatively, a (# of dimensions,) vector can be passed in and treated as a single point. Returns ------- values : (# of points,)-array The values at each point. Raises ------ ValueError : if the dimensionality of the input points is different than the dimensionality of the KDE. """ points = np.atleast_2d(points) d, m = points.shape if d != self.d: if d == 1 and m == self.d: # points was passed in as a row vector points = np.reshape(points, (self.d, 1)) m = 1 else: msg = "points have dimension %s, dataset has dimension %s" % (d, self.d) raise ValueError(msg) # compute the normalised residuals chi2 = cdist(points.T, self.dataset.T, 'mahalanobis', VI=self.inv_cov) ** 2 # compute the pdf result = np.sum(np.exp(-.5 * chi2) * self.weights, axis=1) / self._norm_factor return result __call__ = evaluate def scotts_factor(self): return np.power(self.neff, -1./(self.d+4)) def silverman_factor(self): return np.power(self.neff*(self.d+2.0)/4.0, -1./(self.d+4)) # Default method to calculate bandwidth, can be overwritten by subclass covariance_factor = scotts_factor def set_bandwidth(self, bw_method=None): """Compute the estimator bandwidth with given method. The new bandwidth calculated after a call to `set_bandwidth` is used for subsequent evaluations of the estimated density. Parameters ---------- bw_method : str, scalar or callable, optional The method used to calculate the estimator bandwidth. This can be 'scott', 'silverman', a scalar constant or a callable. If a scalar, this will be used directly as `kde.factor`. If a callable, it should take a `gaussian_kde` instance as only parameter and return a scalar. If None (default), nothing happens; the current `kde.covariance_factor` method is kept. Notes ----- .. versionadded:: 0.11 Examples -------- >>> x1 = np.array([-7, -5, 1, 4, 5.]) >>> kde = stats.gaussian_kde(x1) >>> xs = np.linspace(-10, 10, num=50) >>> y1 = kde(xs) >>> kde.set_bandwidth(bw_method='silverman') >>> y2 = kde(xs) >>> kde.set_bandwidth(bw_method=kde.factor / 3.) >>> y3 = kde(xs) >>> fig = plt.figure() >>> ax = fig.add_subplot(111) >>> ax.plot(x1, np.ones(x1.shape) / (4. * x1.size), 'bo', ... label='Data points (rescaled)') >>> ax.plot(xs, y1, label='Scott (default)') >>> ax.plot(xs, y2, label='Silverman') >>> ax.plot(xs, y3, label='Const (1/3 * Silverman)') >>> ax.legend() >>> plt.show() """ if bw_method is None: pass elif bw_method == 'scott': self.covariance_factor = self.scotts_factor elif bw_method == 'silverman': self.covariance_factor = self.silverman_factor elif np.isscalar(bw_method) and not isinstance(bw_method, string_types): self._bw_method = 'use constant' self.covariance_factor = lambda: bw_method elif callable(bw_method): self._bw_method = bw_method self.covariance_factor = lambda: self._bw_method(self) else: msg = "`bw_method` should be 'scott', 'silverman', a scalar " \ "or a callable." raise ValueError(msg) self._compute_covariance() def _compute_covariance(self): """Computes the covariance matrix for each Gaussian kernel using covariance_factor(). """ self.factor = self.covariance_factor() # Cache covariance and inverse covariance of the data if not hasattr(self, '_data_inv_cov'): # Compute the mean and residuals _mean = np.sum(self.weights * self.dataset, axis=1) _residual = (self.dataset - _mean[:, None]) # Compute the biased covariance self._data_covariance = np.atleast_2d(np.dot(_residual * self.weights, _residual.T)) # Correct for bias (http://en.wikipedia.org/wiki/Weighted_arithmetic_mean#Weighted_sample_covariance) self._data_covariance /= (1 - np.sum(self.weights ** 2)) self._data_inv_cov = np.linalg.inv(self._data_covariance) self.covariance = self._data_covariance * self.factor**2 self.inv_cov = self._data_inv_cov / self.factor**2 self._norm_factor = np.sqrt(np.linalg.det(2*np.pi*self.covariance)) #* self.n # -
35,395
/experiment_4.ipynb
666e4740c6509fda3b6642902bc89e9db7827b29
[]
no_license
FilatovArtm/Images2Life
https://github.com/FilatovArtm/Images2Life
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
248,518
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Train with video # + from utils.common_utils import plotCircle, plotRectangle import numpy as np back_side = np.zeros((256, 256, 3)) image = plotCircle(back_side, vertex=(40, 40), size=40, color=(0.3, 0.5, 0.2)) image = plotRectangle(image, vertex=(200, 40), size=30, color=(0.7, 0.1, 0.1)) image = np.array([image]) # + from experiment.experiment import Experiment from experiment.spatial_utils import preprocessTarget, PerceptualLoss, SpatialMapsGenerator, BatchGeneratorVideoAndImage from models import spatial from models.skip import skip from utils.common_utils import generateSyntheticTexture import torch dtype = torch.cuda.FloatTensor from IPython.core.display import display, HTML config = { "PLOT": True, "optimizer": "adam", "lr": 1e-3, "num_iter": 1000, "show_every": 100, "maps_number": 4, "input_size": 128, "output_size": 128, "video_length": 129 } skip_params = {'num_input_channels': config['maps_number'], 'num_channels_down': [8, 16, 32, 64, 128], 'num_channels_up': [8, 16, 32, 64, 128], 'num_channels_skip': [4, 4, 4, 4, 4]} config['net_params'] = [skip_params] net = skip(**skip_params).type(dtype) video = generateSyntheticTexture()[:128] video = np.concatenate([video, image]) target = preprocessTarget(video, config["video_length"], config["output_size"]) loss = PerceptualLoss(alpha=0) spatial_maps_generator_video = SpatialMapsGenerator(config["maps_number"]) spatial_maps_generator_image = SpatialMapsGenerator(config["maps_number"]) batch_generator = BatchGeneratorVideoAndImage(target, spatial_maps_generator_video, spatial_maps_generator_image, config["input_size"], config["input_size"]) parameters = list(net.parameters()) for var in spatial_maps_generator_video.spatial_variables.values(): parameters.append(var) for var in spatial_maps_generator_image.spatial_variables.values(): parameters.append(var) train_with_video = Experiment(config, parameters, batch_generator, net, loss) # - train_with_video.run() train_with_video.batch_generator_.maps_generator_image_.spatial_variables['gamma'] = train_with_video.batch_generator_.maps_generator_video_.spatial_variables['gamma'] train_with_video.save_result(); from IPython.core.display import display, HTML display(HTML(''' <video width="320" height="240" controls loop> <source src='{}' type="video/mp4"> </video> <video width="320" height="240" controls loop> <source src='{}' type="video/mp4"> </video> <video width="320" height="240" controls loop> <source src='{}' type="video/mp4"> </video> '''.format(train_with_video.path_ +"/fit.mp4", train_with_video.path_ +"/predict.mp4", train_with_video.path_ +"/target.mp4"))) torch.save(net.state_dict(), train_with_video.path_ + '/net_state.dict') for key in spatial_maps_generator.spatial_variables: torch.save(spatial_maps_generator.spatial_variables[key], train_with_video.path_ + '/{}.dict'.format(key))
3,369
/Python OOPs/.ipynb_checkpoints/Classes and Objects-checkpoint.ipynb
bad9b23210de0c720612e35e3a28eef83a53fd98
[]
no_license
KushYadav/Machine-Learning
https://github.com/KushYadav/Machine-Learning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
7,430
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ### Classes and Objects class Car: pass print(type(Car())) # + class Person: # Class variable, common for all object of same class. species="Homesapien" def __init__(self,name,height,weight): # Instance variables, different for every instance of class. self.name=name self.height=height self.weight=weight def print_height(self): print("{} height is {}cm.".format(self.name,self.height)) p=Person("John",193,70) p.print_height() # Don't make a variable and function of same name. # - # ### Instance vs Class Variables # + class Dog: color='Brown' #Common for all data members of class. activities = [] def __init__(self,breed): self.breed=breed def add_activity(self,act): self.activities.append(act) def do_activity(self): print(self.breed) print(self.activities) d1=Dog("German Shepherd") d2=Dog("Golden Retriever") d1.add_activity("High Jump") d1.add_activity("Roll Over") d2.add_activity("Long Jump") d2.add_activity("Stand on two feet") d1.do_activity() d2.do_activity() # + class Dog: color='Brown' def __init__(self,breed): self.activities=[] self.breed=breed def add_activity(self,act): self.activities.append(act) def do_activity(self): print(self.breed) print(self.activities) d1=Dog("German Shepherd") d2=Dog("Golden Retriever") d1.add_activity("High Jump") d1.add_activity("Roll Over") d2.add_activity("Long Jump") d2.add_activity("Stand on two feet") d1.do_activity() d2.do_activity() # - # ### Access Modifiers # + class Person: def __init__(self,name,height,weight,age): self.name=name self.height=height self.weight=weight self.age=age # Use __ for making the function private def __print_age(self): print("Age of {} is {}cm".format(self.name,self.age)) def print_age(self): """Print the Age of the Person""" self.__print_age() p=Person("John",193,70,21) # p.__print_age() #Throws error p.print_age() # Called through public method # p.print_age? # - # ### Inheritance # * One class acquires the property of another class. Vehicles => Bus,Car,Motorbike (Subclasses) # * Increase Reusability of the code class Vehicles: def __init__(self,name,price): self.name=name self.price=price def print_info(self): print("Name: {}".format(self.name)) print("Price: {}".format(self.price)) # + class Car(Vehicles): def __init__(self,name,price,color): Vehicles.__init__(self,name,price) self.color=color def print_name(self): Vehicles.print_info(self) print("Color: {}".format(self.color)) c=Car("Verna","Rs.10,00,000","Yellow") c.print_name() # + class Motorbike(Vehicles): def __init__(self,name,price,color): Vehicles.__init__(self,name,price) self.color=color def print_info(self): """Tells about the bike info""" Vehicles.print_info(self) print("Color: {}".format(self.color)) m=Motorbike("Royal Enfields","Rs.1,00,000","White") m.print_info() # m.print_info?
3,570
/in_paper/shrinkage_prior/GZZ_sensitivity/synthetic_data_swrate-5.ipynb
bcd15769125282dd95aedc4b7484aaafcf9f41e4
[]
no_license
deborsheesen/G-ZZ
https://github.com/deborsheesen/G-ZZ
0
1
null
null
null
null
Jupyter Notebook
false
false
.jl
2,570
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .jl # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Julia 0.6.4 # language: julia # name: julia-0.6 # --- using Distributions, TimeIt, ProgressMeter, PyPlot, JLD include("/home/postdoc/dsen/Desktop/G-ZZ/shrinkage_prior/synthetic_data/temp.jl") X, y = load("data_simple.jld", "X", "y") d, Nobs = size(X) σ02 = 1 my_pr = SS_prior(d, σ02) my_ll = ll_logistic_sp(X,y) my_model = model(my_ll, my_pr); # Sub-sampling without control variates and with weights: mb_size = 10 max_attempts = 5*10^7 lambda_list = Float32.(logspace(-2,1.6,15)) Print = false start_overall = time() for (k,lambda) in enumerate(lambda_list[13:15]) start = time() run_sampler(my_model, lambda, max_attempts, mb_size, Print) print(k, ". Sampling for lambda = ", round(lambda,3), " in ", round((time()-start)/60,1), " mins \n") end print("Overall in ", round((time()-start_overall)/60,1), " mins")
1,072
/tutorials/single_table_data/04_TVAE_Model.ipynb
b0dbbf3eed08df309350f081677b7faad90be77e
[ "MIT" ]
permissive
sarahmish/SDV
https://github.com/sarahmish/SDV
1
0
MIT
2021-06-28T12:49:26
2021-06-26T16:24:30
null
Jupyter Notebook
false
false
.py
101,682
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + id="T_FGs7reLrEC" colab={"base_uri": "https://localhost:8080/"} outputId="95668b64-8560-418e-becf-972c4d93090c" import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import nltk import re from textblob import TextBlob from nltk.sentiment.vader import SentimentIntensityAnalyzer from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_squared_error from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor, AdaBoostRegressor from sklearn.tree import DecisionTreeRegressor from sklearn.model_selection import RandomizedSearchCV import xgboost import lightgbm # + colab={"base_uri": "https://localhost:8080/"} id="y6pt5uLLwIZi" outputId="f745a1e8-26cd-4cc1-f97e-bd45c57698f7" nltk.download('vader_lexicon') # + [markdown] id="C8M1L7Po_Xst" # Textual News Preparation # + id="IxI9lEtrdn7_" news_df = pd.read_csv('/content/india-news-headlines.csv') # + colab={"base_uri": "https://localhost:8080/"} id="wGt5sq4fdwkt" outputId="5fa2a702-dd7f-4e8a-c0dc-822cb16f02c9" news_df.shape # + colab={"base_uri": "https://localhost:8080/", "height": 202} id="HLbh34hudwoE" outputId="866dbeb0-5fab-4174-dcd3-35ea387c3c7a" news_df.head() # + id="jHFPZ3tweI_a" news_df.drop('headline_category', axis=1, inplace=True) news_df = news_df.rename(columns={'publish_date':'Date', 'headline_text':'News'}, inplace=False) # + colab={"base_uri": "https://localhost:8080/", "height": 202} id="tUVNZ7pWooG9" outputId="c4e30b08-db45-4e75-8393-b210c52c98ea" news_df.head() # + colab={"base_uri": "https://localhost:8080/"} id="gsfn5fAAoqeo" outputId="9d61dd65-8a60-4422-c5f4-9943d5adcc7c" news_df["Date"] = pd.to_datetime(news_df["Date"],format='%Y%m%d') news_df.info() # + colab={"base_uri": "https://localhost:8080/", "height": 202} id="rLcpxqy8o-8Y" outputId="285165ba-11f2-4940-9c2d-cba2038d135d" news_df.head() # + id="g6hYdcavo-_X" # Group the headlines for each day news_df['News'] = news_df.groupby(['Date']).transform(lambda x : ' '.join(x)) news_df = news_df.drop_duplicates() news_df.reset_index(inplace=True,drop=True) # + colab={"base_uri": "https://localhost:8080/"} id="tQtIDe77o_CB" outputId="39e0dbce-cec0-41b8-c38f-5065844abf60" #cheak for missing values news_df.isnull().sum() # + colab={"base_uri": "https://localhost:8080/"} id="ZK5nDV5Po_E-" outputId="15cd7910-e0a5-422f-8eaa-0250fb3888de" news_df.shape # + [markdown] id="qFcT_f8RrMJg" # ## Stock data Analysis # + id="Sn9hcFS2o_Ii" S_df = pd.read_csv('/content/st.csv') # + id="6lNw3E1PrKif" S_df['Date'] = pd.to_datetime(S_df.Date) # + colab={"base_uri": "https://localhost:8080/"} id="wfkkeH6trKlC" outputId="d0189cbc-74a5-49a7-fb7f-3c115a83a5a6" len(S_df) # + [markdown] id="bED0ROBwr5qW" # Remove Unwanted Characters from the News # + colab={"base_uri": "https://localhost:8080/"} id="12P3m4XdrKn9" outputId="5b44c73b-8bf6-49d3-a4fa-89ff81f2865b" #removing unwanted characters from the News news_df.replace("[^a-zA-Z']"," ",regex=True,inplace=True) news_df["News"].head(5) # + [markdown] id="sL84qtI0sUs5" # # # # ## Textual Analysis # + id="NQsprEzPrKrC" #Functions to get the subjectivity and polarity def getSubjectivity(text): return TextBlob(text).sentiment.subjectivity def getPolarity(text): return TextBlob(text).sentiment.polarity # + colab={"base_uri": "https://localhost:8080/", "height": 415} id="HQv7D7wsrKuZ" outputId="c8b92231-4782-4664-87e7-2770834684a4" #Adding subjectivity and polarity columns news_df['Subjectivity'] = news_df['News'].apply(getSubjectivity) news_df['Polarity'] = news_df['News'].apply(getPolarity) news_df # + id="2Ao0ElqYutVR" colab={"base_uri": "https://localhost:8080/", "height": 415} outputId="fa0b0ff8-876f-4f62-8a27-2f326469b879" #Adding sentiment score to news sia = SentimentIntensityAnalyzer() news_df['Compound'] = [sia.polarity_scores(v)['compound'] for v in news_df['News']] news_df['Negative'] = [sia.polarity_scores(v)['neg'] for v in news_df['News']] news_df['Neutral'] = [sia.polarity_scores(v)['neu'] for v in news_df['News']] news_df['Positive'] = [sia.polarity_scores(v)['pos'] for v in news_df['News']] news_df # + [markdown] id="TmiwWy5Eyde3" # Merge the Historical and Textual Data # + id="ghHbtyzOutYp" colab={"base_uri": "https://localhost:8080/", "height": 1000} outputId="bac576d4-2ef5-4bed-b13b-eaf8d827b0bd" df_merge = pd.merge(S_df, news_df, how='inner', on='Date') df_merge # + [markdown] id="fNQdlnrXyuIH" # Create Dataset for Model Training # + id="Nn6MxOXKutcL" colab={"base_uri": "https://localhost:8080/", "height": 202} outputId="f1924de9-c10c-4568-9f86-76675e3bf5a9" dfmerge = df_merge[['Close','Subjectivity', 'Polarity', 'Compound', 'Negative', 'Neutral', 'Positive']] dfmerge1=dfmerge.copy() dfmerge1.head() # + colab={"base_uri": "https://localhost:8080/", "height": 202} id="_m9i998y8kmN" outputId="4e4f5212-7585-44d7-fa4b-3dfc2e61235b" scaler = MinMaxScaler() dfmerge1 = pd.DataFrame(scaler.fit_transform(dfmerge1)) dfmerge1.columns = dfmerge.columns dfmerge1.head() # + id="ilpjUGunzLxv" X=dfmerge1.drop('Close',axis=1) y=dfmerge1['Close'] # + id="FkktoIzXzL0k" #Train Test Split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state = 0) # + [markdown] id="y3toYMI4kYco" # Random Forest Regressor # + id="N8WP-3S9ORqr" rf = RandomForestRegressor() rf.fit(X_train, y_train) prediction=rf.predict(X_test) # + id="AC12Y3znkqTs" colab={"base_uri": "https://localhost:8080/"} outputId="bd00c6a8-d083-4753-b59f-bbf02d9f9d93" print(prediction[:10]) print(y_test[:10]) print('Mean Squared error: ',mean_squared_error(prediction,y_test)) # + [markdown] id="MneJSUg_tJ2y" # DecisionTreeRegressor # + id="09rK_V74kr1_" dtr = DecisionTreeRegressor() dtr.fit(X_train, y_train) predictions = dtr.predict(X_test) # + id="Uc70pUFKtmn-" colab={"base_uri": "https://localhost:8080/"} outputId="e6b63b1f-231a-43fc-e2d3-61976fda1ede" print(predictions[:10]) print(y_test[:10]) print('Mean Squared error: ',mean_squared_error(predictions,y_test)) # + [markdown] id="rMzHdINAt3ZL" # AdaBoostRegressor # + id="rrpKmGDUtyQG" colab={"base_uri": "https://localhost:8080/"} outputId="a0c58443-02ca-4847-ca1d-de83a8779433" adb = AdaBoostRegressor() adb.fit(X_train, y_train) # + id="34raTiWZtyS_" colab={"base_uri": "https://localhost:8080/"} outputId="15e57d37-2438-4a3e-f97d-f9de6ed97d16" predictions = adb.predict(X_test) print(mean_squared_error(predictions, y_test)) # + [markdown] id="K5y-5qss2YXp" # Light GBM # + id="DkQtYOZztyWn" colab={"base_uri": "https://localhost:8080/"} outputId="1f87326d-f32b-4e37-c406-6f55ae182edf" gbm = lightgbm.LGBMRegressor() gbm.fit(X_train, y_train) # + id="Dk7FNsZEwPRo" colab={"base_uri": "https://localhost:8080/"} outputId="343f187a-e5ad-4e5f-ad16-b6c8f598f4a0" predictions = gbm.predict(X_test) print(mean_squared_error(predictions, y_test)) # + [markdown] id="yi1s_GwY2Uos" # Xgboost # + id="LgWNANt5wPVD" colab={"base_uri": "https://localhost:8080/"} outputId="4c03cd3d-cf8f-43b5-bb25-ab32b48e4b81" xgb = xgboost.XGBRegressor() xgb.fit(X_train, y_train) # + id="UM7hCcBbwwCf" colab={"base_uri": "https://localhost:8080/"} outputId="070507d6-ffc5-4bb8-fd33-277503e841cd" predictions = xgb.predict(X_test) print(mean_squared_error(predictions, y_test)) # + id="datw_wVzI-D4" #hyperparameter tuning params={ 'learning_rate' : [0.05, 0.10, 0.15, 0.20, 0.25, 0.30], 'max_depth' : [3,4,5,6,8,10,12], 'min_child_weight': [1,3,5,7], 'gamma' : [0.0, 0.1,0.2,0.3,0.4] } # + id="A-Bf755gJPSW" colab={"base_uri": "https://localhost:8080/"} outputId="93410350-ca94-44d3-bc93-ed33dc29fc5d" Xgreg=xgboost.XGBRegressor() Xgreg=RandomizedSearchCV(Xgreg,param_distributions=params,cv=10,verbose=False) Xgreg.fit(X_train,y_train) # + colab={"base_uri": "https://localhost:8080/"} id="n6IkqzqH1Ynh" outputId="48bf297f-5e70-474e-9e3d-b95bbc0de9a0" predictions = Xgreg.predict(X_test) print(mean_squared_error(predictions, y_test)) # + [markdown] id="nftJDoY_Bt7C" # ## Conclusion # # I was able to create a hybrid model for stock price/performance prediction using numerical analysis of historical stock prices, and sentimental analysis of news headlines.¶
8,474
/project_week3_2.ipynb
eaaf2ea151acdb25edb85e770d5432c3086f2703
[]
no_license
patrickCid/Coursera_Capstone
https://github.com/patrickCid/Coursera_Capstone
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
35,906
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Load/Merge raw data to prepare for Clustering import pandas as pd # read PostalCode/Borough/Neighborhood from already created data df_pbn = pd.read_csv("PostalCode_Borough_Neighborhood.csv",index_col=0) # read geo data from provided csv df_geo = pd.read_csv("Geospatial_Coordinates.csv") # renaming columns for merge df_geo = df_geo.rename(columns = {"Postal Code": "PostalCode"}) df_geo.head() df_pbn.head() # join on PostalCode merged_df = pd.merge(df_pbn,df_geo,on="PostalCode") merged_df.head() merged_df
787
/Practical_statistics/Confidence_intervals/Confidence Intervals - Part I.ipynb
98389b9591cf9f1c4c8b6061608391316d21b123
[ "Apache-2.0" ]
permissive
sudoberlin/Data_Analyst_ND
https://github.com/sudoberlin/Data_Analyst_ND
4
0
null
null
null
null
Jupyter Notebook
false
false
.py
18,056
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ### Confidence Intervals - Part I # # First let's read in the necessary libraries and the dataset. You also have the full and reduced versions of the data available. The reduced version is an example of you would actually get in practice, as it is the sample. While the full data is an example of everyone in your population. # + import pandas as pd import numpy as np import matplotlib.pyplot as plt np.random.seed(42) coffee_full = pd.read_csv('coffee_dataset.csv') coffee_red = coffee_full.sample(200) #this is the only data you might actually get in the real world. # - print(coffee_full.shape) coffee_full.head() print(coffee_red.shape) coffee_red.head() # `1.` What is the proportion of coffee drinkers in the sample? What is the proportion of individuals that don't drink coffee? drinks_coffee = coffee_red['drinks_coffee'].mean() drinks_coffee not_drinks_coffee = 1-coffee_red['drinks_coffee'].mean() not_drinks_coffee # `2.` Of the individuals who drink coffee, what is the average height? Of the individuals who do not drink coffee, what is the average height? coffee_red[coffee_red['drinks_coffee'] == True]['height'].mean() coffee_red[coffee_red['drinks_coffee'] == False]['height'].mean() # `3.` Simulate 200 "new" individuals from your original sample of 200. What are the proportion of coffee drinkers in your bootstrap sample? How about individuals that don't drink coffee? bootstrap_samp = coffee_red.sample(200, replace = True) bootstrap_samp['drinks_coffee'].mean() # `4.` Now simulate your bootstrap sample 10,000 times and take the mean height of the non-coffee drinkers in each sample. Each bootstrap sample should be from the very first sample of 200 data points. Plot the distribution, and pull the values necessary for a 95% confidence interval. What do you notice about the sampling distribution of the mean in this example? mean_bootstrap_samp = [] for _ in range(10000): bootstrap_samp = coffee_red.sample(200, replace = True) bootstrap_mean = bootstrap_samp[bootstrap_samp['drinks_coffee'] == False]['height'].mean() mean_bootstrap_samp.append(bootstrap_mean) plt.hist(mean_bootstrap_samp); np.percentile(mean_bootstrap_samp, 2.5), np.percentile(mean_bootstrap_samp, 97.5) # `5.` Did your interval capture the actual average height of non-coffee drinkers in the population? Look at the average in the population and the two bounds provided by your 95% confidence interval, and then answer the final quiz question below. ove operations are fastest/slowest and why? # + # Try your solution here # - # **Adding a *function* to the sorting process** # You can # * sort by built-in functions # * sort by custom functions # people = ['Joshua Richardson', 'Wei Ling', 'Sarah McKearny', 'Matthias Strauch'] # Let's sort `people` from above by last name # + # Our function (anonymous one here) func = lambda s: s.split()[1] func(people[0]) # - sorted(people, key = func) # does not modify the original # ```python # # Does this work for the inline "sort" method? # ___.sort(key = ___) # ``` # Copy and fill in blanks below. # + # Try your solution here # - # EXERCISE 2: Sort a list of random integers by their value on the sin curve # # ```python # import math # import random # # # HINT: create an anonymous function # # math.sin(x) is the conversion function # # a = random.sample(range(25, 50), 10) # ``` # + # Try your solution here # - # <b>Behind the scenes of the `sorted()` function with a key</b> # * when using a key, `sorted()` creates an intermediate list or proxy # ### The `re` module # * Most letters and characters match themselves, e.g. `super` will only match 'super' in a case-sensitive manner (we can make it case-insensitive though with an optional argument) # * `re` module gives us the power to search and match specific patterns in strings # * `re` gives us functions to find all occurences or iterate over all matches # * `re` allows us to split strings and substitute based on patterns # <b>Regular expressions in Python</b> # * These are the characters (called metacharacters) which have special meaning in Python regex: # `. ^ $ * + ? { } [ ] \ | ( )` # * regex basics are not going to be covered here (please reference https://docs.python.org/3/howto/regex.html for a Python regex howto) # <p></p> # * Here are examples of using regex with functions and methods in `re` module: # + import re # match() finds first occurence of compiled pattern and returns a match object p = re.compile('[A-z][a-z]') m = p.match('AaAa') print(m.group()) # search() includes the regex AND search string and returns a match object s = re.search('[A-Z][a-z]', 'AaAa') print(s.group()) # findall() includes the regex AND search string and returns a list of all matches f = re.findall('[A-z][a-z]', 'AaAa') print(f) # print(f.index('Aa')) # finditer() includes the regex AND search string and returns an iterable with all matches i = re.finditer('[A-z][a-z]', 'AaAa') for x in i: print((x.group(), x.span())) # - # EXERCISE 3: A small one surrounded by three body guards on either side # # --- # Using the following text and the `re` module, find all sets of letters that match this pattern: three upper case, one lower case, and three more uppercase letters consecutively (e.g. ABCdEFG). Then print all the "small ones" (middle lowercase letters). What does it say? # # ```python # text = "kAewtloIKHbWJZNhHVGxXDiQmzjfcpYbzRPBoLPDSmUbCunkfxZWDZoUZMiGqhRRiUvGmYmvnJIHEmbTMUKLECKdCthezSYBpIEl" # ``` # # Hint: A *regex* could look like: `[A-Z][a-z][A-Z]` to match `AbC` help(re) # <b>Note about regex with backslashes</b> # * When trying to match a '\' using a string literal as the pattern, we must use '\\\\' # * This is where raw strings come in handy making the search for '\' into the pattern '\\' # * The output from matching, searching and finding is still a string literal # * Take this example below where we search for sections in a latex document # + # Here's a bit of latex latex = """\section{Introduction} Make it possible for all to write documents with \LaTeX{}! \subsection{more introduction} Go more in detail \ldots \subsubsection{even more introduction} come to the point \ldots \paragraph{Paragraphs} A paragraph is small but \subparagraph{Subparagraphs} subparagraphs are smaller! \paragraph{Outline} First we start with a little example of the article class, which is an important documentclass. But there would be other documentclasses like book \ref{book}, report \ref{report} and letter \ref{letter} which are described in Section \ref{documentclasses}. Finally, Section \ref{conclusions} gives the conclusions. \section{Documentclasses} \label{documentclasses}""" # Find section using a string literal literal = '\\\\section' found1 = re.findall(literal, latex) print(found1) # Find section using a raw string (preface with 'r') raw = r'\\section' found2 = re.findall(raw, latex) print(found2) # - # <b>Spliting</b> # * `split()` method splits a string by applying a compiled pattern (like we do with `match()`) # * It has an optional second argument (maxsplit) which will limit the number of splits starting at the beginning of the input string # + text = 'Happy 15th Birthday! You are 15 going on 30.' # Create pattern which recognizes digits p = re.compile('\d+') # Use split method on pattern with string as argument words = p.split(text) print(words) # Now we can use the string.format method to reconstruct a new string newwish = '{}60{}60{}30{}'.format(words[0], words[1], words[2], words[3]) print(newwish) # - # Example of using maxplit with split() text = 'grabxxfirstxthreexxxandxherexxxxisxxrest' p = re.compile('x+') p.split(text, maxsplit = 3) # EXERCISE 4: Phonebook # * using `split()` use the following text # <pre><code>"""Steve Martin: 310.222.3333 400 Holly Ave # <p></p> # Sandra Bullock: 512.456.1789 200 52nd St # Tommy-Lee Jones: 210.555.7777 321 Calahan Rd"""</code></pre> # <p>to create a list of dictionaries similar to this one:</p> # ```python # {'Bullock': {'address': '200 52nd St', # 'first': 'Sandra', # 'last': 'Bullock', # 'phone': '512.456.1789'}, # 'Jones': {'address': '321 Calahan Rd', # 'first': 'Tommy-Lee', # 'last': 'Jones', # 'phone': '210.555.7777'}, # 'Martin': {'address': '400 Holly Ave', # 'first': 'Steve', # 'last': 'Martin', # 'phone': '310.222.3333'}} # ``` # # e.g. # # ```python # # Split on new lines # entries = re.split('\n', text) # # # A bit fancier split - parses a string by ':' or space up to 3 splits # re.split(":? ", entry, 3) # ``` # + # Try your solution here # - # --- # Created by a Microsoft Employee. # # The MIT License (MIT)<br> # Copyright (c) 2016
8,980
/Assignment 1 AND_OR gate_using_Perceptron.ipynb
3cc112b2548bfe1127fe64fb8e6f00d5c5a1dc24
[]
no_license
Ashish438/Deep_Learning_Assignments
https://github.com/Ashish438/Deep_Learning_Assignments
2
0
null
null
null
null
Jupyter Notebook
false
false
.py
34,675
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # HIDDEN from datascience import * # %matplotlib inline import matplotlib.pyplot as plots plots.style.use('fivethirtyeight') # ## Comparing Two Groups # # The examples above investigate whether a sample appears to be chosen randomly from an underlying population. A similar line of reasoning can be used to determine whether two parts of a population are different. In particular, given two groups that differ in some distinguishing characteristic, we can investigate whether they are the same or different in another aspect. # ### Example: Married Couples and Umarried Partners # # The methods that we have developed allow us to think inferentially about data from a variety of sources. Our next example is based on a study conducted in 2010 under the auspices of the National Center for Family and Marriage Research. # # In the United States, the proportion of couples who live together but are not married has been rising in recent decades. The study involved a national random sample of over 1,000 heterosexual couples who were either married or living together but unmarried. One of the goals of the study was to compare the attitudes and experiences of the married and umarried couples. # # The table below shows a subset of the data collected in the study. Each row corresponds to one person. The variables that we will examine in this section are: # # - mar_status: 1=married, 2=unmarried # - empl_status: employment status; categories described below # - gender: 1=male, 2=female # - age: Age in years # columns = ['mar_status', 'empl_status', 'gender', 'age', ] couples = Table.read_table('married_couples.csv').select(columns) couples # We can improve the legibility of this table by converting numeric codes to text labels. The first two columns consist of the numerical codes assigned by the study to each person's marital status and employment status. # # The `describe` function uses `np.choose`, a function that takes a sequences of indices and a sequence of labels. It returns a list that is the same length as the sequence of indices, but contains the label (from the sequence of labels) corresponding to each instance. It's useful for converting numeric codes into text. # + def describe(column, descriptions): """Relabel a column of codes and add a column of descriptions""" code = column + '_code' couples.relabel(column, code) couples[column] = np.choose(couples[code]-1, descriptions) describe('mar_status', ['married', 'partner']) describe('empl_status', [ 'Working as paid employee', 'Working, self-employed', 'Not working - on a temporary layoff from a job', 'Not working - looking for work', 'Not working - retired', 'Not working - disabled', 'Not working - other', ]) describe('gender', ['male', 'female']) couples['count'] = 1 couples # - # Above, the first four columns are unchanged except for their labels. The next three columns interpret the codes for marital status, employment status, and gender. The final column is always 1, indicating that each row corresponds to 1 person. # # Let us consider just the males first. There are 742 married couples and 292 unmarried couples, and all couples in this study had one male and one female, making 1,034 males in all. # + # Separate tables for married and cohabiting unmarried couples married = couples.where('gender', 'male').where('mar_status', 'married') partner = couples.where('gender', 'male').where('mar_status', 'partner') # - married.num_rows partner.num_rows # Societal norms have changed over the decades, and there has been a gradual acceptance of couples living together without being married. Thus it is natural to expect that unmarried couples will in general consist of younger people than married couples. The histograms of the ages of the married and unmarried men show that this is indeed the case: # + # Ages of married men married.select('age').hist(bins=np.arange(15,70,5), normed=True) plots.ylim(0, 0.045) # Set the lower and upper bounds of the vertical axis # + # Ages of cohabiting unmarried men partner.select('age').hist(bins=np.arange(15,70,5), normed=True) plots.ylim(0, 0.045) # - # The difference is even more marked when we compare the married and unmarried women. The `plots.ylim` call ensures that all four histograms have been drawn to the same scale, for ease of comparison. married = couples.where('gender', 'female').where('mar_status', 'married') partner = couples.where('gender', 'female').where('mar_status', 'partner') # + # Ages of married women married.select('age').hist(bins=np.arange(15,70,5), normed=True) plots.ylim(0, 0.045) # + # Ages of cohabiting unmarried women partner.select('age').hist(bins=np.arange(15,70,5), normed=True) plots.ylim(0, 0.045) # - # If married couples are in general older, they might differ from unmarried couples in other ways as well. For example, they might tend to be more wealthy or more educated than unmarried couples. Since both of those variables are associated with employment, the next variable that we will examine will be the employment status of the men. males = couples.where('gender', 'male').select(['mar_status', 'empl_status', 'count']) males # ### Contingency Tables # # The ``pivot`` method operates on a table in which each row is classified according to two variables (marital status and employment status, in this example). It returns what is known as a *contingency table* of the counts. A contingency table consists of a cell for each pair of categories that can be formed by taking one category of the first variable and one category of the second. In the cell it displays the count of rows that match that pair of categories. # # For example, the table below shows that there were 28 men who were married and not working but looking for work. There were 171 men who were not married and were working as paid employees. And so on. # # The `pivot` method takes as its first argument the name of the column that contains values to be used as column labels. Each unique value in this input column appears as a column in the contingency table. The second argument is the name of the column that contains values to be used as row labels. Each unique value in this input column appears in a separate row as the first entry. The third argument is the source of the values in the contingency table. In this case, counts are used and they are aggregated by summing. employed = males.pivot('mar_status', 'empl_status', 'count', sum) employed employed.drop('empl_status').sum() # Because the total number of married couples in the sample is greater than the number of unmarried couples, the counts in the different categories are not directly comparable. So we convert them into proportions, displayed in the last two columns of the table below. The ``married`` column shows the distribution of employment status of the married men in the sample. The ``partner`` column shows the distribution of the employment status of the unmarried men. employed['married'] = employed['married count']/sum(employed['married count']) employed['partner'] = employed['partner count']/sum(employed['partner count']) employed # The two distributions look somewhat different from each other, as can be seen more clearly in the bar graphs below. It appears that a larger proportion of the married men work as paid employees, whereas a larger proportion of unmarried men are not working but are looking for work. employed.select(['empl_status', 'married', 'partner']).barh('empl_status', overlay=True) # The difference in the two bar graphs raises the question of whether the differences are due to randomness in the sampling, or whether the distribution of employment status is indeed different for married men in the U.S. than it is for unmarried men who live with their partners. Remember that the data that we have are from a sample of just 1,034 couples; we do not know the distribution of employment status of men in the entire country. # # We can answer the question by performing a statistical test of hypotheses. Let us use the terminolgoy that we developed for this in the previous section. # **Null hypothesis.** In the United States, the distribution of employment status among married men is the same as among unmarried men who live with their partners. The difference between the two samples is due to chance. # # **Alternative hypothesis.** In the United States, the distributions of the employment status of the two groups of men are different. # # As our **test statistic**, we will use the total variation distance between the two distributions. Because employment status is a categorical variable, there is no question of computing summary statistics such as means. By using the total variation distance, we can compare the entire distributions, not just summaries. # # The observed value of the test statistic is about 0.15: # + # TVD between the two distributions observed_tvd = 0.5*sum(abs(employed['married']-employed['partner'])) observed_tvd # - # ### The Null Hypotheis and Random Permutations # # The next step is important but subtle. In order to compare this observed value of the total variation distance with what is predicted by the null hypothesis, we need the probability distribution of the total variation distance under the null hypothesis. But the probability distribution of the total variation distance is quite daunting to derive by mathematics. So we will simulate numerous repetitions of the sampling procedure under the null hypothesis. # # With just one sample at hand, and no further knowledge of the distribution of employment status among women in the U.S., how can we go about replicating the sampling procedure? The key is to note that *if* marital status and employment status were not connected in any way, then we could replicate the sampling process by replacing each oman's employment status by a randomly picked employment status from among all the men, married or unmarried. Doing this for all the men is equivalent to permuting the entire column containing employment status, while leaving the marital status column unchanged. # # Thus, under the null hypothesis, we can replicate the sampling process by assigning to each married man an employment status chosen at random without replacement from the entries in `empl_status`. Since the first 742 rows of `males` correspond to the married men, we can do the replication by simply permuting the entire `empl_status` column and leaving everything else unchanged. # # Let's implement this plan. First, we will shuffle the column `empl_status` using the `sample` method, which just shuffles all rows when provided with no arguments. # + # Randomly permute the employment status of all men shuffled = males.select('empl_status').sample() shuffled # - # The first two columns of the table below are taken from the original sample. The third has been created by randomly permuting the original `empl_status` column. # + # Construct a table in which employment status has been shuffled males_with_shuffled_empl = Table([males['mar_status'], males['empl_status'], shuffled['empl_status']], ['mar_status', 'empl_status', 'empl_status_shuffled']) males_with_shuffled_empl['count'] = 1 males_with_shuffled_empl # - # Once again, the ``pivot`` method computes the contingency table, which allows us to calculate the total variation distance between the distributions of the two groups of men. employed_shuffled = males_with_shuffled_empl.pivot('mar_status', 'empl_status', 'count', sum) employed_shuffled # TVD between the two distributions of the permuted table married = employed_shuffled['married count'] partner = employed_shuffled['partner count'] 0.5*sum(abs(married/sum(married)-partner/sum(partner))) # This total variation distance was computed based on the null hypothesis that the distributions of employment status for the two groups of men are the same. You can see that it is noticeably smaller than the observed value of the total variation distance (0.15) between the two groups in our original sample. # # ### A Permutation Test # # Could that just be due to chance variation? We will only know if we run many more replications, by randomly permuting the ``empl_status`` column repeatedly. This method of testing is known as a **permutation test**. # + # Put it all together in a for loop to perform a permutation test repetitions=200 tvds = [] for i in np.arange(repetitions): # Construct a permuted table shuffled = males.select('empl_status').sample() combined = Table([males['mar_status'], shuffled['empl_status']], ['mar_status', 'empl_status']) combined['count'] = 1 employed_shuffled = combined.pivot('mar_status', 'empl_status', 'count', sum) # Compute TVD married = employed_shuffled['married count'] partner = employed_shuffled['partner count'] tvd = 0.5*sum(abs(married/sum(married)-partner/sum(partner))) tvds.append(tvd) Table([tvds], ['Empirical distribution of TVDs']).hist(bins=np.arange(0, 0.2, 0.01),normed=True) # - # The figure above is the **empirical distribution of the total variation distance** between the distributions of the employment status of married and unmarried men, under the null hypothesis. **The observed test statistic of 0.15 is quite far in the tail, and so the chance of observing such an extreme value under the null hypothesis is close to 0**. # # This chance is called a "P-value" in a hypothesis test. The P-value is the chance that our test statistic (TVD) would come out at least as extreme as the observed value (0.15 or greater) under the null hypothesis. # # # We can directly compute an empirical approximation to the P-value using the `tvds` we collected during the permutation test. The `np.count_nonzero` function takes a sequence of numbers and returns how many of them are not zero. When passed a list of `True` and `False` values, it returns the number that are `True`. p_value = np.count_nonzero(tvds >= observed_tvd) / len(tvds) p_value # We call this `p_value` an empirical approximation because it is not the true chance of observing a TVD at least as large as 0.15. Instead, it is the particular result we happened to compute when shuffling randomly 200 times. Computing the true value would require us to consider all possible outcomes of shuffling (which is large) instead of just 200 random shuffles. Were we to consider all cases, there would be some with a more extreme TVD, and so the true P-value is greater than zero but not by much. # # A low P-value constitutes **evidence in favor of the alternative hypothesis**. The data support the hypothesis that in the United States, the distribution of the employment status of married men is not the same as that of unmarried men who live with their partners. # # In this example, our empirical estimate from sampling tells us all the information we need to draw conclusions from the data; the observed statistic is very unlikely under the null hypothesis. Precisely how unlikely often doesn't matter. Permutation tests of this form are indeed quite common in practice because they make few assumptions about the underlying population and are straightforward to perform and interpret. # ### Generalizing Our Hypothesis Test # # The example above includes a substantial amount of code in order to investigate the relationship between two characteristics (marital status and employment status) for a particular subset of the surveyed population (males). Suppose we would like to investigate different characteristics or a different population. How can we reuse the code we have written so far in order to explore more relationships? # # Functions allow us to generalize both the statistics we compute and the computational process of performing a permutation test. We can begin with a generalized computation of total variation distance between the distribution of any column of values (such as employment status) when separated into any two conditions (such as marital status) for a collection of data described by any table. Our implementation includes the same statements as we used above, but uses generic names that are specified by the final function call. # + # TVD between any two conditions def tvd(t, conditions, values): """Compute the total variation distance between counts of values under two conditions. t (Table) -- a table conditions (str) -- a column label in t values (str) -- a column label in t """ t['count'] = 1 e = t.pivot(conditions, values, 'count', sum) a = e.columns[1] b = e.columns[2] return 0.5*sum(abs(a/sum(a) - b/sum(b))) tvd(males, 'mar_status', 'empl_status') # - # Next, we can write a function that performs a permutation test using this `tvd` function to compute the same statistic on shuffled variants of any table. It's worth reading through this implementation to understand its details. def permutation_tvd(original, conditions, values): """Perform a permutation test to estimate the likelihood of the observed total variation distance (our test statistic) between counts of values under the null hypothesis that the distribution of values for two conditions is the same. """ repetitions=200 stats = [] for i in np.arange(repetitions): shuffled = original.sample() combined = Table([original[conditions], shuffled[values]], [conditions, values]) stats.append(tvd(combined, conditions, values)) observation = tvd(original, conditions, values) p_value = np.count_nonzero(stats >= observation) / repetitions print("Observation:", observation) print("Empirical P-value:", p_value) Table([stats], ['Empirical distribution']).hist(normed=True) permutation_tvd(males, 'mar_status', 'empl_status') # Now that we have generalized our permutation test, we can apply it to other hypotheses. For example, we can compare the distribution over the employment status of women, grouping them by their marital status. In the case of men we found a difference, but what about with women? First, we can visualize the two distributions. # + def compare_bar(t, conditions, values): """Overlay histograms of values for two conditions.""" t['count'] = 1 e = t.pivot(conditions, values, 'count', sum) for label in e.column_labels[1:]: e[label] = e[label]/sum(e[label]) # Normalize each column of counts e.barh(values, overlay=True) compare_bar(couples.where('gender', 'female'), 'mar_status', 'empl_status') # - # A glance at the two columns of proportions shows that the two distributions are different. The difference in the category "Not working – other" is particularly striking: about 22% of the married women are in this cateogory, compared to only about 8% of the unmarried women. There are several reasons for this difference. For example, the percent of homemakers is greater among married women than among unmarried women, possibly because married women are more likely to be "stay-at-home" mothers of young children. The difference could also be generational: as we saw earlier, the married couples are older than the unmarried partners, and older women are less likely to be in the workforce than younger women. # # Let's review our reasoning about hypothesis testing. We have to consider the possibility that the difference could simply be the result of chance variation. Remember that our data are only from a random sample of couples. We do not have data for all the couples in the United States. # # To test this, we set up null and alternative hypotheses. When setting up a hypothesis, the null in particular, it is important to be clear: exactly what are the unknowns about which you hypothesizing? In our example, the sample is entirely known, and the distributions of employment status in the two groups of women are simply different – the difference is visible in the data. The unknowns are the distributions of employment status among married and unmarried women *in the United States*, the population from which the sample was drawn. It is those distributions, in the population, about which we will form the competing hypotheses. # **Null hypothesis**: In the U.S., the distribution of employment status is the same for married women as for unmarried women living with their partners. The difference in the sample is due to chance. # # **Alternative hypothesis**: In the U.S., the distributions of employment status among married and unmarried cohabitating women are different. # # As with the males, the null hypothesis can be rejected because if it were true, something very unlikely occurred in this sample. permutation_tvd(couples.where('gender', 'female'), 'mar_status', 'empl_status') # ### Age: A Quantitative Variable # # Next, we can test the null hypothesis that the distributions in ages between married and cohabitating individuals are the same. Age is a quantitative variable — everyone has a different age. However, in our dataset, ages have been binned already into yearly categories. # # It is perhaps no surprise that the empirical P-value is 0 (below); the idea that a couple would live together without being married has become more acceptable over time, and so we might expect that cohabitating couples are younger. permutation_tvd(couples, 'mar_status', 'age') # Looking at the distributions in ages confirms the result of this permutation test; the distributions simply look quite different. Here's a function that compares the distribution of values for two conditions. When called on `'mar_status'` as the `conditions`, we compare the distributions of ages for `mar_status=1` (married) and `mar_status=2` (cohabitating). # + def compare(t, conditions, values): """Overlay histograms of values for two conditions.""" t['count'] = 1 e = t.pivot(conditions, values, 'count', sum) for label in e.column_labels[1:]: e[label] = e[label]/sum(e[label]) # Normalize each column of counts e.hist(counts=values, normed=True, overlay=True) compare(couples, 'mar_status', 'age') # - # What about the relationship of gender and age? Is there a difference in these distributions? compare(couples, 'gender', 'age') # In this case, the women (gender=2) in the surveyed population of couples have an age distribution that skews a bit younger. Would this observed difference be a typical result of sampling if both the distributions of men and women in couples were in fact the same? According to our `permutation_tvd` test, the total variation distance between ages of these two groups is quite typical. permutation_tvd(couples, 'gender', 'age') TdzNsV3AwVXEvaERCSmJKN0NrSmU0YXlHS2NxNkYySmxqZ1NmVlpxWGFIQmkwR0VQMnllY3hSTStvMDQyQ0RWcFBURmViYmxRK1lRelJPd05RV2xqUHN6cWJVNElXWThnT3ViNVM3UVhIb2Z4QjYxbXA4L2h5MEdJTS9tSmFpTlJJZEtNNjJhQnpURGNxbDNGbkNNbjdJTGw5VVZyWXdKOTBMaWNITGNiZ1BhYkxsQTdLOFNoUDZSelRqY28xVEpjcGZSTGRxQzdUamNvbFRBdVJPZnNpdFBBWG50SFpuQlMwR0VObXVETkVlcmNINVFmS0NWZzhwWE5acVRZSEJDM0hrQjZtaGZBV0MyRU1SV3pRQm1KcXA3Vm5QVlJvTXdPQzFwQUp1cHFEM1h6ZTdRKzI1ejBFcnFLamNwYjlnQmFLZVZJYk9TWm9NZW1nU3poVWw3S2NZdVlFclNVZGRCVkQ5R2M4UUFkVDNlUnpPNmgyTisxcXpIR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AgICAgICAgZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LWF1dG86IHsKICAgICAgICAtbXMtZmxleDogMSAxIGF1dG87CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxIDEgYXV0bzsKICAgICAgICBmbGV4OiAxIDEgYXV0bzsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtbm9uZTogewogICAgICAgIC1tcy1mbGV4OiBub25lOwogICAgICAgIC13ZWJraXQtZmxleDogbm9uZTsKICAgICAgICBmbGV4OiBub25lOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleDogewogICAgICAgIC1tcy1mbGV4OiAxIDEgMC4wMDAwMDAwMDFweDsKICAgICAgICAtd2Via2l0LWZsZXg6IDE7CiAgICAgICAgZmxleDogMTsKICAgICAgICAtd2Via2l0LWZsZXgtYmFzaXM6IDAuMDAwMDAwMDAxcHg7CiAgICAgICAgZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtMjogewogICAgICAgIC1tcy1mbGV4OiAyOwogICAgICAgIC13ZWJraXQtZmxleDogMjsKICAgICAgICBmbGV4OiAyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC0zOiB7CiAgICAgICAgLW1zLWZsZXg6IDM7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAzOwogICAgICAgIGZsZXg6IDM7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTQ6IHsKICAgICAgICAtbXMtZmxleDogNDsKICAgICAgICAtd2Via2l0LWZsZXg6IDQ7CiAgICAgICAgZmxleDogNDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtNTogewogICAgICAgIC1tcy1mbGV4OiA1OwogICAgICAgIC13ZWJraXQtZmxleDogNTsKICAgICAgICBmbGV4OiA1OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC02OiB7CiAgICAgICAgLW1zLWZsZXg6IDY7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA2OwogICAgICAgIGZsZXg6IDY7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTc6IHsKICAgICAgICAtbXMtZmxleDogNzsKICAgICAgICAtd2Via2l0LWZsZXg6IDc7CiAgICAgICAgZmxleDogNzsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtODogewogICAgICAgIC1tcy1mbGV4OiA4OwogICAgICAgIC13ZWJraXQtZmxleDogODsKICAgICAgICBmbGV4OiA4OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC05OiB7CiAgICAgICAgLW1zLWZsZXg6IDk7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA5OwogICAgICAgIGZsZXg6IDk7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTEwOiB7CiAgICAgICAgLW1zLWZsZXg6IDEwOwogICAgICAgIC13ZWJraXQtZmxleDogMTA7CiAgICAgICAgZmxleDogMTA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTExOiB7CiAgICAgICAgLW1zLWZsZXg6IDExOwogICAgICAgIC13ZWJraXQtZmxleDogMTE7CiAgICAgICAgZmxleDogMTE7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTEyOiB7CiAgICAgICAgLW1zLWZsZXg6IDEyOwogICAgICAgIC13ZWJraXQtZmxleDogMTI7CiAgICAgICAgZmxleDogMTI7CiAgICAgIH07CgogICAgICAvKiBhbGlnbm1lbnQgaW4gY3Jvc3MgYXhpcyAqLwoKICAgICAgLS1sYXlvdXQtc3RhcnQ6IHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogc3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1pdGVtczogZmxleC1zdGFydDsKICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWNlbnRlcjogewog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c3RpZnktY29udGVudDogZmxleC1lbmQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1hcm91bmQtanVzdGlmaWVkOiB7CiAgICAgICAgLW1zLWZsZXgtcGFjazogZGlzdHJpYnV0ZTsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtanVzdGlmaWVkOiB7CiAgICAgICAgLW1zLWZsZXgtcGFjazoganVzdGlmeTsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH07CgogICAgICAtLWxheW91dC1jZW50ZXItY2VudGVyOiB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtY2VudGVyLWp1c3RpZmllZDsKICAgICAgfTsKCiAgICAgIC8qIHNlbGYgYWxpZ25tZW50ICovCgogICAgICAtLWxheW91dC1zZWxmLXN0YXJ0OiB7CiAgICAgICAgLW1zLWFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICAgIGFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1zZWxmLWNlbnRlcjogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgYWxpZ24tc2VsZjogY2VudGVyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtc2VsZi1lbmQ6IHsKICAgICAgICAtbXMtYWxpZ24tc2VsZjogZmxleC1lbmQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LXNlbGYtc3RyZXRjaDogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBzdHJldGNoOwogICAgICAgIC13ZWJraXQtYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgICBhbGlnbi1zZWxmOiBzdHJldGNoOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtc2VsZi1iYXNlbGluZTogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICAgIGFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICB9OwoKICAgICAgLyogbXVsdGktbGluZSBhbGlnbm1lbnQgaW4gbWFpbiBheGlzICovCgogICAgICAtLWxheW91dC1zdGFydC1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBzdGFydDsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IGZsZXgtc3RhcnQ7CiAgICAgICAgYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWVuZC1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBlbmQ7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgICAgYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1jZW50ZXItYWxpZ25lZDogewogICAgICAgIC1tcy1mbGV4LWxpbmUtcGFjazogY2VudGVyOyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgYWxpZ24tY29udGVudDogY2VudGVyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtYmV0d2Vlbi1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBqdXN0aWZ5OyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBhbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtYXJvdW5kLWFsaWduZWQ6IHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IGRpc3RyaWJ1dGU7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgICBhbGlnbi1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgIH07CgogICAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgICAgICAgICAgICAgT3RoZXIgTGF5b3V0CiAgICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogICAgICAtLWxheW91dC1ibG9jazogewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtaW52aXNpYmxlOiB7CiAgICAgICAgdmlzaWJpbGl0eTogaGlkZGVuICFpbXBvcnRhbnQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1yZWxhdGl2ZTogewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZpdDogewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1zY3JvbGw6IHsKICAgICAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH07CgogICAgICAtLWxheW91dC1mdWxsYmxlZWQ6IHsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgaGVpZ2h0OiAxMDB2aDsKICAgICAgfTsKCiAgICAgIC8qIGZpeGVkIHBvc2l0aW9uICovCgogICAgICAtLWxheW91dC1maXhlZC10b3A6IHsKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1maXhlZC1yaWdodDogewogICAgICAgIHBvc2l0aW9uOiBmaXhlZDsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZml4ZWQtYm90dG9tOiB7CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZml4ZWQtbGVmdDogewogICAgICAgIHBvc2l0aW9uOiBmaXhlZDsKICAgICAgICB0b3A6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH07CgogICAgfQogIDwvc3R5bGU+CjwvY3VzdG9tLXN0eWxlPgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0icGFwZXItcmlwcGxlIj4KCiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvcmRlci1yYWRpdXM6IGluaGVyaXQ7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICB0b3A6IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBib3R0b206IDA7CgogICAgICAgIC8qIFNlZSBQb2x5bWVyRWxlbWVudHMvcGFwZXItYmVoYXZpb3JzL2lzc3Vlcy8zNC4gT24gbm9uLUNocm9tZSBicm93c2VycywKICAgICAgICAgKiBjcmVhdGluZyBhIG5vZGUgKHdpdGggYSBwb3NpdGlvbjphYnNvbHV0ZSkgaW4gdGhlIG1pZGRsZSBvZiBhbiBldmVudAogICAgICAgICAqIGhhbmRsZXIgImludGVycnVwdHMiIHRoYXQgZXZlbnQgaGFuZGxlciAod2hpY2ggaGFwcGVucyB3aGVuIHRoZQogICAgICAgICAqIHJpcHBsZSBpcyBjcmVhdGVkIG9uIGRlbWFuZCkgKi8KICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgOmhvc3QoW2FuaW1hdGluZ10pIHsKICAgICAgICAvKiBUaGlzIHJlc29sdmVzIGEgcmVuZGVyaW5nIGlzc3VlIGluIENocm9tZSAoYXMgb2YgNDApIHdoZXJlIHRoZQogICAgICAgICAgIHJpcHBsZSBpcyBub3QgcHJvcGVybHkgY2xpcHBlZCBieSBpdHMgcGFyZW50ICh3aGljaCBtYXkgaGF2ZQogICAgICAgICAgIHJvdW5kZWQgY29ybmVycykuIFNlZTogaHR0cDovL2pzYmluLmNvbS90ZW1leGEvNAoKICAgICAgICAgICBOb3RlOiBXZSBvbmx5IGFwcGx5IHRoaXMgc3R5bGUgY29uZGl0aW9uYWxseS4gT3RoZXJ3aXNlLCB0aGUgYnJvd3NlcgogICAgICAgICAgIHdpbGwgY3JlYXRlIGEgbmV3IGNvbXBvc2l0aW5nIGxheWVyIGZvciBldmVyeSByaXBwbGUgZWxlbWVudCBvbiB0aGUKICAgICAgICAgICBwYWdlLCBhbmQgdGhhdCB3b3VsZCBiZSBiYWQuICovCiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHRyYW5zbGF0ZSgwLCAwKTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZTNkKDAsIDAsIDApOwogICAgICB9CgogICAgICAjYmFja2dyb3VuZCwKICAgICAgI3dhdmVzLAogICAgICAud2F2ZS1jb250YWluZXIsCiAgICAgIC53YXZlIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CgogICAgICAjYmFja2dyb3VuZCwKICAgICAgLndhdmUgewogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgIH0KCiAgICAgICN3YXZlcywKICAgICAgLndhdmUgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIC53YXZlLWNvbnRhaW5lciwKICAgICAgLndhdmUgewogICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTsKICAgICAgfQoKICAgICAgOmhvc3QoLmNpcmNsZSkgI2JhY2tncm91bmQsCiAgICAgIDpob3N0KC5jaXJjbGUpICN3YXZlcyB7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlOwogICAgICB9CgogICAgICA6aG9zdCguY2lyY2xlKSAud2F2ZS1jb250YWluZXIgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KICAgIDwv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i00ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDRweCA1cHggMCByZ2JhKDAsIDAsIDAsIDAuMTQpLAogICAgICAgICAgICAgICAgICAgIDAgMXB4IDEwcHggMCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgMnB4IDRweCAtMXB4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi02ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDZweCAxMHB4IDAgcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDFweCAxOHB4IDAgcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDNweCA1cHggLTFweCByZ2JhKDAsIDAsIDAsIDAuNCk7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tOGRwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCA4cHggMTBweCAxcHggcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDNweCAxNHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgNXB4IDVweCAtM3B4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi0xMmRwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCAxMnB4IDE2cHggMXB4IHJnYmEoMCwgMCwgMCwgMC4xNCksCiAgICAgICAgICAgICAgICAgICAgMCA0cHggMjJweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDZweCA3cHggLTRweCByZ2JhKDAsIDAsIDAsIDAuNCk7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tMTZkcDogewogICAgICAgIGJveC1zaGFkb3c6IDAgMTZweCAyNHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMTQpLAogICAgICAgICAgICAgICAgICAgIDAgIDZweCAzMHB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgIDhweCAxMHB4IC01cHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICB9OwoKICAgICAgLS1zaGFkb3ctZWxldmF0aW9uLTI0ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDI0cHggMzhweCAzcHggcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDlweCA0NnB4IDhweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgMTFweCAxNXB4IC03cHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICB9OwogICAgfQogIDwvc3R5bGU+CjwvY3VzdG9tLXN0eWxlPgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLW1hdGVyaWFsLXN0eWxlcyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCwgaHRtbCB7CiAgICAgICAgLS1wYXBlci1tYXRlcmlhbDogewogICAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgfTsKICAgICAgICAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi0xOiB7CiAgICAgICAgICBAYXBwbHkgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDsKICAgICAgICB9OwogICAgICAgIC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTI6IHsKICAgICAgICAgIEBhcHBseSAtLXNoYWRvdy1lbGV2YXRpb24tNGRwOwogICAgICAgIH07CiAgICAgICAgLS1wYXBlci1tYXRlcmlhbC1lbGV2YXRpb24tMzogewogICAgICAgICAgQGFwcGx5IC0tc2hhZG93LWVsZXZhdGlvbi02ZHA7CiAg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U7CiAgICAgICAgLW1zLXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIHotaW5kZXg6IDA7CiAgICAgICAgcGFkZGluZzogMC43ZW0gMC41N2VtOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWJ1dHRvbjsKICAgICAgfQoKICAgICAgOmhvc3QoW2VsZXZhdGlvbj0iMSJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTE7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjIiXSkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi0yOwogICAgICB9CgogICAgICA6aG9zdChbZWxldmF0aW9uPSIzIl0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1tYXRlcmlhbC1lbGV2YXRpb24tMzsKICAgICAgfQoKICAgICAgOmhvc3QoW2VsZXZhdGlvbj0iNCJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjUiXSkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi01OwogICAgICB9CgogICAgICA6aG9zdChbaGlkZGVuXSkgewogICAgICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgOmhvc3QoW3JhaXNlZF0ua2V5Ym9hcmQtZm9jdXMpIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICBAYXBwbHkgLS1wYXBlci1idXR0b24tcmFpc2VkLW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3giPgogIDx0ZW1wbGF0ZSBzdHJpcC13aGl0ZXNwYWNlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplOiB2YXIoLS1wYXBlci1jaGVja2JveC1zaXplLCAxOHB4KTsKICAgICAgICAvKiAtMXB4IGlzIGEgc2VudGluZWwgZm9yIHRoZSBkZWZhdWx0IGFuZCBpcyByZXBsYWNlZCBpbiBgYXR0YWNoZWRgLiAqLwogICAgICAgIC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1pbmstc2l6ZTogdmFyKC0tcGFwZXItY2hlY2tib3gtaW5rLXNpemUsIC0xcHgpOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CiAgICAgICAgbGluZS1oZWlnaHQ6IDA7CiAgICAgICAgLXdlYmtpdC10YXAtaGlnaGxpZ2h0LWNvbG9yOiB0cmFuc3BhcmVudDsKICAgICAgfQoKICAgICAgOmhvc3QoW2hpZGRlbl0pIHsKICAgICAgICBkaXNwbGF5OiBub25lICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIDpob3N0KDpmb2N1cykgewogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgIH0KCiAgICAgIC5oaWRkZW4gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgICNjaGVja2JveENvbnRhaW5lciB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKTsKICAgICAgICBoZWlnaHQ6IHZhcigtLWNhbGN1b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XBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIG9wYWNpdHk6IDAuNjsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgI2luazpkaXIocnRsKSB7CiAgICAgICAgcmlnaHQ6IGNhbGMoMHB4IC0gKHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtaW5rLXNpemUpIC0gdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKSkgLyAyKTsKICAgICAgICBsZWZ0OiBhdXRvOwogICAgICB9CgogICAgICAjaW5rW2NoZWNrZWRdIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKICAgICAgfQoKICAgICAgI2NoZWNrYm94IHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgYm9yZGVyOiBzb2xpZCAycHg7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICAtd2Via2l0LXRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMTQwbXMsIGJvcmRlci1jb2xvciAxNDBtczsKICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDE0MG1zLCBib3JkZXItY29sb3IgMTQwbXM7CiAgICAgIH0KCiAgICAgIC8qIGNoZWNrYm94IGNoZWNrZWQgYW5pbWF0aW9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aWR0aDogMzYlOwogICAgICAgIGhlaWdodDogNzAlOwogICAgICAgIGJvcmRlci1zdHlsZTogc29saWQ7CiAgICAgICAgYm9yZGVyLXRvcDogbm9uZTsKICAgICAgICBib3JkZXItbGVmdDogbm9uZTsKICAgICAgICBib3JkZXItcmlnaHQtd2lkdGg6IGNhbGMoMi8xNSAqIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtc2l6ZSkpOwogICAgICAgIGJvcmRlci1ib3R0b20td2lkdGg6IGNhbGMoMi8xNSAqIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtc2l6ZSkpOwogICAgICAgIGJvcmRlci1jb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtY2hlY2ttYXJrLWNvbG9yLCB3aGl0ZSk7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm0tb3JpZ2luOiA5NyUgODYlOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IDk3JSA4NiU7CiAgICAgICAgYm94LXNpemluZzogY29udGVudC1ib3g7IC8qIHByb3RlY3QgYWdhaW5zdCBwYWdlLWxldmVsIGJveC1zaXppbmcgKi8KICAgICAgfQoKICAgICAgI2NoZWNrbWFyazpkaXIocnRsKSB7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm0tb3JpZ2luOiA1MCUgMTQlOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IDUwJSAxNCU7CiAgICAgIH0KCiAgICAgIC8qIGxhYmVsICovCiAgICAgICNjaGVja2JveExhYmVsIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgICAgcGFkZGluZy1sZWZ0OiB2YXIoLS1wYXBlci1jaGVja2JveC1sYWJlbC1zcGFjaW5nLCA4cHgpOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3JtYWw7CiAgICAgICAgbGluZS1oZWlnaHQ6IG5vcm1hbDsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWNoZWNrYm94LWxhYmVsOwogICAgICB9CgogICAgICA6aG9zdChbY2hlY2tlZF0pICNjaGVja2JveExhYmVsIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtY2hlY2tlZC1jb2xvciwgdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1jaGVja2JveC1sYWJlbC1jaGVja2VkOwogICAgICB9CgogICAgICAjY2hlY2tib3hMYWJlbDpkaXIocnRsKSB7CiAgICAgICAgcGFkZGluZy1yaWdodDogdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtc3BhY2luZywgOHB4KTsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDA7CiAgICAgIH0KCiAgICAgICNjaGVja2JveExhYmVsW2hpZGRlbl0gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgIC8qIGRpc2FibGVkIHN0YXRlICovCgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAjY2hlY2tib3ggewogICAgICAgIG9wYWNpdHk6IDAuNTsKICAgICAgICBib3JkZXItY29sb3I6IHZhcigtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvciwgdmFyKC0tcHJpbWFyeS10ZXh0LWNvbG9yKSk7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF1bY2hlY2tlZF0pICNjaGVja2JveCB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWNvbG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eWxlIj4KICAgIGh0bWwgewoKICAgICAgLyogU2hhcmVkIFN0eWxlcyAqLwogICAgICAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U6IHsKICAgICAgICBmb250LWZhbWlseTogJ1JvYm90bycsICdOb3RvJywgc2Fucy1zZXJpZjsKICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb21tb24tY29kZTogewogICAgICAgIGZvbnQtZmFtaWx5OiAnUm9ib3RvIE1vbm8nLCAnQ29uc29sYXMnLCAnTWVubG8nLCBtb25vc3BhY2U7CiAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtY29tbW9uLWV4cGVuc2l2ZS1rZXJuaW5nOiB7CiAgICAgICAgdGV4dC1yZW5kZXJpbmc6IG9wdGltaXplTGVnaWJpbGl0eTsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb21tb24tbm93cmFwOiB7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICB9OwoKICAgICAgLyogTWF0ZXJpYWwgRm9udCBTdHlsZXMgKi8KCiAgICAgIC0tcGFwZXItZm9udC1kaXNwbGF5NDogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tbm93cmFwOwoKICAgICAgICBmb250LXNpemU6IDExMnB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDQ0ZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDEyMHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWRpc3BsYXkzOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogNTZweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAtLjAyNmVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiA2MHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWRpc3BsYXkyOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiA0NXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDE4ZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDQ4cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtZGlzcGxheTE6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwoKICAgICAgICBmb250LXNpemU6IDM0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsZXR0ZXItc3BhY2luZzogLS4wMWVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiA0MHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWhlYWRsaW5lOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiAyNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDEyZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDMycHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtdGl0bGU6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLW5vd3JhcDsKCiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI4cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtc3ViaGVhZDogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CgogICAgICAgIGZvbnQtc2l6ZTogMTZweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyNHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWJvZHkyOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI0cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtYm9keTE6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwoKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jYXB0aW9uOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjAxMWVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LW1lbnU6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLW5vd3JhcDsKCiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI0cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtYnV0dG9uOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjAxOGVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyNHB4OwogICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtY29kZTI6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1jb2RlOwoKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb2RlMTogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWNvZGU7CgogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4OwogICAgICB9OwoKICAgIH0KCiAgPC9zdHlsZT4KPC9jdXN0b20tc3R5bGU+CgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLWlucHV0LWNoYXItY291bnRlciI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGZsb2F0OiByaWdodDsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jYXB0aW9uOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNoYXItY291bnRlcjsKICAgICAgfQoKICAgICAgOmhvc3QoW2hpZGRlbl0pIHsKICAgICAgICBkaXNwbGF5OiBub25lICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIDpob3N0KDpkaXIocnRsKSkgewogICAgICAgIGZsb2F0OiBsZWZ0OwogICAgICB9CiAgICA8L3N0eWxlPgoKICAgIDxzcGFuPltbX2NoYXJDb3VudGVyU3RyXV08L3NwYW4+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKPGN1c3RvbS1zdHlsZT4KICA8c3R5bGUgaXM9ImN1c3RvbS1zdHlsZSI+CiAgICBodG1sIHsKICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItc2hhcmVkLWlucHV0LXN0eWxlOiB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOyAvKiB0byBtYWtlIGEgc3RhY2tpbmcgY29udGV4dCAqLwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgYm94LXNoYWRvdzogbm9uZTsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7CiAgICAgICAgYm9yZGVyOiBub25lOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIC13ZWJraXQtYXBwZWFyYW5jZTogbm9uZTsKICAgICAgICB0ZXh0LWFsaWduOiBpbmhlcml0OwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBib3R0b207CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtc3ViaGVhZDsKICAgICAgfTsKICAgIH0KICA8L3N0eWxlPgo8L2N1c3RvbS1zdHlsZT4KCjxkb20tbW9kdWxlIGlkPSJwYXBlci1pbnB1dC1jb250YWluZXIiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBhZGRpbmc6IDhweCAwOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lcjsKICAgICAgfQoKICAgICAgOmhvc3QoW2lubGluZV0pIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICBvcGFjaXR5OiAwLjMzOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFtoaWRkZW5dKSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuZmxvYXRlZC1sYWJlbC1wbGFjZWhvbGRlciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jYXB0aW9uOwogICAgICB9CgogICAgICAudW5kZXJsaW5lIHsKICAgICAgICBoZWlnaHQ6IDJweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5mb2N1c2VkLWxpbmU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ybSAwLjI1czsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4yNXM7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLXRyYW5zaXRpb24tZWFzaW5nOwogICAgICB9CgogICAgICAudW5mb2N1c2VkLWxpbmUgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1jb2xvciwgdmFyKC0tc2Vjb25kYXJ5LXRleHQtY29sb3IpKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItdW5kZXJsaW5lOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAudW5mb2N1c2VkLWxpbmUgewogICAgICAgIGJvcmRlci1ib3R0b206IDFweCBkYXNoZWQ7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLXVuZGVybGluZS1kaXNhYmxlZDsKICAgICAgfQoKICAgICAgLmlucHV0LXdyYXBwZXIgewogICAgICAgIEBhcHBseSAtLWxheW91dC1ob3Jpem9udGFsOwogICAgICAgIEBhcHBseSAtLWxheW91dC1jZW50ZXI7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXgtYXV0bzsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtcmVsYXRpdmU7CiAgICAgICAgbWF4LXdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQobGFiZWwpLAogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R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bG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDsKICAgICAgfQoKICAgICAgLmlucHV0LWNvbnRlbnQgOjpzbG90dGVkKGlucHV0KTo6LXdlYmtpdC1vdXRlci1zcGluLWJ1dHRvbiwKICAgICAgLmlucHV0LWNvbnRlbnQgOjpzbG90dGVkKGlucHV0KTo6LXdlYmtpdC1pbm5lci1zcGluLWJ1dHRvbiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0LXdlYmtpdC1zcGlubmVyOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudC5mb2N1c2VkIDo6c2xvdHRlZChpbnB1dCksCiAgICAgIC5pbnB1dC1jb250ZW50LmZvY3VzZWQgOjpzbG90dGVkKGlyb24taW5wdXQpLAogICAgICAuaW5wdXQtY29udGVudC5mb2N1c2VkIDo6c2xvdHRlZCh0ZXh0YXJlYSksCiAgICAgIC5pbnB1dC1jb250ZW50LmZvY3VzZWQgOjpzbG90dGVkKGlyb24tYXV0b2dyb3ctdGV4dGFyZWEpLAogICAgICAuaW5wdXQtY29udGVudC5mb2N1c2VkIDo6c2xvdHRlZCgucGFwZXItaW5wdXQtaW5wdXQpIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtZm9jdXM7CiAgICAgIH0KCiAgICAgIC5pbnB1dC1jb250ZW50LmlzLWludmFsaWQgOjpzbG90dGVkKGlucHV0KSwKICAgICAgLmlucHV0LWNvbnRlbnQuaXMtaW52YWxpZCA6OnNsb3R0ZWQoaXJvbi1pbnB1dCksCiAgICAgIC5pbnB1dC1jb250ZW50LmlzLWludmFsaWQgOjpzbG90dGVkKHRleHRhcmVhKSwKICAgICAgLmlucHV0LWNvbnRlbnQuaXMtaW52YWxpZCA6OnNsb3R0ZWQoaXJvbi1hdXRvZ3Jvdy10ZXh0YXJlYSksCiAgICAgIC5pbnB1dC1jb250ZW50LmlzLWludmFsaWQgOjpzbG90dGVkKC5wYXBlci1pbnB1dC1pbnB1dCkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC1pbnZhbGlkOwogICAgICB9CgogICAgICAucHJlZml4IDo6c2xvdHRlZCgqKSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtc3ViaGVhZDsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZmxleC1ub25lOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LXByZWZpeDsKICAgICAgfQoKICAgICAgLnN1ZmZpeCA6OnNsb3R0ZWQoKikgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LXN1YmhlYWQ7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXgtbm9uZTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtc3VmZml4OwogICAgICB9CgogICAgICAvKiBGaXJlZm94IHNldHMgYSBtaW4td2lkdGggb24gdGhlIGlucHV0LCB3aGljaCBjYW4gY2F1c2UgbGF5b3V0IGlzc3VlcyAqLwogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQoaW5wdXQpIHsKICAgICAgICBtaW4td2lkdGg6IDA7CiAgICAgIH0KCiAgICAgIC5pbnB1dC1jb250ZW50IDo6c2xvdHRlZCh0ZXh0YXJlYSkgewogICAgICAgIHJlc2l6ZTogbm9uZTsKICAgICAgfQoKICAgICAgLmFkZC1vbi1jb250ZW50IHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5hZGQtb24tY29udGVudC5pcy1pbnZhbG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aW5oZXJpdDsKICAgICAgICB0ZXh0LXNoYWRvdzogaW5oZXJpdDsKICAgICAgICBjb2xvcjogaW5oZXJpdDsKICAgICAgICBjdXJzb3I6IGluaGVyaXQ7CiAgICAgIH0KCiAgICAgIGlucHV0OmRpc2FibGVkIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIGlucHV0Ojotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uLAogICAgICBpbnB1dDo6LXdlYmtpdC1pbm5lci1zcGluLWJ1dHRvbiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0LXdlYmtpdC1zcGlubmVyOwogICAgICB9CgogICAgICBpbnB1dDo6LXdlYmtpdC1jbGVhci1idXR0b24gewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC13ZWJraXQtY2xlYXI7CiAgICAgIH0KCiAgICAgIGlucHV0Ojotd2Via2l0LWNhbGVuZGFyLXBpY2tlci1pbmRpY2F0b3IgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC13ZWJraXQtY2FsZW5kYXItcGlja2VyLWluZGljYXRvcjsKICAgICAgfQoKICAgICAgaW5wdXQ6Oi13ZWJraXQtaW5wdXQtcGxhY2Vob2xkZXIgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgIH0KCiAgICAgIGlucHV0Oi1tb3otcGxhY2Vob2xkZXIgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgIH0KCiAgICAgIGlucHV0OjotbW96LXBsYW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OwogICAgICB9CgogICAgICAjY29udGVudFdyYXBwZXIgOjpzbG90dGVkKCopIHsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQoKICAgICAgI2NvbnRlbnRXcmFwcGVyLmFuaW1hdGluZyA6OnNsb3R0ZWQoKikgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPGRpdiBpZD0iY29udGVudFdyYXBwZXIiPgogICAgICA8c2xvdCBpZD0iY29udGVudCIgbmFtZT0iZHJvcGRvd24tY29udGVudCI+PC9zbG90PgogICAgPC9kaXY+CiAgPC90ZW1wbGF0ZT4KCiAgCjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0icGFwZXItbWVudS1idXR0b24iPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgcGFkZGluZzogOHB4OwogICAgICAgIG91dGxpbmU6IG5vbmU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLW1lbnUtYnV0dG9uOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSB7CiAgICAgICAgY3Vyc29yOiBhdXRvOwogICAgICAgIGNvbG9yOiB2YXIoLS1kaXNhYmxlZC10ZXh0LWNvbG9yKTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWVudS1idXR0b24tZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIGlyb24tZHJvcGRvd24gewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1lbnUtYnV0dG9uLWRyb3Bkb3duOwogICAgICB9CgogICAgICAuZHJvcGRvd24tY29udGVudCB7CiAgICAgICAgQGFwcGx5IC0t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cm9wZG93bi1tZW51LXNoYXJlZC1zdHlsZXMiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKCiAgICAgICAgLyogTk9URShjZGF0YSk6IEJvdGggdmFsdWVzIGFyZSBuZWVkZWQsIHNpbmNlIHNvbWUgcGhvbmVzIHJlcXVpcmUgdGhlCiAgICAgICAgICogdmFsdWUgdG8gYmUgYHRyYW5zcGFyZW50YC4KICAgICAgICAgKi8KICAgICAgICAtd2Via2l0LXRhcC1oaWdobGlnaHQtY29sb3I6IHJnYmEoMCwwLDAsMCk7CiAgICAgICAgLXdlYmtpdC10YXAtaGlnaGxpZ2h0LWNvbG9yOiB0cmFuc3BhcmVudDsKCiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7CiAgICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIH07CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1kcm9wZG93bi1tZW51LWRpc2FibGVkOwogICAgICB9CgogICAgICA6aG9zdChbbm9pbmtdKSBwYXBlci1yaXBwbGUgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtuby1sYWJlbC1mbG9hdF0pIHBhcG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cHJlc3Npb25zIHN1cHBvcnRlZCkiIHZhbHVlPSJ7e190YWdGaWx0ZXJ9fSIgY2xhc3M9InNlYXJjaC1pbnB1dCI+CiAgICAgIDxpcm9uLWljb24gcHJlZml4IGljb249InNlYXJjaCIgc2xvdD0icHJlZml4Ij48L2lyb24taWNvbj4KICAgIDwvcGFwZXItaW5wdXQ+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBtYXJnaW46IDEwcHggNXB4IDEwcHggMTBweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWZsZXgiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgLmxheW91dC5ob3Jpem9udGFsLAogICAgICAubGF5b3V0LnZlcnRpY2FsIHsKICAgICAgICBkaXNwbGF5OiAtbXMtZmxleGJveDsKICAgICAgICBkaXNwbGF5OiAtd2Via2l0LWZsZXg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQoKICAgICAgLmxheW91dC5pbmxpbmUgewogICAgICAgIGRpc3BsYXk6IC1tcy1pbmxpbmUtZmxleGJveDsKICAgICAgICBkaXNwbGF5OiAtd2Via2l0LWlubGluZS1mbGV4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OwogICAgICB9CgogICAgICAubGF5b3V0Lmhvcml6b250YWwgewogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogcm93OwogICAgICAgIC13ZWJraXQtZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICB9CgogICAgICAubGF5b3V0LnZlcnRpY2FsIHsKICAgICAgICAtbXMtZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICAtd2Via2l0LWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgfQoKICAgICAgLmxheW91dC53cmFwIHsKICAgICAgICAtbXMtZmxleC13cmFwOiB3cmFwOwogICAgICAgIC13ZWJraXQtZmxleC13cmFwOiB3cmFwOwogICAgICAgIGZsZXgtd3JhcDogd3JhcDsKICAgICAgfQoKICAgICAgLmxheW91dC5uby13cmFwIHsKICAgICAgICAtbXMtZmxleC13cmFwOiBub3dyYXA7CiAgICAgICAgLXdlYmtpdC1mbGV4LXdyYXA6IG5vd3JhcDsKICAgICAgICBmbGV4LXdyYXA6IG5vd3JhcDsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXIsCiAgICAgIC5sYXlvdXQuY2VudGVyLWNlbnRlciB7CiAgICAgICAgLW1zLWZsZXgtYWxpZ246IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXItanVzdGlmaWVkLAogICAgICAubGF5b3V0LmNlbnRlci1jZW50ZXIgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICB9CgogICAgICAuZmxleCB7CiAgICAgICAgLW1zLWZsZXg6IDEgMSAwLjAwMDAwMDAwMXB4OwogICAgICAgIC13ZWJraXQtZmxleDogMTsKICAgICAgICBmbGV4OiAxOwogICAgICAgIC13ZWJraXQtZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgICBmbGV4LWJhc2lzOiAwLjAwMDAwMDAwMXB4OwogICAgICB9CgogICAgICAuZmxleC1hdXRvIHsKICAgICAgICAtbXMtZmxleDogMSAxIGF1dG87CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxIDEgYXV0bzsKICAgICAgICBmbGV4OiAxIDEgYXV0bzsKICAgICAgfQoKICAgICAgLmZsZXgtbm9uZSB7CiAgICAgICAgLW1zLWZsZXg6IG5vbmU7CiAgICAgICAgLXdlYmtpdC1mbGV4OiBub25lOwogICAgICAgIGZsZXg6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWZsZXgtcmV2ZXJzZSI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAubGF5b3V0Lmhvcml6b250YWwtcmV2ZXJzZSwKICAgICAgLmxheW91dC52ZXJ0aWNhbC1yZXZlcnNlIHsKICAgICAgICBkaXNwbGF5OiAtbXMtZmxleGJveDsKICAgICAgICBkaXNwbGF5OiAtd2Via2l0LWZsZXg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQoKICAgICAgLmxheW91dC5ob3Jpem9udGFsLXJldmVyc2UgewogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7CiAgICAgICAgLXdlYmtpdC1mbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICB9CgogICAgICAubGF5b3V0LnZlcnRpY2FsLXJldmVyc2UgewogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7CiAgICAgICAgLXdlYmtpdC1mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlOwogICAgICB9CgogICAgICAubGF5b3V0LndyYXAtcmV2ZXJzZSB7CiAgICAgICAgLW1zLWZsZXgtd3JhcDogd3JhcC1yZXZlcnNlOwogICAgICAgIC13ZWJraXQtZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgICAgZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWZsZXgtYWxpZ25tZW50Ij4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIC8qKgogICAgICAgKiBBbGlnbm1lbnQgaW4gY3Jvc3MgYXhpcy4KICAgICAgICovCiAgICAgIC5sYXlvdXQuc3RhcnQgewogICAgICAgIC1tcy1mbGV4LWFsaWduOiBzdGFydDsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0OwogICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0OwogICAgICB9CgogICAgICAubGF5b3V0LmNlbnRlciwKICAgICAgLmxheW91dC5jZW50ZXItY2VudGVyIHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogY2VudGVyOwogICAgICAgIC13ZWJraXQtYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICB9CgogICAgICAubGF5b3V0LmVuZCB7CiAgICAgICAgLW1zLWZsZXgtYWxpZ246IGVuZDsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuYmFzZWxpbmUgewogICAgICAgIC1tcy1mbGV4LWFsaWduOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBiYXNlbGluZTsKICAgICAgICBhbGlnbi1pdGVtczogYmFzZWxpbmU7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBBbGlnbm1lbnQgaW4gbWFpbiBheGlzLgogICAgICAgKi8KICAgICAgLmxheW91dC5zdGFydC1qdXN0aWZpZWQgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IHN0YXJ0OwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXItanVzdGlmaWVkLAogICAgICAubGF5b3V0LmNlbnRlci1jZW50ZXIgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICB9CgogICAgICAubGF5b3V0LmVuZC1qdXN0aWZpZWQgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IGVuZDsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogZmxleC1lbmQ7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgfQoKICAgICAgLmxheW91dC5hcm91bmQtanVzdGlmaWVkIHsKICAgICAgICAtbXMtZmxleC1wYWNrOiBkaXN0cmlidXRlOwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuanVzdGlmaWVkIHsKICAgICAgICAtbXMtZmxleC1wYWNrOiBqdXN0aWZ5OwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFNlbGYgYWxpZ25tZW50LgogICAgICAgKi8KICAgICAgLnNlbGYtc3RhcnQgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICAgIC13ZWJraXQtYWxpZ24tc2VsZjogZmxleC1zdGFydDsKICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICB9CgogICAgICAuc2VsZi1jZW50ZXIgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgYWxpZ24tc2VsZjogY2VudGVyOwogICAgICB9CgogICAgICAuc2VsZi1lbmQgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGZsZXgtZW5kOwogICAgICAgIGFsaWduLXNlbGY6IGZsZXgtZW5kOwogICAgICB9CgogICAgICAuc2VsZi1zdHJldGNoIHsKICAgICAgICAtbXMtYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IHN0cmV0Y2g7CiAgICAgICAgYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgfQoKICAgICAgLnNlbGYtYmFzZWxpbmUgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICAgIGFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICB9CgogICAgICAvKioKICAgICAgICogbXVsdGktbGluZSBhbGlnbm1lbnQgaW4gbWFpbiBheGlzLgogICAgICAgKi8KICAgICAgLmxheW91dC5zdGFydC1hbGlnbmVkIHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IHN0YXJ0OyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgICBhbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICB9CgogICAgICAubGF5b3V0LmVuZ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go8ZG9tLW1vZHVsZSBpZD0iaXJvbi1mbGV4LWZhY3RvcnMiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgLmZsZXgsCiAgICAgIC5mbGV4LTEgewogICAgICAgIC1tcy1mbGV4OiAxIDEgMC4wMDAwMDAwMDFweDsKICAgICAgICAtd2Via2l0LWZsZXg6IDE7CiAgICAgICAgZmxleDogMTsKICAgICAgICAtd2Via2l0LWZsZXgtYmFzaXM6IDAuMDAwMDAwMDAxcHg7CiAgICAgICAgZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgfQoKICAgICAgLmZsZXgtMiB7CiAgICAgICAgLW1zLWZsZXg6IDI7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAyOwogICAgICAgIGZsZXg6IDI7CiAgICAgIH0KCiAgICAgIC5mbGV4LTMgewogICAgICAgIC1tcy1mbGV4OiAzOwogICAgICAgIC13ZWJraXQtZmxleDogMzsKICAgICAgICBmbGV4OiAzOwogICAgICB9CgogICAgICAuZmxleC00IHsKICAgICAgICAtbXMtZmxleDogNDsKICAgICAgICAtd2Via2l0LWZsZXg6IDQ7CiAgICAgICAgZmxleDogNDsKICAgICAgfQoKICAgICAgLmZsZXgtNSB7CiAgICAgICAgLW1zLWZsZXg6IDU7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA1OwogICAgICAgIGZsZXg6IDU7CiAgICAgIH0KCiAgICAgIC5mbGV4LTYgewogICAgICAgIC1tcy1mbGV4OiA2OwogICAgICAgIC13ZWJraXQtZmxleDogNjsKICAgICAgICBmbGV4OiA2OwogICAgICB9CgogICAgICAuZmxleC03IHsKICAgICAgICAtbXMtZmxleDogNzsKICAgICAgICAtd2Via2l0LWZsZXg6IDc7CiAgICAgICAgZmxleDogNzsKICAgICAgfQoKICAgICAgLmZsZXgtOCB7CiAgICAgICAgLW1zLWZsZXg6IDg7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA4OwogICAgICAgIGZsZXg6IDg7CiAgICAgIH0KCiAgICAgIC5mbGV4LTkgewogICAgICAgIC1tcy1mbGV4OiA5OwogICAgICAgIC13ZWJraXQtZmxleDogOTsKICAgICAgICBmbGV4OiA5OwogICAgICB9CgogICAgICAuZmxleC0xMCB7CiAgICAgICAgLW1zLWZsZXg6IDEwOwogICAgICAgIC13ZWJraXQtZmxleDogMTA7CiAgICAgICAgZmxleDogMTA7CiAgICAgIH0KCiAgICAgIC5mbGV4LTExIHsKICAgICAgICAtbXMtZmxleDogMTE7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxMTsKICAgICAgICBmbGV4OiAxMTsKICAgICAgfQoKICAgICAgLmZsZXgtMTIgewogICAgICAgIC1tcy1mbGV4OiAxMjsKICAgICAgICAtd2Via2l0LWZsZXg6IDEyOwogICAgICAgIGZsZXg6IDEyOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCgo8ZG9tLW1vZHVsZSBpZD0iaXJvbi1wb3NpdGlvbmluZyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAuYmxvY2sgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuaW52aXNpYmxlIHsKICAgICAgICB2aXNpYmlsaXR5OiBoaWRkZW4gIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLnJlbGF0aXZlIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5maXQgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIGJvZHkuZnVsbGJsZWVkIHsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgaGVpZ2h0OiAxMDB2aDsKICAgICAgfQoKICAgICAgLnNjcm9sbCB7CiAgICAgICAgLXdlYmtpdC1vdmVyZmxvdy1zY3JvbGxpbmc6IHRvdWNoOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CgogICAgICAvKiBmaXhlZCBwb3NpdGlvbiAqLwogICAgICAuZml4ZWQtYm90dG9tLAogICAgICAuZml4ZWQtbGVmdCwKICAgICAgLmZpeGVkLXJpZ2h0LAogICAgICAuZml4ZWQtdG9wIHsKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgIH0KCiAgICAgIC5maXhlZC10b3AgewogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CgogICAgICAuZml4ZWQtcmlnaHQgewogICAgICAgIHRvcDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgIH0KCiAgICAgIC5maXhlZC1ib3R0b20gewogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CgogICAgICAuZml4ZWQtbGVmdCB7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKPHN0eWxlIGlzPSJjdXN0b20tc3R5bGUiPgogIDpyb290IHsKICAgIC0tdGItb3JhbmdlLXdlYWs6ICNmZmE3MjY7CiAgICAtLXRiLW9yYW5nZS1zdHJvbmc6ICNmNTdjMDA7CiAgICAtLXRiLW9yYW5nZS1kYXJrOiAjZGM3MzIwOwogICAgLS10Yi1ncmV5LWRhcmtlcjogI2UyZTJlMjsKICAgIC0tdGItZ3JleS1saWdodGVyOiAjZjNmM2YzOwogICAgLS10Yi11aS1kYXJrLWF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iAgICAgICAgbWFyZ2luLWJvdHRvbTogMDsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogMDsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbiBoMyB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWdyZXktODAwKTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IG5vcm1hbDsKICAgICAgICBtYXJnaW46IDEwcHggMCA1cHg7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KCiAgICAgIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGZvbnQtc2l6ZTogMTVweDsKICAgICAgICBtYXJnaW4tdG9wOiA1cHg7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCgoKCjxkb20tbW9kdWxlIGlkPSJzY3JvbGxiYXItc3R5bGUiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgLnNjcm9sbGJhcjo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2sgewogICAgICAgIHZpc2liaWxpdHk6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLnNjcm9sbGJhcjo6LXdlYmtpdC1zY3JvbGxiYXIgewogICAgICAgIHdpZHRoOiAxMHB4OwogICAgICB9CgogICAgICAuc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMTBweDsKICAgICAgICAtd2Via2l0LWJveC1zaGFkb3c6IGluc2V0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gICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7CiAgICAgIH0KCiAgICAgICNjZW50ZXIgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgOjpzbG90dGVkKFtzbG90PSdjZW50ZXInXSkgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBvdmVyZmxvdy14OiBoaWRkZW47CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CgogICAgICAudGYtZ3JhcGgtZGFzaGJvYXJkICNjZW50ZXIgewogICAgICAgIGJhY2tncm91bmQ6ICNmZmY7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1vcHRpb24tc2VsZWN0b3IiPgogIDx0ZW1wbGF0ZT4KICAgIDxkaXYgaWQ9IndyYXAiPgogICAgICA8aDM+W1tuYW1lXV08L2gzPgogICAgICA8ZGl2IGNsYXNzPSJjb250ZW50LXdyYXBwZXIiPjxzbG90Pjwvc2xvdD48L2Rpdj4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAuY29udGVudC13cmFwcGVyIDo6c2xvdHRlZCgqKSB7CiAgICAgICAgYmFja2dyb3VuZDogbm9uZTsKICAgICAgICBjb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICAuY29udGVudC13cmFwcGVyIDo6c2xvdHRlZCgqKSB7CiAgICAgICAgYmFja2dyb3VuZDogbm9uZTsKICAgICAgICBjb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICAuY29udGVudC13cmFwcGVyIDo6c2xvdHRlZCguc2VsZWN0ZWQpIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS10Yi11aS1kYXJrLWFjY2VudCk7CiAgICAgICAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIGgzIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIG1hcmdpbjogMCAwIDVweDsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWNvbGxhcHNlIj4KCiAgPHRlbXBsYXRlPgoKICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHRyYW5zaXRpb24tZHVyYXRpb246IHZhcigtLWlyb24tY29sbGFwc2UtdHJhbnNpdGlvbi1kdXJhdGlvbiwgMzAwbXMpOwogICAgICAgIC8qIFNhZmFyaSAxMCBuZWVkcyB0aGlzIHByb3BlcnR5IHByZWZpeGVkIHRvIGNvcnJlY3RseSBhcHBseSB0aGUgY3VzdG9tIHByb3BlcnR5ICovCiAgICAgICAgLXdlYmtpdC10cmFuc2l0aW9uLWR1cmF0aW9uOiB2YXIoLS1pcm9uLWNvbGxhcHNlLXRyYW5zaXRpb24tZHVyY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2VdXSI+UHJldmlvdXMgcGFnZTwvcGFwZXItYnV0dG9uPgogICAgICAgICAgICAgIDxwYXBlci1idXR0b24gb24tdGFwPSJfcGVyZm9ybU5leHRQYWdlIiBkaXNhYmxlZCQ9IltbIV9oYXNOZXh0UGFnZV1dIj5OZXh0IHBhZ2U8L3BhcGVyLWJ1dHRvbj4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgIDwvZGl2PgogICAgICA8L2lyb24tY29sbGFwc2U+CiAgICA8L3RlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgbWFyZ2luOiAwIDVweCAxcHggMTBweDsKICAgICAgfQoKICAgICAgOmhvc3QoOmZpcnN0LW9mLXR5cGUpIHsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICA6aG9zdCg6bGFzdC1vZi10eXBlKSB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMjBweDsKICAgICAgfQoKICAgICAgLmhlYWRpbmcgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOwogICAgICAgIGJvcmRlcjogbm9uZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxOwogICAgICAgIGJveC1zaGFkb3c6IDAgMXB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMik7CiAgICAgICAgcGFkZGluZzogMTBweCAxNXB4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5oZWFkaW5nOjotbW96LWZvY3VzLWlubmVyIHsKICAgICAgICBwYWRkaW5nOiAxMHB4IDE1cHg7CiAgICAgIH0KCiAgICAgIFtvcGVuLWJ1dHRvbl0gewogICAgICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICAgICAgICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogMCAhaW1wb3J0YW50OwogICAgICB9CgogICAgICBbb3Blbi1idXR0b25dIC5leHBhbmQtYXJyb3cgewogICAgICAgIHRyYW5zZm9ybTogcm90YXRlWigxODBkZWcpOwogICAgICB9CgogICAgICAubmFtZSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLmxpZ2h0IHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS01MDApOwogICAgICB9CgogICAgICAuY2F0ZWdvcnktbmFtZSB7CiAgICAgICAgd2hpdGUtc3BhY2U6IHByZTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICAgIHBhZGRpbmc6IDJweCAwOwogICAgICB9CgogICAgICAuY291bnQgewogICAgICAgIG1hcmdpbjogMCA1cHg7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTUwMCk7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGZsZXg6IG5vbmU7CiAgICAgIH0KCiAgICAgIC5oZWFkaW5nOjotbW96LWZvY3VzLWlubmVyIHsKICAgICAgICBwYWRkaW5nOiAxMHB4IDE1cHg7CiAgICAgIH0KCiAgICAgIC5jb250ZW50IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgYmFja2dyb3VuZDogd2hpdGU7CiAgICAgICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMnB4OwogICAgICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAycHg7CiAgICAgICAgYm9yZGVyLXRvcDogbm9uZTsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZGVkZWRlOwogICAgICAgIHBhZGRpbmc6IDE1cHg7CiAgICAgIH0KCiAgICAgIC5saWdodCB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWdyZXktNTAwKTsKICAgICAgfQoKICAgICAgI2NvbnRyb2xzLWNvbnRhaW5lciB7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI2NvbnRyb2xzLWNvbnRhaW5lciBwYXBlci1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgLmJpZy1wYWdlLWJ1dHRvbnMgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH0KCiAgICAgIC5iaWctcGFnZS1idXR0b25zIHBhcGVyLWJ1dHRvbiB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdGItdWktbGlnaHQtYWNjZW50KTsKICAgICAgICBjb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBmbGV4LWJhc2lzOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgIH0KCiAgICAgIC5iaWctcGFnZS1idXR0b25zIHBhcGVyLWJ1d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xlZDsKICAgICAgfQoKICAgICAgOmhvc3QoW2hpZGRlbl0pIHsKICAgICAgICBkaXNwbGF5OiBub25lICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIDpob3N0KDpob3ZlcikgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWljb24tYnV0dG9uLWhvdmVyOwogICAgICB9CgogICAgICBpcm9uLWljb24gewogICAgICAgIC0taXJvbi1pY29uLXdpZHRoOiAxMDAlOwogICAgICAgIC0taXJvbi1pY29uLWhlaWdodDogMTAwJTsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8aXJvbi1pY29uIGlkPSJpY29uIiBzcmM9Iltbc3JjXV0iIGljb249IltbaWNvbl1dIiBhbHQkPSJbW2FsdF1dIj48L2lyb24taWNvbj4KICA8L3RlbXBsYXRlPgoKICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJydW4tY29sb3Itc3R5bGUiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgW2NvbG9yLWNsYXNzPSdsaWdodC1ibHVlJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItbGlnaHQtYmx1ZS01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLWxpZ2h0LWJsdWUtNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItbGlnaHQtYmx1ZS05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItbGlnaHQtYmx1ZS05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0ncmVkJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2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11bmNoZWNrZWQtaW5rLWNvbG9yOiB2YXIoLS1wYXBlci1wdXJwbGUtOTAwKTsKICAgICAgfQogICAgICBbY29sb3ItY2xhc3M9J3RlYWwnXSBwYXBlci1jaGVja2JveCB7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWNvbG9yOiB2YXIoLS1wYXBlci10ZWFsLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItdGVhbC01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWNvbG9yOiB2YXIoLS1wYXBlci10ZWFsLTkwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtaW5rLWNvbG9yOiB2YXIoLS1wYXBlci10ZWFsLTkwMCk7CiAgICAgIH0KICAgICAgW2NvbG9yLWNsYXNzPSdwaW5rJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItcGluay01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLXBpbmstNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItcGluay05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItcGluay05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0nb3JhbmdlJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItb3JhbmdlLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItb3Jhb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ZGl2IGNsYXNzPSJpY29uLWNvbnRhaW5lciBpc29sYXRvci1jb250YWluZXIgdmVydGljYWwtYWxpZ24tY29udGFpbmVyIj4KICAgICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249InJhZGlvLWJ1dHRvbi11bmNoZWNrZWQiIGNsYXNzPSJpc29sYXRvciB2ZXJ0aWNhbC1hbGlnbi1jZW50ZXIiIG9uLXRhcD0iX2lzb2xhdGVOYW1lIiBuYW1lPSJbW2l0ZW1dXSI+PC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgIDwvZGl2PgogICAgICAgICAgPGRpdiBjbGFzcz0iaXRlbS1sYWJlbC1jb250YWluZXIiPgogICAgICAgICAgICA8c3Bhbj5bW2l0ZW1dXTwvc3Bhbj4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIHBhcGVyLWlucHV0IHsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItbGFiZWw6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICB9CiAgICAgIH0KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQogICAgICAjb3V0ZXItY29udGFpbmVyIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICB9CiAgICAgIC5uYW1lLXJvdyB7CiAgICAgICAgcGFkZGluZy10b3A6IDVweDsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogNXB4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgd29yZC1icmVhazogYnJlYWstYWxsOyAvKiBtYWtlcyB3cmFwcGluZyBvZiBoeXBlcnBhcmFtIHN0cmluZ3MgYmV0dGVyICovCiAgICAgIH0KICAgICAgLmljb24tY29udGFpbmVyIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAycHg7CiAgICAgIH0KICAgICAgLmNoZWNrYm94IHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDJweDsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgIH0KICAgICAgLmlzb2xhdG9yIHsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgICAgcGFkZGluZzogMHB4OwogICAgICB9CiAgICAgIC5pc29sYXRvci1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogNnB4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgfQogICAgICAuY2hlY2tib3gtY29udGFpbmVyIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDJweDsKICAgICAgfQogICAgICAuaXRlbS1sYWJlbC1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogNXB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICB3aWR0aDogMHB4OyAvKiBoYWNrIHRvIGdldCB0aGUgZmxleC1ncm93IHRvIHdvcmsgcHJvcGVybHkgKi8KICAgICAgfQogICAgICAudG9vbHRpcC12YWx1ZS1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIHBhZGRpbmctbGVmdDogMnB4OwogICAgICB9CiAgICAgIC52ZXJ0aWNhbC1hbGlnbi1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgIH0KICAgICAgLnZlcnRpY2FsLWFsaWduLWNvbnRhaW5lciAudmVydGljYWwtYWxpZ24tY2VudGVyIHsKICAgICAgICBhbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgIH0KICAgICAgLnZlcnRpY2FsLWFsaWduLWNvbnRhaW5lciAudmVydGljYWwtYWxpZ24tdG9wIHsKICAgICAgICBhbGlnbi1zZWxmOiBzdGFydDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtd2JyLXN0cmluZyI+CiAgPHRlbXBsYXRlPgogICAgCiAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW19wYXJ0c11dIiBhcz0icGFydCI+W1twYXJ0XV08d2JyPjwvdGVtcGxhdGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtcnVucy1zZWxlY3RvciI+CiAgPHRlbXBsYXRlPgogICAgPHBhcG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3RoKV1dIj48YSBocmVmPSIiIG9uLWNsaWNrPSJfb3BlbkRhdGFMb2NhdGlvbkRpYWxvZyI+4oCmPC9hPgogICAgICAgIDwvdGVtcGxhdGU+CiAgICAgIDwvZGl2PgogICAgPC90ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIHBhZGRpbmctYm90dG9tOiAxMHB4OwogICAgICB9CiAgICAgICN0b3AtdGV4dCB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDE2cHg7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICB9CiAgICAgIHRmLW11bHRpLWNoZWNrYm94IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CiAgICAgIC54LWJ1dHRvbiB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgfQogICAgICAjdG9vbHRpcC1oZWxwIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgIH0KICAgICAgcGFwZXItYnV0dG9uIHsKICAgICAgICBtYXJnaW4tbGVmdDogMDsKICAgICAgfQogICAgICAjZGF0YS1sb2NhdGlvbiB7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgbWFyZ2luOiA1cHggMCAwIDA7CiAgICAgICAgbWF4LXdpZHRoOiAyODhweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKCgoKCgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLXNwaW5uZXItc3R5bGVzIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIC8qCiAgICAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKi8KICAgICAgLyogU1RZTEVTIEZPUiBUSEUgU1BJTk5FUiAqLwogICAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogICAgICAvKgogICAgICAgKiBDb25zdGFudHM6CiAgICAgICAqICAgICAgQVJDU0laRSAgICAgPSAyNzAgZGVncmVlcyAoYW1vdW50IG9mIGNpcmNsZSB0aGUgYXJjIHRha2VzIHVwKQogICAgICAgKiAgICAgIEFSQ1RJTUUgICAgID0gMTMzM21zICh0aW1lIGl0IHRha2VzIHRvIGV4cGFuZCBhbmQgY29udHJhY3QgYXJjKQogICAgICAgKiAgICAgIEFSQ1NUQVJUUk9UID0gMjE2IGRlZ3JlZXMgKGhvdyBtdWNoIHRoZSBzdGFydCBsb2NhdGlvbiBvZiB0aGUgYXJjCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaG91bGQgcm90YXRlIGVhY2ggdGltZSwgMjE2IGdpdmVzIHVzIGEKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUgcG9pbnRlZCBzdGFyIHNoYXBlIChpdCdzIDM2MC81ICogMykuCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBGb3IgYSA3IHBvaW50ZWQgc3Rhciwgd2UgbWlnaHQgZG8KICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDM2MC83ICogMyA9IDE1NC4yODYpCiAgICAgICAqICAgICAgU0hSSU5LX1RJTUUgPSA0MDBtcwogICAgICAgKi8KCiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAyOHB4OwogICAgICAgIGhlaWdodDogMjhweDsKCiAgICAgICAgLyogMzYwICogQVJDVElNRSAvIChBUkNTVEFSVFJPVCArICgzNjAtQVJDU0laRSkpICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvbnRhaW5lci1yb3RhdGlvbi1kdXJhdGlvbjogMTU2OG1zOwoKICAgICAgICAvKiBBUkNUSU1FICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWV4cGFuZC1jb250cmFjdC1kdXJhdGlvbjogMTMzM21zOwoKICAgICAgICAvKiA0ICogQVJDVElNRSAqLwogICAgICAgIC0tcGFwZXItc3Bpbm5lci1mdWxsLWN5Y2xlLWR1cmF0aW9uOiA1MzMybXM7CgogICAgICAgIC8qIFNIUklOS19USU1FICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvb2xkb3duLWR1cmF0aW9uOiA0MDBtczsKICAgICAgfQoKICAgICAgI3NwaW5uZXJDb250YWluZXIgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKCiAgICAgICAgLyogVGhlIHNwaW5uZXIgZG9lcyBub3QgaGF2ZSBhbnkgY29udGVudHMgdGhhdCB3b3VsZCBoYXZlIHRvIGJlCiAgICAgICAgICogZmxpcHBlZCBpZiB0aGUgZGlyZWN0aW9uIGNoYW5nZXMuIEFsd2F5cyB1c2UgbHRyIHNvIHRoYXQgdGhlCiAgICAgICAgICogc3R5bGUgd29ya3Mgb3V0IGNvcnJlY3RseSBpbiBib3RoIGNhc2VzLiAqLwogICAgICAgIGRpcmVjdGlvbjogbHRyOwogICAgICB9CgogICAgICAjc3Bpbm5lckNvbnRhaW5lci5hY3RpdmUgewogICAgICAgIC13ZWJraXQtYW5pbWF0aW9uOiBjb250YWluZXItcm90YXRlIHZhcigtLXBhcGVyLXNwaW5uZXItY29udGFpbmVyLXJvdGF0aW9uLWR1cmF0aW9uKSBsaW5lYXIgaW5maW5pdGU7CiAgICAgICAgYW5pbWF0aW9uOiBjb250YWluZXItcm90YXRlIHZhcigtLXBhcGVyLXNwaW5uZXItY29udGFpbmVyLXJvdGF0aW9uLWR1cmF0aW9uKSBsaW5lYXIgaW5maW5pdGU7CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBjb250YWluZXItcm90YXRlIHsKICAgICAgICB0byB7IC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKSB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgY29udGFpbmVyLXJvdGF0ZSB7CiAgICAgICAgdG8geyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpIH0KICAgICAgfQoKICAgICAgLnNwaW5uZXItbGF5ZXIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1zcGlubmVyLWNvbG9yLCB2YXIoLS1nb29nbGUtYmx1ZS01MDApKTsKICAgICAgfQoKICAgICAgLmxheWVyLTEgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1zcGlubmVyLWxheWVyLTEt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gICAgICAgNTAlIHsgb3BhY2l0eTogMSB9CiAgICAgICAgNzUlIHsgb3BhY2l0eTogMSB9CiAgICAgICAgNzYlIHsgb3BhY2l0eTogMCB9CiAgICAgICAgdG8geyBvcGFjaXR5OiAwIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBsYXllci0zLWZhZGUtaW4tb3V0IHsKICAgICAgICAwJSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDQwJSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDUwJSB7IG9wYWNpdHk6IDEgfQogICAgICAgIDc1JSB7IG9wYWNpdHk6IDEgfQogICAgICAgIDc2JSB7IG9wYWNpdHk6IDAgfQogICAgICAgIHRvIHsgb3BhY2l0eTogMCB9CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBsYXllci00LWZhZGUtaW4tb3V0IHsKICAgICAgICAwJSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDY1JSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDc1JSB7IG9wYWNpdHk6IDEgfQogICAgICAgIDkwJSB7IG9wYWNpdHk6IDEgfQogICAgICAgIHRvIHsgb3BhY2l0eTogMCB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgbGF5ZXItNC1mYWRlLWluLW91dCB7CiAgICAgICAgMCUgeyBvcGFjaXR5OiAwIH0KICAgICAgICA2NSUgeyBvcGFjaXR5OiAwIH0KICAgICAgICA3NSUgeyBvcGFjaXR5OiAxIH0KICAgICAgICA5MCUgeyBvcGFjaXR5OiAxIH0KICAgICAgICB0byB7IG9wYWNpdHk6IDAgfQogICAgICB9CgogICAgICAuY2lyY2xlLWNsaXBwZXIgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDUwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKIC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iByZWxhdGl2ZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICB9CiAgICAgIGRpdiB7CiAgICAgICAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgfQoKICAgICAgI2NoYXJ0ZGl2IC5tYWluIHsKICAgICAgICBjdXJzb3I6IGNyb3NzaGFpcjsKICAgICAgfQoKICAgICAgOmhvc3QoLnBhbmtleSkgI2NoYXJ0ZGl2IDpub3QoLmRyYWctem9vbWluZykgLm1haW4gewogICAgICAgIGN1cnNvcjogLXdlYmtpdC1ncmFiOwogICAgICAgIGN1cnNvcjogZ3JhYjsKICAgICAgfQoKICAgICAgOmhvc3QoLm1vdXNlZG93bikgI2NoYXJ0ZGl2IC5wYW5uaW5nIC5tYWluIHsKICAgICAgICBjdXJzb3I6IC13ZWJraXQtZ3JhYmJpbmc7CiAgICAgICAgY3Vyc29yOiBncmFiYmluZzsKICAgICAgfQoKICAgICAgI2NoYXJ0ZGl2IGxpbmUuZ3VpZGUtbGluZSB7CiAgICAgICAgc3Ryb2tlOiAjOTk5OwogICAgICAgIHN0cm9rZS13aWR0aDogMS41cHg7CiAgICAgIH0KICAgICAgI2NoYXJ0ZGl2OmhvdmVyIHsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CgogICAgICAuZ2hvc3QgewogICAgICAgIG9wYWNpdHk6IDAuMjsKICAgICAgICBzdHJva2Utd2lkdGg6IDFweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAogIAogIAogIAogIAo8L2RvbS1tb2R1bGU+Cgo8ZG9tLW1vZHVsZSBpZD0idnotbGluZS1jaGFydC10b29sdGlwIj4KICA8dGVtcGxhdGU+CiAgICA8ZGl2IGNsYXNzPSJjb250ZW50Ij4KICAgICAgPHRhYmxlPgogICAgICAgIDx0aGVhZD48L3RoZWFkPgogICAgICAgIDx0Ym9keT48L3Rib2R5PgogICAgICA8L3RhYmxlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgLmNvbnRlbnQgewogICAgICAgIGJhY2tncm91bmQ6IHJnYmEoMCwgMCwgMCwgMC44KTsKICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7CiAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgdGFibGUgewogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBsaW5lLWhlaWdodDogMS40ZW07CiAgICAgICAgbWFyZ2luLXRvcDogMTBweDsKICAgICAgICBwYWRkaW5nOiA4cHg7CiAgICAgIH0KCiAgICAgIHRoZWFkIHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIH0KCiAgICAgIHRib2R5IHsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgbGluZS1oZWlnaHQ6IDIxcHg7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgfQoKICAgICAgdGQgewogICAgICAgIHBhZGRpbmc6IDAgNXB4OwogICAgICB9CgogICAgICAuc3dhdGNoIHsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgaGVpZ2h0OiAxOHB4OwogICAgICAgIHdpZHRoOiAxOHB4OwogICAgICB9CgogICAgICAuY2xvc2VzdCAuc3dhdGNoIHsKICAgICAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMCAycHggI2ZmZjsKICAgICAgfQoKICAgICAgdGggewogICAgICAgIHBhZGRpbmc6IDAgNXB4Owog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RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIHRvcDogMDsKICAgICAgfQoKICAgICAgdnotbGluZS1jaGFydDIgewogICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgLW1vei11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgfQoKICAgICAgdnotbGluZS1jaGFydDJbZGF0YS1sb2FkaW5nXSB7CiAgICAgICAgb3BhY2l0eTogMC4zOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCiAgCjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJwYXBlci1kaWFsb2ctc2Nyb2xsYWJsZSI+CgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KCiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIDpob3N0KC5pcy1zY3JvbGxlZDpub3QoOmZpcnN0LWNoaWxkKSk6OmJlZm9yZSB7CiAgICAgICAgY29udGVudDogJyc7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGhlaWdodDogMXB4OwogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLWRpdmlkZXItY29sb3IpOwogICAgICB9CgogICAgICA6aG9zdCguY2FuLXNjcm9sbDpub3QoLnNjcm9sbGVkLXRvLWJvdHRvbSk6bm90KDpsYXN0LWNoaWxkKSk6OmFmdGVyIHsKICAgICAgICBjb250ZW50OiAnJzsKICAgICAgICBwb3NpdGlvbjogYWJzb2x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uZGVyZXJzIHdpbGwgc3RpbGwgaW5jbHVkZSBhIGA8cD5gIGVsZW1lbnQuCiAgICAgICAqCiAgICAgICAqIEJ5IHRhcmdldGluZyBvbmx5IHRoZSB0b3AtbGV2ZWwsIGV4dHJlbWFsIGVsZW1lbnRzLCB3ZSBwcmVzZXJ2ZSBhbnkKICAgICAgICogYWN0dWFsIHBhcmFncmFwaCBicmVha3MgYW5kIG9ubHkgY2hhbmdlIHRoZSBwYWRkaW5nIGFnYWluc3QgdGhlCiAgICAgICAqIGNvbXBvbmVudCBlZGdlcy4KICAgICAgICovCiAgICAgICNtYXJrZG93biA+IHA6Zmlyc3QtY2hpbGQgewogICAgICAgIG1hcmdpbi10b3A6IDAuM2VtOwogICAgICB9CiAgICAgICNtYXJrZG93biA+IHA6bGFzdC1jaGlsZCB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMC4zZW07CiAgICAgIH0KCiAgICAgIC8qIFBsZWFzYW50IHN0eWxlcyBmb3IgTWFya2Rvd24gdGFibGVzLiAqLwogICAgICAjbWFya2Rvd24gdGFibGUgewogICAgICAgIGJvcmRlci1jb2xsYXBzZTogY29sbGFwc2U7CiAgICAgIH0KICAgICAgI21hcmtkb3duIHRhYmxlIHRoIHsKICAgICAgICBmb250LXdlaWdodDogNjAwOwogICAgICB9CiAgICAgICNtYXJrZG93biB0YWJsZSB0aCwKICAgICAgI21hcmtkb3duIHRhYmxlIHRkIHsKICAgICAgICBwYWRkaW5nOiA2cHggMTNweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZGZlMmU1OwogICAgICB9CiAgICAgICNtYXJrZG93biB0YWJsZSB0ciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjsKICAgICAgICBib3JkZXItdG9wOiAxcHggc29saWQgI2M2Y2JkMTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+Cgo8ZG9tLW1vZHVsZSBpZD0idG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cGVyLWRpYWxvZyBpZD0iZGVzY3JpcHRpb25EaWFsb2ciIG5vLW92ZXJsYXAgaG9yaXpvbnRhbC1hbGlnbj0iYXV0byIgdmVydGljYWwtYWxpZ249ImF1dG8iPgogICAgICAgIDxwYXBlci1kaWFsb2ctc2Nyb2xsYWJsZT4KICAgICAgICAgIDx0Zi1tYXJrZG93bi12aWV3IGh0bWw9IltbZGVzY3JpcHRpb25dXSI+PC90Zi1tYXJrZG93bi12aWV3PgogICAgICAgIDwvcGFwZXItZGlhbG9nLXNjcm9sbGFibGU+CiAgICAgIDwvcGFwZXItZGlhbG9nPgogICAgPC9kaXY+CiAgICA8c3R5bGUgaW5jbHVkZT0idGYtY2FyZC1oZWFkaW5nLXN0eWxlIj4KICAgICAgLmNvbnRhaW5lciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQogICAgICAuY29udGVudCB7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAubmFtZSB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICB9CiAgICAgIC5ydW4gewogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgICB3aWR0aDogYXV0bzsKICAgICAgICBib3JkZXItcmFkaXVzOiAzcHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgICAgcGFkZGluZzogMXB4IDRweCAycHg7CiAgICAgIH0KICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICBwYXBlci1kaWFsb2ctc2Nyb2xsYWJsZSB7CiAgICAgICAgbWF4LXdpZHRoOiA2NDBweDsKICAgICAgfQogICAgICAjaGVhZGluZy1ydW4gewogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXRmLWNhcmQtaGVhZGluZy1iYWNrZ3JvdW5kLWNvbG9yKTsKICAgICAgICBjb2xvcjogdmFyKC0tdGY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AgICAgIDxwYXBlci1pY29uLWJ1dHRvbiBpY29uPSJzZXR0aW5ncy1vdmVyc2NhbiIgb24tdGFwPSJfcmVzZXREb21haW4iIHRpdGxlPSJGaXQgZG9tYWluIHRvIGRhdGEiPjwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG93RG93bmxvYWRMaW5rc11dIj4KICAgICAgICA8cGFwZXItbWVudS1idXR0b24gb24tcGFwZXItZHJvcGRvd24tb3Blbj0iX3VwZGF0ZURvd25sb2FkTGluayI+CiAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gY2xhc3M9ImRyb3Bkb3duLXRyaWdnZXIiIHNsb3Q9ImRyb3Bkb3duLXRyaWdnZXIiIGljb249ImZpbGUtZG93bmxvYWQiPjwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICA8cGFwZXItbGlzdGJveCBjbGFzcz0iZHJvcGRvd24tY29udGVudCIgc2xvdD0iZHJvcGRvd24tY29udGVudCI+CiAgICAgICAgICAgIDxwYXBlci1pdGVtPgogICAgICAgICAgICAgIDxhIGlkPSJzdmdMaW5rIiBkb3dubG9hZD0iW1t0YWddXS5zdmciPgogICAgICAgICAgICAgICAgRG93bmxvYWQgQ3VycmVudCBDaGFydCBhcyBTVkcKICAgICAgICAgICAgICA8L2E+CiAgICAgICAgICAgIDwvcGFwZXItaXRlbT4KICAgICAgICAgIDwvcGFwZXItbGlzdGJveD4KICAgICAgICA8L3BhcGVyLW1lbnUtYnV0dG9uPgogICAgICA8L3RlbXBsYXRlPgogICAgICA8c3BhbiBzdHlsZT0iZmxleC1ncm93OiAxIj48L3NwYW4+CiAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG93RG93bmxvYWRMaW5rc11dIj4KICAgICAgICA8ZGl2IGNsYXNzPSJkb3dubG9hZC1saW5rcyI+CiAgICAgICAgICA8dGYtZG93bmxvYWRlciBydW5zPSJbW19ydW5zRnJvbURhdGEoZGF0YVRvTG9hZCldXSIgdGFnPSJbW3RhZ11dIiB1cmwtZm49IltbX2Rvd25sb2FkVXJsRm5dXSI+PC90Zi1kb3dubG9hZGVyPgogICAgICAgIDwvZGl2PgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBtYXJnaW46IDVweDsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMzMwcHg7CiAgICAgIH0KCiAgICAgIDpob3N0KFtfZXhwYW5kZWRdKSB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtfZXhwYW5kZWRdKSAjdGYtbGluZS1jaGFydC1kYXRhLWxvYWRlci1jb250YWluZXIgewogICAgICAgIGhlaWdodDogNDAwcHg7CiAgICAgIH0KCiAgICAgICN0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiAyMDBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgdGYtY2FyZC1oZWFkaW5nIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxMHB4OwogICAgICB9CgogICAgICAjYnV0dG9ucyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICB9CgogICAgICBwYXBlci1pY29uLWJ1dHRvbiB7CiAgICAgICAgY29sb3I6ICMyMTk2ZjM7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMTAwJTsKICAgICAgICB3aWR0aDogMzJweDsKICAgICAgICBoZWlnaHQ6IDMycHg7CiAgICAgICAgcGFkZGluZzogNHB4OwogICAgICB9CgogICAgICBwYXBlci1pY29uLWJ1dHRvbltzZWxlY3RlZF0gewogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgIH0KCiAgICAgIC5kb3dubG9hZC1saW5rcyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBoZWlnaHQ6IDMycHg7CiAgICAgIH0KCiAgICAgIC5kb3dubG9hZC1saW5rcyBhIHsKICAgICAgICBhbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIG1hcmdpbjogMnB4OwogICAgICB9CgogICAgICAuZG93bmxvYWQtbGlua3MgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgd2lkdGg6IDEwMHB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWxhYmVsOiB7CiAgICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgfQogICAgICB9CgogICAgICBwYXBlci1tZW51LWJ1dHRvbiB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgfQogICAgICBwYXBlci1pdGVtIGEgewogICAgICAgIGNvbG9yOiBpbmhlcml0OwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKCgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0icGFwZXItcHJvZ3Jlc3MiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHdpZHRoOiAyMDBweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAg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Atd2Via2l0LWFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllciguMjgsLjYyLC4zNywuOTEpOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZVgoMCkgdHJhbnNsYXRlWCgwJSk7CiAgICAgICAgfQogICAgICB9CgogICAgICBALXdlYmtpdC1rZXlmcmFtZXMgaW5kZXRlcm1pbmF0ZS1zcGxpdHRlciB7CiAgICAgICAgMCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoLTEyNSUpOwogICAgICAgIH0KICAgICAgICAzMCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoLTEyNSUpOwogICAgICAgICAgLXdlYmtpdC1hbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoLjQyLDAsLjYsLjgpOwogICAgICAgIH0KICAgICAgICA5MCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoMTI1JSk7CiAgICAgICAgfQogICAgICAgIDEwMCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoMTI1JSk7CiAgICAgICAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGluZGV0ZXJtaW5hdGUtYmFyIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlWCgxKSB0cmFuc2xhdGVYKC0xMDAlKTsKICAgICAgICB9CiAgICAgICAgNTAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGVYKDEpIHRyYW5zbGF0ZVgoMCUpOwogICAgICAgIH0KICAgICAgICA3NSUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZ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AvKioKICAgICAgICogTk9URShrZWFudWxlZSk6IE5lZWRlZCB0byBvdmVycmlkZSB0aGUgOmhvc3QtY29udGV4dCBydWxlICh3aGVyZSBzdXBwb3J0ZWQpCiAgICAgICAqIHRvIHN1cHBvcnQgTFRSIHNsaWRlcnMgaW4gUlRMIHBhZ2VzLgogICAgICAgKi8KICAgICAgOmhvc3QoW2Rpcj0ibHRyIl0pICNzbGlkZXJDb250YWluZXIgewogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZVgoMSk7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZVgoMSk7CiAgICAgIH0KCiAgICAgICNzbGlkZXJDb250YWluZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IGNhbGMoMzBweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkpOwogICAgICAgIG1hcmdpbi1sZWZ0OiBjYWxjKDE1cHggKyB2YXIoLS1jYWxjdWxhdGVkLXBhcGVyLXNsaWRlci1oZWlnaHQpLzIpOwogICAgICAgIG1hcmdpbi1yaWdodDogY2FsYygxNXB4ICsgdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1zbGlkZXItaGVpZ2h0KS8yKTsKICAgICAgfQoKICAgICAgI3NsaWRlckNvbnRhaW5lcjpmb2N1cyB7CiAgICAgICAgb3V0bGluZTogMDsKICAgICAgfQoKICAgICAgI3NsaWRlckNvbnRhaW5lci5lZGl0YWJsZSB7CiAgICAgICAgbWFyZ2luLXRvcDogMTJweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxMnB4OwogICAgICB9CgogICAgICAuYmFyLWNvbnRhaW5lciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAucmluZyA+IC5iYXItY29udGFpbmVyIHsKICAgICAgICBsZWZ0OiBjYWxjKDVweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkvMik7CiAgICAgICAgdHJhbnNpdGlvbjogbGVmdCAwLjE4cyBlYXNlOwogICAgICB9CgogICAgICAucmluZy5leHBhbmQuZHJhZ2dpbmcgPiAuYmFyLWNvbnRhaW5lciB7CiAgICAgICAgdHJhbnNpdGlvbjogbm9uZTsKICAgICAgfQoKICAgICAgLnJpbmcuZXhwYW5kOm5vdCgucGluKSA+IC5iYXItY29udGFpbmVyIHsKICAgICAgICBsZWZ0OiBjYWxjKDhweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkvMik7CiAgICAgIH0KCiAgICAgICNzbGlkZXJCYXIgewogICAgICAgIHBhZGRpbmc6IDE1cHggMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1zbGlkZXItYmFyLWNvbG9yLCB0cmFuc3BhcmVudCk7CiAgICAgICAgLS1wYXBlci1wcm9ncmVzcy1jb250YWluZXItY29sb3I6IHZhcigtLXBhcGVyLXNsaWRlci1jb250YWluZXItY29sb3IsIHZhcigtLXBhcGVyLWdyZXktNDAwKSk7CiAgICAgICAgLS1wYXBlci1wcm9ncmVzcy1oZWlnaHQ6IHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCk7CiAgICAgIH0KCiAgICAgIC5zbGlkZXItbWFya2VycyB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogY2FsYygxNHB4ICsgdmFyKC0tcGFwZXItc2xpZGVyLWhlaWdodCwycHgpLzIpOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1zbGlkZXItaG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LnRyYW5zaXRpbmcgPiAuc2xpZGVyLWtub2IgewogICAgICAgIHRyYW5zaXRpb246IGxlZnQgMC4wOHMgZWFzZTsKICAgICAgfQoKICAgICAgLnNsaWRlci1rbm9iOmZvY3VzIHsKICAgICAgICBvdXRsaW5lOiBub25lOwogICAgICB9CgogICAgICAuc2xpZGVyLWtub2IuZHJhZ2dpbmcgewogICAgICAgIHRyYW5zaXRpb246IG5vbmU7CiAgICAgIH0KCiAgICAgIC5zbmFwcyA+IC5zbGlkZXIta25vYi5kcmFnZ2luZyB7CiAgICAgICAgdHJhbnNpdGlvbjogLXdlYmtpdC10cmFuc2Zvcm0gMC4wOHMgZWFzZTsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4wOHMgZWFzZTsKICAgICAgfQoKICAgICAgLnNsaWRlci1rbm9iLWlubmVyIHsKICAgICAgICBtYXJnaW46IDEwcHg7CiAgICAgICAgd2lkdGg6IGNhbGMoMTAwJSAtIDIwcHgpOwogICAgICAgIGhlaWdodDogY2FsYygxMDAlIC0gMjBweCk7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItc2xpZGVyLWtub2ItY29sb3IsIHZhcigtLWdvb2dsZS1ibHVlLTcwMCkpOwogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHZhcigtLXBhcGVyLXNsaWRlci1rbm9iLWNvbG9yLCB2YXIoLS1nb29nbGUtYmx1ZS03MDApKTsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CgogICAgICAgIC1tb3otYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwoKICAgICAgICB0cmFuc2l0aW9uLXByb3BlcnR5OiAtd2Via2l0LXRyYW5zZm9ybSwgYmFja2dyb3VuZC1jb2xvciwgYm9yZGVyOwogICAgICAgIHRyYW5zaXRpb24tcHJvcGVydHk6IHRyYW5zZm9ybSwgYmFja2dyb3VuZC1jb2xvciwgYm9yZGVyOwogICAgICAgIHRyYW5zaXRpb24tZHVyYXRpb246IDAuMThzOwogICAgICAgIHRyYW5zaXRpb24tdGltaW5nLWZ1bmN0aW9uOiBlYXNlOwogICAgICB9CgogICAgICAuZXhwYW5kOm5vdCgucGluKSA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm5lciB7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDEuNSk7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLjUpOwogICAgICB9CgogICAgICAucmluZyA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm5lciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItc2xpZGVyLWtub2Itc3RhcnQtY29sb3IsIHRyYW5zcGFyZW50KTsKICAgICAgICBib3JkZXI6IDJweCBzb2xpZCB2YXIoLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1ib3JkZXItY29sb3IsIHZhcigtLXBhcGVyLWdyZXktNDAwKSk7CiAgICAgIH0KCiAgICAgIC5zbGlkZXIta25vYi1pbm5lcjo6YmVmb3JlIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1zbGlkZXItcGluLWNvbG9yLCB2YXIoLS1nb29nbGUtYmx1ZS03MDApKTsKICAgICAgfQoKICAgICAgLnBpbiA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm5lcjo6YmVmb3JlIHsKICAgICAgICBjb250ZW50OiAiIjsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDUwJTsKICAgICAgICBtYXJnaW4tbGVmdDogLTEzcHg7CiAgICAgICAgd2lkdGg6IDI2cHg7CiAgICAgICAgaGVpZ2h0OiAyNnB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJSA1MCUgNTAlIDA7CgogICAg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XRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiA1MCU7CiAgICAgICAgbWFyZ2luLWxlZnQ6IC0xNnB4OwogICAgICAgIHdpZHRoOiAzMnB4OwogICAgICAgIGhlaWdodDogMjZweDsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXNsaWRlci1mb250LWNvbG9yLCAjZmZmKTsKICAgICAgICBmb250LXNpemU6IDEwcHg7CgogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgwKSB0cmFuc2xhdGUoMCk7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwKSB0cmFuc2xhdGUoMCk7CiAgICAgIH0KCiAgICAgIC5waW4uZXhwYW5kID4gLnNsaWRlci1rbm9iID4gLnNsaWRlci1rbm9iLWlubmVyOjphZnRlciB7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDEpIHRyYW5zbGF0ZSgwLCAtMTdweCk7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxKSB0cmFuc2xhdGUoMCwgLTE3cHgpOwogICAgICB9CgogICAgICAvKiBwYXBlci1pbnB1dCAqLwogICAgICAuc2xpZGVyLWlucHV0IHsKICAgICAgICB3aWR0aDogNTBweDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICBAYXBwbHkgLS1wYXBlci1zbGlkZXItaW5wdXQtY29udGFpbmVyLWlucHV0OwogICAgICAgIH07CiAgICAgICAgQGFwcGx5IC0tcGFwZXItc2xpZGVyLWlucHV0OwogICAgICB9CgogICAgICAvKiBkaXNhYmxlZCBzdGF0ZSAqLwogICAgICAjc2xpZGVyQ29udGFpbmVyLmRpc2FibGVkIHsKICAgICAgICBwb2ludGVyLWV2Z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sZSBpZD0idGYtY3VzdG9tLXNjYWxhci1jYXJkLXN0eWxlIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBtYXJnaW46IDVweCAxMHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICB3aWR0aDogMzMwcHg7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRleHQtdG9wOwogICAgICB9CgogICAgICA6aG9zdChbX2V4cGFuZGVkXSkgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICA6aG9zdChbX2V4cGFuZGVkXSkgI3RmLWxpbmUtY2hhcnQtZGF0YS1sb2FkZXItY29udGFpbmVyIHsKICAgICAgICBoZWlnaHQ6IDQwMHB4OwogICAgICB9CgogICAgICBoMSB7CiAgICAgICAgZm9udC1zaXplOiAxOXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KCiAgICAgICN0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiAyMDBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI2J1dHRvbnMgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CgogICAgICAuZG93bmxvYWQt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AgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgICAgPC90ZW1wbGF0ZT4KICAgIDwvZGl2PgoKICAgIDxzdHlsZSBpbmNsdWRlPSJ0Zi1jdXN0b20tc2NhbGFyLWNhcmQtc3R5bGUiPjwvc3R5bGU+CiAgICA8c3R5bGU+CiAgICAgIC5lcnJvci1jb250ZW50IHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZjAwOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDVweDsKICAgICAgICBjb2xvcjogI2ZmZjsKICAgICAgICBtYXJnaW46IDEwcHggMCAwIDA7CiAgICAgICAgcGFkZGluZzogMTBweDsKICAgICAgfQoKICAgICAgLmVycm9yLWljb24gewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGZpbGw6ICNmZmY7CiAgICAgICAgbWFyZ2luOiAwIGF1dG8gNXB4IGF1dG87CiAgICAgIH0KCiAgICAgIC5pbnZhbGlkLXJlZ2V4IHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQoKICAgICAgLmVycm9yLWNvbnRlbnQgdWwgewogICAgICAgIG1hcmdpbjogMXB4IDAgMCAwOwogICAgICAgIHBhZGRpbmc6IDAgMCAwIDE5cHg7CiAgICAgIH0KCiAgICAgIC50YWctbmFtZSB7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KCiAgICAgIC5jb2xsYXBzaWJsZS1saXN0LXRpdGxlIHsKICAgICAgICBtYXJnaW46IDEwcHggMCA1cHggMDsKICAgICAgfQoKICAgICAgLmNvbGxhcHNpYmxlLXRpdGxlLXRleHQgewogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgICNtYXRjaGVzLWxpc3QgewogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXk6IGF1dG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C1lbnRyeSI+CiAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz0ibWF0Y2gtZW50cnktc3ltYm9sIj4KICAgICAgICAgICAgICAgICAgW1tfZGV0ZXJtaW5lU3ltYm9sKF9uYW1lVG9EYXRhU2VyaWVzLCBzZXJpZXNOYW1lKV1dCiAgICAgICAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICAgICAgICBbW3Nlcmllc05hbWVdXQogICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgPC9kaXY+CiAgICAgICAgPC9pcm9uLWNvbGxhcHNlPgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CgogICAgPHN0eWxlIGluY2x1ZGU9InRmLWN1c3RvbS1zY2FsYXItY2FyZC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgI21hdGNoZXMtbGlzdC10aXRsZSB7CiAgICAgICAgbWFyZ2luOiAxMHB4IDAgNXB4IDA7CiAgICAgIH0KCiAgICAgICNtYXRjaGVzLWxpc3QgewogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgIH0KCiAgICAgIC5tYXRjaC1saXN0LWVudHJ5IHsKICAgICAgICBtYXJnaW46IDAgMCA1cHggMDsKICAgICAgfQoKICAgICAgLm1hdGNoLWVudHJ5LXN5bWJvbCB7CiAgICAgICAgZm9udC1mYW1pbHk6IGFyaWFsLCBzYW5zLXNlcmlmOwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICB3aWR0aDogMTBweDsKICAgICAgfQoKICAgICAgLm1hdGNoZXMtdGV4dCB7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1jdXN0b20t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IGV2ZXJ5IHN0ZXAsIHNvIHRoZSBhY3Rpb24gaXMgbm90CiMgdGFrZW4gY2FyZSBvZiBieSBhbiBvcCBpbiB0aGUgZ3JhcGguIFdlIG9ubHkgbmVlZCB0byBzcGVjaWZ5IHRoZSBsYXlvdXQgb25jZQojIChpbnN0ZWFkIG9mIHBlciBzdGVwKS4KbGF5b3V0X3N1bW1hcnkgPSBzdW1tYXJ5X2xpYi5jdXN0b21fc2NhbGFyX3BiKGxheW91dF9wYjIuTGF5b3V0KAogIGNhdGVnb3J5PVsKICAgIGxheW91dF9wYjIuQ2F0ZWdvcnkoCiAgICAgIHRpdGxlPSdsb3NzZXMnLAogICAgICBjaGFydD1bCiAgICAgICAgICBsYXlvdXRfcGIyLkNoYXJ0KAogICAgICAgICAgICAgIHRpdGxlPSdsb3NzZXMnLAogICAgICAgICAgICAgIG11bHRpbGluZT1sYXlvdXRfcGIyLk11bHRpbGluZUNoYXJ0Q29udGVudCgKICAgICAgICAgICAgICAgIHRhZz1bcidsb3NzLionXSwKICAgICAgICAgICAgICApKSwKICAgICAgICAgIGxheW91dF9wYjIuQ2hhcnQoCiAgICAgICAgICAgICAgdGl0bGU9J2JheicsCiAgICAgICAgICAgICAgbWFyZ2luPWxheW91dF9wYjIuTWFyZ2luQ2hhcnRDb250ZW50KAogICAgICAgICAgICAgICAgc2VyaWVzPVsKICAgICAgICAgICAgICAgICAgbGF5b3V0X3BiMi5NYXJnaW5DaGFydENvbnRlbnQuU2VyaWVzKAogICAgICAgICAgICAgICAgICAgIHZhbHVlPSdsb3NzL2Jhei9zY2FsYXJfc3VtbWFyeScsCiAgICAgICAgICAgICAgICAgICAgbG93ZXI9J2Jhel9sb3dlci9iYXovc2NhbGFyX3N1bW1hcnknLAogICAgICAgICAgICAgICAgICAgIHVwcGVyPSdiYXpfdXBwZXIvYmF6L3NjYWxhcl9zdW1tYXJ5JyksCiAgICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICkpLAogICAgICBdKSwKICAg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pZXNdXSI+PC90Zi1jdXN0b20tc2NhbGFyLW1hcmdpbi1jaGFydC1jYXJkPgogICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgPC90Zi1jYXRlZ29yeS1wYWdpbmF0ZWQtdmlldz4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgPC9kaXY+CiAgICA8L3RmLWRhc2hib2FyZC1sYXlvdXQ+CgogICAgPHN0eWxlIGluY2x1ZGU9ImRhc2hib2FyZC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgI3Rvb2x0aXAtc29ydGluZyB7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tdG9wOiAxNXB4OwogICAgICB9CiAgICAgICN0b29sdGlwLXNvcnRpbmcgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDEwcHg7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItZm9jdXMtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIHdpZHRoOiAxMDVweDsKICAgICAgfQogICAgICAubGluZS1pdGVtIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwYWRkaW5nLXRvcDogNXB4OwogICAgICB9CiAgICAgIC5uby1kYXRhLXdhcm5pbmcgewogICAgICAgIG1heC13aWR0aDogNTQwcHg7CiAgICAgICAgbWFyZ2luOiA4MHB4IGF1dG8gMCBhdXRvOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKCgoKCgoKCgoKCgo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cGFkZGluZzogMDsKICAgICAgfQoKICAgICAgLyoqIEZpcmVmb3g6IEdldCByaWQgb2YgZG90dGVkIGxpbmUgaW5zaWRlIGJ1dHRvbi4gKi8KICAgICAgYnV0dG9uOjotbW96LWZvY3VzLWlubmVyIHsKICAgICAgICBib3JkZXI6IDA7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgfQoKICAgICAgLyoqIEZpcmVmb3g6IFNpbXVsYXRlIENocm9tZSdzIG91dGVyIGdsb3cgb24gYnV0dG9uIHdoZW4gZm9jdXNlZC4gKi8KICAgICAgYnV0dG9uOi1tb3otZm9jdXNyaW5nIHsKICAgICAgICBvdXRsaW5lOiBub25lOwogICAgICAgIGJveC1zaGFkb3c6IDBweCAwcHggMXB4IDJweCBIaWdobGlnaHQ7CiAgICAgIH0KCiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMzUwcHg7CiAgICAgICAgaGVpZ2h0OiBhdXRvOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBtYXJnaW46IDAgMTVweCA0MHB4IDA7CiAgICAgICAgb3ZlcmZsb3cteDogYXV0bzsKICAgICAgfQoKICAgICAgLyoqIFdoZW4gYWN0dWFsIHNpemUgc2hvd24gaXMgb24sIHVzZSB0aGUgYWN0dWFsIGltYWdlIHdpZHRoLiAqLwogICAgICA6aG9zdChbYWN0dWFsLXNpemVdKSB7CiAgICAgICAgbWF4LXdpZHRoOiAxMDAlOwogICAgICAgIHdpZHRoOiBhdXRvOwogICAgICB9CgogICAgICA6aG9zdChbYWN0dWFsLXNpemVdKSAjbWFpbi1pbWFnZS1jb250YWluZXIgewogICAgICAgIG1heC1oZWlnaHQ6IG5vbmU7CiAgICAgICAgd2lkdGg6IGF1dG87CiAgICAgIH0KCiAgICAgIDpob3N0KFthY3R1YWwtc2l6ZV0pICNtYWluLWltYWdlLWNvbnRhaW5lciBpbWcgewogICAgICAgIHdpZHRoOiB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zbGlkZXIta25vYi1zdGFydC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXItbWFya2Vycy1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXItcGluLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1waW4tc3RhcnQtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICB9CgogICAgICAjbWFpbi1pbWFnZS1jb250YWluZXIgewogICAgICAgIG1heC1oZWlnaHQ6IDEwMjRweDsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQoKICAgICAgI21haW4taW1hZ2UtY29udGFpbmVyIGltZyB7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGltYWdlLXJlbmRlcmluZzogLW1vei1jcmlzcC1lZGdlczsKICAgICAgICBpbWFnZS1yZW5kZXJpbmc6IHBpeGVsYXRlZDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgIH0KCiAgICAgIHBhcGVyLWljb24tYnV0dG9uIHsKICAgICAgICBjb2xvcjogIzIxOTZmMzsKICAgICAgICBib3JkZXItcmFkaXVzOiAxMDAlOwogICAgICAgIHdpZHRoOiAzMnB4OwogICAgICAgIGhlaWdodDogMzJweDsKICAgICAgICBwYWRkaW5nOiA0cHg7CiAgICAgIH0KICAgICAgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CiAgICAgIFtoaWRkZW5dIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdG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hdXNlczoKICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgIDxsaT5Zb3UgaGF2ZW7igJl0IHdyaXR0ZW4gYW55IGltYWdlIGRhdGEgdG8geW91ciBldmVudCBmaWxlcy48L2xpPgogICAgICAgICAgICAgIDxsaT5UZW5zb3JCb2FyZCBjYW7igJl0IGZpbmQgeW91ciBldmVudCBmaWxlcy48L2xpPgogICAgICAgICAgICA8L3VsPgoKICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgSWYgeW914oCZcmUgbmV3IHRvIHVzaW5nIFRlbnNvckJvYXJkLCBhbmQgd2FudCB0byBmaW5kIG91dCBob3cgdG8KICAgICAgICAgICAgICBhZGQgZGF0YSBhbmQgc2V0IHVwIHlvdXIgZXZlbnQgZmlsZXMsIGNoZWNrIG91dCB0aGUKICAgICAgICAgICAgICA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3Jib2FyZC9ibG9iL21hc3Rlci9SRUFETUUubWQiPlJFQURNRTwvYT4KICAgICAgICAgICAgICBhbmQgcGVyaGFwcyB0aGUKICAgICAgICAgICAgICA8YSBocmVmPSJodHRwczovL3d3dy50ZW5zb3JmbG93Lm9yZy9nZXRfc3RhcnRlZC9zdW1tYXJpZXNfYW5kX3RlbnNvcmJvYXJkIj5UZW5zb3JCb2FyZCB0dXRvcmlhbDwvYT4uCiAgICAgICAgICAgIAoKICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgSWYgeW91IHRoaW5rIFRlbnNvckJvYXJkIGlzIGNvbmZpZ3VyZWQgcHJvcGVybHksIHBsZWFzZSBzZWUKICAgICAgICAgICAgICA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3Jib2FyZC9ibG9iL21hc3Rlci9SRUFETUUubWQjbXktdGVuc29yYm9hcmQtaXNudC1zaG93aW5nLWFueS1kYXRhLXdoYXRzLXdyb25nIj50aGUgc2VjdGlvbiBvZiB0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jb250cmFzdC1wZXJjZW50YWdlPSJbW19jb250cmFzdFBlcmNlbnRhZ2VdXSI+PC90Zi1pbWFnZS1sb2FkZXI+CiAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgPC90Zi1jYXRlZ29yeS1wYWdpbmF0ZWQtdmlldz4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgPC9kaXY+CiAgICA8L3RmLWRhc2hib2FyZC1sYXlvdXQ+CiAgICA8c3R5bGUgaW5jbHVkZT0iZGFzaGJvYXJkLXN0eWxlIj48L3N0eWxlPgogICAgPHN0eWxlPgogICAgICAucmVzZXR0YWJsZS1zbGlkZXItY29udGFpbmVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CiAgICAgIC5yZXNldHRhYmxlLXNsaWRlci1jb250YWluZXIgcGFwZXItc2xpZGVyIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KICAgICAgLnJlc2V0dGFibGUtc2xpZGVyLWNvbnRhaW5lciBwYXBlci1idXR0b24gewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICAucmVzZXR0YWJsZS1zbGlkZXItY29udGFpbmVyIHBhcGVyLWJ1dHRvbltkaXNhYmxlZF0gewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHVuc2V0OwogICAgICB9CiAgICAgIC54LWJ1dHRvbiB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgfQogICAgICAubm8tZGF0YS13YXJuaW5nIHsKICAgICAgICBtYXgtd2lkdGg6IDU0MHB4OwogICAgICAgIG1hcmdpbjogODBweCBhdXRvIDAgYXV0bzsKICAgICAgfQogICAgICBwYXBlci1zbGlk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ICAgICB2aXNpYmlsaXR5OiBoaWRkZW47CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICAgIEBhcHBseSAtLWlyb24tYXV0b2dyb3ctdGV4dGFyZWE7CiAgICAgIH0KCiAgICAgIC5maXQgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgIH0KCiAgICAgIHRleHRhcmVhIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgb3V0bGluZTogbm9uZTsKICAgICAgICBib3JkZXI6IG5vbmU7CiAgICAgICAgcmVzaXplOiBub25lOwogICAgICAgIGJhY2tncm91bmQ6IGluaGVyaXQ7CiAgICAgICAgY29sb3I6IGluaGVyaXQ7CiAgICAgICAgLyogc2VlIGNvbW1lbnRzIGluIHRlbXBsYXRlICovCiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGZvbnQtc2l6ZTogaW5oZXJpdDsKICAgICAgICBmb250LWZhbWlseTogaW5oZXJpdDsKICAgICAgICBsaW5lLWhlaWdodDogaW5oZXJpdDsKICAgICAgICB0ZXh0LWFsaWduOiBpbmhlcml0OwogICAgICAgIEBhcHBseSAtLWlyb24tYXV0b2dyb3ctdGV4dGFyZWE7CiAgICAgIH0KCiAgICAgIHRleHRhcmVhOjotd2Via2l0LWlucHV0LXBsYWNlaG9sZGVyIHsKICAgICAgICBAYXBwbHkgLS1pcm9uLWF1dG9ncm93LXRleHRhcmVhLXBsYWNlaG9sZGVyOwogICAgICB9CgogICAgICB0ZXh0YXJlYTotbW96LXBsYWNlaG9sZGVyIHsKICAgICAgICBAYXBwbHkgLS1pcm9uLWF1dG9ncm93LXRleHRhcmVhLXBsYWNlaG9sZGVyOwogICAgICB9CgogICAgICB0ZXh0YXJlYTo6LW1vei1wbGFjZWhvbGRlciB7CiAgICAgICAgQGFwcGx5IC0taXJvbi1hdXRvZ3Jvdy10ZXh0YXJlYS1wbGFjZWhv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dW5kLWNvbG9yLCAjMzIzMjMyKTsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItdG9hc3QtY29sb3IsICNmMWYxZjEpOwogICAgICAgIG1pbi1oZWlnaHQ6IDQ4cHg7CiAgICAgICAgbWluLXdpZHRoOiAyODhweDsKICAgICAgICBwYWRkaW5nOiAxNnB4IDI0cHg7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBib3gtc2hhZG93OiAwIDJweCA1cHggMCByZ2JhKDAsIDAsIDAsIDAuMjYpOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBtYXJnaW46IDEycHg7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGN1cnNvcjogZGVmYXVsdDsKICAgICAgICAtd2Via2l0LXRyYW5zaXRpb246IC13ZWJraXQtdHJhbnNmb3JtIDAuM3MsIG9wYWNpdHkgMC4zczsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4zcywgb3BhY2l0eSAwLjNzOwogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMTAwcHgpOwogICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDBweCk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgfQoKICAgICAgOmhvc3QoLmNhcHN1bGUpIHsKICAgICAgICBib3JkZXItcmFkaXVzOiAyNHB4OwogICAgICB9CgogICAgICA6aG9zdCguZml0LWJvdHRvbSkgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIG1pbi13aWR0aDogMDsKICAgICAgICBib3JkZXItcmFkaXVzOiAwOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgfQoKICAgICAgOmhvc3QoLnBhcGVyLXRvYXN0LW9wZW4pIHsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICAgIC13ZWJra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VuZC1jb2xvcjogdmFyKC0tcGFwZXItdG9nZ2xlLWJ1dHRvbi1jaGVja2VkLWJhci1jb2xvciwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci10b2dnbGUtYnV0dG9uLWNoZWNrZWQtYmFyOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAudG9nZ2xlLWJhciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzAwMDsKICAgICAgICBvcGFjaXR5OiAwLjEyOwogICAgICB9CgogICAgICA6aG9zdChbY2hlY2tlZF0pIC50b2dnbGUtYnV0dG9uIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlKDE2cHgsIDApOwogICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlKDE2cHgsIDApOwogICAgICB9CgogICAgICA6aG9zdChbY2hlY2tlZF06bm90KFtkaXNhYmxlZF0pKSAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItdG9nZ2xlLWJ1dHRvbi1jaGVja2VkLWJ1dHRvbi1jb2xvciwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci10b2dnbGUtYnV0dG9uLWNoZWNrZWQtYnV0dG9uOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2JkYmRiZDsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICB9CgogICAgICAudG9nZ2xlLWluayB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogLTE0cHg7CiAgICAgICAgbGVmdDogLTE0cHg7CiAgICAgICAgcmlnaHQ6IGF1dG87CiAgICAgICAgYm90dG9tOiBhdXRvOwogICAgICAgIHdpZHRoOiA0OHB4OwogICAgICAgIGhlaWdodDogNDhweDsKICAgICAgICBvcGFjaXR5OiAwLjU7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXRvZ2dsZS1idXR0b24tdW5jaGVja2VkLWluay1jb2xvciwgdmFyKC0tcHJpbWFyeS10ZXh0LWNvbG9yKSk7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLXRvZ2dsZS1idXR0b24tdW5jaGVja2VkLWluazsKICAgICAgfQoKICAgICAgOmhvc3QoW2NoZWNrZWRdKSAudG9nZ2xlLWluayB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXRvZ2dsZS1idXR0b24tY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9nZ2xlLWJ1dHRvbi1jaGVja2VkLWluazsKICAgICAgfQoKICAgICAgLnRvZ2dsZS1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDM2cHg7CiAgICAgICAgaGVpZ2h0OiAxNHB4OwogICAgICAgIC8qIFRoZSB0b2dnbGUgYnV0dG9uIGhhcyBhbiBhYnNvbHV0ZSBwb3NpdGlvbiBvZiAtM3B4OyBUaGUgZXh0cmEgMXB4CiAgICAgICAgLyogYWNjb3VudHMgZm9yIHRoZSB0b2dnbGUgYnV0dG9uIHNoYWRvdyBib3guICovCiAgICAgICAgbWFyZ2luOiA0cHggMXB4OwogICAgICB9CgogICAgICAudG9nZ2xlLWxhYmVsIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgICAgcGFkZGluZy1sZWZ0OiB2YXIoLS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0aDogMTAwJTsKICAgICAgfQoKICAgICAgI2hpZGRlbiB7CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIHRvcDogMHB4OwogICAgICAgIHZpc2liaWxpdHk6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLyogLS0tIE5vZGUgYW5kIGFubm90YXRpb24tbm9kZSBmb3IgTWV0YW5vZGUgLS0tICovCgogICAgICAubWV0YSA+IC5ub2Rlc2hhcGUgPiByZWN0LAogICAgICAubWV0YSA+IC5hbm5vdGF0aW9uLW5vZGUgPiByZWN0IHsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgZmlsbDogaHNsKDAsIDAlLCA3MCUpOwogICAgICB9CiAgICAgIC5ub2RlLm1ldGEuaGlnaGxpZ2h0ZWQgPiAubm9kZXNoYXBlID4gcmVjdCwKICAgICAgLm5vZGUubWV0YS5oaWdobGlnaHRlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiByZWN0IHsKICAgICAgICBzdHJva2Utd2lkdGg6IDI7CiAgICAgIH0KICAgICAgLmFubm90YXRpb24ubWV0YS5oaWdobGlnaHRlZCA+IC5ub2Rlc2hhcGUgPiByZWN0LAogICAgICAuYW5ub3RhdGlvbi5tZXRhLmhpZ2hsaWdodGVkID4gLmFubm90YXRpb24tbm9kZSA+IHJlY3QgewogICAgICAgIHN0cm9rZS13aWR0aDogMTsKICAgICAgfQogICAgICAubWV0YS5zZWxlY3RlZCA+IC5ub2Rlc2hhcGUgPiByZWN0LAogICAgICAubWV0YS5zZWxlY3RlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiByZWN0IHsKICAgICAgICBzdHJva2U6IHJlZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDI7CiAgICAgIH0KICAgICAgLm5vZGUubWV0YS5zZWxlY3RlZC5leHBhbmRlZCA+IC5ub2Rlc2hhcGUgPiByZWN0LAogICAgICAubm9kZS5tZXRhLnNlbGVjdGVkLmV4cGFuZGVkID4gLmFubm90Y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AgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgIC8qIC0tLSBTdHJ1Y3R1cmFsIEVsZW1lbnRzIC0tLSAqLwogICAgICAuZWRnZSA+IHBhdGguZWRnZWxpbmUuc3RydWN0dXJhbCB7CiAgICAgICAgc3Ryb2tlOiAjZjBmOwogICAgICAgIG9wYWNpdHk6IDAuMjsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAvKiBSZWZlcmVuY2UgRWRnZSAqLwogICAgICAuZWRnZSA+IHBhdGguZWRnZWxpbmUucmVmZXJlbmNlZWRnZSB7CiAgICAgICAgc3Ryb2tlOiAjZmZiNzRkOwogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgIC8qIC0tLSBTZXJpZXMgTm9kZXMgLS0tICovCgogICAgICAvKiBIaWRlIHRoZSByZWN0IGZvciBhIHNlcmllcycgYW5ub3RhdGlvbi4gKi8KICAgICAgLnNlcmllcyA+IC5hbm5vdGF0aW9uLW5vZGUgPiByZWN0IHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CgogICAgICAvKiAtLS0gTm9kZSBsYWJlbCAtLS0gKi8KCiAgICAgIC5ub2RlID4gdGV4dC5ub2RlbGFiZWwgewogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBmaWxsOiAjNDQ0OwogICAgICB9CgogICAgICAubWV0YS5leHBhbmRlZCA+IHRleHQubm9kZWxhYmVsIHsKICAgICAgICBmb250LXNpemU6IDlweDsKICAgICAgfQoKICAgICAgLnNlcmllcyA+IHRleHQubm9kZWxhYmVsIHsKICAgICAgICBmb250LXNpemU6IDhweDsKICAgICAgfQoKICAgICAgLm9wID4gdGV4dC5ub2RlbGFiZWwgewogICAgICAgIGZvbnQtc2l6ZTogNnB4OwogICAgICB9CgogICAgICAuYnJpZGdlID4gdGV4dC5ub2RlbGFiZWwgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiA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vbi1hcnJvd2hlYWQpOwogICAgICB9CgogICAgICAuZmFkZWQgLmFubm90YXRpb24gPiAuYW5ub3RhdGlvbi1lZGdlIHsKICAgICAgICBtYXJrZXItZW5kOiB1cmwoI2Fubm90YXRpb24tYXJyb3doZWFkLWZhZGVkKTsKICAgICAgfQoKICAgICAgLmFubm90YXRpb24gPiAuYW5ub3RhdGlvbi1lZGdlLnJlZmxpbmUgewogICAgICAgIG1hcmtlci1zdGFydDogdXJsKCNyZWYtYW5ub3RhdGlvbi1hcnJvd2hlYWQpOwogICAgICB9CgogICAgICAuZmFkZWQgLmFubm90YXRpb24gPiAuYW5ub3RhdGlvbi1lZGdlLnJlZmxpbmUgewogICAgICAgIG1hcmtlci1zdGFydDogdXJsKCNyZWYtYW5ub3RhdGlvbi1hcnJvd2hlYWQtZmFkZWQpOwogICAgICB9CgogICAgICAuYW5ub3RhdGlvbiA+IC5hbm5vdGF0aW9uLWNvbnRyb2wtZWRnZSB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMSwgMTsKICAgICAgfQoKICAgICAgI2Fubm90YXRpb24tYXJyb3doZWFkIHsKICAgICAgICBmaWxsOiAjYWFhOwogICAgICB9CgogICAgICAjYW5ub3RhdGlvbi1hcnJvd2hlYWQtZmFkZWQgewogICAgICAgIGZpbGw6ICNlMGQ0YjM7CiAgICAgIH0KCiAgICAgICNyZWYtYW5ub3RhdGlvbi1hcnJvd2hlYWQgewogICAgICAgIGZpbGw6ICNhYWE7CiAgICAgIH0KCiAgICAgICNyZWYtYW5ub3RhdGlvbi1hcnJvd2hlYWQtZmFkZWQgewogICAgICAgIGZpbGw6ICNlMGQ0YjM7CiAgICAgIH0KCiAgICAgIC5hbm5vdGF0aW9uID4gLmFubm90YXRpb24tbGFiZWwgewogICAgICAgIGZvbnQtc2l6ZTogNXB4OwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAuYW5ub3RhdGlvbiA+IC5hbm5vdGF0aW9uLWxhY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gewogICAgICAgIGZpbGw6ICNhNTI3MTQ7CiAgICAgICAgc3Ryb2tlOiAjYTUyNzE0OwogICAgICB9CgogICAgICAuc3VtbWFyeS5oaWdobGlnaHRlZCA+IC5hbm5vdGF0aW9uLW5vZGUgPiBlbGxpcHNlIHsKICAgICAgICBzdHJva2Utd2lkdGg6IDEuNTsKICAgICAgfQoKICAgICAgLyogLS0tIEVkZ2UgLS0tICovCgogICAgICAuZWRnZSA+IHBhdGguZWRnZWxpbmUgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgICAgc3Ryb2tlOiAjYmJiOwogICAgICAgIHN0cm9rZS1saW5lY2FwOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDAuNzU7CiAgICAgIH0KCiAgICAgIC5lZGdlIC5zZWxlY3RhYmxlZWRnZSB7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CgogICAgICAuc2VsZWN0ZWRlZGdlID4gcGF0aC5lZGdlbGluZSB7CiAgICAgICAgY3Vyc29yOiBkZWZhdWx0OwogICAgICAgIHN0cm9rZTogI2YwMDsKICAgICAgfQoKICAgICAgLmVkZ2Uuc2VsZWN0ZWRlZGdlIHRleHQgewogICAgICAgIGZpbGw6ICMwMDA7CiAgICAgIH0KCiAgICAgIC8qIExhYmVscyBzaG93aW5nIHRlbnNvciBzaGFwZXMgb24gZWRnZXMgKi8KICAgICAgLmVkZ2UgPiB0ZXh0IHsKICAgICAgICBmb250LXNpemU6IDMuNXB4OwogICAgICAgIGZpbGw6ICM2NjY7CiAgICAgIH0KCiAgICAgIC5kYXRhZmxvdy1hcnJvd2hlYWQgewogICAgICAgIGZpbGw6ICNiYmI7CiAgICAgIH0KCiAgICAgIC5yZWZlcmVuY2UtYXJyb3doZWFkIHsKICAgICAgICBmaWxsOiAjZmZiNzRkOwogICAgICB9CgogICAgICAuc2VsZWN0ZWQtYXJyb3doZWFkIHsKICAgICAgICBmaWxsOiAjZjAwOwogICAgICB9CgogICAgICAuZ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C5idXR0b25jb250YWluZXIgPiAuZXhwYW5kYnV0dG9uLAogICAgICAubm9kZSA+IC5ub2Rlc2hhcGUgPiAuYnV0dG9uY29udGFpbmVyID4gLmNvbGxhcHNlYnV0dG9uIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQogICAgICAvKiBPbmx5IHNob3cgdGhlIGV4cGFuZCBidXR0b24gd2hlbiBhIG5vZGUgaXMgY29sbGFwc2VkIGFuZCBvbmx5IHNob3cgdGhlCiAgIGNvbGxhcHNlIGJ1dHRvbiB3aGVuIGEgbm9kZSBpcyBleHBhbmRlZC4gKi8KICAgICAgLm5vZGUuZXhwYW5kZWQgPiAubm9kZXNoYXBlID4gLmJ1dHRvbmNvbnRhaW5lciA+IC5leHBhbmRidXR0b24gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLm5vZGU6bm90KC5leHBhbmRlZCkgPiAubm9kZXNoYXBlID4gLmJ1dHRvbmNvbnRhaW5lciA+IC5jb2xsYXBzZWJ1dHRvbiB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgLmhlYWx0aC1waWxsLXN0YXRzIHsKICAgICAgICBmb250LXNpemU6IDRweDsKICAgICAgICB0ZXh0LWFuY2hvcjogbWlkZGxlOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwgcmVjdCB7CiAgICAgICAgZmlsdGVyOiB1cmwoI2hlYWx0aC1waWxsLXNoYWRvdyk7CiAgICAgICAgcng6IDM7CiAgICAgICAgcnk6IDM7CiAgICAgIH0KCiAgICAgIC50aXRsZUNvbnRhaW5lciB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHRvcDogMjBweDsKICAgICAgfQoKICAgICAgLnRpdGxlLAogICAgICAuYXV4VGl0bGUsCiAgICAgIC5mdW5jdGlvbkxpYnJhcnlUaXRsZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB9CgogICAgICAjbWluaW1hcCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAyMHB4OwogICAgICAgIGJvdHRvbTogMjBweDsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2UyZTJlMjsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1pbi13aWR0aDogMTUwcHg7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2Q0ZDRkNDsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB1bCB7CiAgICAgICAgbGlzdC1zdHlsZS10eXBlOiBub25lOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGN1cnNvcjogZGVmYXVsdDsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB1bCBsaSB7CiAgICAgICAgcGFkZGluZzogNHB4IDE2cHg7CiAgICAgIH0KCiAgICAgIC5jb250ZXh0LW1lbnUgdWwgbGk6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmMzkxM2U7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPGRpdiBjbGFzcz0idGl0bGVDb250YWluZXIiPgogICAgICA8ZGl2IGlkPSJ0aXRsZSIgY2xhc3M9InRpdGxlIj5NYWluIEdyYXBoPC9kaXY+CiAgICAgIDxkaXYgaWQ9ImF1eFRpdGxlIiBjbGFzcz0iYXV4VGl0bGUiPkF1eGlsaWFyeSBOb2RlczwvZGl2PgogICAgICA8ZGl2IGlkPSJmdW5jdGlvbkxpYnJhcnlUaXRsZSIgY2xhc3M9ImZ1bmN0aW9uTGlicmFyeVRpdGxlIj4KICAg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wZXItZGlhbG9nPgogICAgPHN0eWxlPgogICAgICAvKiogV2UgcmVseSBvbiBhIHNlcGFyYXRlIGBfaGlkZGVuYCBwcm9wZXJ0eSBpbnN0ZWFkIG9mIGRpcmVjdGx5IG1ha2luZyB1c2UKICAgICAgICAgIG9mIHRoZSBgX29wZW5gIGF0dHJpYnV0ZSBiZWNhdXNlIHRoaXMgQ1NTIHNwZWNpZmljYXRpb24gbWF5IHN0cmFuZ2VseQogICAgICAgICAgYWZmZWN0IG90aGVyIGVsZW1lbnRzIHRocm91Z2hvdXQgVGVuc29yQm9hcmQuIFNlZSAjODk5LiAqLwogICAgICA6aG9zdChbX2hpZGRlbl0pIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CiAgICAgIDpob3N0LAogICAgICAjZGFzaGJvYXJkLWJhY2tkcm9wIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CgogICAgICAjZGFzaGJvYXJkLWJhY2tkcm9wIHsKICAgICAgICBiYWNrZ3JvdW5kOiByZ2JhKDAsIDAsIDAsIDAuNik7CiAgICAgIH0KCiAgICAgIC5jb2RlLWV4YW1wbGUgewogICAgICAgIG1hcmdpbjogMTBweDsKICAgICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICB9CiAgICAgIC5jb2RlLWV4YW1wbGUtc2VjdGlvbiB7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDE1cHg7CiAgICAgIH0KICAgICAgLmNvZGUtZXhhbXBsZS1zZWN0aW9uLXRpdGxlIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAuY29kZS1zbmlwcGV0IHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDFlbTsKICAgICAgfQoKICAgICAgI2RpYWxvZy10aXRsZSB7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDE1cHg7CiAgICAgIH0KCiAgICAgIC5jdXN0b20tbWVzc2FnZSB7CiAgICAgICAgbWFyZ2luLXRvcDogMDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxNXB4OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCjwvZG9tLW1vZHVsZT4KCgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtZGVidWdnZXItcmVzaXplciI+CiAgPHRlbXBsYXRlPgogICAgPGRpdiBjbGFzcz0iYmFycyI+CiAgICAgIDxkaXYgY2xhc3M9ImJhcnMtcm90YXRvciI+CiAgICAgICAgPHNwYW4gY2xhc3M9ImJhcnMtdGV4dCI+fCB8PC9zcGFuPgogICAgICA8L2Rpdj4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICA6aG9zdChbX3Jlc2l6ZXItaWRlbnRpZmllcl0pIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYmFja2dyb3VuZDogI2NjYzsKICAgICAgICB1c2VyLXNlbGVjdDogbm9uZTsKICAgICAgfQoKICAgICAgOmhvc3QoW2lzLWhvcml6b250YWxdKSB7CiAgICAgICAgY3Vyc29yOiByb3ctcmVzaXplOwogICAgICAgIGhlaWdodDogMTBweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CgogICAgICA6aG9zdChbX2lzLXZlcnRpY2FsXSkgewogICAgICAgIGN1cnNvcjogY29sLXJlc2l6ZTsKICAgICAgICByaWdodDogLTE1cHg7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICB3aWR0aDogMTBweDsKICAgICAgfQoKICAgICAgLmJhcnMgewogICAgICAgIHdpZHRoOiA4MCU7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDUwJTsKICAgICA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wLXR5cGUgewogICAgICAgIHBhZGRpbmctcmlnaHQ6IDEwcHg7CiAgICAgICAgY29sb3I6ICM0NDQ7CiAgICAgIH0KCiAgICAgIC5vcC10aXRsZS1sZWFmIHsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KCiAgICAgIC5vcC10aXRsZS1sZWFmOmhvdmVyIHsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgfQoKICAgICAgLnBhcnRpYWwtY2hlY2tib3ggewogICAgICAgIGJhY2tncm91bmQ6ICNmNTdjMDA7CiAgICAgIH0KCiAgICAgIC5ub2RlLWV4cGFuZC1idXR0b24gewogICAgICAgIG1hcmdpbjogMCAwIDAgLTEzcHg7CiAgICAgIH0KCiAgICAgIC5sZXZlbC10aXRsZS10ZXh0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgZm9udC13ZWlnaHQ6IDgwMDsKICAgICAgICBtYXJnaW46IDAgMCAwIC0xcHg7CiAgICAgIH0KCiAgICAgIC5vcC1kZXNjcmlwdGlvbiB7CiAgICAgICAgZm9udC13ZWlnaHQ6IDMwMDsKICAgICAgICBtYXJnaW46IDAgMCAwIDI3cHg7CiAgICAgICAgcGFkZGluZzogMTBweCAwOwogICAgICB9CgogICAgICAuc3Bpbm5lciB7CiAgICAgICAgd2lkdGg6IDIwcHg7CiAgICAgICAgaGVpZ2h0OiAyMHB4OwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgICNmaWx0ZXItbW9kZSB7CiAgICAgICAgd2lkdGg6IDE1MHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgI2ZpbHRlci1pbnB1dCB7CiAgICAgICAgd2lkdGg6IDI1MHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgLmhpZ2hsaWdodGVkIHsKICAgICAgICBjb2xvcjogcmVkOwogICAgICB9CiAgICAgIC5oaWdobGlnaHRlZCA+IC5vcC10eXBlIHsKICAgICAgICBjb2xvcjogcmVkOwogICAgICB9CgogICAgICAjc2VsZWN0b3ItaGllcmFyY2h5IHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgW2hpZGRlbl0gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKICAKPC9kb20tbW9kdWxlPgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1zZXNzaW9uLXJ1bnMtdmlldyI+CiAgPHRlbXBsYXRlPgogICAgPGRpdiBjbGFzcz0ic2Vzc2lvbi1ydW5zLWRpdiI+CiAgICAgIDxkaXYgY2xhc3M9InNlY3Rpb24tdGl0bGUiPlNlc3Npb24gUnVuczwvZGl2PgogICAgICA8dGFibGUgaWQ9InNlc3Npb24tcnVucy10YWJsZSIgYWxpZ249ImxlZnQiIGNsYXNzPSJzZXNzaW9uLXJ1bnMtdGFibGUiPgogICAgICAgIDx0ciBhbGlnbj0ibGVmdCI+CiAgICAgICAgICA8dGg+RmVlZHM8L3RoPgogICAgICAgICAgPHRoPkZldGNoZXM8L3RoPgogICAgICAgICAgPHRoPlRhcmdldHM8L3RoPgogICAgICAgICAgPHRoPiMoRGV2aWNlcyk8L3RoPgogICAgICAgICAgPHRoPkNvdW50PC90aD4KICAgICAgICA8L3RyPgogICAgICA8L3RhYmxlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwYWRkaW5nOiAyMHB4IDA7CiAgICAgIH0KCiAgICAgIC5zZWN0aW9uLXRpdGxlIHsKICAgICAgICBmb250LXNpemU6IDExMCU7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAg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vXV0iPjwvZGl2PgogICAgICAgIDwvZGl2PgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgICNzb3VyY2UtZmlsZXMtdGFicyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogOCU7CiAgICAgIH0KICAgICAgLnNvdXJjZS1jb250ZW50IHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgaGVpZ2h0OiA5MCU7CiAgICAgICAgZm9udC1mYW1pbHk6IG1vbm9zcGFjZTsKICAgICAgICBmb250LXNpemU6IDkwJTsKICAgICAgICBvdmVyZmxvdy14OiBzY3JvbGw7CiAgICAgICAgb3ZlcmZsb3cteTogc2Nyb2xsOwogICAgICB9CiAgICAgIC5zb3VyY2UtY29udGVudCA6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmZmMDA7CiAgICAgIH0KICAgICAgLmhpZ2hsaWdodGVkLXNvdXJjZS1saW5lIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmZmUwOwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1udW1iZXIgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBjb2xvcjogbGlnaHRibHVlOwogICAgICAgIHdpZHRoOiAyZW07CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgcGFkZGluZy1yaWdodDogMWVtOwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1ub2RlLXRvZ2dsZSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGNvbG9yOiBibHVlOwogICAgICAgIHdpZHRoOiA1ZW07CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgcGFkZGluZy1yaWdodDogMWVtOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAuc291cmNlLWxpbmUtbm9kZXMgewogICAgICAgIHBhZGRpbmctbGVmdDogNGVtOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgICBtYXJnaW4tdG9wOiAwZW07CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMGVtOwogICAgICAgIG1hcmdpbi1yaWdodDogMWVtOwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1ub2RlLWVudHJ5IHsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDFlbTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3c7CiAgICAgIH0KICAgICAgLnNvdXJjZS1saW5lLW5vZGVzIHNwYW4gewogICAgICAgIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3c7CiAgICAgIH0KICAgICAgLnNvdXJjZS1saW5lLXRleHQgewogICAgICAgIGRpc3BsYXk6IGlubGluZTsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgIH0KICAgICAgI2Z1bGxTdGFja0RpYWxvZyB7CiAgICAgICAgei1pbmRleDogMTAwMDsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAxMCU7CiAgICAgICAgbGVmdDogNTAlOwogICAgICAgIHdpZHRoOiA0NSU7CiAgICAgICAgaGVpZ2h0OiA4NSU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgZ3JheTsKICAgICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICAgIGJveC1zaGFkb3c6IDNweCAzcHggI2RkZDsKICAgICAgICBvdmVyZmxvdy15OiBhdX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tdGl0bGUiPlRlbnNvciBWYWx1ZSBPdmVydmlldzwvc3Bhbj4KICAgIDxkaXYgaWQ9InRlbnNvci1kYXRhLWRpdiIgY2xhc3M9InRlbnNvci1kYXRhLWRpdiI+CiAgICAgIDx0YWJsZSBpZD0idGVuc29yLWRhdGEtdGFibGUiIGFsaWduPSJsZWZ0IiBjbGFzcz0idGVuc29yLWRhdGEtdGFibGUiPgogICAgICAgIDx0aGVhZD4KICAgICAgICAgIDx0ciBhbGlnbj0ibGVmdCI+CiAgICAgICAgICAgIDx0aD5UZW5zb3I8L3RoPgogICAgICAgICAgICA8dGg+Q291bnQ8L3RoPgogICAgICAgICAgICA8dGg+RFR5cGU8L3RoPgogICAgICAgICAgICA8dGg+U2hhcGU8L3RoPgogICAgICAgICAgICA8dGggd2lkdGg9IjI1JSI+VmFsdWU8L3RoPgogICAgICAgICAgICA8dGggd2lkdGg9IjI1JSI+CiAgICAgICAgICAgICAgSGVhbHRoIFBpbGwKICAgICAgICAgICAgICA8cGFwZXItdG9nZ2xlLWJ1dHRvbiBpZD0ic2hvdy1oZWFsdGgtcGlsbHMiIGNoZWNrZWQ9Int7X2hlYWx0aFBpbGxzRW5hYmxlZH19Ij4KICAgICAgICAgICAgICA8L3BhcGVyLXRvZ2dsZS1idXR0b24+CiAgICAgICAgICAgICAgPHBhcGVyLWNhcmQ+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJoZWFsdGgtcGlsbC1sZWdlbmQiIGlkPSJoZWFsdGgtcGlsbC1sZWdlbmQiPjwvZGl2PgogICAgICAgICAgICAgIDwvcGFwZXItY2FyZD4KICAgICAgICAgICAgPC90aD4KICAgICAgICAgICAgPHRoIHdpZHRoPSI1JSI+PC90aD4KICAgICAgICAgIDwvdHI+CiAgICAgICAgPC90aGVhZD4KICAgICAgICA8dGJvZHk+PC90Ym9keT4KICAgICAgPC90YWJsZT4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICA6aG9zdCAjdGVuc29yLWRhdGEtZGl2IHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgfQogICAgICAuc2VjdGlvbi10aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CiAgICAgIDpob3N0IC5pbmRlbnRlZC1sZXZlbC1jb250YWluZXIgLmNvbnRlbnQtY29udGFpbmVyIHsKICAgICAgICBtYXJnaW46IDAgMCAwIDEwcHg7CiAgICAgIH0KICAgICAgOmhvc3QgLnRlbnNvci1kYXRhLXRhYmxlIHsKICAgICAgICBhbGlnbi1jb250ZW50OiBsZWZ0OwogICAgICAgIGFsaWduLWl0ZW1zOiBsZWZ0OwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBwYWRkaW5nLXRvcDogM3B4OwogICAgICAgIHBhZGRpbmctbGVmdDogM3B4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgICBib3gtc2hhZG93OiAzcHggM3B4ICNkZGQ7CiAgICAgIH0KICAgICAgOmhvc3QgI3RlbnNvci1kYXRhLXRhYmxlIHRoIHsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICB9CiAgICAgIDpob3N0IC5hY3RpdmUtdGVuc29yIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmZmUwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGJvcmRlcjogc29saWQgMXB4ICM4ODg7CiAgICAgIH0KICAgICAgOmhvc3QgLmhpZ2hsaWdodGVkIHsKICAgICAgICBjb2xvcjogcmVkOwogICAgICB9CiAgICAgIDpob3N0IC5oZWFsdGgtcGlsbC1sZWdlbmQgewogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CiAgICAgIDpob3N0ICNzaG93LWhlYWx0aC1waWxscyB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CiAgICAgIC52YWx1ZS1leHBhbnNpb24tbGluayB7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CiAgICAgIC52YWx1ZS1leHBhbnNpb24tbGluayA6aG92ZXIgewogICAgICAgIGNvbG9yOiBibHVlOwogICAgICB9CiAgICAgIC5oZWFsdGgtcGlsbCA6aG92ZXIgewogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAudGVuc29yLW5hbWUgewogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAudGVuc29yLW5hbWUgOmhvdmVyIHsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCjxzdHlsZT4vKiBDb3B5cmlnaHQgMjAxOSBUaGUgVGVuc29yRmxvdyBBdXRob3JzLiBBbGwgUmlnaHRzIFJlc2VydmVkLgogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNlIik7CnlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS4KWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0CiAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wCiBVbmxlc3Mgcm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Y2xhc3M9ImlubGluZSIgbGFiZWw9IlNjYWxhciBWYWx1ZSIgaWQ9InZhbHVlLXNjYWxhciIgdmFsdWU9IltbX2RhdGFTY2FsYXJdXSI+CiAgICAgICAgICAgICAgICAgIDwvcGFwZXItaW5wdXQ+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19pc1ZhbHVlTGluZUNoYXJ0XV0iPgogICAgICAgICAgICAgICAgICA8dGYtZGVidWdnZXItbGluZS1jaGFydCBkYXRhPSJbW19saW5lQ2hhcnREYXRhXV0iPjwvdGYtZGVidWdnZXItbGluZS1jaGFydD4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2lzVmFsdWVJbWFnZV1dIj4KICAgICAgICAgICAgICAgICAgPGltZyBjbGFzcz0idmFsdWUtaW1hZ2UiIGhlaWdodD0iMjUwcHgiIHdpZHRoPSIyNTBweCIgc3JjJD0iW1tfZGF0YUltYWdlU3JjXV0iPgogICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAKICAgICAgICAgIAogICAgICAgIAogICAgICA8L3RyPgogICAgPC90YWJsZT4KCiAgICA8c3R5bGUgaW5jbHVkZT0idGVuc29yLXdpZGdldC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgLnRlbnNvci12YWx1ZS1idXR0b25zIHsKICAgICAgICBoZWlnaHQ6IDc1JTsKICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgIH0KICAgICAgLnRlbnNvci12YWx1ZS12aWV3LXRhYmxlIHsKICAgICAgICB3aWR0aDogNTAwcHg7CiAgICAgICAgZGlzcGxheTogaW5saW5lLXRhYmxlOwogICAgICAgIGJvcmRlci1zcGFjaW5nOiA1cHg7CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogM3B4OwogICAgICAgIHBhZGRpbmctbGVmdDogM3B4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhmOGY4OwogICAgICAgIGJveC1zaGFkb3c6IDNweCAzcHggMXB4IDFweCAjZDhkOGQ4OwogICAgICB9CiAgICAgIC50ZW5zb3ItdmFsdWUtdmlldy10ZCB7CiAgICAgICAgd2lkdGg6IDM1MHB4OwogICAgICB9CiAgICAgIC52YWx1ZS1jYXJkLWlucHV0IHsKICAgICAgICB3aWR0aDogMTUwcHg7CiAgICAgIH0KICAgICAgI3RlbnNvci1uYW1lIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiA1MCU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CiAgICAgIC50ZW5zb3ItbmFtZS10ZXh0IHsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgfQogICAgICAjZGVidWctb3AgewogICAgICAgIGZvbnQtc2l6ZTogOTAlOwogICAgICB9CiAgICAgIC52YWx1ZS1pbWFnZSB7CiAgICAgICAgaW1hZ2UtcmVuZGVyaW5nOiBwaXhlbGF0ZWQ7CiAgICAgIH0KICAgICAgLnZhbHVlLXZpZXctaWNvbi1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBmbG9hdDogcmlnaHQ7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgd2lkdGg6IDIwJTsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgZm9udC1zaXplOiA5MCU7CiAgICAgICAgY29sb3I6IGJsdWU7CiAgICAgIH0KICAgICAgI3RlbnNvci13aWRnZXQgewogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIHJnYigxNjAsIDE2MCwgMTYwKTsKICAgICAgICAvKiBib3gtc2l6aW5nOiBjb250ZW50LWJveDsKICAgICAgICAtbW96LWJveC1zaXppbmc6IGNvbnRlbnQtYm94OwogICAgICAgIC13ZWJraXQtYm94LXNpemluZzogY29udGVudC1ib3g7ICovCiAgICAgICAgaGVpZ2h0OiAyODBweDsKICAgICAgICB3aWR0aDogNDg0cHg7CiAgICAgIH0KICAgICAgI3NsaWNpbmcsCiAgICAgICN0aW1lLWluZGljZXMgewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICAgIH0KICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKPGRvbS1tb2R1bGUgaWQ9InRmLXRlbnNvci12YWx1ZS1tdWx0aS12aWV3Ij4KICA8dGVtcGxhdGU+CiAgICA8ZGl2IGlkPSJtdWx0aVZpZXciPgogICAgICA8ZGl2IGNsYXNzPSJzZWN0aW9uLXRpdGxlIj5UZW5zb3IgVmFsdWVzPC9kaXY+CiAgICAgIDxkaXYgaWQ9Im11bHRpLXRlbnNvci12aWV3LWNvbnRhaW5lciI+PC9kaXY+CiAgICA8L2Rpdj4KICAgIDxzdHlsZT4KICAgICAgLnNlY3Rpb24tdGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTEwJTsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAjbXVsdGlWaWV3IHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmOwogICAgICAgIHBhZGRpbmctdG9wOiAzcHg7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAzcHg7CiAgICA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vbTogMDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CiAgICAgIHBhcGVyLXRvYXN0IHsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIHdpZHRoOiA0MHZ3OwogICAgICAgIG1hcmdpbi1sZWZ0OiAzMHZ3OwogICAgICB9CiAgICAgIHRmLWRhc2hib2FyZC1sYXlvdXQgewogICAgICAgIC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLWJhc2lzOiBhdXRvOwogICAgICAgIC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLW1heC13aWR0aDogbm9uZTsKICAgICAgICAtLXRmLWRhc2hib2FyZC1sYXlvdXQtc2lkZWJhci1taW4td2lkdGg6IG5vbmU7CiAgICAgIH0KICAgICAgLmRlYnVnZ2VyLXNlY3Rpb24tdGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTEwJTsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICBwYXBlci10YWJzIHsKICAgICAgICBjb2xvcjogIzU1NTsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CiAgICAgIHBhcGVyLXRhYi5pcm9uLXNlbGVjdGVkIHsKICAgICAgICBjb2xvcjogYmxhY2s7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KICAgICAgI2luaXRpYWxEaWFsb2cgewogICAgICAgIC8qKiBUaGlzIG1hdGNoZXMgdGhlIGRlZmF1bHQgei1pbmRleCBvZiBwYXBlci1kaWFsb2cgYmFja2Ryb3BzLiAqLwogICAgICAgIHotaW5kZXg6IDEwMjsKICAgICAgfQogICAgICAvKiogUmVzaXplIHRoZSByZWdpb24gZm9yIHRoZSBncmFwaCBhcyB0aGUgdXNlciByZXNpemVzIHRoZSByZWdpb24uICovCiAgICAgICNncmFwaC1jb250YWluZXIgewogICAgICAgIGhlaWdodDogY2FsYygxMDAlIC0gMTIwcHgpOwogICAgICAgIC8qKiBDbGlwIHRoZSBtaW5pbWFwIGlmIHRoZSBoZWlnaHQgb2YgdGhlIGdyYXBoIGNvbnRhaW5lciBpcyBzbWFsbC4gKi8KICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQogICAgICAjZ3JhcGggewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgI3Rvb2x0aXAtc29ydGluZyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWFyZ2luLXRvcDogNXB4OwogICAgICB9CiAgICAgICN0b29sdGlwLXNvcnRpbmctbGFiZWwgewogICAgICAgIG1hcmdpbi10b3A6IDEzcHg7CiAgICAgIH0KICAgICAgI3Rvb2x0aXAtc29ydGluZyBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICBtYXJnaW4tbGVmdDogMTBweDsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgd2lkdGg6IDEwNXB4OwogICAgICB9CiAgICAgICN4LXR5cGUtc2VsZWN0b3IgcGFwZXItYnV0dG9uIHsKICAgICAgICBtYXJnaW46IDVweCAzcHg7CiAgICAgIH0KICAgICAgLnJ1bnRpbWUtZ3JhcGgtZGV2aWNlIHsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICB9CiAgICAgICNydW50aW1lLWdyYXBoLWRldmljZS1uYW1lIHsKICAgICAgICBmb250LXNpemU6IDg1JTsKICAgICAgICB3b3JkLWJyZWFrOiBicmVhay1hbGw7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CiAgICAgICNhY3RpdmUtcnVudGltZS1ncmFwaC1kZXZpY2UtbmFtZSB7CiAgICAgICAgZm9udC1zaXplOiA4NSU7CiAgICAgICAgd2lkdGg6IDM1MHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQogICAgICAjdG9wLXJpZ2h0LXByb2dyZXNzLWJhciB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KICAgICAgLmxpbmUtaXRlbSB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZy10b3A6IDVweDsKICAgICAgfQogICAgICAubm8tZGF0YS13YXJuaW5nIHsKICAgICAgICBtYXgtd2lkdGg6IDU0MHB4OwogICAgICAgIG1hcmdpbjogODBweCBhdXRvIDAgYXV0bzsKICAgICAgfQogICAgICAuc2lkZWJhciB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIG92ZXJmbG93LXg6IHZpc2libGU7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CiAgICAgIC5jZW50ZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgdGYtZGVidWdnZXItcmVzaXplciB7CiAgICAgICAgcmlnaHQ6IC0xMHB4OwogICAgICB9CiAgICAgICNjZW50ZXItY29udGVudCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CiAgICAgIC8qKiBUaGUgcmVzaXplciBzaG91bGQgaGF2ZSBubyBzcGFjZSB0byB0aGUgbGVmdCBvZiBpdC4gKi8KICAgICAgI2NlbnRlci1jb250ZW50IHRmLWRlYnVnZ2VyLXJlc2l6ZXJbaXMtaG9yaXpvbnRhbF0gewogICAgICAgIG1hcmdpbi1sZWZ0OiAtMjNweDsKICAgICAgfQogICAgICAuY29udGV4dC1tZW51IHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZTJlMmUyOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWluLXdpZHRoOiAxNTBweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZDRkNGQ0OwogICAgICB9CiAgICAgIC5zcGlubmVyIHsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgICBoZWlnaHQ6IDIwcHg7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgfQogICAgICAubm9kZS1lbnRyaWVzIHsKICAgICAgICBib3gtc2hhZG93OiAzcHggM3B4ICNkZGQ7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBoZWlnaHQ6IDgwJTsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDNweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAzcHg7CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRvcDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuc291cmNlLWNvZGUtdmlldy1kaXYgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDQwJTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDNweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAzcHg7CiAgICAgICAgYm94LXNoYWRvdzogM3B4IDNweCAjZGRkOwogICAgICB9CiAgICAgICNzZXNzaW9uUnVuc1ZpZXcgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiAyNXZoOwogICAgICB9CiAgICAgIC5idXR0b25zLWNvbnRhaW5lciB7CiAgICAgICAgcGFkZGluZzogMjBweCAwOwogICAgICB9CiAgICAgICN0ZW5zb3ItZGF0YSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIHBhZGRpbmc6IDIwcHggMDsKICAgICAgICBtYXJnaW46IDAgMCAyMHB4IDA7CiAgICAgIH0KICAgICAgI3RlbnNvckRhdGFTdW1tYXJ5IHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgdG9wOiAwOwogICAgICB9CiAgICAgICN0b3AtcmlnaHQtcXVhZHJhbnQgewogICAgICAgIGhlaWdodDogNjYlOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CiAgICAgIC50b2dnbGUtc291cmNlLWNvZGUgewogICAgICAgIG1hcmdpbi1yaWdodDogMWVtOwogICAgICAgIGZvbnQtc2l6ZTogODAlOwogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgfQogICAgICAuY29udGV4dC1tZW51IHVsIHsKICAgICAgICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgY3Vyc29yOiBkZWZhdWx0OwogICAgICB9CiAgICAgIC5jb250ZXh0LW1lbnUgdWwgbGkgewogICAgICAgIHBhZGRpbmc6IDRweCAxNnB4OwogICAgICB9CiAgICAgIC5jb250ZXh0LW1lbnUgdWwgbGk6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmMzkxM2U7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICBwYXBlci1pbnB1dCB7CiAgICAgICAgd2lkdGg6IDIwMHB4OwogICAgICB9CiAgICAgIC5pbmxpbmUsCiAgICAgIHBhcGVyLWl0ZW0gewogICAgICAgIGRpc3BsYXk6IGlubGluZTsKICAgICAgfQoKICAgICAgdnotbGluZS1jaGFydCB7CiAgICAgICAgaGVpZ2h0OiAzMDBweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KICAgICAgW2hpZGRlbl0gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJwYXBlci1tYXRlcmlhbC1zaGFyZWQtc3R5bGVzIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjEiXSkgewogICAgICAgIEBhcHBseSAtLXNoYWRvdy1lbGV2YXRpb24tMmRwOwogICAgICB9CgogICAgICA6aG9zdChbZWxldmF0aW9uPSIyIl0pIHsKICAgICAgICBAYXBwbHkgLS1zaGFkb3ctZWxldmF0aW9uLTRkcDsKIC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saWduOiBjZW50ZXI7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtbGVnZW5kIHsKICAgICAgICBwYWRkaW5nOiAxNXB4OwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtbGVnZW5kIGgyIHsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtZW50cnkgewogICAgICAgIG1hcmdpbjogMTBweCAxMHB4IDEwcHggMDsKICAgICAgfQoKICAgICAgLmhlYWx0aC1waWxsLWVudHJ5IC5jb2xvci1wcmV2aWV3IHsKICAgICAgICB3aWR0aDogMjZweDsKICAgICAgICBoZWlnaHQ6IDI2cHg7CiAgICAgICAgYm9yZGVyLXJhZGl1czogM3B4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBtYXJnaW46IDAgMTBweCAwIDA7CiAgICAgIH0KCiAgICAgIC5oZWFsdGgtcGlsbC1lbnRyeSAuY29sb3ItbGFiZWwsCiAgICAgIC5oZWFsdGgtcGlsbC1lbnRyeSAudGVuc29yLWNvdW50IHsKICAgICAgICBjb2xvcjogIzc3NzsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgaGVpZ2h0OiAyNnB4OwogICAgICAgIGZvbnQtc2l6ZTogMjJweDsKICAgICAgICBsaW5lLWhlaWdodDogMjZweDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtZW50cnkgLnRlbnNvci1jb3VudCB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICB9CgogICAgICAjaGVhbHRoLXBpbGwtc3RlcC1zbGlkZXIgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIG1hcmdpbjogMCAwIDAgLTE1cHg7CiAgICAgICAgLyogMzEgY29tZXMgZnJvbSBhZGRpbmcgYSBwYWR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bGlnbjogdG9wOwogICAgICB9CgogICAgICAjbnVtZXJpYy1hbGVydHMtdGFibGUgLmZpcnN0LW9mZmVuc2UtdGQgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgLmZpcnN0LW9mZmVuc2UtdGQgewogICAgICAgIHdpZHRoOiA4MHB4OwogICAgICB9CgogICAgICAudGVuc29yLWRldmljZS10ZCB7CiAgICAgICAgbWF4LXdpZHRoOiAxNDBweDsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgIH0KCiAgICAgIC50ZW5zb3Itc2VjdGlvbi13aXRoaW4tdGFibGUgewogICAgICAgIGNvbG9yOiAjMjY2MjM2OwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBvcGFjaXR5OiAwLjg7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgIH0KCiAgICAgIC50ZW5zb3Itc2VjdGlvbi13aXRoaW4tdGFibGU6aG92ZXIgewogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgIC5kZXZpY2Utc2VjdGlvbi13aXRoaW4tdGFibGUgewogICAgICAgIGNvbG9yOiAjNjY2OwogICAgICB9CgogICAgICAubWluaS1oZWFsdGgtcGlsbCB7CiAgICAgICAgd2lkdGg6IDEzMHB4OwogICAgICB9CgogICAgICAubWluaS1oZWFsdGgtcGlsbCA+IGRpdiB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIHdpZHRoOiA2MHB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDNweDsKICAgICAgfQoKICAgICAgI2V2ZW50LWNvdW50cy10aCB7CiAgICAgICAgcGFkZGluZzogMCAwIDAgMTBweDsKICAgICAgfQoKICAgICAgLm5lZ2F0aXZlLWluZi1taW5pLWhlYWx0aC1waWxsLXNlY3Rpb24gewogICAgICAgIGJhY2tncm91bmQ6IHJnYigyNTUsIDE0MS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tZW50cnkiPgogICAgICAgICAgPGRpdiBjbGFzcz0iY29sb3ItcHJldmlldyIgc3R5bGU9ImJhY2tncm91bmQ6W1tpdGVtLmJhY2tncm91bmRfY29sb3JdXSI+PC9kaXY+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJjb2xvci1sYWJlbCI+W1tpdGVtLmxhYmVsXV08L2Rpdj4KICAgICAgICAgIDxkaXYgY2xhc3M9InRlbnNvci1jb3VudCI+CiAgICAgICAgICAgIFtbX2NvbXB1dGVUZW5zb3JDb3VudFN0cmluZyhoZWFsdGhQaWxsVmFsdWVzRm9yU2VsZWN0ZWROb2RlLAogICAgICAgICAgICBpbmRleCldXQogICAgICAgICAgPC9kaXY+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvdGVtcGxhdGU+CiAgICAgIDxkaXYgaGlkZGVuJD0iW1shX2hhc0RlYnVnZ2VyTnVtZXJpY0FsZXJ0cyhkZWJ1Z2dlck51bWVyaWNBbGVydHMpXV0iPgogICAgICAgIDxoMiBpZD0ibnVtZXJpYy1hbGVydHMtaGVhZGVyIj5OdW1lcmljIEFsZXJ0czwvaDI+CiAgICAgICAgPHA+CiAgICAgICAgICBBbGVydHMgYXJlIHNvcnRlZCBmcm9tIHRvcCB0byBib3R0b20gYnkgaW5jcmVhc2luZyB0aW1lc3RhbXAuCiAgICAgICAgCiAgICAgICAgPGRpdiBpZD0ibnVtZXJpYy1hbGVydHMtdGFibGUtY29udGFpbmVyIj4KICAgICAgICAgIDx0YWJsZSBpZD0ibnVtZXJpYy1hbGVydHMtdGFibGUiPgogICAgICAgICAgICA8dGhlYWQ+CiAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgPHRoPkZpcnN0IE9mZmVuc2U8L3RoPgogICAgICAgICAgICAgICAgPHRoPlRlbnNvciAoRGV2aWNlKTwvdGg+CiAgICAgICAgICAgICAgICA8dGggaWQ9ImV2ZW50LWNvdW50cy10aCI+RXZlbnQgQ291bnRzPC90aD4KICAgICAgICAgIC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cGF0aWJsZS1vcHMtbGlzdCB7CiAgICAgICAgaGVpZ2h0OiAzNTBweDsKICAgICAgICBtYXgtaGVpZ2h0OiA0MDBweDsKICAgICAgICBvdmVyZmxvdy15OiBzY3JvbGw7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICBpcm9uLWxpc3QgewogICAgICAgIGZsZXg6IDEgMSBhdXRvOwogICAgICB9CgogICAgICBwYXBlci1pdGVtIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGJhY2tncm91bmQ6ICNlOWU5ZTk7CiAgICAgIH0KCiAgICAgIHBhcGVyLWl0ZW0tYm9keVt0d28tbGluZV0gewogICAgICAgIG1pbi1oZWlnaHQ6IDA7CiAgICAgICAgcGFkZGluZzogOHB4IDEycHggNHB4OwogICAgICB9CgogICAgICAuZXhwYW5kZWRJbmZvIHsKICAgICAgICBwYWRkaW5nOiA4cHggMTJweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGZvbnQtc2l6ZTogMTJwdDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgLm5vZGUtbmFtZSB7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vcm1hbDsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgZm9udC1zaXplOiAxNHB0OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgIH0KCiAgICAgIC5zdWJ0aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMnB0OwogICAgICAgIGNvbG9yOiAjNWU1ZTVlOwogICAgICB9CgogICAgICAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIG1heC1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAyMHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgIH0KCiAgICAgIC5ub24tY29udHJvbC1saXN0LWl0ZW0gewogICAgICAgIHBhZGRpbmctbGVmdDogMTBweDsKICAgICAgfQoKICAgICAgZGl2Lm9wLWNvbXBhdC1kaXNwbGF5IHsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgc3ZnLm9wLWNvbXBhdCB7CiAgICAgICAgd2lkdGg6IDI1MHB4OwogICAgICAgIGhlaWdodDogMjVweDsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgfQoKICAgICAgZGl2Lm9wLWNvbXBhdC12YWx1ZSB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgY29sb3I6IGJsYWNrOwogICAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4OwogICAgICB9CiAgICA8L3N0eWxlPgoKICAgIDxwYXBlci1pdGVtPgogICAgICA8cGFwZXItaXRlbS1ib2R5IHR3by1saW5lPgogICAgICAgIDxkaXY+CiAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0ie3tfZ2V0VG9nZ2xlSWNvbihfZXhwYW5kZWQpfX0iIG9uLWNsaWNrPSJfdG9nZ2xlRXhwYW5kZWQiIGNsYXNzPSJ0b2dnbGUtYnV0dG9uIj4KICAgICAgICAgIDwvcGFwZXItaWNvbi1idXR0b24+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJub2RlLW5hbWUiIGlkPSJub2RldGl0bGUiPltbbm9kZVRpdGxlXV08L2Rpdj4KICAgICAgICA8L2Rpdj4KICAgICAgICA8ZGl2IHNlY29uZGFyeT4KICAgICAgICAgIDxkaXYgY2xhc3M9InN1YnRpdGxlIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0ib3AtY29tcGF0LWRpc3BsYXkiPgogICAgICAgICAgICAgIDxzdmcgY2xhc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0ci1sZWZ0IHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgICB3aWR0aDogMzAlOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgICBjb2xvcjogIzU2NTY1NjsKICAgICAgICBmb250LXNpemU6IDExcHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgfQoKICAgICAgLmF0dHItcmlnaHQgewogICAgICAgIG1hcmdpbi1sZWZ0OiAzMCU7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICAgIGNvbG9yOiAjNTY1NjU2OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgIH0KCiAgICAgIC5zdWItbGlzdC10YWJsZSB7CiAgICAgICAgZGlzcGxheTogdGFibGU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIC5zdWItbGlzdC10YWJsZS1yb3cgewogICAgICAgIGRpc3BsYXk6IHRhYmxlLXJvdzsKICAgICAgfQoKICAgICAgLnN1Yi1saXN0LXRhYmxlLXJvdyAuc3ViLWxpc3QtdGFibGUtY2VsbDpsYXN0LWNoaWxkIHsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgfQoKICAgICAgLnN1Yi1saXN0LXRhYmxlLWNlbGwgewogICAgICAgIGNvbG9yOiAjNTY1NjU2OwogICAgICAgIGRpc3BsYXk6IHRhYmxlLWNlbGw7CiAgICAgICAgZm9udC1zaXplOiAxMXB0OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbWF4LXdpZHRoOiAyMDBweDsKICAgICAgICBwYWRkaW5nOiAwIDRweDsKICAgICAgfQoKICAgICAgcGFwZXItaXRlbSB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBiYWNrZ3JvdW5kOiAjZTllOWU5OwogICAgICB9CgogICAgICBwYXBlci1pdGVtLWJvZHlbdHdvLWxpbmVdIHsKICAgICAgICBtaW4taGVpZ2h0OiAwOwogICAgICAgIHBhZGRpbmc6IDhweCAxMnB4IDRweDsKICAgICAgfQoKICAgICAgLmV4cGFuZGVkSW5mbyB7CiAgICAgICAgcGFkZGluZzogOHB4IDEycHg7CiAgICAgIH0KCiAgICAgIC5jb250cm9sRGVwcyB7CiAgICAgICAgcGFkZGluZzogMCAwIDAgOHB4OwogICAgICB9CgogICAgICAubm9kZS1uYW1lIHsKICAgICAgICB3aGl0ZS1zcGFjZTogbm9ybWFsOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgICBmb250LXNpemU6IDE0cHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgfQoKICAgICAgLm5vZGUtaWNvbiB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICB9CgogICAgICAuc3VidGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTJwdDsKICAgICAgICBjb2xvcjogIzVlNWU1ZTsKICAgICAgfQoKICAgICAgLmNvbnRyb2xMaW5lIHsKICAgICAgICBmb250LXNpemU6IDExcHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgfQoKICAgICAgLnRvZ2dsZS1idXR0b24gewogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAuY29udHJvbC10b2dnbGUtYnV0dG9uIHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAudG9nZ2xlLWluY2x1ZGUtZ3JvdXAgewogICAgICAgIHBhZGRpbmctdG9wOiA0cHg7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtaW5jbHVkZSB7CiAgICAgICAgbWFyZ2luO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aWY9Int7X25vZGVTdGF0cy50b3RhbEJ5dGVzfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPk1lbW9yeTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPgogICAgICAgICAgICAgICAgICAgICAgW1tfbm9kZVN0YXRzRm9ybWF0dGVkQnl0ZXNdXQogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X2dldFRvdGFsTWljcm9zKF9ub2RlU3RhdHMpfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPkNvbXB1dGUgVGltZTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPgogICAgICAgICAgICAgICAgICAgICAgW1tfbm9kZVN0YXRzRm9ybWF0dGVkQ29tcHV0ZVRpbWVdXQogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X25vZGVTdGF0cy5vdXRwdXRTaXplfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxk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ICBwYWRkaW5nOiAwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAzODBweDsKICAgICAgICBtaW4td2lkdGg6IDMyMHB4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC45KTsKICAgICAgICBAYXBwbHkgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDsKICAgICAgfQoKICAgICAgI21haW4gewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzLWJhciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogNDBweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzLW1zZyB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLXByb2dyZXNzIHsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgICAgLS1wYXBlci1wcm9ncmVzcy1oZWlnaHQ6IDZweDsKICAgICAgICAtLXBhcGVyLXByb2dyZXNzLWFjdGl2ZS1jb2xvcjogI2YzOTEzZTsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2UyZTJlMjsKICAgICAgICBib3JkZ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B3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlOwogICAgICB9CgogICAgICAjb2ZmUmFkaW8gewogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi11bmNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi11bmNoZWNrZWQtYmFja2dyb3VuZC1jb2xvciwgdHJhbnNwYXJlbnQpOwogICAgICAgIHRyYW5zaXRpb246IGJvcmRlci1jb2xvciAwLjI4czsKICAgICAgfQoKICAgICAgI29uUmFkaW8gewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi1jaGVja2VkLWNvbG9yLCB2YXIoLS1wcmltYXJ5LWNvbG9yKSk7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDApOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMCk7CiAgICAgICAgdHJhbnNpdGlvbjogLXdlYmtpdC10cmFuc2Zvcm0gZWFzZSAwLjI4czsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gZWFzZSAwLjI4czsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CgogICAgICA6aG9zdChbY2hlY2tlZF0pICNvZmZSYWRpbyB7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1yYWRpby1idXR0b24tY2hlY2tlZC1jb2xvciwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwogICAgICB9CgogICAgICA6aG9zdChbY2hlY2tlZF0pICNvblJhZGlvIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMC41KTsKICAgICAgICB0cmFu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C9kb20tbW9kdWxlPgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0icGFwZXItdG9vbHRpcCI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgei1pbmRleDogMTAwMjsKICAgICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC1tcy11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIHVzZXItc2VsZWN0OiBub25lOwogICAgICAgIGN1cnNvcjogZGVmYXVsdDsKICAgICAgfQoKICAgICAgI3Rvb2x0aXAgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgbGluZS1oZWlnaHQ6IDE7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItdG9vbHRpcC1iYWNrZ3JvdW5kLCAjNjE2MTYxKTsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItdG9vbHRpcC10ZXh0LWNvbG9yLCB3aGl0ZSk7CiAgICAgICAgcGFkZGluZzogOHB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBAYXBwbHkgLS1wYXBlci10b29sdGlwOwogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lU2NhbGVVcCB7CiAgICAgICAgMCUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwLjApOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMS4wKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVTY2FsZURvd24gewogICAgICAgIDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMS4wKTsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDAuMCk7CiAgICAgICAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lRmFkZUluT3BhY2l0eSB7CiAgICAgICAgMCUgewogICAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICBvcGFjaXR5OiB2YXIoLS1wYXBlci10b29sdGlwLW9wYWNpdHksIDAuOSk7CiAgICAgICAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lRmFkZU91dE9wYWNpdHkgewogICAgICAgIDAlIHsKICAgICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBrZXlGcmFtZVNsaWRlRG93bkluIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTIwMDBweCk7CiAgICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIH0KICAgICAgICAxMCUgewogICAgICAgICAgb3BhY2l0eTogMC4yOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgwKTsKICAgICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVTbGlkZURvd25PdXQgewogICAgICAgIDAlI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ICBhbmltYXRpb24taXRlcmF0aW9uLWNvdW50OiAxOwogICAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGVhc2UtaW47CiAgICAgICAgYW5pbWF0aW9uLWR1cmF0aW9uOiB2YXIoLS1wYXBlci10b29sdGlwLWR1cmF0aW9uLW91dCwgNTAwbXMpOwogICAgICAgIGFuaW1hdGlvbi1maWxsLW1vZGU6IGZvcndhcmRzOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRvb2x0aXAtYW5pbWF0aW9uOwogICAgICB9CgogICAgICAuc2NhbGUtdXAtYW5pbWF0aW9uIHsKICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDApOwogICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICBhbmltYXRpb24tZGVsYXk6IHZhcigtLXBhcGVyLXRvb2x0aXAtZGVsYXktaW4sIDUwMG1zKTsKICAgICAgICBhbmltYXRpb24tbmFtZToga2V5RnJhbWVTY2FsZVVwOwogICAgICAgIGFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IDE7CiAgICAgICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogZWFzZS1pbjsKICAgICAgICBhbmltYXRpb24tZHVyYXRpb246IHZhcigtLXBhcGVyLXRvb2x0aXAtZHVyYXRpb24taW4sIDUwMG1zKTsKICAgICAgICBhbmltYXRpb24tZmlsbC1tb2RlOiBmb3J3YXJkczsKICAgICAgICBAYXBwbHkgLS1wYXBlci10b29sdGlwLWFuaW1hdGlvbjsKICAgICAgfQoKICAgICAgLnNjYWxlLWRvd24tYW5pbWF0aW9uIHsKICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDEpOwogICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICBhbmltYXRpb24tZGVsYXk6IHZhcigtLXBhcGVyLXRvb2x0aXAtZG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2V4IiBsYWJlbD0iU2VhcmNoIG5vZGVzLiBSZWdleGVzIHN1cHBvcnRlZC4iIHZhbHVlPSJ7e19yYXdSZWdleElucHV0fX0iPgogICAgICA8L3BhcGVyLWlucHV0PgogICAgICA8ZGl2IGlkPSJzZWFyY2gtcmVzdWx0cy1hbmNob3IiPgogICAgICAgIDxkaXYgaWQ9InNlYXJjaC1yZXN1bHRzIj4KICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9IltbX3JlZ2V4TWF0Y2hlc11dIj4KICAgICAgICAgICAgPGRpdiBpZD0ic2VhcmNoLW1hdGNoIiBvbi1jbGljaz0iX21hdGNoQ2xpY2tlZCI+W1tpdGVtXV08L2Rpdj4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvZGl2PgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgICNzZWFyY2gtY29udGFpbmVyIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBvdmVyZmxvdzogdmlzaWJsZTsKICAgICAgfQoKICAgICAgI3J1bnMtcmVnZXggewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAjc2VhcmNoLXJlc3VsdHMtYW5jaG9yIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgICNzZWFyY2gtcmVzdWx0cyB7CiAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIG1heC13aWR0aDogMTAwJTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICB9CgogICAgICAjc2VhcmNoLW1hdGNoIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICBwYWRkaW5nOiAzcHg7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgZGlyZWN0aW9uOiBydGw7CiAgICAgIH0KCiAgICAgICNzZWFyY2gtbWF0Y2g6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXRiLW9yYW5nZS13ZWFrKTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1ncmFwaC1jb250cm9scyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgY29sb3I6IGdyYXk7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgLS1wYXBlci1kcm9wZG93bi1tZW51LWlucHV0OiB7CiAgICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgICAgY29sb3I6IGdyYXk7CiAgICAgICAgfQogICAgICAgIC0taXJvbi1pY29uLXdpZHRoOiAxNXB4OwogICAgICAgIC0taXJvbi1pY29uLWhlaWdodDogMTVweDsKICAgICAgICAtLXByaW1hcnktdGV4dC1jb2xvcjogZ3JheTsKICAgICAgICAtLXBhcGVyLWl0ZW0tbWluLWhlaWdodDogMzBweDsKICAgICAgfQoKICAgICAgcGFwZXItYnV0dG9uW3JhaXNlZF0ua2V5Ym9hcmQtZm9jdXMgewogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KCiAgICAgIC5ydW4tZHJvcGRvd24gewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyOiB7CiAgICAgICAgICBwYWRkaW5nOiA4cHggMCA4cHggMTBweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC5jb2xvci1kcm9wZG93biB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXI6IHsKICAgICAgICAgIHBhZGRpbmc6IDlweCAwIDAgMTNweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHRhYmxlIHsKICAgICAgICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlOwogICAgICAgIGJvcmRlci1zcGFjaW5nOiAwOwogICAgICB9CgogICAgICB0YWJsZSB0ZCB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBtYXJnaW46IDA7CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyB7CiAgICAgICAgcGFkZGluZzogMCAyMHB4IDIwcHg7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgIH0KCiAgICAgIC5sZWdlbmQtaG9sZGVyIHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZTllOWU5OwogICAgICAgIGJvcmRlci10b3A6IDFweCBzb2xpZCAjY2NjOwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgY29sb3I6ICM1NTU7CiAgICAgICAgcGFkZGluZzogMTVweCAyMHB4OwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAudG9nZ2xlLWxlZ2VuZC1idXR0b24gewogICAgICAgIG1heC1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAyMHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtbGVnZW5kLXRleHQgewogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIHBhcGVyLXJhZGlvLWJ1dHRvbiB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogNXB4OwogICAgICB9CiAgICAgIHN2Zy5pY29uLAogICAgICB0Zi1ncmFwaC1pY29uIHsKICAgICAgICB3aWR0aDogNjBweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgIH0KICAgICAgLmRvbWFpblZhbHVlcyB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTBweDsKICAgICAgICB3aWR0aDogMTY1cHg7CiAgICAgIH0KICAgICAgLmRvbWFpblN0YXJ0IHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgfQogICAgICAuZG9tYWluRW5kIHsKICAgICAgICBmbG9hdDogcmlnaHQ7CiAgICAgIH0KICAgICAgLmNvbG9yQm94IHsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgfQoKICAgICAgLmltYWdlLWljb24gewogICAgICAgIHdpZHRoOiAyNHB4OwogICAgICAgIGhlaWdodDogMjRweDsKICAgICAgfQoKICAgICAgLmhlbHAtaWNvbiB7CiAgICAgICAgaGVpZ2h0OiAxNXB4OwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAuZ3JheSB7CiAgICAgICAgY29sb3I6ICM2NjY7CiAgICAgIH0KCiAgICAgIC50aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxNnB4OwogICAgICAgIG1hcmdpbjogOHB4IDVweCA4cHggMDsKICAgICAgICBjb2xvcjogYmxhY2s7CiAgICAgIH0KICAgICAgLnRpdGxlIHNtYWxsIHsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CiAgICAgIC5kZXZpY2VMaXN0LAogICAgICAueGxhQ2x1c3Rlckxpc3QgewogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgIH0KCiAgICAgICNmaWxlIHsKICAgICAgICBwYWRkaW5nOiA4cHggMDsKICAgICAgfQoKICAgICAgLmNvbG9yLWxlZ2VuZC1yb3cgewogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgY2xlYXI6IGJvdGg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBoZWlnaHQ6IDIwcHg7CiAgICAgICAgbWFyZ2luLXRvcDogNXB4OwogICAgICB9CgogICAgICAuY29sb3ItbGVnZW5kLXJvdyAubGFiZWwsCiAgICAgIC5jb2xvci1sZWdlbmQtcm93IHN2ZywKICAgICAgLmNvbG9yLWxlZ2VuZC1yb3cgdGYtZ3JhcGgtaWNvbiB7CiAgICAgICAgZmxleDogMCAwIDQwcHg7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAyMHB4OwogICAgICB9CgogICAgICAuZGV2aWNlcy1jaGVja2JveCBpbnB1dCB7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwogICAgICB9CgogICAgICAuY29udHJvbC1ob2xkZXIgLmljb24tYnV0dG9uIHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWFyZ2luOiAwIC01cHg7CiAgICAgICAgcGFkZGluZzogNXB4OwogICAgICB9CgogICAgICAuYnV0dG9uLXRleHQgewogICAgICAgIHBhZGRpbmctbGVmdDogMjBweDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgfQoKICAgICAgLnVwbG9hZC1idXR0b24gewogICAgICAgIHdpZHRoOiAxNjVweDsKICAgICAgICBoZWlnaHQ6IDI1cHg7CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IG5vbmU7CiAgICAgICAgbWFyZ2luLXRvcDogNHB4OwogICAgICB9CgogICAgICAuYnV0dG9uLWljb24gewogICAgICAgIHdpZHRoOiAyNnB4OwogICAgICAgIGhlaWdodDogMjZweDsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItb3JhbmdlLTUwMCk7CiAgICAgIH0KCiAgICAgIC5oaWRkZW4taW5wdXQgewogICAgICAgIGhlaWdodDogMHB4OwogICAgICAgIHdpZHRoOiAwcHg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLmFsbGNvbnRyb2xzIC5jb250cm9sLWhvbGRlciB7CiAgICAgICAgY2xlYXI6IGJvdGg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyAuY29udHJvbC1ob2xkZXIgcGFwZXItcmFkaW8tZ3JvdXAgewogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgfQoKICAgICAgc3Bhbi5jb3VudGVyIHsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgY29sb3I6IGdyYXk7CiAgICAgIH0KCiAgICAgIC5ydW5zIHBhcGVyLWl0ZW0gewogICAgICAgIC0tcGFwZXItaXRlbTogewogICAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHRhYmxlLmNvbnRyb2wtaG9sZGVyIHsKICAgICAgICBib3JkZXI6IDA7CiAgICAgICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTsKICAgICAgfQoKICAgICAgdGFibGUudGYtZ3JhcGgtY29udHJvbHMgdGQuaW5wdXQtZWxlbWVudC10YWJsZS1kYXRhIHsKICAgICAgICBwYWRkaW5nOiAwIDAgMCAyMHB4OwogICAgICB9CgogICAgICAuc3BhY2VyIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KCiAgICAgIC5jb2xvci10ZXh0IHsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAvKiogT3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kaXY+CiAgICAgICAgICA8dGFibGU+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICA8dGQ+PGRpdiBjbGFzcz0idGl0bGUiPkdyYXBoPC9kaXY+PC90ZD4KICAgICAgICAgICAgICA8dGQ+KCogPSBleHBhbmRhYmxlKTwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICA8dGYtZ3JhcGgtaWNvbiB0eXBlPSJNRVRBIiBoZWlnaHQ9IjE2IiBmaWxsLW92ZXJyaWRlPSIjZDlkOWQ5IiBzdHJva2Utb3ZlcnJpZGU9IiNjY2MiPjwvdGYtZ3JhcGgtaWNvbj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIE5hbWVzcGFjZTxzcGFuIGNsYXNzPSJncmF5Ij4qPC9zcGFuPgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIEVuY2Fwc3VsYXRlcyBhIHNldCBvZiBub2Rlcy4gTmFtZXNwYWNlIGlzIGhpZXJhcmNoaWNhbCBhbmQKICAgICAgICAgICAgICAgICAgICBiYXNlZCBvbiBzY29wZS4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9Ik9QIiBoZWlnaHQ9IjE2Ij48L3RmLWdyYXBoLWljb24+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBPcE5vZGUKICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBOb2RlIHRoYXQgcGVyZm9ybXMgYW4gb3BlcmF0aW9uLiBUaGVzZSBub2RlcyBjYW5ub3QgZXhwYW5kLgogICAgICAgICAgICAgICAgICA8L3BhcGVyLXRvb2x0aXA+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICA8L3RyPgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgPHRmLWdyYXBoLWljb24gdHlwZT0iU0VSSUVTIiBoZWlnaHQ9IjE2Ij48L3RmLWdyYXBoLWljb24+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBVbmNvbm5lY3RlZCBzZXJpZXM8c3BhbiBjbGFzcz0iZ3JheSI+Kjwvc3Bhbj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBTZXF1ZW5jZSBvZiBudW1iZXJlZCBub2RlcyB0aGF0IGFyZSBub3QgY29ubmVjdGVkIHRvIGVhY2gKICAgICAgICAgICAgICAgICAgICBvdGhlci4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9IlNFUklFUyIgaGVpZ2h0PSIxNiIgdmVydGljYWw+PC90Zi1ncmFwaC1pY29uPgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgQ29ubmVjdGVkIHNlcmllczxzcGFuIGNsYXNzPSJncmF5Ij4qPC9zcGFuPgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIFNlcXVlbmNlIG9mIG51bWJlcmVkIG5vZGVzIHRoYXQgYXJlIGNvbm5lY3RlZCB0byBlYWNoIG90aGVyLgogICAgICAgICAgICAgICAgICA8L3BhcGVyLXRvb2x0aXA+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICA8L3RyPgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgPHN2ZyBjbGFzcz0iaWNvbiI+CiAgICAgICAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0id2hpdGUiIHN0cm9rZT0iIzg0ODQ4NCIgY3g9IjEwIiBjeT0iMTAiIHI9IjUiIC8+CiAgICAgICAgICAgICAgICA8L3N2Zz4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIENvbnN0YW50CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtY2xhcmlmaWVyIj4KICAgICAgICAgICAgICAgICAgPHNwYW4+Pzwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgYW5pbWF0aW9uLWRlbGF5PSIwIiBwb3NpdGlvbj0icmlnaHQiIG9mZnNldD0iMCI+CiAgICAgICAgICAgICAgICAgICAgTm9kZSB0aGF0IG91dHB1dHMgYSBjb25zdGFudCB2YWx1ZS4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9IlNVTU1BUlkiIGhlaWdodD0iMjAiPjwvdGYtZ3JhcGgtaWNvbj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIFN1bW1hcnkKICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBOb2RlIHRoYXQgY29sbGVjdHMgZGF0YSBmb3IgdmlzdWFsaXphdGlvbiB3aXRoaW4KICAgICAgICAgICAgICAgICAgICBUZW5zb3JCb2FyZC4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAg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mZnNldD0iMCI+CiAgICAgICAgICAgICAgICAgICAgRWRnZSBzaG93aW5nIHRoZSBkYXRhIGZsb3cgYmV0d2VlbiBvcGVyYXRpb25zLiBFZGdlcyBmbG93CiAgICAgICAgICAgICAgICAgICAgdXB3YXJkcyB1bmxlc3MgYXJyb3doZWFkcyBzcGVjaWZ5IG90aGVyd2lzZS4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9Imljb24iIGhlaWdodD0iMTVweCIgcHJlc2VydmVhc3BlY3RyYXRpbz0ieE1pbllNaWQgbWVldCIgdmlld2JveD0iMCAwIDE1IDE1Ij4KICAgICAgICAgICAgICAgICAgPHBhdGggc3Ryb2tlPSIjYmJiIiBkPSJNMiA5IGwgMjkgMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIyLCAyIiAvPgogICAgICAgICAgICAgICAgPC9zdmc+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBDb250cm9sIGRlcGVuZGVuY3kgZWRnZQogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIEVkZ2Ugc2hvd2luZyB0aGUgY29udHJvbCBkZXBlbmRlbmN5IGJldHdlZW4gb3BlcmF0aW9ucy4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9Imljb24iIGhlaWdodD0iMTVweCIgcHJlc2VydmVhc3BlY3RyYXRpbz0ieE1pbllNaWQgbWVldCIgdmlld2JveD0iMCAwIDE1IDE1Ij4KICAgICAgICAgICAgICAgICAgPGRlZnM+CiAgICAgICAgICAgICAgICAgICAgPG1hcmtlciBpZD0icmVmZXJlbmNlLWFycm93aGVhZC1sZWdlbmQiIGZpbGw9IiNGRkI3NEQiIG1hcmtlcndpZHRoPSIxMCIgbWFya2VyaGVpZ2h0PSIxMCIgcmVmeD0iOSIgcmVmeT0iNSIgb3JpZW50PSJhdXRvLXN0YXJ0LXJldmVyc2UiPgogICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTSAwLDAgTCAxMCw1IEwgMCwxMCBDIDMsNyAzLDMgMCwwIiAvPgogICAgICAgICAgICAgICAgICAgIDwvbWFya2VyPgogICAgICAgICAgICAgICAgICA8L2RlZnM+CiAgICAgICAgICAgICAgICAgIDxwYXRoIG1hcmtlci1lbmQ9InVybCgjcmVmZXJlbmNlLWFycm93aGVhZC1sZWdlbmQpIiBzdHJva2U9IiNGRkI3NEQiIGQ9Ik0yIDkgbCAyOSAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIC8+CiAgICAgICAgICAgICAgICA8L3N2Zz4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIFJlZmVyZW5jZSBlZGdlCiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtY2xhcmlmaWVyIj4KICAgICAgICAgICAgICAgICAgPHNwYW4+Pzwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgYW5pbWF0aW9uLWRlbG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zcz0iYXhpcyB5IHNsaWNlIj48L2c+CiAgICAgICAgPGcgY2xhc3M9InN0YWdlIj4KICAgICAgICAgIDxyZWN0IGNsYXNzPSJiYWNrZ3JvdW5kIj48L3JlY3Q+CiAgICAgICAgPC9nPgogICAgICAgIDxnIGNsYXNzPSJ4LWF4aXMtaG92ZXIiPjwvZz4KICAgICAgICA8ZyBjbGFzcz0ieS1heGlzLWhvdmVyIj48L2c+CiAgICAgICAgPGcgY2xhc3M9Inktc2xpY2UtYXhpcy1ob3ZlciI+PC9nPgogICAgICA8L2c+CiAgICA8L3N2Zz4KCiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQoKICAgICAgc3ZnIHsKICAgICAgICBmb250LWZhbWlseTogcm9ib3RvLCBzYW5zLXNlcmlmOwogICAgICAgIG92ZXJmbG93OiB2aXNpYmxlOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgfQoKICAgICAgI3Rvb2x0aXAgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgfQoKICAgICAgLmJhY2tncm91bmQgewogICAgICAgIGZpbGwtb3BhY2l0eTogMDsKICAgICAgICBmaWxsOiByZWQ7CiAgICAgIH0KCiAgICAgIC5oaXN0b2dyYW0gewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAuaG92ZXIgewogICAgICAgIGZvbnQtc2l6ZTogOXB4OwogICAgICAgIGRvbWluYW50LWJhc2VsaW5lOiBtaWRkbGU7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmhvdmVyIGNpcmNsZSB7CiAgICAgICAgc3Ryb2tlOiB3aGl0ZTsKICAgICAgICBzdHJva2Utb3BhY2l0eTogMC41OwogICAgICAgIHN0cm9rZS13aWR0aDogMXB4OwogICAgICB9CgogICAgICAuaG92ZXIgdGV4dCB7CiAgICAgICAgZmlsbDogYmxhY2s7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmhvdmVyLmhvdmVyLWNsb3Nlc3QgY2lyY2xlIHsKICAgICAgICBmaWxsOiBibGFjayAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuaG92ZXIuaG92ZXItY2xvc2VzdCB0ZXh0IHsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICB9CgogICAgICAuYmFzZWxpbmUgewogICAgICAgIHN0cm9rZTogYmxhY2s7CiAgICAgICAgc3Ryb2tlLW9wYWNpdHk6IDAuMTsKICAgICAgfQoKICAgICAgLm91dGxpbmUgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgICAgc3Ryb2tlOiB3aGl0ZTsKICAgICAgICBzdHJva2Utb3BhY2l0eTogMC41OwogICAgICB9CgogICAgICAub3V0bGluZS5vdXRsaW5lLWhvdmVyIHsKICAgICAgICBzdHJva2U6IGJsYWNrICFpbXBvcnRhbnQ7CiAgICAgICAgc3Ryb2tlLW9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIsCiAgICAgIC55LWF4aXMtaG92ZXIsCiAgICAgIC55LXNsaWNlLWF4aXMtaG92ZXIgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAueC1heGlzLWhvdmVyIC5sYWJlbCwKICAgICAgLnktYXhpcy1ob3ZlciAubGFiZWwsCiAgICAgIC55LXNsaWNlLWF4aXMtaG92ZXIgLmxhYmVsIHsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgICB0ZXh0LWFuY2hvcjogZW5kOwogICAgICB9CgogICAgICAueC1heGlzLWhvdmVyIHRleHQgewogICAgICAgIHRleHQtYW5jaG9yOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIC55LWF4aXMtaG92ZXIgdGV4dCwKICAgICAgLnktc2xpY2UtYXhpcy1ob3ZlciB0ZXh0IHsKICAgICAgICB0ZXh0LWFuY2hvcjogc3RhcnQ7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIgbGluZSwKICAgICAgLnktYXhpcy1ob3ZlciBsaW5lLAogICAgICAueS1zbGljZS1heGlzLWhvdmVyIGxpbmUgewogICAgICAgIHN0cm9rZTogYmxhY2s7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIgcmVjdCwKICAgICAgLnktYXhpcy1ob3ZlciByZWN0LAogICAgICAueS1zbGljZS1heGlzLWhvdmVyIHJlY3QgewogICAgICAgIGZpbGw6IHdoaXRlOwogICAgICB9CgogICAgICAuYXhpcyB7CiAgICAgICAgZm9udC1zaXplOiAxMXB4OwogICAgICB9CgogICAgICAuYXhpcyBwYXRoLmRvbWFpbiB7CiAgICAgICAgZmlsbDogbm9uZTsKICAgICAgfQoKICAgICAgLmF4aXMgLnRpY2sgbGluZSB7CiAgICAgICAgc3Ryb2tlOiAjZGRkOwogICAgICB9CgogICAgICAuYXhpcy5zbGljZSB7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmF4aXMuc2xpY2UgLnRpY2sgbGluZSB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjsKICAgICAgfQoKICAgICAgLnNtYWxsIC5heGlzIHRleHQgewogICAgIC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JbW2hpc3RvZ3JhbU1vZGVdXSIgY29sb3Itc2NhbGU9IltbX2NvbG9yU2NhbGVGdW5jdGlvbl1dIj48L3Z6LWhpc3RvZ3JhbS10aW1lc2VyaWVzPgogICAgPGRpdiBzdHlsZT0iZGlzcGxheTogZmxleDsgZmxleC1kaXJlY3Rpb246IHJvdzsiPgogICAgICA8cGFwZXItaWNvbi1idXR0b24gc2VsZWN0ZWQkPSJbW19leHBhbmRlZF1dIiBpY29uPSJmdWxsc2NyZWVuIiBvbi10YXA9Il90b2dnbGVFeHBhbmRlZCI+PC9wYXBlci1pY29uLWJ1dHRvbj4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIHdpZHRoOiAzMzBweDsKICAgICAgICBoZWlnaHQ6IDIzNXB4OwogICAgICAgIG1hcmdpbi1yaWdodDogMTBweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxNXB4OwogICAgICB9CiAgICAgIDpob3N0KFtfZXhwYW5kZWRdKSB7CiAgICAgICAgd2lkdGg6IDcwMHB4OwogICAgICAgIGhlaWdodDogNTAwcHg7CiAgICAgIH0KCiAgICAgIHZ6LWhpc3RvZ3JhbS10aW1lc2VyaWVzIHsKICAgICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgd2lsbC1jaGFuZ2U6IHRyYW5zZm9ybTsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi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ZGU9InNjcm9sbGJhci1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAxMHB4OwogICAgICAgIG1hcmdpbi1ib3R0b206IDE1cHg7CiAgICAgIH0KICAgICAgLnNjcm9sbGJhciB7CiAgICAgICAgd2lsbC1jaGFuZ2U6IHRyYW5zZm9ybTsKICAgICAgfQogICAgICAjc3RlcHMtY29udGFpbmVyIHsKICAgICAgICBib3JkZXItcmFkaXVzOiAzcHg7CiAgICAgICAgYm9yZGVyOiAycHggc29saWQgLyogY29sb3IgY29tcHV0ZWQgYW5kIHNldCBhcyBpbmxpbmUgc3R5bGUgKi87CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgbWF4LWhlaWdodDogNTAwcHg7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgICAgcGFkZGluZzogMTBweDsKICAgICAgfQogICAgICAudGV4dCB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMCAzcHggM3B4IDNweDsKICAgICAgICBwYWRkaW5nOiA1cHg7CiAgICAgICAgd29yZC1icmVhazogYnJlYWstd29yZDsKICAgICAgfQogICAgICAuc3RlcC1jb250YWluZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogbm9uZTsKICAgICAgICBib3JkZXItcmFkaXVzOiAzcHggM3B4IDAgMDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjOwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAg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lLWxhYmVsLXRleHQiPgogICAgICAgICAgICAoW1tfY29tcHV0ZUN1cnJlbnRXYWxsVGltZUZvclJ1bihfcnVuVG9QckN1cnZlRW50cnksIHJ1bildXSkKICAgICAgICAgIDwvc3Bhbj4KICAgICAgICA8L2Rpdj4KICAgICAgPC90ZW1wbGF0ZT4KICAgIDwvZGl2PgoKICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICB3aWR0aDogNTAwcHg7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAxMHB4OwogICAgICAgIG1hcmdpbi1ib3R0b206IDI1cHg7CiAgICAgIH0KICAgICAgOmhvc3QoW19leHBhbmRlZF0pIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICB0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyIHsKICAgICAgICBoZWlnaHQ6IDMwMHB4OwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQogICAgICA6aG9zdChbX2V4cGFuZGVkXSkgdGYtbGluZS1jaGFydC1kYXRhLWxvYWRlciB7CiAgICAgICAgaGVpZ2h0OiA2MDBweDsKICAgICAgfQogICAgICAjYnV0dG9ucy1yb3cgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgfQogICAgICAjYnV0dG9ucy1yb3cgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQogICAgICAjYnV0dG9ucy1yb3cgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CiAgICAgICNzdGVwLWxlZ2VuZCB7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBmb250LXNpemU6IDAuOGVtOwogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgcGFkZGluZzogMCAwIDAgMTBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAubGVnZW5kLXJvdyB7CiAgICAgICAgbWFyZ2luOiA1cHggMCA1cHggMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuY29sb3ItYm94IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMXB4OwogICAgICAgIHdpZHRoOiAxMHB4OwogICAgICAgIGhlaWdodDogMTBweDsKICAgICAgfQogICAgICAuc3RlcC1sYWJlbC10ZXh0IHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAud2FsbC10aW1lLWxhYmVsLXRleHQgewogICAgICAgIGNvbG9yOiAjODg4OwogICAgICAgIGZvbnQtc2l6ZTogMC44ZW07CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1wci1jdXJ2ZS1zdGVwcy1zZWxlY3RvciI+CiAgPHRlbXBsYXRlPgogICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tfcnVuc1dpdGhTbGlkZXJzXV0iIGFzPSJydW4iPgogICAgICA8ZGl2IGNsYXNzPSJydW4td2lkZ2V0Ij4KICAgICAgICA8ZGl2IGNsYXNzPSJydW4tZGlzcGxheS1jb250YWluZXIiPgogICAgICAgICAgPGRpdiB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ICAgICAgICAgZmlsZXMuCiAgICAgICAgICAgICAgPC9saT4KICAgICAgICAgICAgICA8bGk+CiAgICAgICAgICAgICAgICBUZW5zb3JCb2FyZCBjYW7igJl0IGZpbmQgeW91ciBldmVudCBmaWxlcy4KICAgICAgICAgICAgICA8L2xpPgogICAgICAgICAgICA8L3VsPgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICBJZiB5b3XigJlyZSBuZXcgdG8gdXNpbmcgVGVuc29yQm9hcmQsIGFuZCB3YW50IHRvIGZpbmQgb3V0IGhvdyB0bwogICAgICAgICAgICAgIGFkZCBkYXRhIGFuZCBzZXQgdXAgeW91ciBldmVudCBmaWxlcywgY2hlY2sgb3V0IHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmJvYXJkL2Jsb2IvbWFzdGVyL1JFQURNRS5tZCI+UkVBRE1FPC9hPgogICAgICAgICAgICAgIGFuZCBwZXJoYXBzIHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vd3d3LnRlbnNvcmZsb3cub3JnL2dldF9zdGFydGVkL3N1bW1hcmllc19hbmRfdGVuc29yYm9hcmQiPlRlbnNvckJvYXJkIHR1dG9yaWFsPC9hPi4KICAgICAgICAgICAgCgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICBJZiB5b3UgdGhpbmsgVGVuc29yQm9hcmQgaXMgY29uZmlndXJlZCBwcm9wZXJseSwgcGxlYXNlIHNlZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmJvYXJkL2Jsb2IvbWFzdGVyL1JFQURNRS5tZCNteS10ZW5zb3Jib2FyZC1pc250LXNob3dpbmctYW55LWRhdGEtd2hhdHMtd3JvbmciPnRoZSBzZWN0aW9uIG9mIHRoZSBSRUFETUUgZGV2b3RlZCB0byBtaXNzaW5nIGRhdGEgcH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JlciIgc3RlcD0iMSIgbWluPSIyIiBtYXg9IjIwIiBwaW49InRydWUiIGRpc2FibGVkPSJbW19jb250cm9sc19kaXNhYmxlZF1dIj4KICAgICAgICAgICAgICA8L3BhcGVyLXNsaWRlcj4KICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgIDwvZGl2PgoKICAgICAgICAgIDxkaXYgY2xhc3M9InNpZGViYXItc2VjdGlvbiI+CiAgICAgICAgICAgIDxoMz5JbWFnZSBzY2FsaW5nPC9oMz4KICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWdyb3VwIGlkPSJzY2FsaW5nU2VsZWN0b3IiIHNlbGVjdGVkPSJ7e19zY2FsaW5nfX0iPgogICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gaWQ9Im9wdGlvbi1sYXllciIgbmFtZT0ibGF5ZXIiIGRpc2FibGVkPSJbW19jb250cm9sc19kaXNhYmxlZF1dIj4KICAgICAgICAgICAgICAgIHBlciBzZWN0aW9uCiAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgZm9yPSJvcHRpb24tbGF5ZXIiIHBvc2l0aW9uPSJyaWdodCI+CiAgICAgICAgICAgICAgICBCbGFjayBpcyB0aGUgbG93ZXN0IHZhbHVlIGluIHRoYXQgc2VjdGlvbiwgd2hpdGUgaXMgdGhhdCBsYXJnZXN0CiAgICAgICAgICAgICAgICB2YWx1ZSBpbiB0aGF0IHNlY3Rpb24uCiAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgoKICAgICAgICAgICAgICA8cGFwZXItcmFkaW8tYnV0dG9uIGlkPSJvcHRpb24tbmV0d29yayIgbmFtZT0ibmV0d29yayIgZGlzYWJsZWQ9IltbX2NvbnRyb2xzX2Rpc2FibGVkXV0iPgogICAgICAgICAgICAgICAgYWxsIHNlY3Rpb25zCiAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+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AgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L3RlbXBsYXRlPgoKICAgICAgICA8ZGl2IGNsYXNzPSJzaWRlYmFyLXNlY3Rpb24iPgogICAgICAgICAgPGgzPlVwZGF0ZXMgcGVyIHNlY29uZDoge3tfRlBTfX08L2gzPgogICAgICAgICAgPHBhcGVyLXNsaWRlciBpZD0iRlBTU2xpZGVyIiB2YWx1ZT0ie3tfRlBTfX0iIHR5cGU9Im51bWJlciIgc3RlcD0iMSIgbWluPSIwIiBtYXg9IjMwIiBwaW49InRydWUiIGRpc2FibGVkPSJbW19jb250cm9sc19kaXNhYmxlZF1dIj4KICAgICAgICAgIDwvcGFwZXItc2xpZGVyPgogICAgICAgIDwvZGl2PgoKICAgICAgICA8ZGl2IGNsYXNzPSJzaWRlYmFyLXNlY3Rpb24iPgogICAgICAgICAgPGRpdj4KICAgICAgICAgICAgPHBhcGVyLWJ1dHRvbiBjbGFzcz0ieC1idXR0b24iIGlkPSJyZWNvcmRfYnV0dG9uIiBvbi10YXA9Il90b2dnbGVSZWNvcmQiIGRpc2FibGVkPSJbW19jb250cm9sc19kaXNhYmxlZF1dIj4KICAgICAgICAgICAgICBbW19yZWNvcmRUZXh0XV0KICAgICAgICAgICAgPC9wYXBlci1idXR0b24+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L2Rpdj4KCiAgICAgICAgPGRpdiBjbGFzcz0ic2lkZWJhci1zZWN0aW9uIj4KICAgICAgICAgIDxwIGNsYXNzPSJkaXNjbGFpbWVyIj4KICAgICAgICAgICAgTm90ZTogQmVob2xkZXIgY3VycmVudGx5IG9ubHkgd29ya3Mgd2VsbCBvbiBsb2NhbCBmaWxlIHN5c3RlbXMuCiAgICAgICAgICAKICAgICAgICA8L2Rpdj4KICAgICAgPC9kaXY+CiAgICAgIDxkaXYgY2xhc3M9ImNlbnRlciIgc2xvdD0iY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5LCAgIyBvcHRpb25hbCBhcmd1bWVudAopPC9wcmU+CiAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgIElmIHVzaW5nIDxjb2RlPnRmLnRyYWluLk1vbml0b3JlZFNlc3Npb248L2NvZGU+LCB5b3UgY2FuIHVzZQogICAgICAgICAgICAgIDxjb2RlPkJlaG9sZGVySG9vazwvY29kZT46CiAgICAgICAgICAgIAoKICAgICAgICAgICAgPHByZT5mcm9tIHRlbnNvcmJvYXJkLnBsdWdpbnMuYmVob2xkZXIgaW1wb3J0IEJlaG9sZGVySG9vawpiZWhvbGRlcl9ob29rID0gQmVob2xkZXJIb29rKExPR19ESVJFQ1RPUlkpCndpdGggTW9uaXRvcmVkU2Vzc2lvbiguLi4sIGhvb2tzPVtiZWhvbGRlcl9ob29rXSkgYXMgc2VzczoKICBzZXNzLnJ1bih0cmFpbl9vcCk8L3ByZT4KCiAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgIElmIHlvdSB0aGluayBldmVyeXRoaW5nIGlzIHNldCB1cCBwcm9wZXJseSwgcGxlYXNlIHNlZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmJvYXJkL2Jsb2IvbWFzdGVyL3RlbnNvcmJvYXJkL3BsdWdpbnMvYmVob2xkZXIvUkVBRE1FLm1kIj50aGUgUkVBRE1FPC9hPgogICAgICAgICAgICAgIGZvciBtb3JlIGluZm9ybWF0aW9uIGFuZCBjb25zaWRlciBmaWxpbmcgYW4gaXNzdWUgb24gR2l0SHViLgogICAgICAgICAgICAKCiAgICAgICAgICAgIDxwIGNsYXNzPSJkaXNjbGFpbWVyIj4KICAgICAgICAgICAgICBOb3RlOiBCZWhvbGRlciBjdXJyZW50bHkgb25seSB3b3JrcyB3ZWxsIG9uIGxvY2FsIGZpbGUgc3lzdGVtcy4KICAgICAgICAgICAgCiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L3RlbXBsYXRlPgoKICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2lzX2FjdGl2ZV1dIj4KICAgICAgICAgIDx0Zi1iZWhvbGRlci12aWRlbyBpZD0idmlkZW8iIGZwcz0iW1tfRlBTXV0iPjwvdGYtYmVob2xkZXItdmlkZW8+CgogICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW192YWx1ZXNOb3RGcmFtZShfdmFsdWVzKV1dIj4KICAgICAgICAgICAgPHRmLWJlaG9sZGVyLWluZm8gaWQ9ImluZm8iIGZwcz0iW1tfRlBTXV0iPiA8L3RmLWJlaG9sZGVyLWluZm8+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgIDwvdGVtcGxhdGU+CiAgICAgIDwvZGl2PgogICAgPC90Zi1kYXNoYm9hcmQtbGF5b3V0PgogICAgPHN0eWxlIGluY2x1ZGU9ImRhc2hib2FyZC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgLmNlbnRlciB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgfQoKICAgICAgLm5vLWRhdGEtd2FybmluZyB7CiAgICAgICAgbWF4LXdpZHRoOiA1NDBweDsKICAgICAgICBtYXJnaW46IDgwcHggYXV0byAwOwogICAgICB9CgogICAgICBwYXBlci1jaGVja2JveCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogNHB4OwogICAgICB9CgogICAgICBwYXBlci1yYWRpby1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgcGFkZGluZzogNXB4OwoKICAgICAgICAtLXBhcGVyLXJhZGlvLWJ1dHRvbi1yYWRpby1jb250YWluZXI6IHsKICAgICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIH0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ZjsKICAgICAgfQoKICAgICAgcGFwZXItYnV0dG9uI3JlY29yZF9idXR0b24uaXMtcmVjb3JkaW5nIHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZDMyZjJmOwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbi5iZWhvbGRlci1kYXNoYm9hcmQ6bGFzdC1jaGlsZCB7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICB9CgogICAgICAjY29sb3JtYXAtc2VsZWN0aW9uIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgfQoKICAgICAgI2NvbG9ybWFwLXNlbGVjdGlvbi1sYWJlbCB7CiAgICAgICAgbWFyZ2luLXRvcDogMTNweDsKICAgICAgfQoKICAgICAgI2NvbG9ybWFwLXNlbGVjdGlvbiBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICBtYXJnaW4tbGVmdDogMTBweDsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgd2lkdGg6IDEwNXB4OwogICAgICB9CgogICAgICBoNCB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgICAgbWFyZ2luOiA1cHggMDsKICAgICAgfQoKICAgICAgcC5kaXNjbGFpbWVyIHsKICAgICAgICBjb2xvcjogIzk5OTsKICAgICAgICBmb250LXN0eWxlOiBpdGFsaWM7CiAgICAgIH0KCiAgICAgIHAuY29udHJvbHMtZGlzYWJsZWQtbWVzc2FnZSB7CiAgICAgICAgY29sb3I6ICNjMDA7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KCiAgICAgIC5zaWRlYmFyIHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAg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hvbGRlcj0iK2luZmluaXR5Ij4KICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWlucHV0PgogICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW2hwYXJhbS5maWx0ZXIucmVnZXhwXV0iPgogICAgICAgICAgICAgICAgICAgIDxwYXBlci1pbnB1dCBsYWJlbD0iUmVndWxhciBleHByZXNzaW9uIiB2YWx1ZT0ie3tocGFyYW0uZmlsdGVyLnJlZ2V4cH19IiBvbi12YWx1ZS1jaGFuZ2VkPSJfcXVlcnlTZXJ2ZXIiPgogICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaW5wdXQ+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0ic2VjdGlvbiBtZXRyaWNzIj4KICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzZWN0aW9uLXRpdGxlIj5NZXRyaWNzPC9kaXY+CiAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tfbWV0cmljc319IiBhcz0ibWV0cmljIj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9Im1ldHJpYyI+CiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICA8cGFwZXItY2hlY2tib3ggY2hlY2tlZD0ie3ttZXRyaWMuZGlzcGxheWVkfX0iIGNsYXNzPSJtZXRyaWMtY2hlY2tib3giPgogICAgICAgICAgICAgICAgICAgIFtbX21ldHJpY05hbWUobWV0cmljLmluZm8pXV0KICAgICAgICAgICAgICAgICAgPC9wYXBlci1jaGVja2JveD4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iaW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mFtIj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgICAgW1tfaHBhcmFtTmFtZShocGFyYW0uaW5mbyldXQogICAgICAgICAgICAgICAgICA8L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tfbWV0cmljc11dIiBhcz0ibWV0cmljIj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgICAgW1tfbWV0cmljTmFtZShtZXRyaWMuaW5mbyldXQogICAgICAgICAgICAgICAgICA8L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgIDwvcGFwZXItbGlzdGJveD4KICAgICAgICAgICAgPC9wYXBlci1kcm9wZG93bi1tZW51PgogICAgICAgICAgICA8cGFwZXItZHJvcGRvd24tbWVudSBsYWJlbD0iRGlyZWN0aW9uIiBvbi1zZWxlY3RlZC1pdGVtLWNoYW5nZWQ9Il9xdWVyeVNlcnZlciIgaG9yaXpvbnRhbC1hbGlnbj0ibGVmdCI+CiAgICAgICAgICAgICAgPHBhcGVyLWxpc3Rib3ggY2xhc3M9ImRyb3Bkb3duLWNvbnRlbnQiIHNsb3Q9ImRyb3Bkb3duLWNvbnRlbnQiIHNlbGVjdGVkPSJ7e19zb3J0RGlyZWN0aW9ufX0iPgogICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+QXNjZW5kaW5nPC9wYXBlci1pdGVtPgogICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+RGVzY2VuZGluZzwvcGFwZXItaXRlbT4KICAgICAgICAgICAgICA8L3BhcGVyLWxpc3Rib3g+CiAgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgIDwvZGl2PgogICAgICAgICAgPHZhYWRpb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ICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgICAgICA8L3ZhYWRpbi1zcGxpdC1sYXlvdXQ+CiAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAucGFuZSB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQogICAgICAuc2VjdGlvbiB7CiAgICAgICAgbWFyZ2luOiA1cHggMTBweCA1cHggMTBweDsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CiAgICAgIC5zZWN0aW9uLXRpdGxlIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBtYXJnaW4tYm90dG9tOiA3cHg7CiAgICAgIH0KICAgICAgI2h5cGVycGFyYW1ldGVycy1tZXRyaWNzLXN0YXR1c2VzIHsKICAgICAgICBmbGV4LWJhc2lzOiA3MCU7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICB9CiAgICAgICNoeXBlcnBhcmFtZXRlcnMtbWV0cmljcyB7CiAgICAgICAgZmxleC1iYXNpczogOTAlOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAuaHlwZXJwYXJhbWV0ZXJzIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAubWV0cmljcyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KICAgICAgLnN0YXR1c2VzIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICAjc29ydGluZy1wYWdpbmcgewogICAgICAgIGZsZXgtYmFzaXM6IDMwJTsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgI3BhZ2luZy1kb3dubG9hZCB7CiAgICAgICAgZmxleC1iYXNpczogOTAlOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAuc29ydGluZyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgLnBhZ2luZyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgLmRvd25sb2FkIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICAuZGlzY3JldGUtdmFsdWUtY2hlY2tib3gsCiAgICAgIC5tZXRyaWMtY2hlY2tib3gsCiAgICAgIC5ocGFyYW0tY2hlY2tib3ggewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CiAgICAgIC5kaXNjcmV0ZS12YWx1ZS1jaGVja2JveCB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDIwcHg7CiAgICAgIH0KICAgICAgLmhwYXJhbSwKICAgICAgLm1ldHJpYyB7CiAgICAgICAgZGlzcGxheTogYmxv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HBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsOwogICAgICB9CgogICAgICAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXg7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgb3ZlcmZsb3cteDogaGlkZGVuOwogICAgICAgIC13ZWJraXQtb3ZlcmZsb3ctc2Nyb2xsaW5nOiB0b3VjaDsKICAgICAgfQoKICAgICAgI21haW5QYW5lbCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LXZlcnRpY2FsOwogICAgICAgIEBhcHBseSAtLWxheW91dC1mbGV4OwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBtaW4taGVpZ2h0OiAwOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1ib2R5OwogICAgICB9CgogICAgICAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsLWNvbnRhaW5lcjsKICAgICAgfQoKICAgICAgLyoKICAgICAgICogbW9kZTogc2Nyb2xsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT1zY3JvbGxdKSAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsLXNjcm9sbC1jb250YWluZXI7CiAgICAgICAgb3ZlcmZsb3c6IHZpc2libGU7CiAgICAgIH0KCiAgICAgIDpob3N0KFttb2RlPXNjcm9sbF0pIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IGNvdmVyCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT1jb3Zlcl0pICNtYWluQ29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1oZWFkZXItcGFuZWwtY292ZXItY29udGFpbmVyOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIDpob3N0KFttb2RlPWNvdmVyXSkgI21haW5QYW5lbCB7CiAgICAgICAgcG9zaXRpb246IHN0YXRpYzsKICAgICAgfQoKICAgICAgLyoKICAgICAgICogbW9kZTogc3RhbmRhcmQKICAgICAgICovCiAgICAgIDpob3N0KFttb2RlPXN0YW5kYXJkXSkgI21haW5Db250YWluZXIgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zdGFuZGFyZC1jb250YWluZXI7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IHNlYW1lZAogICAgICAgKi8KICAgICAgOmhvc3QoW21vZGU9c2VhbWVkXSkgI21haW5Db250YWluZXIgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zZWFtZWQtY29udGFpbmVyOwogICAgICB9CgoKICAgICAgLyoKICAgICAgICogbW9kZTogd2F0ZXJmYWxsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT13YXRlcmZhbGxdKSAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsLXdhdGVyZmFsbC1jb250YWluZXI7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IHdhdGVyZmFsbC10YWxsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT13YXRlcmZhbGwtdGFsbF0pICNtYW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xlIGlkPSJwYXBlci10YWIiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIEBhcHBseSAtLWxheW91dC1pbmxpbmU7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtY2VudGVyLWp1c3RpZmllZDsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZmxleC1hdXRvOwoKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgcGFkZGluZzogMCAxMnB4OwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFiOwogICAgICB9CgogICAgICA6aG9zdCg6Zm9jdXMpIHsKICAgICAgICBvdXRsaW5lOiBub25lOwogICAgICB9CgogICAgICA6aG9zdChbbGlua10pIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAudGFiLWNvbnRlbnQgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWigwKTsKICAgICAgICB0cmFuc2l0aW9uOiBvcGFjaXR5IDAuMXMgY3ViaWMtYmV6aWVyKDAuNCwgMC4wLCAxLCAxKTsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtaG9yaXpvbnRhbDsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtY2VudGVyLWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtZmxleC1hdXRvOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRhYi1jb250ZW50OwogICAgICB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j4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQ7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWNlbnRlcjsKCiAgICAgICAgaGVpZ2h0OiA0OHB4OwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgLW1vei11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICAtbXMtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICB1c2VyLXNlbGVjdDogbm9uZTsKCiAgICAgICAgLyogTk9URTogQm90aCB2YWx1ZXMgYXJlIG5lZWRlZCwgc2luY2Ugc29tZSBwaG9uZXMgcmVxdWlyZSB0aGUgdmFsdWUgdG8gYmUgYHRyYW5zcGFyZW50YC4gKi8KICAgICAgICAtd2Via2l0LXRhcC1oaWdobGlnaHQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMCk7CiAgICAgICAgLXdlYmtpdC10YXAtaGlnaGxpZ2h0LWNvbG9yOiB0cmFuc3BhcmVudDsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFiczsKICAgICAgfQoKICAgICAgOmhvc3QoOmRpcihydGwpKSB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWhvcml6b250YWwtcmV2ZXJzZTsKICAgICAgfQoKICAgICAgI3RhYnNDb250YWluZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIEBhcHBseSAtLWxheW91dC1mbGV4LWF1dG87CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFicy1jb250YWluZXI7CiAgICAgIH0KCiAgICAgICN0YWJzQ29udGVudCB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIC1tb3otZmxleC1iYXNpczogYXV0bzsKICAgICAgICAtbXMtZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRhYnMtY29udGVudDsKICAgICAgfQoKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICB9CgogICAgICAjdGFic0NvbnRlbnQ6bm90KC5zY3JvbGxhYmxlKSwKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUuZml0LWNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWhvcml6b250YWw7CiAgICAgIH0KCiAgICAgICN0YWJzQ29udGVudC5zY3JvbGxhYmxlLmZpdC1jb250YWluZXIgewogICAgICAgIG1pbi13aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUuZml0LWNvbnRhaW5lciA+IDo6c2xvdHRlZCgqKSB7CiAgICAgICAgLyogSUUgLSBwcmV2ZW50IHRhYnMgZnJvbSBjb21wcmVzc2luZyB3aGVuIHRoZXkgc2hvdWxkIHNjcm9sbC4gKi8KICAgICAgICAtbXMtZmxleDogMSAwIGF1dG87CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxIDAgYXV0bzsKICAgICAgICBmbGV4OiAxIDAgYXV0bzsKICAgICAgfQoKICAgICAgLmhpZGRlbiB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgLm5vdC12aXNpYmxlIHsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGN1cnNvcjogZGVmYXVsdDsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIHdpZHRoOiA0OHB4OwogICAgICAgIGhlaWdodDogNDhweDsKICAgICAgICBwYWRkaW5nOiAxMnB4OwogICAgICAgIG1hcmdpbjogMCA0cHg7CiAgICAgIH0KCiAgICAgICNzZWxlY3Rpb25CYXIgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBoZWlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMnB4IHNvbGlkIHZhcigtLXBhcGVyLXRhYnMtc2VsZWN0aW9uLWJhci1jb2xvciwgdmFyKC0tcGFwZXIteWVsbG93LWExMDApKTsKICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgwKTsKICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDApOwogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm0tb3JpZ2luOiBsZWZ0IGNlbnRlcjsKICAgICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBsZWZ0IGNlbnRlcjsKICAgICAgICAgIHRyYW5zaXRpb246IC13ZWJraXQtdHJhbnNmb3JtOwogICAgICAgIHRyYW5zaXRpb246IHRyYW5zZm9ybTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFicy1zZWxlY3Rpb24tYmFyOwogICAgICB9CgogICAgICAjc2VsZWN0aW9uQmFyLmFsaWduLWJvdHRvbSB7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogYXV0bzsKICAgICAgfQoKICAgICAgI3NlbGVjdGlvbkJhci5leHBhbmQgewogICAgICAgIHRyYW5zaXRpb24tZHVyYXRpb246IDAuMTVzOwogICAgICAgIHRyYW5zaXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoMC40LCAwLjAsIDEsIDEpOwogICAgICB9CgogICAgICAjc2VsZWN0aW9uQmF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IC0tcGFwZXItdG9vbGJhcjsKICAgICAgfQoKICAgICAgOmhvc3QoLmFuaW1hdGUpIHsKICAgICAgICB0cmFuc2l0aW9uOiB2YXIoLS1wYXBlci10b29sYmFyLXRyYW5zaXRpb24sIGhlaWdodCAwLjE4cyBlYXNlLWluKTsKICAgICAgfQoKICAgICAgOmhvc3QoLm1lZGl1bS10YWxsKSB7CiAgICAgICAgaGVpZ2h0OiBjYWxjKHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1oZWlnaHQpICogMik7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci1tZWRpdW07CiAgICAgIH0KCiAgICAgIDpob3N0KC50YWxsKSB7CiAgICAgICAgaGVpZ2h0OiBjYWxjKHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1oZWlnaHQpICogMyk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci10YWxsOwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLWhlaWdodCk7CiAgICAgICAgcGFkZGluZzogMCAxNnB4OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIEBhcHBseSAtLWxheW91dC1ob3Jpem9udGFsOwogICAgICAgIEBhcHBseSAtLWxheW91dC1jZW50ZXI7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci1jb250ZW50OwogICAgICB9CgogICAgICAvKgogICAgICAgKiBUT0RPOiBXaGVyZSBzaG91bGQgbWVkaWEgcXVlcnkgYnJlYWtwb2ludHMgbGl2ZSBzbyB0aGV5IGNhbiBiZSBzaGFyZWQgYmV0d2VlbiBlbGVtZW50cz8KICAgICAgICovCgogICAgICBAbWVkaWEgKG1heC13aWR0aDogNjAwcHgpIHsKICAgICAgICA6aG9zdCB7CiAgICAgICAgICBoZWlnaHQ6IHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1zbS1oZWlnaHQpOwogICAgICAgIH0KCiAgICAgICAgOmhvc3QoLm1lZGl1bS10YWxsKSB7CiAgICAgICAgICBoZWlnaHQ6IGNhbGModmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodCkgKiAyKTsKICAgICAgICB9CgogICAgICAgIDpob3N0KC50YWxsKSB7CiAgICAgICAgICBoZWlnaHQ6IGNhbGModmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodCkgKiAzKTsKICAgICAgICB9CgogICAgICAgIC50b29sYmFyLXRvb2xzIHsKICAgICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAjdG9wQmFyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC8qIG1pZGRsZSBiYXIgKi8KICAgICAgI21pZGRsZUJhciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CgogICAgICA6aG9zdCgudGFsbCkgI21pZGRsZUJhciwKICAgICAgOmhvc3QoLm1lZGl1bS10YWxsKSAjbWlkZGxlQmFyIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDAlKTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMTAwJSk7CiAgICAgIH0KCiAgICAgIC8qIGJvdHRvbSBiYXIgKi8KICAgICAgI2JvdHRvbUJhciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CgogICAgICAvKgogICAgICAgKiBtYWtlIGVsZW1lbnRzIChlLmcuIGJ1dHRvbnMpIHJlc3BvbmQgdG8gbW91c2UvdG91Y2ggZXZlbnRzCiAgICAgICAqCiAgICAgICAqIGAudG9vbGJhci10b29sc2AgZGlzYWJsZXMgdG91Y2ggZXZlbnRzIHNvIG11bHRpcGxlIHRvb2xiYXJzIGNhbiBzdGFjayBhbmQgbm90CiAgICAgICAqIGFic29yYiBldmVudHMuIEFsbCBjaGlsZHJlbiBtdXN0IGhhdmUgcG9pbnRlciBldmVudHMgcmUtZW5hYmxlZCB0byB3b3JrIGFzCiAgICAgICAqIGV4cGVjdGVkLgogICAgICAgKi8KICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoKjpub3QoW2Rpc2FibGVkXSkpIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogYXV0bzsKICAgICAgfQoKICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoLnRpdGxlKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7CiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDE7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXg7CiAgICAgIH0KCiAgICAgIC50b29sYmFyLXRvb2xzID4gOjpzbG90dGVkKC50aXRsZSkgewogICAgICAgIG1hcmdpbi1sZWZ0OiA1NnB4OwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZChwYXBlci1pY29uLWJ1dHRvbiArIC50aXRsZSkgewogICAgICAg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AgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWdyb3VwIGNsYXNzPSJzY2FsZS1yYWRpby1ncm91cCIgc2VsZWN0ZWQ9Int7Y29sdW1uLnNjYWxlfX0iPgogICAgICAgICAgICAgICAgICA8cGFwZXItcmFkaW8tYnV0dG9uIG5hbWU9IkxJTkVBUiI+CiAgICAgICAgICAgICAgICAgICAgTGluZWFyCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBpZD0ibG9nU2NhbGVCdXR0b25fW1tjb2x1bW4ubmFtZV1dIiBuYW1lPSJMT0ciIGRpc2FibGVkPSJbWyFfYWxsb3dMb2dTY2FsZShjb2x1bW4sIHNlc3Npb25Hcm91cHMuKildXSI+CiAgICAgICAgICAgICAgICAgICAgTG9nYXJpdGhtaWMKICAgICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gbmFtZT0iUVVBTlRJTEUiPgogICAgICAgICAgICAgICAgICAgIFF1YW50aWxlCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1ncm91cD4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgIDwvdGVtcGxhdGU+CiAgICAgIDwvZGl2PgogICAgPC9kaXY+CgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgICAgLmNvbnRyb2wtcGFuZWwgewogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CiAgICAgIC5jb2x1bW4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yLXNjcm9sbGVyIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CgogICAgICA6aG9zdChbcGFzc3Rocm91Z2hdKSB7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtpb3NdKSB7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IGFsbDsKICAgICAgICB6LWluZGV4OiAtMzsKICAgICAgfQoKICAgICAgOmhvc3QoW2lvc11bc2Nyb2xsaW5nXSkgewogICAgICAgIHotaW5kZXg6IDA7CiAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPHNsb3Q+PC9zbG90PgoKICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ2YWFkaW4tZ3JpZC10YWJsZS1mb2N1cy10cmFwIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgOmhvc3QgewogICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgei1pbmRleDogLTM7CiAgICAgICBoZWlnaHQ6IDA7CiAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgIH0KCiAgICAgOmhvc3QoOmZvY3VzKSwKICAgICAucHJpbWFyeTpmb2N1cywKICAgICA6OnNsb3R0ZWQoLnByaW1hcnk6Zm9jdXMpLAogICAgIC5zZWNvbmRhcnk6Zm9jdXMsCiAgICAgOjpzbG90dGVkKC5zZWNvbmRhcnk6Zm9jdXMpIHsKICAgICAgIG91dGxpbmU6IG5vbmU7CiAgIC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3JpZC10YWJsZSB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGFuaW1hdGlvbjogMW1zIGFwcGVhcjsKICAgICAgfQoKICAgICAgQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAoLXdlYmtpdC1tYXgtZGV2aWNlLXBpeGVsLXJhdGlvOiAxKSB7CiAgICAgICAgOmhvc3QgewogICAgICAgICAgd2lsbC1jaGFuZ2U6IHRyYW5zZm9ybTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgICNpdGVtcyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAjaXRlbXMgewogICAgICAgIGJvcmRlci10b3A6IDAgc29saWQgdHJhbnNwYXJlbnQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMCBzb2xpZCB0cmFuc3BhcmVudDsKICAgICAgfQoKICAgICAgI2l0ZW1zID4gLnZhYWRpbi1ncmlkLXJvdyB7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB9CgogICAgICB2YWFkaW4tZ3JpZC10YWJsZS1ib2R5IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGUtaGVhZGVyIC52YWFkaW4tZ3JpZC1jZWxsLAogICAgICB2YWFkaW4tZ3JpZC10YWJsZS1mb290ZXIgLnZhYWRpbi1ncmlkLWNlbGwgewogICAgICAgIHRvcDogMDsKICAgICAgfQoKICAgICAgLnZhYWRpbi1ncmlkLWNlbGwgewogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgZGlzcGxheTogZmxleDsKIC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IDE4cHg7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0xMDAlKTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGVbY29sdW1uLXJlb3JkZXJpbmctYWxsb3dlZF0gI2hlYWRlciwKICAgICAgdmFhZGluLWdyaWQtdGFibGVbY29sdW1uLXJlc2l6aW5nXSB7CiAgICAgICAgLW1zLXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC1tb3otdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICB1c2VyLXNlbGVjdDogbm9uZTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGVbY29sdW1uLXJlc2l6aW5nXSB7CiAgICAgICAgY3Vyc29yOiBjb2wtcmVzaXplOwogICAgICB9CgogICAgICAudmFhZGluLWdyaWQtcm93Om5vdChbaGlkZGVuXSkgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIFtmcm96ZW5dIHsKICAgICAgICB6LWluZGV4OiAyOwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGVbbm8tY29udGVudC1wb2ludGVyLWV2ZW50c10gLnZhYWRpbi1ncmlkLWNlbGwgOjpzbG90dGVkKHZhYWRpbi1ncmlkLWNlbGwtY29udGVudCkgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCjxkb20tbW9kdWxlIGlkPSJ2YWFkaW4tZ3JpZC10YWJsZS10YWJsZS1zdHlsZXMiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QoW2lvc11bY29sdW1uLXJlc2l6aW5nXSkgI291dGVyc2Nyb2xsZXIgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgICNmaXhlZHNpemVyLAogICAgICAjb3V0ZXJzaXplciB7CiAgICAgICAgYm9yZGVyLXRvcDogMCBzb2xpZCB0cmFuc3BhcmVudDsKICAgICAgICBib3JkZXItYm90dG9tOiAwIHNvbGlkIHRyYW5zcGFyZW50OwogICAgICB9CgogICAgICAjdGFibGUgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICB9CgogICAgICAjdGFibGVbb3ZlcmZsb3ctaGlkZGVuXSwKICAgICAgI291dGVyc2Nyb2xsZXJbb3ZlcmZsb3ctaGlkZGVuXSB7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtc2l6ZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI3NpemVyd3JhcHBlciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIHotaW5kZXg6IC0xMDA7CiAgICAgIH0KCiAgICAgICNyZW9yZGVyZ2hvc3QgewogICAgICAgIHZpc2liaWxpdHk6IGhpZGRlbjsKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgb3BhY2l0eTogMC41OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICA6OnNsb3R0ZWQodmFhZGluLWdyaWQtY29sdW1uKSwKICAgICAgOjpzbG90dGVkKHZhYWRpbi1ncmlkLXNlbGVjdGlvbi1jb2x1bW4pLAogICAgICA6OnNsb3R0ZWQ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pbjogMTBweDsKICAgICAgfQogICAgICAjY29udHJvbHMgewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG1heC1oZWlnaHQ6IGZpdC1jb250ZW50OwogICAgICB9CiAgICAgICNwbG90IHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgfQogICAgICAjdmFsdWVzIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDk1cHg7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjZGV0YWlscyB7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtYmFzaXM6IGF1dG87CiAgICAgICAgaGVpZ2h0OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgbWF4LWhlaWdodDogZml0LWNvbnRlbnQ7CiAgICAgIH0KICAgICAgdmFhZGluLXNwbGl0LWxheW91dCB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InRmLWhwYXJhbXMtc2NhdHRlci1wbG90LW1hdHJpeC1wbG90Ij4KICA8dGVtc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AgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjdmFsdWVzIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDk1cHg7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjZGV0YWlscyB7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtYmFzaXM6IGF1dG87CiAgICAgICAgaGVpZ2h0OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgbWF4LWhlaWdodDogZml0LWNvbnRlbnQ7CiAgICAgIH0KICAgICAgdmFhZGluLXNwbGl0LWxheW91dCB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CgogIAo8L2RvbS1tb2R1bGU+CgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtaHBhcmFtcy1zZXNzaW9ucy1wYW5lIj4KICA8dGVtcGxhdGU+CiAgICA8cGFwZXItaGVhZGVyLXBhbmVsPgogICAgICA8cGFwZXItdG9vbGJhciBzbG90PSJoZWFkZXIiIGNsYXNzPSJ0YWItYmFyIj4KICAgICAgICA8cGFwZXItdGFicyBzZWxlY3RlZD0ie3tfc2VsZWN0ZWRUYWJ9fSIgc2xvdD0idG9wIj4KICAgICAgICAgIAogICAgICAgICAgPHBhcGVyLXRhYiB2aWV3LWlkPSJ0YWJsZS12aWV3Ij4K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gaWQ9IjIiIGNsYXNzPSJ0YWIiPgogICAgICAgICAgPHRmLWhwYXJhbXMtc2NhdHRlci1wbG90LW1hdHJpeC12aWV3IGJhY2tlbmQ9IltbYmFja2VuZF1dIiBleHBlcmltZW50LW5hbWU9IltbZXhwZXJpbWVudE5hbWVdXSIgY29uZmlndXJhdGlvbj0iW1tjb25maWd1cmF0aW9uXV0iIHNlc3Npb24tZ3JvdXBzPSJbW3Nlc3Npb25Hcm91cHNdXSI+CiAgICAgICAgICA8L3RmLWhwYXJhbXMtc2NhdHRlci1wbG90LW1hdHJpeC12aWV3PgogICAgICAgIDwvZGl2PgogICAgICA8L2lyb24tcGFnZXM+CiAgICA8L3BhcGVyLWhlYWRlci1wYW5lbD4KCiAgICA8c3R5bGU+CiAgICAgIC50YWItdmlldyB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CiAgICAgIC50YWItYmFyIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoCiAgICAgICAgICAtLXRiLXRvb2xiYXItYmFja2dyb3VuZC1jb2xvciwKICAgICAgICAgIHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpCiAgICAgICAgKTsKICAgICAgfQogICAgICAudGFiIHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgcGFwZXItdGFicyB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICAtLXBhcGVyLXRhYnMtc2VsZWN0aW9uLWJhci1jb2xvcjogd2hpdGU7CiAgICAgICAgLS1wYXBlci10YWJzLWNvbnRlbnQ6IHsKICAgICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkOwogICAgICAgIH0KICAgICAgfQogICAgICB0Zi1ocGFyYW1zLXR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ci1yYWRpby1idXR0b24gaWQ9ImFsbC1yYWRpby1idXR0b24iIG5hbWU9ImFsbCI+CiAgICAgICAgICAgICAgICBEaXNwbGF5IGFsbCBwb2ludHMKICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWJ1dHRvbj4KICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIGZvcj0iYWxsLXJhZGlvLWJ1dHRvbiIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgWm9vbSBhbmQgY2VudGVyIGNhbWVyYSB0byBkaXNwbGF5IGFsbCBwb2ludHMgYXQgb25jZS4gTm90ZSwgdGhhdAogICAgICAgICAgICAgICAgc29tZSBwb2ludHMgY291bGQgYmUgdG9vIGZhciAoaS5lLiB0b28gc21hbGwpIHRvIGJlIHZpc2libGUuCiAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gaWQ9InVzZXItcmFkaW8tYnV0dG9uIiBuYW1lPSJ1c2VyIj4KICAgICAgICAgICAgICAgIEN1cnJlbnQgdmlldwogICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgZm9yPSJ1c2VyLXJhZGlvLWJ1dHRvbiIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgS2VlcCBjdXJyZW50IGNhbWVyYSBwb3NpdGlvbiBhbmQgem9vbSBsZXZlbC4KICAgICAgICAgICAgICA8L3BhcGVyLXRvb2x0aXA+CiAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBpZD0ic2hhcmUtcmFkaW8tYnV0dG9uIiBuYW1lPSJzaGFyZSI+CiAgICAgICAgICAgICAgICBTaGFyZSB2aWV3cG9pbnQKICAgICAg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IDwvZGl2PgogICAgPC90Zi1kYXNoYm9hcmQtbGF5b3V0PgoKICAgIDxzdHlsZSBpbmNsdWRlPSJkYXNoYm9hcmQtc3R5bGUiPjwvc3R5bGU+CiAgICA8c3R5bGU+CiAgICAgIC5uby1kYXRhLXdhcm5pbmcgewogICAgICAgIG1heC13aWR0aDogNTQwcHg7CiAgICAgICAgbWFyZ2luOiA4MHB4IGF1dG8gMCBhdXRvOwogICAgICB9CiAgICAgIHBhcGVyLXJhZGlvLWJ1dHRvbiB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogNXB4OwogICAgICB9CiAgICAgIC5zaWRlYmFyLXNlY3Rpb24gaDMudGl0bGUgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTgwMCk7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1hcmdpbi1ib3R0b206IDVweDsKICAgICAgfQoKICAgICAgLnJ1bnMtc2VsZWN0b3IgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQoKICAgICAgdGYtcnVucy1zZWxlY3RvciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQoKICAgICAgLnZpZXctY29udHJvbCB7CiAgICAgICAgZGlzcGxheTogYmxvY2sgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLnZpZXctY29udHJvbCBoMy50aXRsZSB7CiAgICAgICAgcGFkZGluZy10b3A6IDE2cHg7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDE2cHg7CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyAudmlldy1jb250cm9sIHBhcGVyLXJhZGlvLWdyb3VwIHsKICAgICAgICBtYXJnaW4tdG9wOiA1cHg7CiAgICAgIH0KICAgICAgLyogTGF5b3V0IG11c3QgYmUgaG9yaXpvbnRhbCwgaS5lLiBpdGVt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4KICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT48cD4KICAgICAgICAgICAgICAgICAgICA8aT5Mb2cgZGlyZWN0b3J5OgogICAgICAgICAgICAgICAgICAgICAgPHNwYW4gaWQ9ImRhdGFfbG9jYXRpb24iPltbX2RhdGFMb2NhdGlvbl1dPC9zcGFuPjwvaT4KICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19zaG93Tm9EYXNoYm9hcmRzTWVzc2FnZV1dIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0id2FybmluZy1tZXNzYWdlIj4KICAgICAgICAgICAgICA8aDM+Tm8gZGFzaGJvYXJkcyBhcmUgYWN0aXZlIGZvciB0aGUgY3VycmVudCBkYXRhIHNldC48L2gzPgogICAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgICA8dWw+CiAgICAgICAgICAgICAgICA8bGk+WW91IGhhdmVu4oCZdCB3cml0dGVuIGFueSBkYXRhIHRvIHlvdXIgZXZlbnQgZmlsZXMuPC9saT4KICAgICAgICAgICAgICAgIDxsaT5UZW5zb3JCb2FyZCBjYW7igJl0IGZpbmQgeW91ciBldmVudCBmaWxlcy48L2xpPgogICAgICAgICAgICAgIDwvdWw+CgogICAgICAgICAgICAgIElmIHlvdeKAmXJlIG5ldyB0byB1c2luZyBUZW5zb3JCb2FyZCwgYW5kIHdhbnQgdG8gZmluZCBvdXQgaG93IHRvCiAgICAgICAgICAgICAgYWRkIGRhdGEgYW5kIHNldCB1cCB5b3VyIGV2ZW50IGZpbGVzLCBjaGVjayBvdXQgdGhlCiAgICAgICAgICAgICAgPGEgaHJlZj0iaHR0cHM6Ly9naXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yYm9hcmQvYmxvYi9t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ICAgICAgICAKICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgIDxwPgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX3Nob3dOb1N1Y2hEYXNoYm9hcmRNZXNzYWdlXV0iPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ3YXJuaW5nLW1lc3NhZ2UiPgogICAgICAgICAgICAgIDxoMz4KICAgICAgICAgICAgICAgIFRoZXJl4oCZcyBubyBkYXNoYm9hcmQgYnkgdGhlIG5hbWUgb2YKICAgICAgICAgICAgICAgIOKAnDx0dD5bW19zZWxlY3RlZERhc2hib2FyZF1dPC90dD4u4oCdCiAgICAgICAgICAgICAgPC9oMz4KICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2FjdGl2ZURhc2hib2FyZHNMb2FkZWRdXSI+CiAgICAgICAgICAgICAgICA8cD5Zb3UgY2FuIHNlbGVjdCBhIGRhc2hib2FyZCBmcm9tIHRoZSBsaXN0IGFib3ZlLgoKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIDxpPkxhc3QgcmVsb2FkOiBbW19sYXN0UmVsb2FkVGltZV1dPC9pPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19kYXRhTG9jYXRpb25dXSI+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+PHA+CiAgICAgICAgICAgICAgICAgICAgPGk+RGF0YSBsb2NhdGlvbjoKICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGlkPSJkYXRhX2xvY2F0aW9uIj5bW19kYXRhTG9jYXRpb25dXTwvc3Bhbj48L2k+CiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgIDwvdGVtcGxhdGU+PC9kaXY+CiAgICAgICAgICA8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ZWFzZSBjbGlja2FibGUgYXJlYSBmb3IgY2FzZSB3aGVyZSB0aXRsZSBpcyBhbiBhbmNob3IuICovCiAgICAgICAgcGFkZGluZzogNHB4OwogICAgICAgIHRleHQtcmVuZGVyaW5nOiBvcHRpbWl6ZUxlZ2liaWxpdHk7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0wLjAyNWVtOwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgZGlzcGxheTogdmFyKC0tdGItdG9vbGJhci10aXRsZS1kaXNwbGF5LCBibG9jayk7CiAgICAgIH0KCiAgICAgIGEudG9vbGJhci10aXRsZSB7CiAgICAgICAgLyogT3ZlcnJpZGUgZGVmYXVsdCBhbmNob3IgY29sb3IuICovCiAgICAgICAgY29sb3I6IGluaGVyaXQ7CiAgICAgICAgLyogT3ZlcnJpZGUgZGVmYXVsdCBhbmNob3IgdGV4dC1kZWNvcmF0aW9uLiAqLwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKICAgICAgfQoKICAgICAgLnRvb2xiYXItbWVzc2FnZSB7CiAgICAgICAgb3BhY2l0eTogMC43OwogICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICB9CgogICAgICBwYXBlci10YWJzIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIC0tcGFwZXItdGFicy1zZWxlY3Rpb24tYmFyLWNvbG9yOiB3aGl0ZTsKICAgICAgICAtLXBhcGVyLXRhYnMtY29udGVudDogewogICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwogICAgICAgIH0KICAgICAgfQoKICAgICAgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC44KTsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvcjogd2hpdGU7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtY29sb3I6IHdoaXRlOwogICAgICAgIC0tcGFwZXItZHJvcGRvd24tbWVudS1pY29uOiB7CiAgICAgICAgICBjb2xvcjogd2hpdGU7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItZHJvcGRvd24tbWVudS1pbnB1dDogewogICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIH0KICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1sYWJlbDogewogICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgcGFwZXItZHJvcGRvd24tbWVudSBwYXBlci1pdGVtIHsKICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwogICAgICB9CgogICAgICAjaW5hY3RpdmUtZGFzaGJvYXJkcy1tZW51IHsKICAgICAgICAtLXBhcGVyLWxpc3Rib3gtYmFja2dyb3VuZC1jb2xvcjogdmFyKAogICAgICAgICAgLS10Yi10b29sYmFyLWJhY2tncm91bmQtY29sb3IsCiAgICAgICAgICB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKQogICAgICAgICk7CiAgICAgICAgLS1wYXBlci1saXN0Ym94LWNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLmdsb2JhbC1hY3Rpb25zIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDsgLyogRW5zdXJlIHRoYXQgaWNvbnMgc3RheSBhbGlnbmVkICovCiAgICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLmdsb2JhbC1hY3Rpb25zIGEgewogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgI3Rvb2xiYXItY29udGVudCB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgfQoKICAgICAgI2NvbnRlbnQtcGFuZSB7CiAgICAgICAgYWxpZ24taXRlbXM6IHN0cmV0Y2g7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHN0cmV0Y2g7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgICNjb250ZW50IHsKICAgICAgICBmbGV4OiAxIDE7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLmRhc2hib2FyZC1jb250YW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ICBvcGFjaXR5OiAwLjI7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAjcmVsb2FkLWJ1dHRvbi5yZWZyZXNoaW5nIHsKICAgICAgICBhbmltYXRpb246IHJvdGF0ZSAycyBsaW5lYXIgaW5maW5pdGU7CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgcm90YXRlIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICAgICAgICB9CiAgICAgICAgNTAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDE4MGRlZyk7CiAgICAgICAgfQogICAgICAgIDEwMCUgewogICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsKICAgICAgICB9CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKICAKPC9kb20tbW9kdWxlPgoKCiAgPGJvZHk+CiAgICA8dGYtdGVuc29yYm9hcmQgdXNlLWhhc2ggYnJhbmQ9IlRlbnNvckJvYXJkIj48L3RmLXRlbnNvcmJvYXJkPgogIAoKPHNjcmlwdCBzcmM9ImluZGV4LmpzIj48L3NjcmlwdD4=", "ok": true, "headers": [["content-type", "text/html; charset=utf-8"]], "status": 200, "status_text": ""}, "https://localhost:6006/index.js": {"data": "dmFyIENMT1NVUkVfTk9fREVQUyA9IHRydWU7Ci8vIENvcHlyaWdodCAyMDA2IFRoZSBDbG9zdXJlIExpYnJhcnkgQXV0aG9ycy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4KLy8KLy8gTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNlIik7Ci8vIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS4KLy8gWW91IG1heSBvYnRhaW4gYSBjb3B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zKTsKCiAgICAgIGlmICghdGhpcy5wYXVzZWRfICYmICF3YXNMb2FkaW5nKSB7CiAgICAgICAgdGhpcy5sb2FkRGVwc18oKTsKICAgICAgfQogICAgfQogIH07CgoKICAvKioKICAgKiBMb2FkcyBhbnkgcXVldWVkIGRlcGVuZGVuY2llcyB1bnRpbCB0aGV5IGFyZSBhbGwgbG9hZGVkIG9yIHBhdXNlZC4KICAgKgogICAqIEBwcml2YXRlCiAgICovCiAgZ29vZy5EZWJ1Z0xvYWRlcl8ucHJvdG90eXBlLmxvYWREZXBzXyA9IGZ1bmN0aW9uKCkgewogICAgdmFyIGxvYWRlciA9IHRoaXM7CiAgICB2YXIgcGF1c2VkID0gdGhpcy5wYXVzZWRfOwoKICAgIHdoaWxlICh0aGlzLmRlcHNUb0xvYWRfLmxlbmd0aCAmJiAhcGF1c2VkKSB7CiAgICAgIChmdW5jdGlvbigpIHsKICAgICAgICB2YXIgbG9hZENhbGxEb25lID0gZmFsc2U7CiAgICAgICAgdmFyIGRlcCA9IGxvYWRlci5kZXBzVG9Mb2FkXy5zaGlmdCgpOwoKICAgICAgICB2YXIgbG9hZGVkID0gZmFsc2U7CiAgICAgICAgbG9hZGVyLmxvYWRpbmdfKGRlcCk7CgogICAgICAgIHZhciBjb250cm9sbGVyID0gewogICAgICAgICAgcGF1c2U6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBpZiAobG9hZENhbGxEb25lKSB7CiAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdDYW5ub3QgY2FsbCBwYXVzZSBhZnRlciB0aGUgY2FsbCB0byBsb2FkLicpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHBhdXNlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICByZXN1bWU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBpZiAobG9hZENhbGxEb25lKSB7CiAgICAgICAgICAgICAgbG9hZGVyLnJlc3VtZV8oKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAvLyBTb21lIGRlcCBjYWxsZWQgcGF1c2UgYW5kIHRoZW4gcmVzdW1lIGluIHRoZSBzYW1lIGxvYWQgY2FsbC4KICAgICAgICAgICAgICAvLyBKdXN0IGtlZXAgcnVubmluZyB0aGlzIHNhbWUgbG9vcC4KICAgICAgICAgICAgICBwYXVzZWQgPSBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgICAgfSwKICAgICAgICAgIGxvYWRlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGlmIChsb2FkZWQpIHsKICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0RvdWJsZSBjYWxsIHRvIGxvYWRlZC4nKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgbG9hZGVkID0gdHJ1ZTsKICAgICAgICAgICAgbG9hZGVyLmxvYWRlZF8oZGVwKTsKICAgICAgICAgIH0sCiAgICAgICAgICBwZW5kaW5nOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgLy8gRGVmZW5zaXZlIGNvcHkuCiAgICAgICAgICAgIHZhciBwZW5kaW5nID0gW107CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbG9hZGVyLmxvYWRpbmdEZXBzXy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgIHBlbmRpbmcucHVzaChsb2FkZXIubG9hZGluZ0RlcHNfW2ldKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gcGVuZGluZzsKICAgICAgICAgIH0sCiAgICAgICAgICAvKioKICAgICAgICAgICAqIEBwYXJhbSB7Z29vZy5Nb2R1bGVUeXBlfSB0eXBlCiAgICAgICAgICAgKi8KICAgICAgICAgIHNldE1vZHVsZVN0YXRlOiBmdW5jdGlvbih0eXBlKSB7CiAgICAgICAgICAgIGdvb2cubW9kdWxlTG9hZGVyU3RhdGVfID0gewogICAgICAgICAgICAgIHR5cGU6IHR5cGUsCiAgICAgICAgICAgICAgbW9kdWxlTmFtZTogJycsCiAgICAgICAgICAgICAgZGVjbGFyZUxlZ2FjeU5hbWVzcGFjZTogZmFsc2UKICAgICAgICAgICAgfTsKICAgICAgICAgIH0sCiAgICAgICAgICAvKiogQHR5cGUge2Z1bmN0aW9uKHN0cmluZywgc3RyaW5nLCBzdHJpbmc9KX0gKi8KICAgICAgICAgIHJlZ2lzdGVyRXM2TW9kdWxlRXhwb3J0czogZnVuY3Rpb24oCiAgICAgICAgICAgICAgcGF0aCwgZXhwb3J0cywgb3B0X2Nsb3N1cmVOYW1lc3BhY2UpIHsKICAgICAgICAgICAgaWYgKG9wdF9jbG9zdXJlTmFtZXNwYWNlKSB7CiAgICAgICAgICAgICAgZ29vZy5sb2FkZWRNb2R1bGVzX1tvcHRfY2xvc3VyZU5hbWVzcGFjZV0gPSB7CiAgICAgICAgICAgICAgICBleHBvcnRzOiBleHBvcnRzLAogICAgICAgICAgICAgICAgdHlwZTogZ29vZy5Nb2R1bGVUeXBlLkVTNiwKICAgICAgICAgICAgICAgIG1vZHVsZUlkOiBvcHRfY2xvc3VyZU5hbWVzcGFjZSB8fCAnJwogICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAvKiogQHR5cGUge2Z1bmN0aW9uKHN0cmluZywgPyl9ICovCiAgICAgICAgICByZWdpc3Rlckdvb2dNb2R1bGVFeHBvcnRzOiBmdW5jdGlvbihtb2R1bGVJZCwgZXhwb3J0cykgewogICAgICAgICAgICBnb29nLmxvYWRlZE1vZHVsZXNfW21vZHVsZUlkXSA9IHsKICAgICAgICAgICAgICBleHBvcnRzOiBleHBvcnRzLAogICAgICAgICAgICAgIHR5cGU6IGdvb2cuTW9kdWxlVHlwZS5HT09HLAogICAgICAgICAgICAgIG1vZHVsZUlkOiBtb2R1bGVJZAogICAgICAgICAgICB9OwogICAgICAgICAgfSwKICAgICAgICAgIGNsZWFyTW9kdWxlU3RhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBnb29nLm1vZHVsZUxvYWRlclN0YXRlXyA9IG51bGw7CiAgICAgICAgICB9LAogICAgICAgICAgZGVmZXI6IGZ1bmN0aW9uKGNhbGxiYWNrKSB7CiAgICAgICAgICAgIGlmIChsb2FkQ2FsbERvbmUpIHsKICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoCiAgICAgICAgICAgICAgICAgICdDYW5ub3QgcmVnaXN0ZXIgd2l0aCBkZWZlciBhZnRlciB0aGUgY2FsbCB0byBsb2FkLicpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGxvYWRlci5kZWZlcl8oZGVwLCBjYWxsYmFjayk7CiAgICAgICAgICB9LAogICAgICAgICAgYXJlRGVwc0xvYWRlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHJldHVybiBsb2FkZXIuYXJlRGVwc0xvYWRlZF8oZGVwLnJlcXVpcmVzKTsKICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICB0cnkgewogICAgICAgICAgZGVwLmxvYWQoY29udHJvbGxlcik7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgIGxvYWRDYWxsRG9uZSA9IHRydWU7CiAgICAgICAgfQogICAgICB9KSgpOwogICAgfQoKICAgIGlmIChwYXVzZWQpIHsKICAgICAgdGhpcy5wYXVzZV8oKTsKICAgIH0KICB9OwoKCiAgLyoqIEBwcml2YXRlICovCiAgZ29vZy5EZWJ1Z0xvYWRlcl8ucHJvdG90eXBlLnBhdXNlXyA9IGZ1bmN0aW9uKCkgewogICAgdGhpcy5wYXVzZWRfID0gdHJ1ZTsKICB9OwoKCiAgLyoqIEBwcml2YXRlICovCiAgZ29vZy5EZWJ1Z0xvYWRlcl8ucHJvdG90eXBlLnJlc3VtZV8gPSBmdW5jdGlvbigpIHsKICAgIGlmICh0aGlzLnBhdXNlZF8pIHsKICAgICAgdGhpcy5wYXVzZWRfID0gZmFsc2U7CiAgICAgIHRoaXMubG9hZERlcHNfKCk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klQVCkgewogICAgICBpZiAoZ29vZy5nbG9iYWwuQ0xPU1VSRV9JTVBPUlRfU0NSSVBUKHRoaXMucGF0aCkpIHsKICAgICAgICBjb250cm9sbGVyLmxvYWRlZCgpOwogICAgICB9IGVsc2UgewogICAgICAgIGNvbnRyb2xsZXIucGF1c2UoKTsKICAgICAgfQogICAgICByZXR1cm47CiAgICB9CgogICAgaWYgKCFnb29nLmluSHRtbERvY3VtZW50XygpKSB7CiAgICAgIGdvb2cubG9nVG9Db25zb2xlXygKICAgICAgICAgICdDYW5ub3QgdXNlIGRlZmF1bHQgZGVidWcgbG9hZGVyIG91dHNpZGUgb2YgSFRNTCBkb2N1bWVudHMuJyk7CiAgICAgIGNvbnRyb2xsZXIucGF1c2UoKTsKICAgICAgcmV0dXJuOwogICAgfQoKICAgIC8qKiBAdHlwZSB7IUhUTUxEb2N1bWVudH0gKi8KICAgIHZhciBkb2MgPSBnb29nLmdsb2JhbC5kb2N1bWVudDsKCiAgICB2YXIgZGVwID0gdGhpczsKCiAgICAvLyBUT0RPKGpvaG5wbGFpc3RlZCk6IERvZXMgZG9jdW1lbnQud3JpdGluZyByZWFsbHkgc3BlZWQgdXAgYW55dGhpbmc/IEFueQogICAgLy8gZGlmZmVyZW5jZSBiZXR3ZWVuIHRoaXMgYW5kIGp1c3Qgd2FpdGluZyBmb3IgaW50ZXJhY3RpdmUgbW9kZSBhbmQgdGhlbgogICAgLy8gYXBwZW5kaW5nPwogICAgZnVuY3Rpb24gd3JpdGUoc3JjLCBjb250ZW50cykgewogICAgICBpZiAoY29udGVudHMpIHsKICAgICAgICB2YXIgc2NyaXB0ID0gJzxzY3JpcHQgdHlwZT0ibW9kdWxlIiBjcm9zc29yaWdpbj4nICsgY29udGVudHMgKyAnPC8nICsKICAgICAgICAgICAgJ3NjcmlwdD4nOwogICAgICAgIGRvYy53cml0ZSgKICAgICAgICAgICAgZ29vZy5UUlVTVEVEX1RZUEVTX1BPTElDWV8gPwogICAgICAgICAgICAgICAgZ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aWYgKGRlcC5jb250ZW50c18pIHsKICAgICAgICBkZXAuY29udGVudHNfID0gZGVwLnRyYW5zZm9ybShkZXAuY29udGVudHNfKTsKICAgICAgICBpZiAoZGVwLmNvbnRlbnRzXykgewogICAgICAgICAgZGVwLmNvbnRlbnRzXyArPSAnXG4vLyMgc291cmNlVVJMPScgKyBkZXAucGF0aDsKICAgICAgICB9CiAgICAgIH0KICAgIH0KCiAgICBpZiAoZ29vZy5nbG9iYWwuQ0xPU1VSRV9JTVBPUlRfU0NSSVBUKSB7CiAgICAgIGZldGNoKCk7CiAgICAgIGlmICh0aGlzLmNvbnRlbnRzXyAmJgogICAgICAgICAgZ29vZy5nbG9iYWwuQ0xPU1VSRV9JTVBPUlRfU0NSSVBUKCcnLCB0aGlzLmNvbnRlbnRzXykpIHsKICAgICAgICB0aGlzLmNvbnRlbnRzXyA9IG51bGw7CiAgICAgICAgY29udHJvbGxlci5sb2FkZWQoKTsKICAgICAgfSBlbHNlIHsKICAgICAgICBjb250cm9sbGVyLnBhdXNlKCk7CiAgICAgIH0KICAgICAgcmV0dXJuOwogICAgfQoKCiAgICB2YXIgaXNFczYgPSB0aGlzLmxvYWRGbGFnc1snbW9kdWxlJ10gPT0gZ29vZy5Nb2R1bGVUeXBlLkVTNjsKCiAgICBpZiAoIXRoaXMubGF6eUZldGNoXykgewogICAgICBmZXRjaCgpOwogICAgfQoKICAgIGZ1bmN0aW9uIGxvYWQoKSB7CiAgICAgIGlmIChkZXAubGF6eUZldGNoXykgewogICAgICAgIGZldGNoKCk7CiAgICAgIH0KCiAgICAgIGlmICghZGVwLmNvbnRlbnRzXykgewogICAgICAgIC8vIGxvYWRGaWxlU3luY18gb3IgdHJhbnNmb3JtIGFyZSByZXNwb25zaWJsZS4gQXNzdW1lIHRoZXkgbG9nZ2VkIGFuCiAgICAgICAgLy8gZXJyb3IuCiAgICAgICAgcmV0dXJuOwogICAgICB9CgogICAgICBpZiAoaXNFczYpIHsKICAgICAgICBjb250cm9sbGVyLnNldE1vZHVsZVN0YXRlKGdvb2cuTW9kdWxlVHlwZS5FUzYpOwogICAgICB9CgogICAgICB2YXIgbmFtZXNwYWNlOwoKICAgICAgdHJ5IHsKICAgICAgICB2YXIgY29udGVudHMgPSBkZXAuY29udGVudHNfOwogICAgICAgIGRlcC5jb250ZW50c18gPSBudWxsOwogICAgICAgIGdvb2cuZ2xvYmFsRXZhbChjb250ZW50cyk7CiAgICAgICAgaWYgKGlzRXM2KSB7CiAgICAgICAgICBuYW1lc3BhY2UgPSBnb29nLm1vZHVsZUxvYWRlclN0YXRlXy5tb2R1bGVOYW1lOwogICAgICAgIH0KICAgICAgfSBmaW5hbGx5IHsKICAgICAgICBpZiAoaXNFczYpIHsKICAgICAgICAgIGNvbnRyb2xsZXIuY2xlYXJNb2R1bGVTdGF0ZSgpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgaWYgKGlzRXM2KSB7CiAgICAgICAgLy8gRHVlIHRvIGNpcmN1bGFyIGRlcGVuZGVuY2llcyB0aGlzIG1heSBub3QgYmUgYXZhaWxhYmxlIGZvciByZXF1aXJlCiAgICAgICAgLy8gcmlnaHQgbm93LgogICAgICAgIGdvb2cuZ2xvYmFsWyckanNjb21wJ11bJ3JlcXVpcmUnXVsnZW5zdXJlJ10oCiAgICAgICAgICAgIFtkZXAuZ2V0UGF0aE5hbWUoKV0sIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgIGNvbnRyb2xsZXIucmVnaXN0ZXJFczZNb2R1bGVFeHBvcnRzKAogICAgICAgICAgICAgICAgICBkZXAucGF0aCwKICAgICAgICAgICAgICAgICAgZ29vZy5nbG9iYWxbJyRqc2NvbXAnXVsncmVxdWlyZSddKGRlcC5nZXRQYXRoTmFtZSgpKSwKICAgICAgICAgICAgICAgICAgbmFtZXNwYWNlKTsKICAgICAgICAgICAgfSk7CiAgICAgIH0KCiAgICAgIGNvbnRyb2xsZXIubG9hZGVkKCk7CiAgICB9CgogICAgLy8gRG8gbm90IGZldGNoIG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GlzIGludGVyYWN0aXZlLgogICAgICBjb250cm9sbGVyLnBhdXNlKCk7CiAgICAgIHZhciBvbGRDYWxsYmFjayA9IGRvYy5vbnJlYWR5c3RhdGVjaGFuZ2U7CiAgICAgIGRvYy5vbnJlYWR5c3RhdGVjaGFuZ2UgPSBmdW5jdGlvbigpIHsKICAgICAgICBpZiAoZG9jLnJlYWR5U3RhdGUgPT0gJ2ludGVyYWN0aXZlJykgewogICAgICAgICAgZG9jLm9ucmVhZHlzdGF0ZWNoYW5nZSA9IG9sZENhbGxiYWNrOwogICAgICAgICAgbG9hZCgpOwogICAgICAgICAgY29udHJvbGxlci5yZXN1bWUoKTsKICAgICAgICB9CiAgICAgICAgaWYgKGdvb2cuaXNGdW5jdGlvbihvbGRDYWxsYmFjaykpIHsKICAgICAgICAgIG9sZENhbGxiYWNrLmFwcGx5KHVuZGVmaW5lZCwgYXJndW1lbnRzKTsKICAgICAgICB9CiAgICAgIH07CiAgICB9IGVsc2UgewogICAgICAvLyBBbHdheXMgZXZhbCBvbiBvbGQgSUUuCiAgICAgIGlmIChnb29nLkRlYnVnTG9hZGVyXy5JU19PTERfSUVfIHx8ICFnb29nLmluSHRtbERvY3VtZW50XygpIHx8CiAgICAgICAgICAhZ29vZy5pc0RvY3VtZW50TG9hZGluZ18oKSkgewogICAgICAgIGxvYWQoKTsKICAgICAgfSBlbHNlIHsKICAgICAgICBmZXRjaEluT3duU2NyaXB0VGhlbkxvYWQoKTsKICAgICAgfQogICAgfQogIH07CgoKICAvKioKICAgKiBAcGFyYW0ge3N0cmluZ30gY29udGVudHMKICAgKiBAcmV0dXJuIHtzdHJpbmd9CiAgICogQGFic3RyYWN0CiAgICovCiAgZ29vZy5UcmFuc2Zvcm1lZERlcGVuZGVuY3kucHJvdG90eXBlLnRyYW5zZm9ybSA9IGZ1bmN0aW9uKGNvbnRlbnRzKSB7fTsKCgogIC8qKgogICAqIEFueSBub24tZ29vZy5tb2R1bGUgZGVwZW5kZW5jeSB3aGljaCB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bmN0aW9uKHBhdGgpIHsKICAgICAgcmV0dXJuIHBhdGguaW5kZXhPZignLicpID49IDA7CiAgICB9LAoKICAgIC8qKgogICAgICogUmV0dXJucyB0aGUgcm9vdCBwcm9wZXJ0eSBuYW1lIGZvciB0aGUgZ2l2ZW4gcGF0aC4KICAgICAqCiAgICAgKiBFeGFtcGxlOgogICAgICoKICAgICAqIGBgYAogICAgICogUG9seW1lci5QYXRoLnJvb3QoJ2Zvby5iYXIuYmF6JykgLy8gJ2ZvbycKICAgICAqIFBvbHltZXIuUGF0aC5yb290KCdmb28nKSAgICAgICAgIC8vICdmb28nCiAgICAgKiBgYGAKICAgICAqCiAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5QYXRoCiAgICAgKiBAcGFyYW0ge3N0cmluZ30gcGF0aCBQYXRoIHN0cmluZwogICAgICogQHJldHVybiB7c3RyaW5nfSBSb290IHByb3BlcnR5IG5hbWUKICAgICAqLwogICAgcm9vdDogZnVuY3Rpb24ocGF0aCkgewogICAgICBsZXQgZG90SW5kZXggPSBwYXRoLmluZGV4T2YoJy4nKTsKICAgICAgaWYgKGRvdEluZGV4ID09PSAtMSkgewogICAgICAgIHJldHVybiBwYXRoOwogICAgICB9CiAgICAgIHJldHVybiBwYXRoLnNsaWNlKDAsIGRvdEluZGV4KTsKICAgIH0sCgogICAgLyoqCiAgICAgKiBHaXZlbiBgYmFzZWAgaXMgYGZvby5iYXJgLCBgZm9vYCBpcyBhbiBhbmNlc3RvciwgYGZvby5iYXJgIGlzIG5vdAogICAgICogUmV0dXJucyB0cnVlIGlmIHRoZSBnaXZlbiBwYXRoIGlzIGFuIGFuY2VzdG9yIG9mIHRoZSBiYXNlIHBhdGguCiAgICAgKgogICAgICogRXhhbXBsZToKICAgICAqCiAgICAgKiBgYGAKICAgICAqIFBvbHltZXIuUGF0aC5pc0FuY2VzdG9yKCdmb28uYmFyJywgJ2ZvbycpICAgICAgICAgLy8gdHJ1ZQogICAgICogUG9seW1lci5QYXRoLmlzQW5jZXN0b3IoJ2Zvby5iYXInLCAnZm9vLmJhcicpICAgICAvLyBmYWxzZQogICAgICogUG9seW1lci5QYXRoLmlzQW5jZXN0b3IoJ2Zvby5iYXInLCAnZm9vLmJhci5iYXonKSAvLyBmYWxzZQogICAgICogYGBgCiAgICAgKgogICAgICogQG1lbWJlcm9mIFBvbHltZXIuUGF0aAogICAgICogQHBhcmFtIHtzdHJpbmd9IGJhc2UgUGF0aCBzdHJpbmcgdG8gdGVzdCBhZ2FpbnN0LgogICAgICogQHBhcmFtIHtzdHJpbmd9IHBhdGggUGF0aCBzdHJpbmcgdG8gdGVzdC4KICAgICAqIEByZXR1cm4ge2Jvb2xlYW59IFRydWUgaWYgYHBhdGhgIGlzIGFuIGFuY2VzdG9yIG9mIGBiYXNlYC4KICAgICAqLwogICAgaXNBbmNlc3RvcjogZnVuY3Rpb24oYmFzZSwgcGF0aCkgewogICAgICAvLyAgICAgYmFzZS5zdGFydHNXaXRoKHBhdGggKyAnLicpOwogICAgICByZXR1cm4gYmFzZS5pbmRleE9mKHBhdGggKyAnLicpID09PSAwOwogICAgfSwKCiAgICAvKioKICAgICAqIEdpdmVuIGBiYXNlYCBpcyBgZm9vLmJhcmAsIGBmb28uYmFyLmJhemAgaXMgYW4gZGVzY2VuZGFudAogICAgICoKICAgICAqIEV4YW1wbGU6CiAgICAgKgogICAgICogYGBgCiAgICAgKiBQb2x5bWVyLlBhdGguaXNEZXNjZW5kYW50KCdmb28uYmFyJywgJ2Zvby5iYXIuYmF6JykgLy8gdHJ1ZQogICAgICogUG9seW1lci5QYXRoLmlzRGVzY2VuZGFudCgnZm9vLmJhcicsICdmb28uYmFyJykgICAgIC8vIGZhbHNlCiAgICAgKiBQb2x5bWVyLlBhdGguaXNEZXNjZW5kYW50KCdmb28uYmFyJywgJ2ZvbycpICAgICAgICAgLy8gZmFsc2UKICAgICAqIGBgYAogICAgICoKICAgICAqIEBtZW1iZXJvZiBQb2x5bWVyLlBhdGgKICAgICAqIEBwY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HltZXIuUGF0aAogICAgICogQHBhcmFtIHtzdHJpbmcgfCAhQXJyYXk8c3RyaW5nfG51bWJlcj59IHBhdGggSW5wdXQgcGF0aAogICAgICogQHJldHVybiB7c3RyaW5nfSBGbGF0dGVuZWQgcGF0aAogICAgICovCiAgICBub3JtYWxpemU6IGZ1bmN0aW9uKHBhdGgpIHsKICAgICAgaWYgKEFycmF5LmlzQXJyYXkocGF0aCkpIHsKICAgICAgICBsZXQgcGFydHMgPSBbXTsKICAgICAgICBmb3IgKGxldCBpPTA7IGk8cGF0aC5sZW5ndGg7IGkrKykgewogICAgICAgICAgbGV0IGFyZ3MgPSBwYXRoW2ldLnRvU3RyaW5nKCkuc3BsaXQoJy4nKTsKICAgICAgICAgIGZvciAobGV0IGo9MDsgajxhcmdzLmxlbmd0aDsgaisrKSB7CiAgICAgICAgICAgIHBhcnRzLnB1c2goYXJnc1tqXSk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBwYXJ0cy5qb2luKCcuJyk7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIHBhdGg7CiAgICAgIH0KICAgIH0sCgogICAgLyoqCiAgICAgKiBTcGxpdHMgYSBwYXRoIGludG8gYW4gYXJyYXkgb2YgcHJvcGVydHkgbmFtZXMuIEFjY2VwdHMgZWl0aGVyIGFycmF5cwogICAgICogb2YgcGF0aCBwYXJ0cyBvciBzdHJpbmdzLgogICAgICoKICAgICAqIEV4YW1wbGU6CiAgICAgKgogICAgICogYGBgCiAgICAgKiBQb2x5bWVyLlBhdGguc3BsaXQoWydmb28uYmFyJywgMCwgJ2JheiddKSAgLy8gWydmb28nLCAnYmFyJywgJzAnLCAnYmF6J10KICAgICAqIFBvbHltZXIuUGF0aC5zcGxpdCgnZm9vLmJhci4wLmJheicpICAgICAgICAvLyBbJ2ZvbycsICdiYXInLCAnMCcsICdiYXonXQogICAgICogYGBgCiAgICAgKgogICAgICogQG1lbWJlcm9mIFBvbHltZXIuUGF0a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1cm4geyFBc3luY0ludGVyZmFjZX0gQW4gYXN5bmMgdGltZW91dCBpbnRlcmZhY2UKICAgICAgICovCiAgICAgIGFmdGVyKGRlbGF5KSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIHJ1bihmbikgeyByZXR1cm4gd2luZG93LnNldFRpbWVvdXQoZm4sIGRlbGF5KTsgfSwKICAgICAgICAgIGNhbmNlbChoYW5kbGUpIHsKICAgICAgICAgICAgd2luZG93LmNsZWFyVGltZW91dChoYW5kbGUpOwogICAgICAgICAgfQogICAgICAgIH07CiAgICAgIH0sCiAgICAgIC8qKgogICAgICAgKiBFbnF1ZXVlcyBhIGZ1bmN0aW9uIGNhbGxlZCBpbiB0aGUgbmV4dCB0YXNrLgogICAgICAgKgogICAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYy50aW1lT3V0CiAgICAgICAqIEBwYXJhbSB7IUZ1bmN0aW9ufSBmbiBDYWxsYmFjayB0byBydW4KICAgICAgICogQHBhcmFtIHtudW1iZXI9fSBkZWxheSBEZWxheSBpbiBtaWxsaXNlY29uZHMKICAgICAgICogQHJldHVybiB7bnVtYmVyfSBIYW5kbGUgdXNlZCBmb3IgY2FuY2VsaW5nIHRhc2sKICAgICAgICovCiAgICAgIHJ1bihmbiwgZGVsYXkpIHsKICAgICAgICByZXR1cm4gd2luZG93LnNldFRpbWVvdXQoZm4sIGRlbGF5KTsKICAgICAgfSwKICAgICAgLyoqCiAgICAgICAqIENhbmNlbHMgYSBwcmV2aW91c2x5IGVucXVldWVkIGB0aW1lT3V0YCBjYWxsYmFjay4KICAgICAgICoKICAgICAgICogQG1lbWJlcm9mIFBvbHltZXIuQXN5bmMudGltZU91dAogICAgICAgKiBAcGFyYW0ge251bWJlcn0gaGFuZGxlIEhhbmRsZSByZXR1cm5lZCBmcm9tIGBydW5gIG9mIGNhbGxiYWNrIHRvIGNhbmNlbAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2F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2lkfQogICAgICAgICAqIEBwdWJsaWMKICAgICAgICAgKi8KICAgICAgICByZWFkeSgpIHsKICAgICAgICAgIHRoaXMuX19kYXRhUmVhZHkgPSB0cnVlOwogICAgICAgICAgdGhpcy5fZmx1c2hQcm9wZXJ0aWVzKCk7CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBJbml0aWFsaXplcyB0aGUgbG9jYWwgc3RvcmFnZSBmb3IgcHJvcGVydHkgYWNjZXNzb3JzLgogICAgICAgICAqCiAgICAgICAgICogUHJvdmlkZWQgYXMgYW4gb3ZlcnJpZGUgcG9pbnQgZm9yIHBlcmZvcm1pbmcgYW55IHNldHVwIHdvcmsgcHJpb3IKICAgICAgICAgKiB0byBpbml0aWFsaXppbmcgdGhlIHByb3BlcnR5IGFjY2Vzc29yIHN5c3RlbS4KICAgICAgICAgKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9pbml0aWFsaXplUHJvcGVydGllcygpIHsKICAgICAgICAgIC8vIENhcHR1cmUgaW5zdGFuY2UgcHJvcGVydGllczsgdGhlc2Ugd2lsbCBiZSBzZXQgaW50byBhY2Nlc3NvcnMKICAgICAgICAgIC8vIGR1cmluZyBmaXJzdCBmbHVzaC4gRG9uJ3Qgc2V0IHRoZW0gaGVyZSwgc2luY2Ugd2Ugd2FudAogICAgICAgICAgLy8gdGhlc2UgdG8gb3ZlcndyaXRlIGRlZmF1bHRzL2NvbnN0cnVjdG9yIGFzc2lnbm1lbnRzCiAgICAgICAgICBmb3IgKGxldCBwIGluIHRoaXMuX19kYXRhSGFzQWNjZXNzb3IpIHsKICAgICAgICAgICAgaWYgKHRoaXMuaGFzT3duUHJvcGVydHkocCkpIHsKICAgICAgICAgICAgICB0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMgPSB0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMgfHwge307CiAgICAgICAgICAgICAgdGh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mVkIGZyb20gdGhlIGxhc3QgdHVybgogICAgICAgICAgICBpZiAodGhpcy5fX2RhdGFPbGQgJiYgIShwcm9wZXJ0eSBpbiB0aGlzLl9fZGF0YU9sZCkpIHsKICAgICAgICAgICAgICB0aGlzLl9fZGF0YU9sZFtwcm9wZXJ0eV0gPSBvbGQ7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdGhpcy5fX2RhdGFbcHJvcGVydHldID0gdmFsdWU7CiAgICAgICAgICAgIHRoaXMuX19kYXRhUGVuZGluZ1twcm9wZXJ0eV0gPSB2YWx1ZTsKICAgICAgICAgIH0KICAgICAgICAgIHJldHVybiBjaGFuZ2VkOwogICAgICAgIH0KICAgICAgICAvKiBlc2xpbnQtZW5hYmxlICovCgogICAgICAgIC8qKgogICAgICAgICAqIE1hcmtzIHRoZSBwcm9wZXJ0aWVzIGFzIGludmFsaWQsIGFuZCBlbnF1ZXVlcyBhbiBhc3luYwogICAgICAgICAqIGBfcHJvcGVydGllc0NoYW5nZWRgIGNhbGxiYWNrLgogICAgICAgICAqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAgICovCiAgICAgICAgX2ludmFsaWRhdGVQcm9wZXJ0aWVzKCkgewogICAgICAgICAgaWYgKCF0aGlzLl9fZGF0YUludmFsaWQgJiYgdGhpcy5fX2RhdGFSZWFkeSkgewogICAgICAgICAgICB0aGlzLl9fZGF0YUludmFsaWQgPSB0cnVlOwogICAgICAgICAgICBtaWNyb3Rhc2sucnVuKCgpID0+IHsKICAgICAgICAgICAgICBpZiAodGhpcy5fX2RhdGFJbnZhbGlkKSB7CiAgICAgICAgICAgICAgICB0aGlzLl9fZGF0YUludmFsaWQgPSBmYWxzZTsKICAgICAgICAgICAgICAgIHRoaXMuX2ZsdXNoUHJvcGVydGllcygpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBDYWxsIHRvIGVuYWJsZSBwcm9wZXJ0eSBhY2Nlc3NvciBwcm9jZXNzaW5nLiBCZWZvcmUgdGhpcyBtZXRob2QgaXMKICAgICAgICAgKiBjYWxsZWQgYWNjZXNzb3IgdmFsdWVzIHdpbGwgYmUgc2V0IGJ1dCBzaWRlIGVmZmVjdHMgYXJlCiAgICAgICAgICogcXVldWVkLiBXaGVuIGNhbGxlZCwgYW55IHBlbmRpbmcgc2lkZSBlZmZlY3RzIG9jY3VyIGltbWVkaWF0ZWx5LgogICAgICAgICAqIEZvciBlbGVtZW50cywgZ2VuZXJhbGx5IGBjb25uZWN0ZWRDYWxsYmFja2AgaXMgYSBub3JtYWwgc3BvdCB0byBkbyBzby4KICAgICAgICAgKiBJdCBpcyBzYWZlIHRvIGNhbGwgdGhpcyBtZXRob2QgbXVsdGlwbGUgdGltZXMgYXMgaXQgb25seSB0dXJucyBvbgogICAgICAgICAqIHByb3BlcnR5IGFjY2Vzc29ycyBvbmNlLgogICAgICAgICAqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAgICovCiAgICAgICAgX2VuYWJsZVByb3BlcnRpZXMoKSB7CiAgICAgICAgICBpZiAoIXRoaXMuX19kYXRhRW5hYmxlZCkgewogICAgICAgICAgICB0aGlzLl9fZGF0YUVuYWJsZWQgPSB0cnVlOwogICAgICAgICAgICBpZiAodGhpcy5fX2RhdGFJbnN0YW5jZVByb3BzKSB7CiAgICAgICAgICAgICAgdGhpcy5faW5pdGlhbGl6ZUluc3RhbmNlUHJvcGVydGllcyh0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMpOwogICAgICAgICAgICAgIHRoaXMuX19kYXRhSW5zdGFuY2VQcm9wcyA9IG51bGw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdGhpcy5yZWFkeSgpOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQ2FsbHMgdGhlIGBfcHJvcGVydGllc0NoYW5nZWRgIGNhbGxiYWNrIHdpdGggdGhlIGN1cnJlbnQgc2V0IG9mCiAgICAgICAgICogcGVuZGluZyBjaGFuZ2VzIChhbmQgb2xkIHZhbHVlcyByZWNvcmRlZCB3aGVuIHBlbmRpbmcgY2hhbmdlcyB3ZXJlCiAgICAgICAgICogc2V0KSwgYW5kIHJlc2V0cyB0aGUgcGVuZGluZyBzZXQgb2YgY2hhbmdlcy4gR2VuZXJhbGx5LCB0aGlzIG1ldGhvZAogICAgICAgICAqIHNob3VsZCBub3QgYmUgY2FsbGVkIGluIHVzZXIgY29kZS4KICAgICAgICAgKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9mbHVzaFByb3BlcnRpZXMoKSB7CiAgICAgICAgICBjb25zdCBwcm9wcyA9IHRoaXMuX19kYXRhOwogICAgICAgICAgY29uc3QgY2hhbmdlZFByb3BzID0gdGhpcy5fX2RhdGFQZW5kaW5nOwogICAgICAgICAgY29uc3Qgb2xkID0gdGhpcy5fX2RhdGFPbGQ7CiAgICAgICAgICBpZiAodGhpcy5fc2hvdWxkUHJvcGVydGllc0NoYW5nZShwcm9wcywgY2hhbmdlZFByb3BzLCBvbGQpKSB7CiAgICAgICAgICAgIHRoaXMuX19kYXRhUGVuZGluZyA9IG51bGw7CiAgICAgICAgICAgIHRoaXMuX19kYXRhT2xkID0gbnVsbDsKICAgICAgICAgICAgdGhpcy5fcHJvcGVydGllc0NoYW5nZWQocHJvcHMsIGNoYW5nZWRQcm9wcywgb2xkKTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIENhbGxlZCBpbiBgX2ZsdXNoUHJvcGVydGllc2AgdG8gZGV0ZXJtaW5lIGlmIGBfcHJvcGVydGllc0NoYW5nZWRgCiAgICAgICAgICogc2hvdWxkIGJlIGNhbGxlZC4gVGhlIG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xsZWQgd2hlbiBzZXR0aW5nIEpTIHByb3BlcnR5IHZhbHVlcyB0bwogICAgICAgICAqIEhUTUwgYXR0cmlidXRlcy4gIFVzZXJzIG1heSBvdmVycmlkZSB0aGlzIG1ldGhvZCB0byBwcm92aWRlCiAgICAgICAgICogc2VyaWFsaXphdGlvbiBmb3IgY3VzdG9tIHR5cGVzLgogICAgICAgICAqCiAgICAgICAgICogQHBhcmFtIHsqfSB2YWx1ZSBQcm9wZXJ0eSB2YWx1ZSB0byBzZXJpYWxpemUuCiAgICAgICAgICogQHJldHVybiB7c3RyaW5nIHwgdW5kZWZpbmVkfSBTdHJpbmcgc2VyaWFsaXplZCBmcm9tIHRoZSBwcm92aWRlZAogICAgICAgICAqIHByb3BlcnR5ICB2YWx1ZS4KICAgICAgICAgKi8KICAgICAgICBfc2VyaWFsaXplVmFsdWUodmFsdWUpIHsKICAgICAgICAgIHN3aXRjaCAodHlwZW9mIHZhbHVlKSB7CiAgICAgICAgICAgIGNhc2UgJ2Jvb2xlYW4nOgogICAgICAgICAgICAgIHJldHVybiB2YWx1ZSA/ICcnIDogdW5kZWZpbmVkOwogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgIHJldHVybiB2YWx1ZSAhPSBudWxsID8gdmFsdWUudG9TdHJpbmcoKSA6IHVuZGVmaW5lZDsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIENvbnZlcnRzIGEgc3RyaW5nIHRvIGEgdHlwZWQgSmF2YVNjcmlwdCB2YWx1ZS4KICAgICAgICAgKgogICAgICAgICAqIFRoaXMgbWV0aG9kIGlzIGNhbGxlZCB3aGVuIHJlYWRpbmcgSFRNTCBhdHRyaWJ1dGUgdmFsdWVzIHRvCiAgICAgICAgICogSlMgcHJvcGVydGllcy4gIFVzZXJzIG1heSBvdmVycmlkZSB0aGlzIG1ldGhvZCB0byBwcm92aWRlCiAgICAgICAgICogZGVzZXJpYWxpemF0aW9uIGZvciBjdXN0b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ICAvKioKICAgICAgICogT3ZlcnJpZGVzIFByb3BlcnRpZXNDaGFuZ2VkIGltcGxlbWVudGlvbiB0byBzZXJpYWxpemUgb2JqZWN0cyBhcyBKU09OLgogICAgICAgKgogICAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFByb3BlcnR5IHZhbHVlIHRvIHNlcmlhbGl6ZS4KICAgICAgICogQHJldHVybiB7c3RyaW5nIHwgdW5kZWZpbmVkfSBTdHJpbmcgc2VyaWFsaXplZCBmcm9tIHRoZSBwcm92aWRlZCBwcm9wZXJ0eSB2YWx1ZS4KICAgICAgICovCiAgICAgIF9zZXJpYWxpemVWYWx1ZSh2YWx1ZSkgewogICAgICAgIC8qIGVzbGludC1kaXNhYmxlIG5vLWZhbGx0aHJvdWdoICovCiAgICAgICAgc3dpdGNoICh0eXBlb2YgdmFsdWUpIHsKICAgICAgICAgIGNhc2UgJ29iamVjdCc6CiAgICAgICAgICAgIGlmICh2YWx1ZSBpbnN0YW5jZW9mIERhdGUpIHsKICAgICAgICAgICAgICByZXR1cm4gdmFsdWUudG9TdHJpbmcoKTsKICAgICAgICAgICAgfSBlbHNlIGlmICh2YWx1ZSkgewogICAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkodmFsdWUpOwogICAgICAgICAgICAgIH0gY2F0Y2goeCkgewogICAgICAgICAgICAgICAgcmV0dXJuICcnOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIHJldHVybiBzdXBlci5fc2VyaWFsaXplVmFsdWUodmFsdWUpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENvbnZlcnRzIGEgc3RyaW5nIHRvIGEgdHlwZWQgSmF2YVNjcmlwdCB2YWx1ZS4KICAgICAgICoKICAgICAgICogVGhpcyBtZXRob2QgaXMgY2FsbGVkIGJ5IFBvbHltZXIgd2hlbiByZWFk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RjaCh4KSB7CiAgICAgICAgICAgICAgb3V0VmFsdWUgPSBudWxsOwogICAgICAgICAgICAgIGNvbnNvbGUud2FybihgUG9seW1lcjo6QXR0cmlidXRlczogY291bGRuJ3QgZGVjb2RlIEFycmF5IGFzIEpTT046ICR7dmFsdWV9YCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlIERhdGU6CiAgICAgICAgICAgIG91dFZhbHVlID0gaXNOYU4odmFsdWUpID8gU3RyaW5nKHZhbHVlKSA6IE51bWJlcih2YWx1ZSk7CiAgICAgICAgICAgIG91dFZhbHVlID0gbmV3IERhdGUob3V0VmFsdWUpOwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIG91dFZhbHVlID0gc3VwZXIuX2Rlc2VyaWFsaXplVmFsdWUodmFsdWUsIHR5cGUpOwogICAgICAgICAgICBicmVhazsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIG91dFZhbHVlOwogICAgICB9CiAgICAgIC8qIGVzbGludC1lbmFibGUgbm8tZmFsbHRocm91Z2ggKi8KCiAgICAgIC8qKgogICAgICAgKiBPdmVycmlkZXMgUHJvcGVydGllc0NoYW5nZWQgaW1wbGVtZW50YXRpb24gdG8gc2F2ZSBleGlzdGluZyBwcm90b3R5cGUKICAgICAgICogcHJvcGVydHkgdmFsdWUgc28gdGhhdCBpdCBjYW4gYmUgcmVzZXQuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wZXJ0eSBOYW1lIG9mIHRoZSBwcm9wZXJ0eQogICAgICAgKiBAcGFyYW0ge2Jvb2xlYW49fSByZWFkT25seSBXaGVuIHRydWUsIG5vIHNldHRlciBpcyBjcmVhdGVkCiAgICAgICAqCiAgICAgICAqIFdoZW4gY2FsbGluZyBvbiBhIHByb3RvdHlwZSwgYW55IG92ZXJ3cml0dGVuIHZhbHVlcyBhcmUgc2F2ZWQgaW4KICAgICAgICogYF9fZ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ogICAgICAgKiAgIHsKICAgICAgICogICAgIC8vIEZsYXR0ZW5lZCBsaXN0IG9mIG5vZGUgbWV0YWRhdGEgKGZvciBub2RlcyB0aGF0IGdlbmVyYXRlZCBtZXRhZGF0YSkKICAgICAgICogICAgIG5vZGVJbmZvTGlzdDogWwogICAgICAgKiAgICAgICB7CiAgICAgICAqICAgICAgICAgLy8gYGlkYCBhdHRyaWJ1dGUgZm9yIGFueSBub2RlcyB3aXRoIGlkJ3MgZm9yIGdlbmVyYXRpbmcgYCRgIG1hcAogICAgICAgKiAgICAgICAgIGlkOiB7c3RyaW5nfSwKICAgICAgICogICAgICAgICAvLyBgb24tZXZlbnQ9ImhhbmRsZXIiYCBtZXRhZGF0YQogICAgICAgKiAgICAgICAgIGV2ZW50czogWwogICAgICAgKiAgICAgICAgICAgewogICAgICAgKiAgICAgICAgICAgICBuYW1lOiB7c3RyaW5nfSwgICAvLyBldmVudCBuYW1lCiAgICAgICAqICAgICAgICAgICAgIHZhbHVlOiB7c3RyaW5nfSwgIC8vIGhhbmRsZXIgbWV0aG9kIG5hbWUKICAgICAgICogICAgICAgICAgIH0sIC4uLgogICAgICAgKiAgICAgICAgIF0sCiAgICAgICAqICAgICAgICAgLy8gTm90ZXMgd2hlbiB0aGUgdGVtcGxhdGUgY29udGFpbmVkIGEgYDxzbG90PmAgZm9yIHNoYWR5IERPTQogICAgICAgKiAgICAgICAgIC8vIG9wdGltaXphdGlvbiBwdXJwb3NlcwogICAgICAgKiAgICAgICAgIGhhc0luc2VydGlvblBvaW50OiB7Ym9vbGVhbn0sCiAgICAgICAqICAgICAgICAgLy8gRm9yIG5lc3RlZCBgPHRlbXBsYXRlPmBgIG5vZGVzLCBuZXN0ZWQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogICAgICAgICB0ZW1wbGF0ZUluZm86IHtvYmplY3R9LCAvLyBuZXN0ZWQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogICAgICAgICAvLyBNZXRhZGF0YSB0byBhbGxvdyBlZmZpY2llbnQgcmV0cmlldmFsIG9mIGluc3RhbmNlZCBub2RlCiAgICAgICAqICAgICAgICAgLy8gY29ycmVzcG9uZGluZyB0byB0aGlzIG1ldGFkYXRhCiAgICAgICAqICAgICAgICAgcGFyZW50SW5mbzoge251bWJlcn0sICAgLy8gcmVmZXJlbmNlIHRvIHBhcmVudCBub2RlSW5mbz4KICAgICAgICogICAgICAgICBwYXJlbnRJbmRleDoge251bWJlcn0sICAvLyBpbmRleCBpbiBwYXJlbnQncyBgY2hpbGROb2Rlc2AgY29sbGVjdGlvbgogICAgICAgKiAgICAgICAgIGluZm9JbmRleDoge251bWJlcn0sICAgIC8vIGluZGV4IG9mIHRoaXMgYG5vZGVJbmZvYCBpbiBgdGVtcGxhdGVJbmZvLm5vZGVJbmZvTGlzdGAKICAgICAgICogICAgICAgfSwKICAgICAgICogICAgICAgLi4uCiAgICAgICAqICAgICBdLAogICAgICAgKiAgICAgLy8gV2hlbiB0cnVlLCB0aGUgdGVtcGxhdGUgaGFkIHRoZSBgc3RyaXAtd2hpdGVzcGFjZWAgYXR0cmlidXRlCiAgICAgICAqICAgICAvLyBvciB3YXMgbmVzdGVkIGluIGEgdGVtcGxhdGUgd2l0aCB0aGF0IHNldHRpbmcKICAgICAgICogICAgIHN0cmlwV2hpdGVzcGFjZToge2Jvb2xlYW59LAogICAgICAgKiAgICAgLy8gRm9yIG5lc3RlZCB0ZW1wbGF0ZXMsIG5lc3RlZCB0ZW1wbGF0ZSBjb250ZW50IGlzIG1vdmVkIGludG8KICAgICAgICogICAgIC8vIGEgZG9jdW1lbnQgZnJhZ21lbnQgc3RvcmVkIGhlcmU7IHRoaXMgaXMgYW4gb3B0aW1pemF0aW9uIHRvCiAgICAgICAqICAgICAvLyBhdm9pZCB0aGUgY29zdCBvZiBuZXN0ZWQgdGVtcGxhdGUgY2xvbmluZwogICAgICAgKiAgICAgY29udGVudDoge0RvY3VtZW50RnJhZ21lbnR9CiAgICAgICAqICAgf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WUgPT09ICdzdHlsZScpIHsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgd2Fsa2VyLmN1cnJlbnROb2RlID0gcm9vdDsKICAgICAgICBmb3IgKGxldCBub2RlPXdhbGtlci5maXJzdENoaWxkKCksIHBhcmVudEluZGV4PTAsIG5leHQ7IG5vZGU7IG5vZGU9bmV4dCkgewogICAgICAgICAgLy8gV3JhcCB0ZW1wbGF0ZXMKICAgICAgICAgIGlmIChub2RlLmxvY2FsTmFtZSA9PSAndGVtcGxhdGUnKSB7CiAgICAgICAgICAgIG5vZGUgPSB3cmFwVGVtcGxhdGVFeHRlbnNpb24obm9kZSk7CiAgICAgICAgICB9CiAgICAgICAgICAvLyBjb2xsYXBzZSBhZGphY2VudCB0ZXh0Tm9kZXM6IGZpeGVzIGFuIElFIGlzc3VlIHRoYXQgY2FuIGNhdXNlCiAgICAgICAgICAvLyB0ZXh0IG5vZGVzIHRvIGJlIGluZXhwbGljYWJseSBzcGxpdCA9KAogICAgICAgICAgLy8gbm90ZSB0aGF0IHJvb3Qubm9ybWFsaXplKCkgc2hvdWxkIHdvcmsgYnV0IGRvZXMgbm90IHNvIHdlIGRvIHRoaXMKICAgICAgICAgIC8vIG1hbnVhbGx5LgogICAgICAgICAgd2Fsa2VyLmN1cnJlbnROb2RlID0gbm9kZTsKICAgICAgICAgIG5leHQgPSB3YWxrZXIubmV4dFNpYmxpbmcoKTsKICAgICAgICAgIGlmIChub2RlLm5vZGVUeXBlID09PSBOb2RlLlRFWFRfTk9ERSkgewogICAgICAgICAgICBsZXQgLyoqIE5vZGUgKi8gbiA9IG5leHQ7CiAgICAgICAgICAgIHdoaWxlIChuICYmIChuLm5vZGVUeXBlID09PSBOb2RlLlRFWFRfTk9ERSkpIHsKICAgICAgICAgICAgICBub2RlLnRleHRDb250ZW50ICs9IG4udGV4dENvbnRlbnQ7CiAgICAgICAgICAgICAgbmV4dCA9IHdhbGtlci5uZXh0U2libGluZygpOwogICAgICAgICAgICAgIHJvb3QucmVtb3ZlQ2hpbGQobik7CiAgICAgICAgICAgICAgbiA9IG5leHQ7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLy8gb3B0aW9uYWxseSBzdHJpcCB3aGl0ZXNwYWNlCiAgICAgICAgICAgIGlmICh0ZW1wbGF0ZUluZm8uc3RyaXBXaGl0ZVNwYWNlICYmICFub2RlLnRleHRDb250ZW50LnRyaW0oKSkgewogICAgICAgICAgICAgIHJvb3QucmVtb3ZlQ2hpbGQobm9kZSk7CiAgICAgICAgICAgICAgY29udGludWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIGxldCBjaGlsZEluZm8gPSB7IHBhcmVudEluZGV4LCBwYXJlbnRJbmZvOiBub2RlSW5mbyB9OwogICAgICAgICAgaWYgKHRoaXMuX3BhcnNlVGVtcGxhdGVOb2RlKG5vZGUsIHRlbXBsYXRlSW5mbywgY2hpbGRJbmZvKSkgewogICAgICAgICAgICBjaGlsZEluZm8uaW5mb0luZGV4ID0gdGVtcGxhdGVJbmZvLm5vZGVJbmZvTGlzdC5wdXNoKC8qKiBAdHlwZSB7IU5vZGVJbmZvfSAqLyhjaGlsZEluZm8pKSAtIDE7CiAgICAgICAgICB9CiAgICAgICAgICAvLyBJbmNyZW1lbnQgaWYgbm90IHJlbW92ZWQKICAgICAgICAgIHdhbGtlci5jdXJyZW50Tm9kZSA9IG5vZGU7CiAgICAgICAgICBpZiAod2Fsa2VyLnBhcmVudE5vZGUoKSkgewogICAgICAgICAgICBwYXJlbnRJbmRleCsrOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFBhcnNlcyB0ZW1wbGF0ZSBjb250ZW50IGZvciB0aGUgZ2l2ZW4gbmVzdGVkIGA8dGVtcGxhdGU+YC4KICAgICAgICoKICAgICAgICogTmVzdGVkIHRlbXBsYXRlIGluZm8gaXMgc3RvcmVkIGFzIGB0ZW1wbGF0ZUluZm9gIGluIHRoZSB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5hcHBseShjb250ZXh0LCBhcmdzKTsKICAgIH0gZWxzZSBpZiAoIWluZm8uZHluYW1pY0ZuKSB7CiAgICAgIGNvbnNvbGUud2FybignbWV0aG9kIGAnICsgaW5mby5tZXRob2ROYW1lICsgJ2Agbm90IGRlZmluZWQnKTsKICAgIH0KICB9CgogIGNvbnN0IGVtcHR5QXJyYXkgPSBbXTsKCiAgLy8gUmVndWxhciBleHByZXNzaW9ucyB1c2VkIGZvciBiaW5kaW5nCiAgY29uc3QgSURFTlQgID0gJyg/OicgKyAnW2EtekEtWl8kXVtcXHcuOiRcXC0qXSonICsgJyknOwogIGNvbnN0IE5VTUJFUiA9ICcoPzonICsgJ1stK10/WzAtOV0qXFwuP1swLTldKyg/OltlRV1bLStdP1swLTldKyk/JyArICcpJzsKICBjb25zdCBTUVVPVEVfU1RSSU5HID0gJyg/OicgKyAnXCcoPzpbXlwnXFxcXF18XFxcXC4pKlwnJyArICcpJzsKICBjb25zdCBEUVVPVEVfU1RSSU5HID0gJyg/OicgKyAnIig/OlteIlxcXFxdfFxcXFwuKSoiJyArICcpJzsKICBjb25zdCBTVFJJTkcgPSAnKD86JyArIFNRVU9URV9TVFJJTkcgKyAnfCcgKyBEUVVPVEVfU1RSSU5HICsgJyknOwogIGNvbnN0IEFSR1VNRU5UID0gJyg/OignICsgSURFTlQgKyAnfCcgKyBOVU1CRVIgKyAnfCcgKyAgU1RSSU5HICsgJylcXHMqJyArICcpJzsKICBjb25zdCBBUkdVTUVOVFMgPSAnKD86JyArIEFSR1VNRU5UICsgJyg/OixcXHMqJyArIEFSR1VNRU5UICsgJykqJyArICcpJzsKICBjb25zdCBBUkdVTUVOVF9MSVNUID0gJyg/OicgKyAnXFwoXFxzKicgKwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICcoPzonICsgQVJHVU1FTlRTICsgJz8nICsgJyknICsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1xcKVxccyonICsgJyknOwogIGNvbnN0IEJJTkRJT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gLy8gYmFzaWMgYXJndW1lbnQgZGVzY3JpcHRvcgogICAgbGV0IGEgPSB7CiAgICAgIG5hbWU6IGFyZywKICAgICAgdmFsdWU6ICcnLAogICAgICBsaXRlcmFsOiBmYWxzZQogICAgfTsKICAgIC8vIGRldGVjdCBsaXRlcmFsIHZhbHVlIChtdXN0IGJlIFN0cmluZyBvciBOdW1iZXIpCiAgICBsZXQgZmMgPSBhcmdbMF07CiAgICBpZiAoZmMgPT09ICctJykgewogICAgICBmYyA9IGFyZ1sxXTsKICAgIH0KICAgIGlmIChmYyA+PSAnMCcgJiYgZmMgPD0gJzknKSB7CiAgICAgIGZjID0gJyMnOwogICAgfQogICAgc3dpdGNoKGZjKSB7CiAgICAgIGNhc2UgIiciOgogICAgICBjYXNlICciJzoKICAgICAgICBhLnZhbHVlID0gYXJnLnNsaWNlKDEsIC0xKTsKICAgICAgICBhLmxpdGVyYWwgPSB0cnVlOwogICAgICAgIGJyZWFrOwogICAgICBjYXNlICcjJzoKICAgICAgICBhLnZhbHVlID0gTnVtYmVyKGFyZyk7CiAgICAgICAgYS5saXRlcmFsID0gdHJ1ZTsKICAgICAgICBicmVhazsKICAgIH0KICAgIC8vIGlmIG5vdCBsaXRlcmFsLCBsb29rIGZvciBzdHJ1Y3R1cmVkIHBhdGgKICAgIGlmICghYS5saXRlcmFsKSB7CiAgICAgIGEucm9vdFByb3BlcnR5ID0gUG9seW1lci5QYXRoLnJvb3QoYXJnKTsKICAgICAgLy8gZGV0ZWN0IHN0cnVjdHVyZWQgcGF0aCAoaGFzIGRvdHMpCiAgICAgIGEuc3RydWN0dXJlZCA9IFBvbHltZXIuUGF0aC5pc1BhdGgoYXJnKTsKICAgICAgaWYgKGEuc3RydWN0dXJlZCkgewogICAgICAgIGEud2lsZGNhcmQgPSAoYXJnLnNsaWNlKC0yKSA9PSAnLionKTsKICAgICAgICBpZiAoYS53aWxkY2FyZCkgewogICAgICAgICAgYS5uYW1lID0gYXJnLnNsaWNlKDAsIC0yKT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cDsKICAgICAgICAvKiogQHR5cGUge2Jvb2xlYW59ICovCiAgICAgICAgdGhpcy5fX2RhdGFDbGllbnRzSW5pdGlhbGl6ZWQ7CiAgICAgICAgLyoqIEB0eXBlIHshT2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19kYXRhOwogICAgICAgIC8qKiBAdHlwZSB7IU9iamVjdH0gKi8KICAgICAgICB0aGlzLl9fZGF0YVBlbmRpbmc7CiAgICAgICAgLyoqIEB0eXBlIHshT2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19kYXRhT2xkOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19jb21wdXRlRWZmZWN0czsKICAgICAgICAvKiogQHR5cGUge09iamVjdH0gKi8KICAgICAgICB0aGlzLl9fcmVmbGVjdEVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX25vdGlmeUVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX3Byb3BhZ2F0ZUVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX29ic2VydmVFZmZlY3RzOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19yZWFkT25seTsKICAgICAgICAvKiogQHR5cGUgeyFUZW1wbGF0ZUluZm99ICovCiAgICAgICAgdGhpcy5fX3RlbXBsYXRlSW5mbzsKICAgICAgfQoKICAgICAgZ2V0IFBST1BFUlRZX0VGRkVDVF9UWVBFUygpIHsKICAgICAgICByZXR1cm4gVFlQRVM7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgX2luaXRpYWxpemVQcm9wZXJ0aWVzKCkgewogICAgICAgIHN1cGVyLl9pbml0aWFsaXplUHJvcGVydG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N5bmNocm9ub3VzbHkuCiAgICAgICAqCiAgICAgICAqIEBvdmVycmlkZQogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgX2ludmFsaWRhdGVQcm9wZXJ0aWVzKCkgewogICAgICAgIGlmICh0aGlzLl9fZGF0YVJlYWR5KSB7CiAgICAgICAgICB0aGlzLl9mbHVzaFByb3BlcnRpZXMoKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBFbnF1ZXVlcyB0aGUgZ2l2ZW4gY2xpZW50IG9uIGEgbGlzdCBvZiBwZW5kaW5nIGNsaWVudHMsIHdob3NlCiAgICAgICAqIHBlbmRpbmcgcHJvcGVydHkgY2hhbmdlcyBjYW4gbGF0ZXIgYmUgZmx1c2hlZCB2aWEgYSBjYWxsIHRvCiAgICAgICAqIGBfZmx1c2hDbGllbnRzYC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtPYmplY3R9IGNsaWVudCBQcm9wZXJ0eUVmZmVjdHMgY2xpZW50IHRvIGVucXVldWUKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2VucXVldWVDbGllbnQoY2xpZW50KSB7CiAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nQ2xpZW50cyA9IHRoaXMuX19kYXRhUGVuZGluZ0NsaWVudHMgfHwgW107CiAgICAgICAgaWYgKGNsaWVudCAhPT0gdGhpcykgewogICAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nQ2xpZW50cy5wdXNoKGNsaWVudCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogT3ZlcnJpZGVzIHN1cGVyY2xhc3MgaW1wbGVtZW50YXRpb24uCiAgICAgICAqCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqIEBwcm90ZWN0ZWQKICAgICAgICovCiAgICAgIF9mbHVzaFByb3BlcnRpZXMoKSB7CiAgICAgICAgdGhpcy5fX2RhdGFDb3VudGVyKys7CiAgICAgICAgc3VwZXIuX2ZsdXNoUHJvcGVydGllcygpOwogICAgICAgIHRoaXMuX19kYXRhQ291bnRlci0tOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRmx1c2hlcyBhbnkgY2xpZW50cyBwcmV2aW91c2x5IGVucXVldWVkIHZpYSBgX2VucXVldWVDbGllbnRgLCBjYXVzaW5nCiAgICAgICAqIHRoZWlyIGBfZmx1c2hQcm9wZXJ0aWVzYCBtZXRob2QgdG8gcnVuLgogICAgICAgKgogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAqLwogICAgICBfZmx1c2hDbGllbnRzKCkgewogICAgICAgIGlmICghdGhpcy5fX2RhdGFDbGllbnRzUmVhZHkpIHsKICAgICAgICAgIHRoaXMuX19kYXRhQ2xpZW50c1JlYWR5ID0gdHJ1ZTsKICAgICAgICAgIHRoaXMuX3JlYWR5Q2xpZW50cygpOwogICAgICAgICAgLy8gT3ZlcnJpZGUgcG9pbnQgd2hlcmUgYWNjZXNzb3JzIGFyZSB0dXJuZWQgb247IGltcG9ydGFudGx5LAogICAgICAgICAgLy8gdGhpcyBpcyBhZnRlciBjbGllbnRzIGhhdmUgZnVsbHkgcmVhZGllZCwgcHJvdmlkaW5nIGEgZ3VhcmFudGVlCiAgICAgICAgICAvLyB0aGF0IGFueSBwcm9wZXJ0eSBlZmZlY3RzIG9jY3VyIG9ubHkgYWZ0ZXIgYWxsIGNsaWVudHMgYXJlIHJlYWR5LgogICAgICAgICAgdGhpcy5fX2RhdGFSZWFkeSA9IHRydWU7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX19lbmFibGVPckZsdXNoQ2xpZW50cygpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLy8gTk9URTogV2UgZW5zdXJlIGNsaWVudHMgZWl0aGVyIGVuYWJsZSBvciBmbHVzaCBhcyBhcHByb3ByaW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aV07CiAgICAgICAgICAgIGlmICghY2xpZW50Ll9fZGF0YUVuYWJsZWQpIHsKICAgICAgICAgICAgICBjbGllbnQuX2VuYWJsZVByb3BlcnRpZXMoKTsKICAgICAgICAgICAgfSBlbHNlIGlmIChjbGllbnQuX19kYXRhUGVuZGluZykgewogICAgICAgICAgICAgIGNsaWVudC5fZmx1c2hQcm9wZXJ0aWVzKCk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBQZXJmb3JtIGFueSBpbml0aWFsIHNldHVwIG9uIGNsaWVudCBkb20uIENhbGxlZCBiZWZvcmUgdGhlIGZpcnN0CiAgICAgICAqIGBfZmx1c2hQcm9wZXJ0aWVzYCBjYWxsIG9uIGNsaWVudCBkb20gYW5kIGJlZm9yZSBhbnkgZWxlbWVudAogICAgICAgKiBvYnNlcnZlcnMgYXJlIGNhbGxlZC4KICAgICAgICoKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX3JlYWR5Q2xpZW50cygpIHsKICAgICAgICB0aGlzLl9fZW5hYmxlT3JGbHVzaENsaWVudHMoKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFNldHMgYSBiYWcgb2YgcHJvcGVydHkgY2hhbmdlcyB0byB0aGlzIGluc3RhbmNlLCBhbmQKICAgICAgICogc3luY2hyb25vdXNseSBwcm9jZXNzZXMgYWxsIGVmZmVjdHMgb2YgdGhlIHByb3BlcnRpZXMgYXMgYSBiYXRjaC4KICAgICAgICoKICAgICAgICogUHJvcGVydHkgbmFtZXMgbXVzdCBiZSBzaW1wbGUgcHJvcGVydGllcywgbm90IHBhdGhzLiAgQmF0Y2hlZAogICAgICAgKiBwYXRoIHByb3BhZ2F0aW9uIGlzIG5vdCBzdXBwb3J0ZWQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBwcm9wcyBCYWc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zYC4KICAgICAgICoKICAgICAgICogTm90ZSwgdGhlIHBhdGggdG8gdW5saW5rIHNob3VsZCBiZSB0aGUgdGFyZ2V0IChgdG9gKSB1c2VkIHdoZW4KICAgICAgICogbGlua2luZyB0aGUgcGF0aHMuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nIHwgIUFycmF5PHN0cmluZ3xudW1iZXI+fSBwYXRoIFRhcmdldCBwYXRoIHRvIHVubGluay4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHB1YmxpYwogICAgICAgKi8KICAgICAgdW5saW5rUGF0aHMocGF0aCkgewogICAgICAgIHBhdGggPSBQb2x5bWVyLlBhdGgubm9ybWFsaXplKHBhdGgpOwogICAgICAgIGlmICh0aGlzLl9fZGF0YUxpbmtlZFBhdGhzKSB7CiAgICAgICAgICBkZWxldGUgdGhpcy5fX2RhdGFMaW5rZWRQYXRoc1twYXRoXTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBOb3RpZnkgdGhhdCBhbiBhcnJheSBoYXMgY2hhbmdlZC4KICAgICAgICoKICAgICAgICogRXhhbXBsZToKICAgICAgICoKICAgICAgICogICAgIHRoaXMuaXRlbXMgPSBbIHtuYW1lOiAnSmltJ30sIHtuYW1lOiAnVG9kZCd9LCB7bmFtZTogJ0JpbGwnfSBdOwogICAgICAgKiAgICAgLi4uCiAgICAgICAqICAgICB0aGlzLml0ZW1zLnNwbGljZSgxLCAxLCB7bmFtZTogJ1NhbSd9KTsKICAgICAgICogICAgIHRoaXMuaXRlbXMucHVzaCh7bmFtZTogJ0JvYid9KTsKICAgICAgICogICAgIHRoaXMubm90aWZ5U3BsaWNlcygnaXRlbXMnLCBbCiAgICAgICAqICAgICAgIHsgaW5kZXg6IDEsIHJlbW92ZWQ6IFt7bmFtZTogJ1RvZGQnfV0sIGFkZGVkQ291bnQ6IDEsIG9iamVjdDogdGhpcy5pdGVtcywgdHlwZTogJ3NwbGljZScgfSw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4uaXRlbXMpIHsKICAgICAgICBsZXQgaW5mbyA9IHtwYXRoOiAnJ307CiAgICAgICAgbGV0IGFycmF5ID0gLyoqIEB0eXBlIHtBcnJheX0qLyhQb2x5bWVyLlBhdGguZ2V0KHRoaXMsIHBhdGgsIGluZm8pKTsKICAgICAgICBsZXQgbGVuID0gYXJyYXkubGVuZ3RoOwogICAgICAgIGxldCByZXQgPSBhcnJheS5wdXNoKC4uLml0ZW1zKTsKICAgICAgICBpZiAoaXRlbXMubGVuZ3RoKSB7CiAgICAgICAgICBub3RpZnlTcGxpY2UodGhpcywgYXJyYXksIGluZm8ucGF0aCwgbGVuLCBpdGVtcy5sZW5ndGgsIFtdKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJldDsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFJlbW92ZXMgYW4gaXRlbSBmcm9tIHRoZSBlbmQgb2YgYXJyYXkgYXQgdGhlIHBhdGggc3BlY2lmaWVkLgogICAgICAgKgogICAgICAgKiBUaGUgYXJndW1lbnRzIGFmdGVyIGBwYXRoYCBhbmQgcmV0dXJuIHZhbHVlIG1hdGNoIHRoYXQgb2YKICAgICAgICogYEFycmF5LnByb3RvdHlwZS5wb3BgLgogICAgICAgKgogICAgICAgKiBUaGlzIG1ldGhvZCBub3RpZmllcyBvdGhlciBwYXRocyB0byB0aGUgc2FtZSBhcnJheSB0aGF0IGEKICAgICAgICogc3BsaWNlIG9jY3VycmVkIHRvIHRoZSBhcnJheS4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmcgfCAhQXJyYXk8c3RyaW5nfG51bWJlcj59IHBhdGggUGF0aCB0byBhcnJheS4KICAgICAgICogQHJldHVybiB7Kn0gSXRlbSB0aGF0IHdhcyByZW1vdmVkLgogICAgICAgKiBAcHVibGljCiAgICAgICAqLwogICAgICBwb3AocGF0aCkgewogICAgICAgIGxldCBpbmZvID0ge3BhdGg6ICcnfTsKICAgICAgICBsZXQgYXJyYXkgPSAvKi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0aCBvZiB0aGUgYXJyYXkuCiAgICAgICAqIEBwdWJsaWMKICAgICAgICovCiAgICAgIHVuc2hpZnQocGF0aCwgLi4uaXRlbXMpIHsKICAgICAgICBsZXQgaW5mbyA9IHtwYXRoOiAnJ307CiAgICAgICAgbGV0IGFycmF5ID0gLyoqIEB0eXBlIHtBcnJheX0gKi8oUG9seW1lci5QYXRoLmdldCh0aGlzLCBwYXRoLCBpbmZvKSk7CiAgICAgICAgbGV0IHJldCA9IGFycmF5LnVuc2hpZnQoLi4uaXRlbXMpOwogICAgICAgIGlmIChpdGVtcy5sZW5ndGgpIHsKICAgICAgICAgIG5vdGlmeVNwbGljZSh0aGlzLCBhcnJheSwgaW5mby5wYXRoLCAwLCBpdGVtcy5sZW5ndGgsIFtdKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJldDsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIE5vdGlmeSB0aGF0IGEgcGF0aCBoYXMgY2hhbmdlZC4KICAgICAgICoKICAgICAgICogRXhhbXBsZToKICAgICAgICoKICAgICAgICogICAgIHRoaXMuaXRlbS51c2VyLm5hbWUgPSAnQm9iJzsKICAgICAgICogICAgIHRoaXMubm90aWZ5UGF0aCgnaXRlbS51c2VyLm5hbWUnKTsKICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHBhdGggUGF0aCB0aGF0IHNob3VsZCBiZSBub3RpZmllZC4KICAgICAgICogQHBhcmFtIHsqPX0gdmFsdWUgVmFsdWUgYXQgdGhlIHBhdGggKG9wdGlvbmFsKS4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHB1YmxpYwogICAgICAqLwogICAgICBub3RpZnlQYXRoKHBhdGgsIHZhbHVlKSB7CiAgICAgICAgLyoqIEB0eXBlIHtzdHJpbmd9ICovCiAgICAgICAgbGV0IHByb3BQYXRoOwogICAgICAgIGlmIChhcmd1bWVudHMubGVuZ3RoID09IDEpIHsKICAgICAgICAgIC8vIEdldCB2YW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nVuTm90aWZ5RWZmZWN0LAogICAgICAgICAgaW5mbzogewogICAgICAgICAgICBldmVudE5hbWU6IENhc2VNYXAuY2FtZWxUb0Rhc2hDYXNlKHByb3BlcnR5KSArICctY2hhbmdlZCcsCiAgICAgICAgICAgIHByb3BlcnR5OiBwcm9wZXJ0eQogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRXF1aXZhbGVudCB0byBzdGF0aWMgYGNyZWF0ZVJlZmxlY3RlZFByb3BlcnR5YCBBUEkgYnV0IGNhbiBiZSBjYWxsZWQgb24KICAgICAgICogYW4gaW5zdGFuY2UgdG8gYWRkIGVmZmVjdHMgYXQgcnVudGltZS4gIFNlZSB0aGF0IG1ldGhvZCBmb3IKICAgICAgICogZnVsbCBBUEkgZG9jcy4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3BlcnR5IFByb3BlcnR5IG5hbWUKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2NyZWF0ZVJlZmxlY3RlZFByb3BlcnR5KHByb3BlcnR5KSB7CiAgICAgICAgbGV0IGF0dHIgPSB0aGlzLmNvbnN0cnVjdG9yLmF0dHJpYnV0ZU5hbWVGb3JQcm9wZXJ0eShwcm9wZXJ0eSk7CiAgICAgICAgaWYgKGF0dHJbMF0gPT09ICctJykgewogICAgICAgICAgY29uc29sZS53YXJuKCdQcm9wZXJ0eSAnICsgcHJvcGVydHkgKyAnIGNhbm5vdCBiZSByZWZsZWN0ZWQgdG8gYXR0cmlidXRlICcgKwogICAgICAgICAgICBhdHRyICsgJyBiZWNhdXNlICItIiBpcyBub3QgYSB2YWxpZCBzdGFydGluZyBhdHRyaWJ1dGUgbmFtZS4gVXNlIGEgbG93ZXJjYXNlIGZpcnN0IGxldHRlciBmb3IgdGhlIHByb3BlcnR5IGluc3RlYWQuJyk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX2FkZFByb3BlcnR5RWZmZWN0KHByb3BlcnR5LCBUWVBFUy5SRUZMRUNULCB7CiAgICAgICAgICAgIGZuOiBydW5SZWZsZWN0RWZmZWN0LAogICAgICAgICAgICBpbmZvOiB7CiAgICAgICAgICAgICAgYXR0ck5hbWU6IGF0dHIKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogRXF1aXZhbGVudCB0byBzdGF0aWMgYGNyZWF0ZUNvbXB1dGVkUHJvcGVydHlgIEFQSSBidXQgY2FuIGJlIGNhbGxlZCBvbgogICAgICAgKiBhbiBpbnN0YW5jZSB0byBhZGQgZWZmZWN0cyBhdCBydW50aW1lLiAgU2VlIHRoYXQgbWV0aG9kIGZvcgogICAgICAgKiBmdWxsIEFQSSBkb2NzLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgTmFtZSBvZiBjb21wdXRlZCBwcm9wZXJ0eSB0byBzZXQKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IGV4cHJlc3Npb24gTWV0aG9kIGV4cHJlc3Npb24KICAgICAgICogQHBhcmFtIHtib29sZWFufE9iamVjdD19IGR5bmFtaWNGbiBCb29sZWFuIG9yIG9iamVjdCBtYXAgaW5kaWNhdGluZwogICAgICAgKiAgIHdoZXRoZXIgbWV0aG9kIG5hbWVzIHNob3VsZCBiZSBpbmNsdWRlZCBhcyBhIGRlcGVuZGVuY3kgdG8gdGhlIGVmZmVjdC4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2NyZWF0ZUNvbXB1dGVkUHJvcGVydHkocHJvcGVydHksIGV4cHJlc3Npb24sIGR5bmFtaWNGbikgewogICAgICAgIGxldCBzaWcgPSBwYXJzZU1ldGhvZChleHByZXNzaW9uKTsKICAgICAgICBpZiAoIXNpZykgewogICAgICAgICAgdGhyb3cgbmV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gPSB0aGlzLl9fZGF0YTsKICAgICAgICBsZXQgdmFsdWVzID0gW107CiAgICAgICAgZm9yIChsZXQgaT0wLCBsPWFyZ3MubGVuZ3RoOyBpPGw7IGkrKykgewogICAgICAgICAgbGV0IGFyZyA9IGFyZ3NbaV07CiAgICAgICAgICBsZXQgbmFtZSA9IGFyZy5uYW1lOwogICAgICAgICAgbGV0IHY7CiAgICAgICAgICBpZiAoYXJnLmxpdGVyYWwpIHsKICAgICAgICAgICAgdiA9IGFyZy52YWx1ZTsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGlmIChhcmcuc3RydWN0dXJlZCkgewogICAgICAgICAgICAgIHYgPSBQb2x5bWVyLlBhdGguZ2V0KGRhdGEsIG5hbWUpOwogICAgICAgICAgICAgIC8vIHdoZW4gZGF0YSBpcyBub3Qgc3RvcmVkIGUuZy4gYHNwbGljZXNgCiAgICAgICAgICAgICAgaWYgKHYgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICAgICAgdiA9IHByb3BzW25hbWVdOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICB2ID0gZGF0YVtuYW1lXTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKGFyZy53aWxkY2FyZCkgewogICAgICAgICAgICAvLyBPbmx5IHNlbmQgdGhlIGFjdHVhbCBwYXRoIGNoYW5nZWQgaW5mbyBpZiB0aGUgY2hhbmdlIHRoYXQKICAgICAgICAgICAgLy8gY2F1c2VkIHRoZSBvYnNlcnZlciB0byBydW4gbWF0Y2hlZCB0aGUgd2lsZGNhcmQKICAgICAgICAgICAgbGV0IGJhc2VDaGFuZ2VkID0gKG5hbWUuaW5kZXhPZihwYXRoICsgJy4nKSA9PT0gMCk7CiAgICAgICAgICAgIGxldCBtYXRjaGVzID0gKHBhdGguaW5kZXhPZihuYW1lKSA9PT0gMCAmJiAhYmFzZUNoYW5nZWQpOwogICAgICAgICAgICB2YW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24KICAgICAgICogICAgICAgdHJpZ2dlcjogeyAgICAgICAgICAvLyBPcHRpb25hbCB0cmlnZ2VyaW5nIG1ldGFkYXRhOyBpZiBub3QgcHJvdmlkZWQKICAgICAgICogICAgICAgICBuYW1lOiBzdHJpbmcgICAgICAvLyB0aGUgcHJvcGVydHkgaXMgdHJlYXRlZCBhcyBhIHdpbGRjYXJkCiAgICAgICAqICAgICAgICAgc3RydWN0dXJlZDogYm9vbGVhbgogICAgICAgKiAgICAgICAgIHdpbGRjYXJkOiBib29sZWFuCiAgICAgICAqICAgICAgIH0KICAgICAgICogICAgIH0KICAgICAgICoKICAgICAgICogRWZmZWN0cyBhcmUgY2FsbGVkIGZyb20gYF9wcm9wZXJ0aWVzQ2hhbmdlZGAgaW4gdGhlIGZvbGxvd2luZyBvcmRlciBieQogICAgICAgKiB0eXBlOgogICAgICAgKgogICAgICAgKiAxLiBDT01QVVRFCiAgICAgICAqIDIuIFBST1BBR0FURQogICAgICAgKiAzLiBSRUZMRUNUCiAgICAgICAqIDQuIE9CU0VSVkUKICAgICAgICogNS4gTk9USUZZCiAgICAgICAqCiAgICAgICAqIEVmZmVjdCBmdW5jdGlvbnMgYXJlIGNhbGxlZCB3aXRoIHRoZSBmb2xsb3dpbmcgc2lnbmF0dXJlOgogICAgICAgKgogICAgICAgKiAgICAgZWZmZWN0RnVuY3Rpb24oaW5zdCwgcGF0aCwgcHJvcHMsIG9sZFByb3BzLCBpbmZvLCBoYXNQYXRocykKICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3BlcnR5IFByb3BlcnR5IHRoYXQgc2hvdWxkIHRyaWdnZXIgdGhlIGVmZmVjdAogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdHlwZSBFZmZlY3QgdHlwZSwgZnJvbSB0aGlzLlBST1BFUlRZX0VGRkVDVF9UWVBFUwogICAgICAgKiBAcGFyYW0ge09iamVjdD19IGVmZmVjdCBFZmZlY3QgbWV0YWRhdGEgb2JqZWN0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gICAgICogQHJldHVybiB7QXJyYXk8IUJpbmRpbmdQYXJ0Pn0gQXJyYXkgb2YgYmluZGluZyBwYXJ0IG1ldGFkYXRhCiAgICAgICAqIEBwcm90ZWN0ZWQKICAgICAgICovCiAgICAgIHN0YXRpYyBfcGFyc2VCaW5kaW5ncyh0ZXh0LCB0ZW1wbGF0ZUluZm8pIHsKICAgICAgICBsZXQgcGFydHMgPSBbXTsKICAgICAgICBsZXQgbGFzdEluZGV4ID0gMDsKICAgICAgICBsZXQgbTsKICAgICAgICAvLyBFeGFtcGxlOiAibGl0ZXJhbDF7e3Byb3B9fWxpdGVyYWwyW1shY29tcHV0ZShmb28sYmFyKV1dZmluYWwiCiAgICAgICAgLy8gUmVnZXggbWF0Y2hlczoKICAgICAgICAvLyAgICAgICAgSXRlcmF0aW9uIDE6ICBJdGVyYXRpb24gMjoKICAgICAgICAvLyBtWzFdOiAne3snICAgICAgICAgICdbWycKICAgICAgICAvLyBtWzJdOiAnJyAgICAgICAgICAgICchJwogICAgICAgIC8vIG1bM106ICdwcm9wJyAgICAgICAgJ2NvbXB1dGUoZm9vLGJhciknCiAgICAgICAgd2hpbGUgKChtID0gYmluZGluZ1JlZ2V4LmV4ZWModGV4dCkpICE9PSBudWxsKSB7CiAgICAgICAgICAvLyBBZGQgbGl0ZXJhbCBwYXJ0CiAgICAgICAgICBpZiAobS5pbmRleCA+IGxhc3RJbmRleCkgewogICAgICAgICAgICBwYXJ0cy5wdXNoKHtsaXRlcmFsOiB0ZXh0LnNsaWNlKGxhc3RJbmRleCwgbS5pbmRleCl9KTsKICAgICAgICAgIH0KICAgICAgICAgIC8vIEFkZCBiaW5kaW5nIHBhcnQKICAgICAgICAgIGxldCBtb2RlID0gbVsxXVswXTsKICAgICAgICAgIGxldCBuZWdhdGUgPSBCb29sZWFuKG1bMl0pOwogICAgICAgICAgbGV0IHNvdXJjZSA9IG1bM10udHJpbSgpOwogICAgICAgICAgbGV0IGN1c3RvbUV2ZW50ID0gZmFsc2UsIG5vdGlmeUV2ZW50ID0gJycsIGNvbG9uID0gLTE7CiAgICAgICAgICBpZiAobW9kZSA9PSAneycgJiYgKGNvbG9uID0gc291cmNlLmluZGV4T2YoJzo6JykpID4gMCkgewogICAgICAgICAgICBub3RpZnlFdmVudCA9IHNvdXJjZS5zdWJzdHJpbmcoY29sb24gKyAyKTsKICAgICAgICAgICAgc291cmNlID0gc291cmNlLnN1YnN0cmluZygwLCBjb2xvbik7CiAgICAgICAgICAgIGN1c3RvbUV2ZW50ID0gdHJ1ZTsKICAgICAgICAgIH0KICAgICAgICAgIGxldCBzaWduYXR1cmUgPSBwYXJzZU1ldGhvZChzb3VyY2UpOwogICAgICAgICAgbGV0IGRlcGVuZGVuY2llcyA9IFtdOwogICAgICAgICAgaWYgKHNpZ25hdHVyZSkgewogICAgICAgICAgICAvLyBJbmxpbmUgY29tcHV0ZWQgZnVuY3Rpb24KICAgICAgICAgICAgbGV0IHthcmdzLCBtZXRob2ROYW1lfSA9IHNpZ25hdHVyZTsKICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpPGFyZ3MubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsZXQgYXJnID0gYXJnc1tpXTsKICAgICAgICAgICAgICBpZiAoIWFyZy5saXRlcmFsKSB7CiAgICAgICAgICAgICAgICBkZXBlbmRlbmNpZXMucHVzaChhcmcpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBsZXQgZHluYW1pY0ZucyA9IHRlbXBsYXRlSW5mby5keW5hbWljRm5zOwogICAgICAgICAgICBpZiAoZHluYW1pY0ZucyAmJiBkeW5hbWljRm5zW21ldGhvZE5hbWVdIHx8IHNpZ25hdHVyZS5zdGF0aWMpIHsKICAgICAgICAgICAgICBkZXBlbmRlbmNpZXMucHVzaChtZXRob2ROYW1lKTsKICAgICAgICAgICAgICBzaWduYXR1cmUuZHluYW1pY0ZuID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gUHJvcGVydHkgb3IgcGF0aAogICAgICAgICAgICBkZXBlbmRlbmNpZXMucHVzaChzb3VyY2UpOwogICAgICAgICAgfQogICAgICAgICAgcGFydHMucHVzaCh7CiAgICAgICAgICAgIHNvdXJjZSwgbW9kZSwgbmVnYXRlLCBjdXN0b21FdmVudCwgc2lnbmF0dXJlLCBkZXBlbmRlbmNpZXMsCiAgICAgICAgICAgIGV2ZW50OiBub3RpZnlFdmVudAogICAgICAgICAgfSk7CiAgICAgICAgICBsYXN0SW5kZXggPSBiaW5kaW5nUmVnZXgubGFzdEluZGV4OwogICAgICAgIH0KICAgICAgICAvLyBBZGQgYSBmaW5hbCBsaXRlcmFsIHBhcnQKICAgICAgICBpZiAobGFzdEluZGV4ICYmIGxhc3RJbmRleCA8IHRleHQubGVuZ3RoKSB7CiAgICAgICAgICBsZXQgbGl0ZXJhbCA9IHRleHQuc3Vic3RyaW5nKGxhc3RJbmRleCk7CiAgICAgICAgICBpZiAobGl0ZXJhbCkgewogICAgICAgICAgICBwYXJ0cy5wdXNoKHsKICAgICAgICAgICAgICBsaXRlcmFsOiBsaXRlcmFsCiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAocGFydHMubGVuZ3RoKSB7CiAgICAgICAgICByZXR1cm4gcGFydHM7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENhbGxlZCB0byBldmFsdWF0ZSBhIHByZXZpb3VzbHkgcGFyc2VkIGJpbmRpbmcgcGFydCBiYXNlZCBvbiBhIHNldCBvZgogICAgICAgKiBvbmUgb3IgbW9yZSBjaGFuZ2VkIGRlcGVuZGVuY2llcy4KICAgICAgICoKICAgICAgICogQHBhcmFtIHt0aGlzfSBpbnN0IEVsZW1lbnQgdGhhdCBzaG91bGQgYmUgdXNlZCBhcyBzY29wZSBmb3I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AgICAgICBpZiAoc3VwZXJDdG9yKSB7CiAgICAgICAgICAgIHN1cGVyQ3Rvci5maW5hbGl6ZSgpOwogICAgICAgICAgfQogICAgICAgICAgdGhpcy5fX2ZpbmFsaXplZCA9IHRydWU7CiAgICAgICAgICB0aGlzLl9maW5hbGl6ZUNsYXNzKCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogRmluYWxpemUgYW4gZWxlbWVudCBjbGFzcy4gVGhpcyBpbmNsdWRlcyBlbnN1cmluZyBwcm9wZXJ0eQogICAgICAgKiBhY2Nlc3NvcnMgZXhpc3Qgb24gdGhlIGVsZW1lbnQgcHJvdG90eXBlLiBUaGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkKICAgICAgICogYGZpbmFsaXplYCBhbmQgZmluYWxpemVzIHRoZSBjbGFzcyBjb25zdHJ1Y3Rvci4KICAgICAgICoKICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgc3RhdGljIF9maW5hbGl6ZUNsYXNzKCkgewogICAgICAgIGNvbnN0IHByb3BzID0gb3duUHJvcGVydGllcygvKiogQHR5cGUge1Byb3BlcnRpZXNNaXhpbkNvbnN0cnVjdG9yfSAqLyh0aGlzKSk7CiAgICAgICAgaWYgKHByb3BzKSB7CiAgICAgICAgICB0aGlzLmNyZWF0ZVByb3BlcnRpZXMocHJvcHMpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBtZW1vaXplZCB2ZXJzaW9uIG9mIGFsbCBwcm9wZXJ0aWVzLCBpbmNsdWRpbmcgdGhvc2UgaW5oZXJpdGVkCiAgICAgICAqIGZyb20gc3VwZXIgY2xhc3Nlcy4gUHJvcGVydGllcyBub3QgaW4gb2JqZWN0IGZvcm1hdCBhcmUgY29udmVydGVkIHRvCiAgICAgICAqIGF0IGxlYXN0IHt0eXBlfS4KICAgICAgICoKICAgICAgICogQHJldHVybiB7T2JqZWN0fSBPYmplY3QgY29udGFp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RydWN0b3IuX2ZpbmFsaXplVGVtcGxhdGUoLyoqIEB0eXBlIHshSFRNTEVsZW1lbnR9ICovKHRoaXMpLmxvY2FsTmFtZSk7CiAgICAgICAgc3VwZXIuX2luaXRpYWxpemVQcm9wZXJ0aWVzKCk7CiAgICAgICAgLy8gc2V0IHBhdGggZGVmYXVsdHMKICAgICAgICB0aGlzLnJvb3RQYXRoID0gUG9seW1lci5yb290UGF0aDsKICAgICAgICB0aGlzLmltcG9ydFBhdGggPSB0aGlzLmNvbnN0cnVjdG9yLmltcG9ydFBhdGg7CiAgICAgICAgLy8gYXBwbHkgcHJvcGVydHkgZGVmYXVsdHMuLi4KICAgICAgICBsZXQgcCQgPSBwcm9wZXJ0eURlZmF1bHRzKHRoaXMuY29uc3RydWN0b3IpOwogICAgICAgIGlmICghcCQpIHsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgZm9yIChsZXQgcCBpbiBwJCkgewogICAgICAgICAgbGV0IGluZm8gPSBwJFtwXTsKICAgICAgICAgIC8vIERvbid0IHNldCBkZWZhdWx0IHZhbHVlIGlmIHRoZXJlIGlzIGFscmVhZHkgYW4gb3duIHByb3BlcnR5LCB3aGljaAogICAgICAgICAgLy8gaGFwcGVucyB3aGVuIGEgYHByb3BlcnRpZXNgIHByb3BlcnR5IHdpdGggZGVmYXVsdCBidXQgbm8gZWZmZWN0cyBoYWQKICAgICAgICAgIC8vIGEgcHJvcGVydHkgc2V0IChlLmcuIGJvdW5kKSBieSBpdHMgaG9zdCBiZWZvcmUgdXBncmFkZQogICAgICAgICAgaWYgKCF0aGlzLmhhc093blByb3BlcnR5KHApKSB7CiAgICAgICAgICAgIGxldCB2YWx1ZSA9IHR5cGVvZiBpbmZvLnZhbHVlID09ICdmdW5jdGlvbicgPwogICAgICAgICAgICAgIGluZm8udmFsdWUuY2FsbCh0aGlzKSA6CiAgICAgICAgICAgICAgaW5mby52YWx1ZTsKICAgICAgICAgICAgLy8gU2V0IHZpYSBgX3Nld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vIGR1cmluZyB0aGlzIHByb2Nlc3MgZnJvbSBiZWluZyBoYW5kbGVkIGJlZm9yZSBjbGllbnRzIGFyZSByZWFkeS4KICAgICAgICBzdXBlci5fcmVhZHlDbGllbnRzKCk7CiAgICAgIH0KCgogICAgICAvKioKICAgICAgICogQXR0YWNoZXMgYW4gZWxlbWVudCdzIHN0YW1wZWQgZG9tIHRvIGl0c2VsZi4gQnkgZGVmYXVsdCwKICAgICAgICogdGhpcyBtZXRob2QgY3JlYXRlcyBhIGBzaGFkb3dSb290YCBhbmQgYWRkcyB0aGUgZG9tIHRvIGl0LgogICAgICAgKiBIb3dldmVyLCB0aGlzIG1ldGhvZCBtYXkgYmUgb3ZlcnJpZGRlbiB0byBhbGxvdyBhbiBlbGVtZW50CiAgICAgICAqIHRvIHB1dCBpdHMgZG9tIGluIGFub3RoZXIgbG9jYXRpb24uCiAgICAgICAqCiAgICAgICAqIEB0aHJvd3Mge0Vycm9yfQogICAgICAgKiBAc3VwcHJlc3Mge21pc3NpbmdSZXR1cm59CiAgICAgICAqIEBwYXJhbSB7U3RhbXBlZFRlbXBsYXRlfSBkb20gdG8gYXR0YWNoIHRvIHRoZSBlbGVtZW50LgogICAgICAgKiBAcmV0dXJuIHtTaGFkb3dSb290fSBub2RlIHRvIHdoaWNoIHRoZSBkb20gaGFzIGJlZW4gYXR0YWNoZWQuCiAgICAgICAqLwogICAgICBfYXR0YWNoRG9tKGRvbSkgewogICAgICAgIGlmICh0aGlzLmF0dGFjaFNoYWRvdykgewogICAgICAgICAgaWYgKGRvbSkgewogICAgICAgICAgICBpZiAoIXRoaXMuc2hhZG93Um9vdCkgewogICAgICAgICAgICAgIHRoaXMuYXR0YWNoU2hhZG93KHttb2RlOiAnb3Blbid9KTsKICAgICAgICAgICAgfQogICAgICAgICAgICB0aGlzLnNoYWRvd1Jvb3QuYXBwZW5kQ2hpbGQoZG9tKTsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2hhZG93Um9vdDsKICAgICAgIC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AgICAgIH0KICAgICAgbGV0IGdzID0gZ29ialt0eXBlXTsKICAgICAgaWYgKCFncykgewogICAgICAgIHJldHVybjsKICAgICAgfQogICAgICBpZiAoIWV2W0hBTkRMRURfT0JKXSkgewogICAgICAgIGV2W0hBTkRMRURfT0JKXSA9IHt9OwogICAgICAgIGlmICh0eXBlLnNsaWNlKDAsIDUpID09PSAndG91Y2gnKSB7CiAgICAgICAgICBldiA9IC8qKiBAdHlwZSB7VG91Y2hFdmVudH0gKi8oZXYpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLXNlbGYtYXNzaWduCiAgICAgICAgICBsZXQgdCA9IGV2LmNoYW5nZWRUb3VjaGVzWzBdOwogICAgICAgICAgaWYgKHR5cGUgPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgICAgICAvLyBvbmx5IGhhbmRsZSB0aGUgZmlyc3QgZmluZ2VyCiAgICAgICAgICAgIGlmIChldi50b3VjaGVzLmxlbmd0aCA9PT0gMSkgewogICAgICAgICAgICAgIFBPSU5URVJTVEFURS50b3VjaC5pZCA9IHQuaWRlbnRpZmllcjsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKFBPSU5URVJTVEFURS50b3VjaC5pZCAhPT0gdC5pZGVudGlmaWVyKSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0KICAgICAgICAgIGlmICghSEFTX05BVElWRV9UQSkgewogICAgICAgICAgICBpZiAodHlwZSA9PT0gJ3RvdWNoc3RhcnQnIHx8IHR5cGUgPT09ICd0b3VjaG1vdmUnKSB7CiAgICAgICAgICAgICAgR2VzdHVyZXMuX2hhbmRsZVRvdWNoQWN0aW9uKGV2KTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICBoYW5kbGVkID0gZXZbSEFORExFRF9PQkpdOwogICAgICAvLyB1c2VkIHRvIGlnbm9yZSBzeW50aGV0aWMgbW91c2UgZXZlbnRzCiAgICAgIGlmIChoYW5kbGVkLnNraXApIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgLy8gcmVzZXQgcmVjb2duaXplciBzdGF0ZQogICAgICBmb3IgKGxldCBpID0gMCwgcjsgaSA8IEdlc3R1cmVzLnJlY29nbml6ZXJzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgciA9IEdlc3R1cmVzLnJlY29nbml6ZXJzW2ldOwogICAgICAgIGlmIChnc1tyLm5hbWVdICYmICFoYW5kbGVkW3IubmFtZV0pIHsKICAgICAgICAgIGlmIChyLmZsb3cgJiYgci5mbG93LnN0YXJ0LmluZGV4T2YoZXYudHlwZSkgPiAtMSAmJiByLnJlc2V0KSB7CiAgICAgICAgICAgIHIucmVzZXQoKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgLy8gZW5mb3JjZSBnZXN0dXJlIHJlY29nbml6ZXIgb3JkZXIKICAgICAgZm9yIChsZXQgaSA9IDAsIHI7IGkgPCBHZXN0dXJlcy5yZWNvZ25pemVycy5sZW5ndGg7IGkrKykgewogICAgICAgIHIgPSBHZXN0dXJlcy5yZWNvZ25pemVyc1tpXTsKICAgICAgICBpZiAoZ3Nbci5uYW1lXSAmJiAhaGFuZGxlZFtyLm5hbWVdKSB7CiAgICAgICAgICBoYW5kbGVkW3IubmFtZV0gPSB0cnVlOwogICAgICAgICAgclt0eXBlXShldik7CiAgICAgICAgfQogICAgICB9CiAgICB9LAoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqIEBwYXJhbSB7VG91Y2hFdmVudH0gZXYgRXZlbnQuCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBfaGFuZGxlVG91Y2hBY3Rpb246IGZ1bmN0aW9uKGV2KSB7CiAgICAgIGxldCB0ID0gZXYuY2hhbmdlZFRvdWNoZXNbMF07CiAgICAgIGxldCB0eXBlID0gZXYudHlwZTsKICAgICAgaWYgKHR5cGUgPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC54ID0gdC5jbGllbnRYOwogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC55ID0gdC5jbGllbnRZOwogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC5zY3JvbGxEZWNpZGVkID0gZmFsc2U7CiAgICAgIH0gZWxzZSBpZiAodHlwZSA9PT0gJ3RvdWNobW92ZScpIHsKICAgICAgICBpZiAoUE9JTlRFUlNUQVRFLnRvdWNoLnNjcm9sbERlY2lkZWQpIHsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgUE9JTlRFUlNUQVRFLnRvdWNoLnNjcm9sbERlY2lkZWQgPSB0cnVlOwogICAgICAgIGxldCB0YSA9IGZpcnN0VG91Y2hBY3Rpb24oZXYpOwogICAgICAgIGxldCBwcmV2ZW50ID0gZmFsc2U7CiAgICAgICAgbGV0IGR4ID0gTWF0aC5hYnMoUE9JTlRFUlNUQVRFLnRvdWNoLnggLSB0LmNsaWVudFgpOwogICAgICAgIGxldCBkeSA9IE1hdGguYWJzKFBPSU5URVJTVEFURS50b3VjaC55IC0gdC5jbGllbnRZKTsKICAgICAgICBpZiAoIWV2LmNhbmNlbGFibGUpIHsKICAgICAgICAgIC8vIHNjcm9sbGluZyBpcyBoYXBwZW5pbmcKICAgICAgICB9IGVsc2UgaWYgKHRhID09PSAnbm9uZScpIHsKICAgICAgICAgIHByZXZlbnQgPSB0cnVlOwogICAgICAgIH0gZWxzZSBpZiAodGEgPT09ICdwYW4teCcpIHsKICAgICAgICAgIHByZXZlbnQgPSBkeSA+IGR4OwogICAgICAgIH0gZWxzZSBpZiAodGEgPT09ICdwYW4teScpIHsKICAgICAgICAgIHByZXZlbnQgPSBkeCA+IGR5OwogICAgICAgIH0KICAgICAgICBpZiAocHJldmVudCkgewogICAgICAgICAgZXYucHJldmVudERlZmF1bHQoKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgR2VzdHVyZXMucHJldmVudCgndHJhY2snKTsKIC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Gdlc3R1cmUgZm9yIHRoZSBnaXZlbiBldmVudCBuYW1lLgogICAgICogQHRoaXMge0dlc3R1cmVzfQogICAgICovCiAgICBfZmluZFJlY29nbml6ZXJCeUV2ZW50OiBmdW5jdGlvbihldk5hbWUpIHsKICAgICAgZm9yIChsZXQgaSA9IDAsIHI7IGkgPCB0aGlzLnJlY29nbml6ZXJzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgciA9IHRoaXMucmVjb2duaXplcnNbaV07CiAgICAgICAgZm9yIChsZXQgaiA9IDAsIG47IGogPCByLmVtaXRzLmxlbmd0aDsgaisrKSB7CiAgICAgICAgICBuID0gci5lbWl0c1tqXTsKICAgICAgICAgIGlmIChuID09PSBldk5hbWUpIHsKICAgICAgICAgICAgcmV0dXJuIHI7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICAgIHJldHVybiBudWxsOwogICAgfSwKCiAgICAvKioKICAgICAqIFNldHMgc2Nyb2xsaW5nIGRpcmVjdGlvbiBvbiBub2RlLgogICAgICoKICAgICAqIFRoaXMgdmFsdWUgaXMgY2hlY2tlZCBvbiBmaXJzdCBtb3ZlLCB0aHVzIGl0IHNob3VsZCBiZSBjYWxsZWQgcHJpb3IgdG8KICAgICAqIGFkZGluZyBldmVudCBsaXN0ZW5lcnMuCiAgICAgKgogICAgICogQG1lbWJlcm9mIFBvbHltZXIuR2VzdHVyZXMKICAgICAqIEBwYXJhbSB7IUVsZW1lbnR9IG5vZGUgTm9kZSB0byBzZXQgdG91Y2ggYWN0aW9uIHNldHRpbmcgb24KICAgICAqIEBwYXJhbSB7c3RyaW5nfSB2YWx1ZSBUb3VjaCBhY3Rpb24gdmFsdWUKICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIHNldFRvdWNoQWN0aW9uOiBmdW5jdGlvbihub2RlLCB2YWx1ZSkgewogICAgICBpZiAoSEFTX05BVElWRV9UQSkgewogICAgICAgIC8vIE5PVEU6IGFkZCB0b3VjaEFjdGl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AgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIHJlc2V0OiBmdW5jdGlvbigpIHsKICAgICAgdW50cmFja0RvY3VtZW50KHRoaXMuaW5mbyk7CiAgICB9LAoKICAgIC8qKgogICAgICogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfQogICAgICogQHBhcmFtIHtNb3VzZUV2ZW50fSBlCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBtb3VzZWRvd246IGZ1bmN0aW9uKGUpIHsKICAgICAgaWYgKCFoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgbGV0IHQgPSBHZXN0dXJlcy5fZmluZE9yaWdpbmFsVGFyZ2V0KGUpOwogICAgICBsZXQgc2VsZiA9IHRoaXM7CiAgICAgIGxldCBtb3ZlZm4gPSBmdW5jdGlvbiBtb3ZlZm4oZSkgewogICAgICAgIGlmICghaGFzTGVmdE1vdXNlQnV0dG9uKGUpKSB7CiAgICAgICAgICBzZWxmLl9maXJlKCd1cCcsIHQsIGUpOwogICAgICAgICAgdW50cmFja0RvY3VtZW50KHNlbGYuaW5mbyk7CiAgICAgICAgfQogICAgICB9OwogICAgICBsZXQgdXBmbiA9IGZ1bmN0aW9uIHVwZm4oZSkgewogICAgICAgIGlmIChoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICAgIHNlbGYuX2ZpcmUoJ3VwJywgdCwgZSk7CiAgICAgICAgfQogICAgICAgIHVudHJhY2tEb2N1bWVudChzZWxmLmluZm8pOwogICAgICB9OwogICAgICB0cmFja0RvY3VtZW50KHRoaXMuaW5mbywgbW92ZWZuLCB1cGZuKTsKICAgICAgdGhpcy5fZmlyZSgnZG93bicsIHQsIGUpOwogICAgfSwKICAgIC8qKgogICAgICogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfQogICAgICogQHB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ICB9KTsKICAgIH0KICB9KTsKCiAgR2VzdHVyZXMucmVnaXN0ZXIoewogICAgbmFtZTogJ3RyYWNrJywKICAgIHRvdWNoQWN0aW9uOiAnbm9uZScsCiAgICBkZXBzOiBbJ21vdXNlZG93bicsICd0b3VjaHN0YXJ0JywgJ3RvdWNobW92ZScsICd0b3VjaGVuZCddLAogICAgZmxvdzogewogICAgICBzdGFydDogWydtb3VzZWRvd24nLCAndG91Y2hzdGFydCddLAogICAgICBlbmQ6IFsnbW91c2V1cCcsICd0b3VjaGVuZCddCiAgICB9LAogICAgZW1pdHM6IFsndHJhY2snXSwKCiAgICBpbmZvOiB7CiAgICAgIHg6IDAsCiAgICAgIHk6IDAsCiAgICAgIHN0YXRlOiAnc3RhcnQnLAogICAgICBzdGFydGVkOiBmYWxzZSwKICAgICAgbW92ZXM6IFtdLAogICAgICAvKiogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfSAqLwogICAgICBhZGRNb3ZlOiBmdW5jdGlvbihtb3ZlKSB7CiAgICAgICAgaWYgKHRoaXMubW92ZXMubGVuZ3RoID4gVFJBQ0tfTEVOR1RIKSB7CiAgICAgICAgICB0aGlzLm1vdmVzLnNoaWZ0KCk7CiAgICAgICAgfQogICAgICAgIHRoaXMubW92ZXMucHVzaChtb3ZlKTsKICAgICAgfSwKICAgICAgbW92ZWZuOiBudWxsLAogICAgICB1cGZuOiBudWxsLAogICAgICBwcmV2ZW50OiBmYWxzZQogICAgfSwKCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIHJlc2V0OiBmdW5jdGlvbigpIHsKICAgICAgdGhpcy5pbmZvLnN0YXRlID0gJ3N0YXJ0JzsKICAgICAgdGhpcy5pbmZvLnN0YXJ0ZWQgPSBmYWxzZTsKICAgICAgdGhpcy5pbmZvLm1vdmVzID0gW107CiAgICAgIHRoaXMuaW5mby54ID0gMDsKICAgICAgdGhpcy5pbmZvLnkgPSAwOwogICAgICB0aGlzLmluZm8ucHJldmVudCA9IGZhbHNlOwogICAgICB1bnRyYWNrRG9jdW1lbnQodGhpcy5pbmZvKTsKICAgIH0sCgogICAgLyoqCiAgICAgKiBAdGhpcyB7R2VzdHVyZVJlY29nbml6ZXJ9CiAgICAgKiBAcGFyYW0ge251bWJlcn0geAogICAgICogQHBhcmFtIHtudW1iZXJ9IHkKICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgKi8KICAgIGhhc01vdmVkRW5vdWdoOiBmdW5jdGlvbih4LCB5KSB7CiAgICAgIGlmICh0aGlzLmluZm8ucHJldmVudCkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgfQogICAgICBpZiAodGhpcy5pbmZvLnN0YXJ0ZWQpIHsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgfQogICAgICBsZXQgZHggPSBNYXRoLmFicyh0aGlzLmluZm8ueCAtIHgpOwogICAgICBsZXQgZHkgPSBNYXRoLmFicyh0aGlzLmluZm8ueSAtIHkpOwogICAgICByZXR1cm4gKGR4ID49IFRSQUNLX0RJU1RBTkNFIHx8IGR5ID49IFRSQUNLX0RJU1RBTkNFKTsKICAgIH0sCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEBwYXJhbSB7TW91c2VFdmVudH0gZQogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgbW91c2Vkb3duOiBmdW5jdGlvbihlKSB7CiAgICAgIGlmICghaGFzTGVmdE1vdXNlQnV0dG9uKGUpKSB7CiAgICAgICAgcmV0dXJuOwogICAgICB9CiAgICAgIGxldCB0ID0gR2VzdHVyZXMuX2ZpbmRPcmlnaW5hbFRhcmdldChlKTsKICAgICAgbGV0IHNlbGYgPSB0aGlzOwogICAgICBsZXQgbW92ZWZuID0gZnVuY3Rpb24gbW92ZWZuKGUpIHsKICAgICAgICBsZXQgeCA9IGUuY2xpZW50WCwgeSA9IGUuY2xpZW50WTsKICAgICAgICBpZiAoc2VsZi5oYXNNb3ZlZEVub3VnaCh4LCB5KSkgewogICAgICAgICAgLy8gZmlyc3QgbW92ZSBpcyAnc3RhcnQnLCBzdWJzZXF1ZW50IG1vdmVzIGFyZSAnbW92ZScsIG1vdXNldXAgaXMgJ2VuZCcKICAgICAgICAgIHNlbGYuaW5mby5zdGF0ZSA9IHNlbGYuaW5mby5zdGFydGVkID8gKGUudHlwZSA9PT0gJ21vdXNldXAnID8gJ2VuZCcgOiAndHJhY2snKSA6ICdzdGFydCc7CiAgICAgICAgICBpZiAoc2VsZi5pbmZvLnN0YXRlID09PSAnc3RhcnQnKSB7CiAgICAgICAgICAgIC8vIGlmIGFuZCBvbmx5IGlmIHRyYWNraW5nLCBhbHdheXMgcHJldmVudCB0YXAKICAgICAgICAgICAgR2VzdHVyZXMucHJldmVudCgndGFwJyk7CiAgICAgICAgICB9CiAgICAgICAgICBzZWxmLmluZm8uYWRkTW92ZSh7eDogeCwgeTogeX0pOwogICAgICAgICAgaWYgKCFoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICAgICAgLy8gYWx3YXlzIF9maXJlICJlbmQiCiAgICAgICAgICAgIHNlbGYuaW5mby5zdGF0ZSA9ICdlbmQnOwogICAgICAgICAgICB1bnRyYWNrRG9jdW1lbnQoc2VsZi5pbmZvKTsKICAgICAgICAgIH0KICAgICAgICAgIHNlbGYuX2ZpcmUodCwgZSk7CiAgICAgICAgICBzZWxmLmluZm8uc3RhcnRlZCA9IHRydWU7CiAgICAgICAgfQogICAgICB9OwogICAgICBsZXQgdXBmbiA9IGZ1bmN0aW9uIHVwZm4oZSkgewogICAgICAgIGlmIChzZWxmLmluZm8uc3RhcnRlZCkgewogICAgICAgICAgbW92ZWZuKGUpOwogICAgICAgIH0KCiAgICAgICAgLy8gcmVtb3ZlIHRoZSB0ZW1wb3JhcnkgbGlzdGVuZXJzCiAgICAgICAgdW50cmFja0RvY3Vt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pbXBsZW1lbnRzIHtQb2x5bWVyX0Rpck1peGlufQogICAgICAgKi8KICAgICAgY2xhc3MgRGlyIGV4dGVuZHMgZWxlbWVudEJhc2UgewoKICAgICAgICAvKioKICAgICAgICAgKiBAb3ZlcnJpZGUKICAgICAgICAgKiBAc3VwcHJlc3Mge21pc3NpbmdQcm9wZXJ0aWVzfSBJbnRlcmZhY2VzIGluIGNsb3N1cmUgZG8gbm90IGluaGVyaXQgc3RhdGljcywgYnV0IGNsYXNzZXMgZG8KICAgICAgICAgKi8KICAgICAgICBzdGF0aWMgX3Byb2Nlc3NTdHlsZVRleHQoY3NzVGV4dCwgYmFzZVVSSSkgewogICAgICAgICAgY3NzVGV4dCA9IHN1cGVyLl9wcm9jZXNzU3R5bGVUZXh0KGNzc1RleHQsIGJhc2VVUkkpOwogICAgICAgICAgaWYgKCFTSElNX1NIQURPVyAmJiBESVJfQ0hFQ0sudGVzdChjc3NUZXh0KSkgewogICAgICAgICAgICBjc3NUZXh0ID0gdGhpcy5fcmVwbGFjZURpckluQ3NzVGV4dChjc3NUZXh0KTsKICAgICAgICAgICAgdGhpcy5fX2FjdGl2YXRlRGlyID0gdHJ1ZTsKICAgICAgICAgIH0KICAgICAgICAgIHJldHVybiBjc3NUZXh0OwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogUmVwbGFjZSBgOmRpcmAgaW4gdGhlIGdpdmVuIENTUyB0ZXh0CiAgICAgICAgICoKICAgICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGV4dCBDU1MgdGV4dCB0byByZXBsYWNlIERJUgogICAgICAgICAqIEByZXR1cm4ge3N0cmluZ30gTW9kaWZpZWQgQ1NTCiAgICAgICAgICovCiAgICAgICAgc3RhdGljIF9yZXBsYWNlRGlySW5Dc3NUZXh0KHRleHQpIHsKICAgICAgICAgIGxldCByZXBsYWNlZFRleHQgPSB0ZXh0OwogICAgICAgICAgcmVwbGFjZWRUZXh0ID0gcmVwbGFjZWRUZXh0LnJlcGxhY2UoSE9TVF9ESVIsIEhPU1RfRElSX1JFUExBQ01FTlQpOwogICAgICAgICAgcmVwbGFjZWRUZXh0ID0gcmVwbGFjZWRUZXh0LnJlcGxhY2UoRUxfRElSLCBFTF9ESVJfUkVQTEFDTUVOVCk7CiAgICAgICAgICByZXR1cm4gcmVwbGFjZWRUZXh0OwogICAgICAgIH0KCiAgICAgICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgICBzdXBlcigpOwogICAgICAgICAgLyoqIEB0eXBlIHtib29sZWFufSAqLwogICAgICAgICAgdGhpcy5fX2F1dG9EaXJPcHRPdXQgPSBmYWxzZTsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEBzdXBwcmVzcyB7aW52YWxpZENhc3RzfSBDbG9zdXJlIGRvZXNuJ3QgdW5kZXJzdGFuZCB0aGF0IGB0aGlzYCBpcyBhbiBIVE1MRWxlbWVudAogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgcmVhZHkoKSB7CiAgICAgICAgICBzdXBlci5yZWFkeSgpOwogICAgICAgICAgdGhpcy5fX2F1dG9EaXJPcHRPdXQgPSAvKiogQHR5cGUgeyFIVE1MRWxlbWVudH0gKi8odGhpcykuaGFzQXR0cmlidXRlKCdkaXInKTsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEBzdXBwcmVzcyB7bWlzc2luZ1Byb3BlcnRpZXN9IElmIGl0IGV4aXN0cyBvbiBlbGVtZW50QmFzZSwgaXQgY2FuIGJlIHN1cGVyJ2QKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIGNvbm5lY3RlZENhbGxiYWNrKCkgewogICAgICAgICAgaWYgKGVsZW1lbnRCYXNlLnByb3RvdHlwZS5jb25uZWN0ZWRDYWxsYmFjaykgewogICAgICAgICAgICBzdXBlci5jb25uZWN0ZWRDYWxsYmFjaygpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKHRoaXMuY29uc3RydWN0b3IuX19hY3RpdmF0ZURpcikgewogICAgICAgICAgICB0YWtlUmVjb3JkcygpOwogICAgICAgICAgICBESVJfSU5TVEFOQ0VTLnB1c2godGhpcyk7CiAgICAgICAgICAgIHNldFJUTCh0aGlzKTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEBzdXBwcmVzcyB7bWlzc2luZ1Byb3BlcnRpZXN9IElmIGl0IGV4aXN0cyBvbiBlbGVtZW50QmFzZSwgaXQgY2FuIGJlIHN1cGVyJ2QKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIGRpc2Nvbm5lY3RlZENhbGxiYWNrKCkgewogICAgICAgICAgaWYgKGVsZW1lbnRCYXNlLnByb3RvdHlwZS5kaXNjb25uZWN0ZWRDYWxsYmFjaykgewogICAgICAgICAgICBzdXBlci5kaXNjb25uZWN0ZWRDYWxsYmFjaygpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKHRoaXMuY29uc3RydWN0b3IuX19hY3RpdmF0ZURpcikgewogICAgICAgICAgICBjb25zdCBpZHggPSBESVJfSU5TVEFOQ0VTLmluZGV4T2YodGhpcyk7CiAgICAgICAgICAgIGlmIChpZHggPiAtMSkgewogICAgICAgICAgICAgIERJUl9JTlNUQU5DRVMuc3BsaWNlKGlkeCwgMSk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KCiAgICAgIERpci5fX2FjdGl2YXRlRGlyID0gZmFsc2U7CgogICAgICByZXR1cm4gRGlyOwogICAgfSk7CiAgfSkoKTsKCgoKKGZ1bmN0aW9uKCkgewoKICAndXNlIHN0cmljdCc7CgogIC8vIHJ1biBhIGNhbGxiYWNrIHdoZW4gSFRNTEltcG9ydHMgYXJlIHJlYWR5IG9yIGltbWVkaWF0ZWx5IGlmCiAgLy8gdGhpcyBhcGkgaXMgbm90IGF2YWlsYWJsZS4KICBmdW5jdG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AtIDE7CiAgICBsZXQgY3VycmVudCA9IGRpc3RhbmNlc1tpXVtqXTsKICAgIGxldCBlZGl0cyA9IFtdOwogICAgd2hpbGUgKGkgPiAwIHx8IGogPiAwKSB7CiAgICAgIGlmIChpID09IDApIHsKICAgICAgICBlZGl0cy5wdXNoKEVESVRfQUREKTsKICAgICAgICBqLS07CiAgICAgICAgY29udGludWU7CiAgICAgIH0KICAgICAgaWYgKGogPT0gMCkgewogICAgICAgIGVkaXRzLnB1c2goRURJVF9ERUxFVEUpOwogICAgICAgIGktLTsKICAgICAgICBjb250aW51ZTsKICAgICAgfQogICAgICBsZXQgbm9ydGhXZXN0ID0gZGlzdGFuY2VzW2kgLSAxXVtqIC0gMV07CiAgICAgIGxldCB3ZXN0ID0gZGlzdGFuY2VzW2kgLSAxXVtqXTsKICAgICAgbGV0IG5vcnRoID0gZGlzdGFuY2VzW2ldW2ogLSAxXTsKCiAgICAgIGxldCBtaW47CiAgICAgIGlmICh3ZXN0IDwgbm9ydGgpCiAgICAgICAgbWluID0gd2VzdCA8IG5vcnRoV2VzdCA/IHdlc3QgOiBub3J0aFdlc3Q7CiAgICAgIGVsc2UKICAgICAgICBtaW4gPSBub3J0aCA8IG5vcnRoV2VzdCA/IG5vcnRoIDogbm9ydGhXZXN0OwoKICAgICAgaWYgKG1pbiA9PSBub3J0aFdlc3QpIHsKICAgICAgICBpZiAobm9ydGhXZXN0ID09IGN1cnJlbnQpIHsKICAgICAgICAgIGVkaXRzLnB1c2goRURJVF9MRUFWRSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIGVkaXRzLnB1c2goRURJVF9VUERBVEUpOwogICAgICAgICAgY3VycmVudCA9IG5vcnRoV2VzdDsKICAgICAgICB9CiAgICAgICAgaS0tOwogICAgICAgIGotLTsKICAgICAgfSBlbHNlIGlmIChtaW4gPT0gd2VzdCkgewogICAgICAgIGVkaXRzLnB1c2goRURJVF9ERUxFVEUpOwogICAgICAgIGktLTsKICAgICAgICBjdXJyZ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xpY2VzLnB1c2goc3BsaWNlKTsKICAgICAgICAgICAgc3BsaWNlID0gdW5kZWZpbmVkOwogICAgICAgICAgfQoKICAgICAgICAgIGluZGV4Kys7CiAgICAgICAgICBvbGRJbmRleCsrOwogICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSBFRElUX1VQREFURToKICAgICAgICAgIGlmICghc3BsaWNlKQogICAgICAgICAgICBzcGxpY2UgPSBuZXdTcGxpY2UoaW5kZXgsIFtdLCAwKTsKCiAgICAgICAgICBzcGxpY2UuYWRkZWRDb3VudCsrOwogICAgICAgICAgaW5kZXgrKzsKCiAgICAgICAgICBzcGxpY2UucmVtb3ZlZC5wdXNoKG9sZFtvbGRJbmRleF0pOwogICAgICAgICAgb2xkSW5kZXgrKzsKICAgICAgICAgIGJyZWFrOwogICAgICAgIGNhc2UgRURJVF9BREQ6CiAgICAgICAgICBpZiAoIXNwbGljZSkKICAgICAgICAgICAgc3BsaWNlID0gbmV3U3BsaWNlKGluZGV4LCBbXSwgMCk7CgogICAgICAgICAgc3BsaWNlLmFkZGVkQ291bnQrKzsKICAgICAgICAgIGluZGV4Kys7CiAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIEVESVRfREVMRVRFOgogICAgICAgICAgaWYgKCFzcGxpY2UpCiAgICAgICAgICAgIHNwbGljZSA9IG5ld1NwbGljZShpbmRleCwgW10sIDApOwoKICAgICAgICAgIHNwbGljZS5yZW1vdmVkLnB1c2gob2xkW29sZEluZGV4XSk7CiAgICAgICAgICBvbGRJbmRleCsrOwogICAgICAgICAgYnJlYWs7CiAgICAgIH0KICAgIH0KCiAgICBpZiAoc3BsaWNlKSB7CiAgICAgIHNwbGljZXMucHVzaChzcGxpY2UpOwogICAgfQogICAgcmV0dXJuIHNwbGljZXM7CiAgfQoKICBmdW5jdGlvbiBzaGFyZWRQcmVmaXgoY3VycmVudCwgb2xkLCBzZWFyY2hMZW5ndGgpIHsKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgc2Vhcm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nV0ZSgvKiogQHR5cGUge0VsZW1lbnR9ICovIChub2RlIHx8IHRoaXMpLCB2YWx1ZSwgYXR0cmlidXRlKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENvcGllcyBvd24gcHJvcGVydGllcyAoaW5jbHVkaW5nIGFjY2Vzc29yIGRlc2NyaXB0b3JzKSBmcm9tIGEgc291cmNlCiAgICAgICAqIG9iamVjdCB0byBhIHRhcmdldCBvYmplY3QuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBwcm90b3R5cGUgVGFyZ2V0IG9iamVjdCB0byBjb3B5IHByb3BlcnRpZXMgdG8uCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBhcGkgU291cmNlIG9iamVjdCB0byBjb3B5IHByb3BlcnRpZXMgZnJvbS4KICAgICAgICogQHJldHVybiB7T2JqZWN0fSBwcm90b3R5cGUgb2JqZWN0IHRoYXQgd2FzIHBhc3NlZCBhcyBmaXJzdCBhcmd1bWVudC4KICAgICAgICovCiAgICAgIGV4dGVuZChwcm90b3R5cGUsIGFwaSkgewogICAgICAgIGlmICghKHByb3RvdHlwZSAmJiBhcGkpKSB7CiAgICAgICAgICByZXR1cm4gcHJvdG90eXBlIHx8IGFwaTsKICAgICAgICB9CiAgICAgICAgbGV0IG4kID0gT2JqZWN0LmdldE93blByb3BlcnR5TmFtZXMoYXBpKTsKICAgICAgICBmb3IgKGxldCBpPTAsIG47IChpPG4kLmxlbmd0aCkgJiYgKG49biRbaV0pOyBpKyspIHsKICAgICAgICAgIGxldCBwZCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXBpLCBuKTsKICAgICAgICAgIGlmIChwZCkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG90eXBlLCBuLCBwZCk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBwcm90b3R5cGU7CiAgICAgIH0KCiAgICAgIC8qKgogIC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BkZWJvdW5jZXIgPSB0aGlzLl9kZWJvdW5jZXJzW2pvYk5hbWVdOwogICAgICAgIGlmIChkZWJvdW5jZXIpIHsKICAgICAgICAgIGRlYm91bmNlci5mbHVzaCgpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENhbmNlbHMgYW4gYWN0aXZlIGRlYm91bmNlci4gIFRoZSBgY2FsbGJhY2tgIHdpbGwgbm90IGJlIGNhbGxlZC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IGpvYk5hbWUgVGhlIG5hbWUgb2YgdGhlIGRlYm91bmNlciBzdGFydGVkIHdpdGggYGRlYm91bmNlYAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2FuY2VsRGVib3VuY2VyKGpvYk5hbWUpIHsKICAgICAgICB0aGlzLl9kZWJvdW5jZXJzID0gdGhpcy5fZGVib3VuY2VycyB8fCB7fTsKICAgICAgICBsZXQgZGVib3VuY2VyID0gdGhpcy5fZGVib3VuY2Vyc1tqb2JOYW1lXTsKICAgICAgICBpZiAoZGVib3VuY2VyKSB7CiAgICAgICAgICBkZWJvdW5jZXIuY2FuY2VsKCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogUnVucyBhIGNhbGxiYWNrIGZ1bmN0aW9uIGFzeW5jaHJvbm91c2x5LgogICAgICAgKgogICAgICAgKiBCeSBkZWZhdWx0IChpZiBubyB3YWl0VGltZSBpcyBzcGVjaWZpZWQpLCBhc3luYyBjYWxsYmFja3MgYXJlIHJ1biBhdAogICAgICAgKiBtaWNyb3Rhc2sgdGltaW5nLCB3aGljaCB3aWxsIG9jY3VyIGJlZm9yZSBwYWludC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHshRnVuY3Rpb259IGNhbGxiYWNrIFRoZSBjYWxsYmFjayBmdW5jdGlvbiB0byBydW4sIGJvdW5kIHRvIGB0aGlzYC4KICAgICAgICogQHBhcmFtIHtudW1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W5pZW5jZSBtZXRob2QgZm9yIGNyZWF0aW5nIGFuIGVsZW1lbnQgYW5kIGNvbmZpZ3VyaW5nIGl0LgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGFnIEhUTUwgZWxlbWVudCB0YWcgdG8gY3JlYXRlLgogICAgICAgKiBAcGFyYW0ge09iamVjdD19IHByb3BzIE9iamVjdCBvZiBwcm9wZXJ0aWVzIHRvIGNvbmZpZ3VyZSBvbiB0aGUKICAgICAgICogICAgaW5zdGFuY2UuCiAgICAgICAqIEByZXR1cm4geyFFbGVtZW50fSBOZXdseSBjcmVhdGVkIGFuZCBjb25maWd1cmVkIGVsZW1lbnQuCiAgICAgICAqLwogICAgICBjcmVhdGUodGFnLCBwcm9wcykgewogICAgICAgIGxldCBlbHQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KHRhZyk7CiAgICAgICAgaWYgKHByb3BzKSB7CiAgICAgICAgICBpZiAoZWx0LnNldFByb3BlcnRpZXMpIHsKICAgICAgICAgICAgZWx0LnNldFByb3BlcnRpZXMocHJvcHMpOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZm9yIChsZXQgbiBpbiBwcm9wcykgewogICAgICAgICAgICAgIGVsdFtuXSA9IHByb3BzW25dOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBlbHQ7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBDb252ZW5pZW5jZSBtZXRob2QgZm9yIGltcG9ydGluZyBhbiBIVE1MIGRvY3VtZW50IGltcGVyYXRpdmVseS4KICAgICAgICoKICAgICAgICogVGhpcyBtZXRob2QgY3JlYXRlcyBhIG5ldyBgPGxpbmsgcmVsPSJpbXBvcnQiPmAgZWxlbWVudCB3aXRoCiAgICAgICAqIHRoZSBwcm92aWRlZCBVUkwgYW5kIGFwcGVuZHMgaXQgdG8gdGhlIGRvY3VtZW50IHRvIHN0YXJ0IGxvYWRpbmcuC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nJheU9yUGF0aCBQYXRoIHRvIGFycmF5IGZyb20gd2hpY2ggdG8gcmVtb3ZlIHRoZSBpdGVtCiAgICAgICAqICAgKG9yIHRoZSBhcnJheSBpdHNlbGYpLgogICAgICAgKiBAcGFyYW0geyp9IGl0ZW0gSXRlbSB0byByZW1vdmUuCiAgICAgICAqIEByZXR1cm4ge0FycmF5fSBBcnJheSBjb250YWluaW5nIGl0ZW0gcmVtb3ZlZC4KICAgICAgICovCiAgICAgIGFycmF5RGVsZXRlKGFycmF5T3JQYXRoLCBpdGVtKSB7CiAgICAgICAgbGV0IGluZGV4OwogICAgICAgIGlmIChBcnJheS5pc0FycmF5KGFycmF5T3JQYXRoKSkgewogICAgICAgICAgaW5kZXggPSBhcnJheU9yUGF0aC5pbmRleE9mKGl0ZW0pOwogICAgICAgICAgaWYgKGluZGV4ID49IDApIHsKICAgICAgICAgICAgcmV0dXJuIGFycmF5T3JQYXRoLnNwbGljZShpbmRleCwgMSk7CiAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIGxldCBhcnIgPSBQb2x5bWVyLlBhdGguZ2V0KHRoaXMsIGFycmF5T3JQYXRoKTsKICAgICAgICAgIGluZGV4ID0gYXJyLmluZGV4T2YoaXRlbSk7CiAgICAgICAgICBpZiAoaW5kZXggPj0gMCkgewogICAgICAgICAgICByZXR1cm4gdGhpcy5zcGxpY2UoYXJyYXlPclBhdGgsIGluZGV4LCAxKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0KCiAgICAgIC8vIGxvZ2dpbmcKCiAgICAgIC8qKgogICAgICAgKiBGYWNhZGVzIGBjb25zb2xlLmxvZ2AvYHdhcm5gL2BlcnJvcmAgYXMgb3ZlcnJpZGUgcG9pbnQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBsZXZlbCBPbmUgb2YgJ2xvZycsICd3YXJuJywgJ2Vycm9yJwogICAgICAgKiBAcGFyYW0ge0FycmF5fSBhcmdzIEFycmF5IG9mIHN0cmluZ3Mgb3Igb2JqZWN0cyB0byBsb2cKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF9sb2dnZXIobGV2ZWwsIGFyZ3MpIHsKICAgICAgICAvLyBhY2NlcHQgWydmb28nLCAnYmFyJ10gYW5kIFtbJ2ZvbycsICdiYXInXV0KICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShhcmdzKSAmJiBhcmdzLmxlbmd0aCA9PT0gMSAmJiBBcnJheS5pc0FycmF5KGFyZ3NbMF0pKSB7CiAgICAgICAgICBhcmdzID0gYXJnc1swXTsKICAgICAgICB9CiAgICAgICAgc3dpdGNoKGxldmVsKSB7CiAgICAgICAgICBjYXNlICdsb2cnOgogICAgICAgICAgY2FzZSAnd2Fybic6CiAgICAgICAgICBjYXNlICdlcnJvcic6CiAgICAgICAgICAgIGNvbnNvbGVbbGV2ZWxdKC4uLmFyZ3MpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEZhY2FkZXMgYGNvbnNvbGUubG9nYCBhcyBhbiBvdmVycmlkZSBwb2ludC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHsuLi4qfSBhcmdzIEFycmF5IG9mIHN0cmluZ3Mgb3Igb2JqZWN0cyB0byBsb2cKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF9sb2coLi4uYXJncykgewogICAgICAgIHRoaXMuX2xvZ2dlcignbG9nJywgYXJncyk7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBGYWNhZGVzIGBjb25zb2xlLndhcm5gIGFzIGFuIG92ZXJyaWRlIHBvaW50LgogICAgICAgKgogICAgICAgKiBAcGFyYW0gey4uLip9IGFyZ3MgQXJyYXkgb2Ygc3RyaW5ncyBvciBvYmplY3RzIHRvIGxvZwogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgX3dhcm4oLi4uYXJncykgewogICAgICAgIHRoaXMuX2xvZ2dlcignd2FybicsIGFyZ3MpOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRmFjYWRlcyBgY29uc29sZS5lcnJvcmAgYXMgYW4gb3ZlcnJpZGUgcG9pbnQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7Li4uKn0gYXJncyBBcnJheSBvZiBzdHJpbmdzIG9yIG9iamVjdHMgdG8gbG9nCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfZXJyb3IoLi4uYXJncykgewogICAgICAgIHRoaXMuX2xvZ2dlcignZXJyb3InLCBhcmdzKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEZvcm1hdHMgYSBtZXNzYWdlIHVzaW5nIHRoZSBlbGVtZW50IHR5cGUgYW4gYSBtZXRob2QgbmFtZS4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IG1ldGhvZE5hbWUgTWV0aG9kIG5hbWUgdG8gYXNzb2NpYXRlIHdpdGggbWVzc2FnZQogICAgICAgKiBAcGFyYW0gey4uLip9IGFyZ3MgQXJyYXkgb2Ygc3RyaW5ncyBvciBvYmplY3RzIHRvIGxvZwogICAgICAgKiBAcmV0dXJuIHtBcnJheX0gQXJyYXkgd2l0aCBmb3JtYXR0aW5nIGluZm9ybWF0aW9uIGZvciBgY29uc29sZWAKICAgICAgICogICBsb2dnaW5nLgogICAgICAgKi8KICAgICAgX2xvZ2YobWV0aG9kTmFtZSwgLi4uYXJncykgewogICAgICAgIHJldHVybiBbJ1slczo6JXNdJywgdGhpcy5pcywgbWV0aG9kTmFtZSwgLi4uYXJnc107CiAgICAgIH0KCiAgICB9CgogICAgTGVnYWN5RWxlbWVudC5wcm90b3R5cGUuaXMgPSAnJzsKCiAgICByZXR1cm4gTGVnYWN5RWxlbWVudDsKCiAgfSk7Cgp9KSgpOwoKCgogIChmdW5jdGlvbigpIHsKCiAgICAndXNlIHN0cmljd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WYgKCEocCBpbiBleGNsdWRlUHJvcHMpKSB7CiAgICAgICAgICBpZiAobm9BY2Nlc3NvcnMpIHsKICAgICAgICAgICAgdGFyZ2V0W3BdID0gc291cmNlW3BdOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgbGV0IHBkID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihzb3VyY2UsIHApOwogICAgICAgICAgICBpZiAocGQpIHsKICAgICAgICAgICAgICAvLyBlbnN1cmUgcHJvcGVydHkgaXMgY29uZmlndXJhYmxlIHNvIHRoYXQgYSBsYXRlciBiZWhhdmlvciBjYW4KICAgICAgICAgICAgICAvLyByZS1jb25maWd1cmUgaXQuCiAgICAgICAgICAgICAgcGQuY29uZmlndXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBwLCBwZCk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KCiAgICAvKioKICAgICAqIEFwcGxpZXMgYSAibGVnYWN5IiBiZWhhdmlvciBvciBhcnJheSBvZiBiZWhhdmlvcnMgdG8gdGhlIHByb3ZpZGVkIGNsYXNzLgogICAgICoKICAgICAqIE5vdGU6IHRoaXMgbWV0aG9kIHdpbGwgYXV0b21hdGljYWxseSBhbHNvIGFwcGx5IHRoZSBgUG9seW1lci5MZWdhY3lFbGVtZW50TWl4aW5gCiAgICAgKiB0byBlbnN1cmUgdGhhdCBhbnkgbGVnYWN5IGJlaGF2aW9ycyBjYW4gcmVseSBvbiBsZWdhY3kgUG9seW1lciBBUEkgb24KICAgICAqIHRoZSB1bmRlcmx5aW5nIGVsZW1lbnQuCiAgICAgKgogICAgICogQHRlbXBsYXRlIFQKICAgICAqIEBwYXJhbSB7IU9iamVjdHwhQXJyYXk8IU9iamVjdD59IGJlaGF2aW9ycyBCZWhhdmlvciBvYmplY3Qgb3IgYXJyYXkgb2YgYmVoYXZp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RpZXMoYi5wcm9wZXJ0aWVzKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGlmIChiLm9ic2VydmVycykgewogICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZU9ic2VydmVycyhiLm9ic2VydmVycywgYi5wcm9wZXJ0aWVzKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKGluZm8ucHJvcGVydGllcykgewogICAgICAgICAgICAgIHRoaXMuY3JlYXRlUHJvcGVydGllcyhpbmZvLnByb3BlcnRpZXMpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChpbmZvLm9ic2VydmVycykgewogICAgICAgICAgICAgIHRoaXMuY3JlYXRlT2JzZXJ2ZXJzKGluZm8ub2JzZXJ2ZXJzLCBpbmZvLnByb3BlcnRpZXMpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIC8vIG1ha2Ugc3VyZSB0byBwcmVwYXJlIHRoZSBlbGVtZW50IHRlbXBsYXRlCiAgICAgICAgICAgIHRoaXMuX3ByZXBhcmVUZW1wbGF0ZSgpOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgc3RhdGljIGdldCBwcm9wZXJ0aWVzKCkgewogICAgICAgICAgY29uc3QgcHJvcGVydGllcyA9IHt9OwogICAgICAgICAgaWYgKGJlaGF2aW9yTGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBiZWhhdmlvckxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBPYmplY3QuYXNzaWduKHByb3BlcnRpZXMsIGJlaGF2aW9yTGlzdFtpXS5wcm9wZXJ0aWVzKTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgT2JqZWN0LmFzc2lnbihwcm9wZXJ0aWVzLCBpbmZvLnByb3BlcnRpZXMpOwogICAgICAgICAgcmV0dXJuIHByb3BlcnRpZXM7CiAgICAgICAgfQoKICAgICAgICBzdGF0aWMgZ2V0IG9ic2VydmVycygpIHsKICAgICAgICAgIGxldCBvYnNlcnZlcnMgPSBbXTsKICAgICAgICAgIGlmIChiZWhhdmlvckxpc3QpIHsKICAgICAgICAgICAgZm9yIChsZXQgaT0wLCBiOyBpIDwgYmVoYXZpb3JMaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgYiA9IGJlaGF2aW9yTGlzdFtpXTsKICAgICAgICAgICAgICBpZiAoYi5vYnNlcnZlcnMpIHsKICAgICAgICAgICAgICAgIG9ic2VydmVycyA9IG9ic2VydmVycy5jb25jYXQoYi5vYnNlcnZlcnMpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKGluZm8ub2JzZXJ2ZXJzKSB7CiAgICAgICAgICAgIG9ic2VydmVycyA9IG9ic2VydmVycy5jb25jYXQoaW5mby5vYnNlcnZlcnMpOwogICAgICAgICAgfQogICAgICAgICAgcmV0dXJuIG9ic2VydmVyczsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgY3JlYXRlZCgpIHsKICAgICAgICAgIHN1cGVyLmNyZWF0ZWQoKTsKICAgICAgICAgIGNvbnN0IGxpc3QgPSBsaWZlY3ljbGUuY3JlYXRlZDsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsaXN0W2ldLmNhbGwodGhpcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgX3JlZ2lzdGVyZWQoKSB7CiAgICAgICAgICAvKiBOT1RFOiBgYmVmb3JlUmVnaXN0ZXJgIGlzIGNhbGxlZCBoZXJlI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zIGxhemlseSBpZiB3ZSdyZSBvcHRpbWl6aW5nLAogICAgICAgICAgICBpZiAoUG9seW1lci5sZWdhY3lPcHRpbWl6YXRpb25zKSB7CiAgICAgICAgICAgICAgY29weVByb3BlcnRpZXNUb1Byb3RvKGdlbmVyYXRlZFByb3RvKTsKICAgICAgICAgICAgfQogICAgICAgICAgICAvLyBtYWtlIHN1cmUgbGVnYWN5IGxpZmVjeWNsZSBpcyBjYWxsZWQgb24gdGhlICplbGVtZW50KidzIHByb3RvdHlwZQogICAgICAgICAgICAvLyBhbmQgbm90IHRoZSBnZW5lcmF0ZWQgY2xhc3MgcHJvdG90eXBlOyBpZiB0aGUgZWxlbWVudCBoYXMgYmVlbgogICAgICAgICAgICAvLyBleHRlbmRlZCwgdGhlc2UgYXJlICpub3QqIHRoZSBzYW1lLgogICAgICAgICAgICBjb25zdCBwcm90byA9IE9iamVjdC5nZXRQcm90b3R5cGVPZih0aGlzKTsKICAgICAgICAgICAgbGV0IGxpc3QgPSBsaWZlY3ljbGUuYmVmb3JlUmVnaXN0ZXI7CiAgICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgICAgbGlzdFtpXS5jYWxsKHByb3RvKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgbGlzdCA9IGxpZmVjeWNsZS5yZWdpc3RlcmVkOwogICAgICAgICAgICBpZiAobGlzdCkgewogICAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICAgIGxpc3RbaV0uY2FsbChwcm90byk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIF9hcHBseUxpc3RlbmVycygpIHsKICAgICAgICAgIHN1cGVyLl9hcHBseUxpc3RlbmVycygpOwogICAgICAgICAgY29uc3QgbGlzdCA9IGxpZmVjeWNsZS5saXN0ZW5lcnM7CiAgICAgICAgICBpZiAobGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBsaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgY29uc3QgbGlzdGVuZXJzID0gbGlzdFtpXTsKICAgICAgICAgICAgICBpZiAobGlzdGVuZXJzKSB7CiAgICAgICAgICAgICAgICBmb3IgKGxldCBsIGluIGxpc3RlbmVycykgewogICAgICAgICAgICAgICAgICB0aGlzLl9hZGRNZXRob2RFdmVudExpc3RlbmVyVG9Ob2RlKHRoaXMsIGwsIGxpc3RlbmVyc1tsXSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvLyBub3RlOiBleGNlcHRpb24gdG8gInN1cGVyIHRoZW4gbWUiIHJ1bGU7CiAgICAgICAgLy8gZG8gd29yayBiZWZvcmUgY2FsbGluZyBzdXBlciBzbyB0aGF0IHN1cGVyIGF0dHJpYnV0ZXMKICAgICAgICAvLyBvbmx5IGFwcGx5IGlmIG5vdCBhbHJlYWR5IHNldC4KICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIF9lbnN1cmVBdHRyaWJ1dGVzKCkgewogICAgICAgICAgY29uc3QgbGlzdCA9IGxpZmVjeWNsZS5ob3N0QXR0cmlidXRlczsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9bGlzdC5sZW5ndGgtMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICAgICAgICBjb25zdCBob3N0QXR0cmlidXRlcyA9IGxpc3RbaV07CiAgICAgICAgICAgICAgZm9yIChsZXQgYSBpbiBob3N0QXR0cmlidXRlcykgewogICAgICAgICAgICAgICAgICB0aGlzLl9lbnN1cmVBdHRyaWJ1dGUoYSwgaG9zdEF0dHJpYnV0ZXNbYV0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBzdXBlci5fZW5zdXJlQXR0cmlidXRlcygpOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICByZWFkeSgpIHsKICAgICAgICAgIHN1cGVyLnJlYWR5KCk7CiAgICAgICAgICBsZXQgbGlzdCA9IGxpZmVjeWNsZS5yZWFkeTsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsaXN0W2ldLmNhbGwodGhpcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgYXR0YWNoZWQoKSB7CiAgICAgICAgICBzdXBlci5hdHRhY2hlZCgpOwogICAgICAgICAgbGV0IGxpc3QgPSBsaWZlY3ljbGUuYXR0YWNoZWQ7CiAgICAgICAgICBpZiAobGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBsaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgbGlzdFtpXS5jYWxsKHRoaXMpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIGRldGFjaGVkKCkgewogICAgICAgICAgc3VwZXIuZGV0YWNoZWQoKTsKICAgICAgICAgIGxldCBsaXN0ID0gbGlmZWN5Y2xlLmRldGFjaGVkOwogICAgICAgICAgaWYgKGxp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Ly8gb3Igd2hlbiB0aGVyZSBpc24ndCBpbnN0YW5jZSBwcm9wcy4KICAgICAgICBsZXQgb3B0aW9ucyA9IHRoaXMuX190ZW1wbGF0aXplT3B0aW9uczsKICAgICAgICBpZiAoKHByb3BzICYmIG9wdGlvbnMuaW5zdGFuY2VQcm9wcykgfHwgIW9wdGlvbnMuaW5zdGFuY2VQcm9wcykgewogICAgICAgICAgdGhpcy5fZW5hYmxlUHJvcGVydGllcygpOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogQ29uZmlndXJlIHRoZSBnaXZlbiBgcHJvcHNgIGJ5IGNhbGxpbmcgYF9zZXRQZW5kaW5nUHJvcGVydHlgLiBBbHNvCiAgICAgICAqIHNldHMgYW55IHByb3BlcnRpZXMgc3RvcmVkIGluIGBfX2hvc3RQcm9wc2AuCiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBwcm9wcyBPYmplY3Qgb2YgcHJvcGVydHkgbmFtZS12YWx1ZSBwYWlycyB0byBzZXQuCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfY29uZmlndXJlUHJvcGVydGllcyhwcm9wcykgewogICAgICAgIGxldCBvcHRpb25zID0gdGhpcy5fX3RlbXBsYXRpemVPcHRpb25zOwogICAgICAgIGlmIChvcHRpb25zLmZvcndhcmRIb3N0UHJvcCkgewogICAgICAgICAgZm9yIChsZXQgaHByb3AgaW4gdGhpcy5fX2hvc3RQcm9wcykgewogICAgICAgICAgICB0aGlzLl9zZXRQZW5kaW5nUHJvcGVydHkoaHByb3AsIHRoaXMuX19kYXRhSG9zdFsnX2hvc3RfJyArIGhwcm9wXSk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIC8vIEFueSBpbnN0YW5jZSBwcm9wcyBwYXNzZWQgaW4gdGhlIGNvbnN0cnVjdG9yIHdpbGwgb3ZlcndyaXRlIGhvc3QgcHJvcHM7CiAgICAgICAgLy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WRlKSB7CiAgICAgICAgICAgICAgICBuLl9fcG9seW1lclRleHRDb250ZW50X18gPSBuLnRleHRDb250ZW50OwogICAgICAgICAgICAgICAgbi50ZXh0Q29udGVudCA9ICcnOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBuLnRleHRDb250ZW50ID0gbi5fX3BvbHltZXJUZXh0Q29udGVudF9fOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgLy8gcmVtb3ZlIGFuZCByZXBsYWNlIHNsb3QKICAgICAgICAgICAgfSBlbHNlIGlmIChuLmxvY2FsTmFtZSA9PT0gJ3Nsb3QnKSB7CiAgICAgICAgICAgICAgaWYgKGhpZGUpIHsKICAgICAgICAgICAgICAgIG4uX19wb2x5bWVyUmVwbGFjZWRfXyA9IGRvY3VtZW50LmNyZWF0ZUNvbW1lbnQoJ2hpZGRlbi1zbG90Jyk7CiAgICAgICAgICAgICAgICBuLnBhcmVudE5vZGUucmVwbGFjZUNoaWxkKG4uX19wb2x5bWVyUmVwbGFjZWRfXywgbik7CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIGNvbnN0IHJlcGxhY2UgPSBuLl9fcG9seW1lclJlcGxhY2VkX187CiAgICAgICAgICAgICAgICBpZiAocmVwbGFjZSkgewogICAgICAgICAgICAgICAgICByZXBsYWNlLnBhcmVudE5vZGUucmVwbGFjZUNoaWxkKG4sIHJlcGxhY2UpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgZWxzZSBpZiAobi5zdHlsZSkgewogICAgICAgICAgICAgIGlmIChoaWRlKSB7CiAgICAgICAgICAgICAgICBuLl9fcG9seW1lckRpc3BsYXlfXyA9IG4uc3R5bGUuZGlzcGxheTsKICAgICAgICAgICAgICAgIG4uc3R5bGUuZGlzcGxheSA9ICdub25lJzsKICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgbi5zdHlsZS5kaXNwbGF5ID0gbi5fX3BvbHltZXJEaXNwbGF5X187CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBuLl9faGlkZVRlbXBsYXRlQ2hpbGRyZW5fXyA9IGhpZGU7CiAgICAgICAgICBpZiAobi5fc2hvd0hpZGVDaGlsZHJlbikgewogICAgICAgICAgICBuLl9zaG93SGlkZUNoaWxkcmVuKGhpZGUpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogT3ZlcnJpZGVzIGRlZmF1bHQgcHJvcGVydHktZWZmZWN0cyBpbXBsZW1lbnRhdGlvbiB0byBpbnRlcmNlcHQKICAgICAgICogdGV4dENvbnRlbnQgYmluZGluZ3Mgd2hpbGUgY2hpbGRyZW4gYXJlICJoaWRkZW4iIGFuZCBjYWNoZSBpbgogICAgICAgKiBwcml2YXRlIHN0b3JhZ2UgZm9yIGxhdGVyIHJldHJpZXZhbC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHshTm9kZX0gbm9kZSBUaGUgbm9kZSB0byBzZXQgYSBwcm9wZXJ0eSBvbgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcCBUaGUgcHJvcGVydHkgdG8gc2V0CiAgICAgICAqIEBwYXJhbSB7Kn0gdmFsdWUgVGhlIHZhbHVlIHRvIHNldAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAqLwogICAgICBfc2V0VW5tYW5hZ2VkUHJvcGVydHlUb05vZGUobm9kZSwgcHJvcCwgdmFsdWUpIHsKICAgICAgICBpZiAobm9kZS5fX2hpZGVUZW1wbGF0ZUNoaWxkcmVuX18gJiYKICAgICAgICAgICAgbm9kZS5ub2RlVHlwZSA9PSBOb2RlLlRFWFRfTk9ERSAmJiBwcm9wID09ICd0ZXh0Q29udGVudCcpIHsKICAgICAgICAgIG5vZGUuX19wb2x5bWVyVGV4dENvbnRlbn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gICAgaWYgKChtb2RlbCA9IG5vZGUuX190ZW1wbGF0aXplSW5zdGFuY2UpKSB7CiAgICAgICAgICAgIC8vIEZvdW5kIGFuIGVsZW1lbnQgc3RhbXBlZCBieSBhbm90aGVyIHRlbXBsYXRlOyBrZWVwIHdhbGtpbmcgdXAKICAgICAgICAgICAgLy8gZnJvbSBpdHMgX19kYXRhSG9zdAogICAgICAgICAgICBpZiAobW9kZWwuX19kYXRhSG9zdCAhPSB0ZW1wbGF0ZSkgewogICAgICAgICAgICAgIG5vZGUgPSBtb2RlbC5fX2RhdGFIb3N0OwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHJldHVybiBtb2RlbDsKICAgICAgICAgICAgfQogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gU3RpbGwgaW4gYSB0ZW1wbGF0ZSBzY29wZSwga2VlcCBnb2luZyB1cCB1bnRpbAogICAgICAgICAgICAvLyBhIF9fdGVtcGxhdGl6ZUluc3RhbmNlIGlzIGZvdW5kCiAgICAgICAgICAgIG5vZGUgPSBub2RlLnBhcmVudE5vZGU7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBudWxsOwogICAgICB9CiAgICB9OwoKICAgIFBvbHltZXIuVGVtcGxhdGVJbnN0YW5jZUJhc2UgPSBUZW1wbGF0ZUluc3RhbmNlQmFzZTsKCiAgfSkoKTsKCgoKICAoZnVuY3Rpb24oKSB7CiAgICAndXNlIHN0cmljdCc7CgogICAgbGV0IFRlbXBsYXRlSW5zdGFuY2VCYXNlID0gUG9seW1lci5UZW1wbGF0ZUluc3RhbmNlQmFzZTsgLy8gZXNsaW50LWRpc2FibGUtbGluZQoKICAgIC8qKgogICAgICogQHR5cGVkZWYge3sKICAgICAqICAgX3RlbXBsYXRpemVyVGVtcGxhdGU6IEhUTUxUZW1wbGF0ZUVsZW1lbnQsCiAgICAgKiAgIF9wYXJlbnRNb2RlbDogYm9vbGVhbiwKICAgICAqICAgX2luc3Rh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XRlJykpOwogICAgICAgICAgICAgIGlmICh0ZW1wbGF0ZSkgewogICAgICAgICAgICAgICAgb2JzZXJ2ZXIuZGlzY29ubmVjdCgpOwogICAgICAgICAgICAgICAgdGhpcy5yZW5kZXIoKTsKICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdkb20tYmluZCByZXF1aXJlcyBhIDx0ZW1wbGF0ZT4gY2hpbGQnKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBvYnNlcnZlci5vYnNlcnZlKHRoaXMsIHtjaGlsZExpc3Q6IHRydWV9KTsKICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgfQogICAgICAgICAgdGhpcy5yb290ID0gdGhpcy5fc3RhbXBUZW1wbGF0ZSh0ZW1wbGF0ZSk7CiAgICAgICAgICB0aGlzLiQgPSB0aGlzLnJvb3QuJDsKICAgICAgICAgIHRoaXMuX19jaGlsZHJlbiA9IFtdOwogICAgICAgICAgZm9yIChsZXQgbj10aGlzLnJvb3QuZmlyc3RDaGlsZDsgbjsgbj1uLm5leHRTaWJsaW5nKSB7CiAgICAgICAgICAgIHRoaXMuX19jaGlsZHJlblt0aGlzLl9fY2hpbGRyZW4ubGVuZ3RoXSA9IG47CiAgICAgICAgICB9CiAgICAgICAgICB0aGlzLl9lbmFibGVQcm9wZXJ0aWVzKCk7CiAgICAgICAgfQogICAgICAgIHRoaXMuX19pbnNlcnRDaGlsZHJlbigpOwogICAgICAgIHRoaXMuZGlzcGF0Y2hFdmVudChuZXcgQ3VzdG9tRXZlbnQoJ2RvbS1jaGFuZ2UnLCB7CiAgICAgICAgICBidWJibGVzOiB0cnVlLAogICAgICAgICAgY29tcG9zZWQ6IHRydWUKICAgICAgICB9KSk7CiAgICAgIH0KCiAgICB9CgogICAgY3VzdG9tRWxlbWVudHMuZGVmaW5lKCdkb20tYmluZCcsIERvbUJpbmQpOwoKICAgIC8qKiBAY29uc3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HVybiB0ZW1wbGF0ZTsKICAgIH07CgogICAgLyoqCiAgICAgKiBBbiBodG1sIGxpdGVyYWwgdGFnIHRoYXQgY2FuIGJlIHVzZWQgd2l0aCBgUG9seW1lci5odG1sYCB0byBjb21wb3NlLgogICAgICogYSBsaXRlcmFsIHN0cmluZy4KICAgICAqCiAgICAgKiBFeGFtcGxlOgogICAgICoKICAgICAqICAgICBzdGF0aWMgZ2V0IHRlbXBsYXRlKCkgewogICAgICogICAgICAgcmV0dXJuIFBvbHltZXIuaHRtbGAKICAgICAqICAgICAgICAgPHN0eWxlPgogICAgICogICAgICAgICAgIDpob3N0IHsgZGlzcGxheTogYmxvY2s7IH0KICAgICAqICAgICAgICAgICAke3N0eWxlVGVtcGxhdGV9CiAgICAgKiAgICAgICAgIDwvc3R5bGU+CiAgICAgKiAgICAgICAgIDxkaXYgY2xhc3M9InNoYWRvd2VkIj4ke3N0YXRpY1ZhbHVlfTwvZGl2PgogICAgICogICAgICAgICAke3N1cGVyLnRlbXBsYXRlfQogICAgICogICAgICAgYDsKICAgICAqICAgICB9CiAgICAgKiAgICAgc3RhdGljIGdldCBzdHlsZVRlbXBsYXRlKCkgeyByZXR1cm4gUG9seW1lci5odG1sTGl0ZXJhbGAuc2hhZG93ZWQgeyBiYWNrZ3JvdW5kOiBncmF5OyB9YDsgfQogICAgICoKICAgICAqIEBtZW1iZXJvZiBQb2x5bWVyCiAgICAgKiBAcGFyYW0geyFJVGVtcGxhdGVBcnJheX0gc3RyaW5ncyBDb25zdGFudCBwYXJ0cyBvZiB0YWdnZWQgdGVtcGxhdGUgbGl0ZXJhbAogICAgICogQHBhcmFtIHsuLi4qfSB2YWx1ZXMgVmFyaWFibGUgcGFydHMgb2YgdGFnZ2VkIHRlbXBsYXRlIGxpdGVyYWwKICAgICAqIEByZXR1cm4geyFMaXRlcmFsU3RyaW5nfSBDb25zdHJ1Y3RlZCBsaXRlcmFsIHN0cmluZwogICAgICovCiAgICBQb2x5bWVyLmh0bWxMaXR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ZXJgIChpZiBhbnkpIGhhcyBiZWVuIGFwcGxpZWQuCiAgICAgICAgICogSWYgImNodW5raW5nIG1vZGUiIGlzIGVuYWJsZWQsIGByZW5kZXJlZEl0ZW1Db3VudGAgaXMgdXBkYXRlZCBlYWNoIHRpbWUgYQogICAgICAgICAqIHNldCBvZiB0ZW1wbGF0ZSBpbnN0YW5jZXMgaXMgcmVuZGVyZWQuCiAgICAgICAgICoKICAgICAgICAgKi8KICAgICAgICByZW5kZXJlZEl0ZW1Db3VudDogewogICAgICAgICAgdHlwZTogTnVtYmVyLAogICAgICAgICAgbm90aWZ5OiB0cnVlLAogICAgICAgICAgcmVhZE9ubHk6IHRydWUKICAgICAgICB9LAoKICAgICAgICAvKioKICAgICAgICAgKiBEZWZpbmVzIGFuIGluaXRpYWwgY291bnQgb2YgdGVtcGxhdGUgaW5zdGFuY2VzIHRvIHJlbmRlciBhZnRlciBzZXR0aW5nCiAgICAgICAgICogdGhlIGBpdGVtc2AgYXJyYXksIGJlZm9yZSB0aGUgbmV4dCBwYWludCwgYW5kIHB1dHMgdGhlIGBkb20tcmVwZWF0YAogICAgICAgICAqIGludG8gImNodW5raW5nIG1vZGUiLiAgVGhlIHJlbWFpbmluZyBpdGVtcyB3aWxsIGJlIGNyZWF0ZWQgYW5kIHJlbmRlcmVkCiAgICAgICAgICogaW5jcmVtZW50YWxseSBhdCBlYWNoIGFuaW1hdGlvbiBmcmFtZSB0aGVyb2YgdW50aWwgYWxsIGluc3RhbmNlcyBoYXZlCiAgICAgICAgICogYmVlbiByZW5kZXJlZC4KICAgICAgICAgKi8KICAgICAgICBpbml0aWFsQ291bnQ6IHsKICAgICAgICAgIHR5cGU6IE51bWJlciwKICAgICAgICAgIG9ic2VydmVyOiAnX19pbml0aWFsaXplQ2h1bmtpbmcnCiAgICAgICAgfSwKCiAgICAgICAgLyoqCiAgICAgICAgICogV2hlbiBgaW5pdGlhbENvdW50YCBpcyB1c2VkLCB0aGlzIHByb3BlcnR5IGRlZmluZ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W1lOiB7CiAgICAgICAgICB0eXBlOiBOdW1iZXIsCiAgICAgICAgICBjb21wdXRlZDogJ19fY29tcHV0ZUZyYW1lVGltZSh0YXJnZXRGcmFtZXJhdGUpJwogICAgICAgIH0KCiAgICAgIH07CgogICAgfQoKICAgIHN0YXRpYyBnZXQgb2JzZXJ2ZXJzKCkgewogICAgICByZXR1cm4gWyAnX19pdGVtc0NoYW5nZWQoaXRlbXMuKiknIF07CiAgICB9CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgIHN1cGVyKCk7CiAgICAgIHRoaXMuX19pbnN0YW5jZXMgPSBbXTsKICAgICAgdGhpcy5fX2xpbWl0ID0gSW5maW5pdHk7CiAgICAgIHRoaXMuX19wb29sID0gW107CiAgICAgIHRoaXMuX19yZW5kZXJEZWJvdW5jZXIgPSBudWxsOwogICAgICB0aGlzLl9faXRlbXNJZHhUb0luc3RJZHggPSB7fTsKICAgICAgdGhpcy5fX2NodW5rQ291bnQgPSBudWxsOwogICAgICB0aGlzLl9fbGFzdENodW5rVGltZSA9IG51bGw7CiAgICAgIHRoaXMuX19zb3J0Rm4gPSBudWxsOwogICAgICB0aGlzLl9fZmlsdGVyRm4gPSBudWxsOwogICAgICB0aGlzLl9fb2JzZXJ2ZVBhdGhzID0gbnVsbDsKICAgICAgdGhpcy5fX2N0b3IgPSBudWxsOwogICAgICB0aGlzLl9faXNEZXRhY2hlZCA9IHRydWU7CiAgICAgIHRoaXMudGVtcGxhdGUgPSBudWxsOwogICAgfQoKICAgIC8qKgogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgZGlzY29ubmVjdGVkQ2FsbGJhY2soKSB7CiAgICAgIHN1cGVyLmRpc2Nvbm5lY3RlZENhbGxiYWNrKCk7CiAgICAgIHRoaXMuX19pc0RldGFjaGVkID0gdHJ1ZTsKICAgICAgZm9yIChsZXQgaT0wOyBpPHRoaXMuX19pbnN0YW5jZXMubGVuZ3RoOyBpKyspIHsKICAgICAgICB0aGlzLl9fZG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RNb2RlbDogdHJ1ZSwKICAgICAgICAgIGluc3RhbmNlUHJvcHM6IGluc3RhbmNlUHJvcHMsCiAgICAgICAgICAvKioKICAgICAgICAgICAqIEB0aGlzIHt0aGlzfQogICAgICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3AgUHJvcGVydHkgdG8gc2V0CiAgICAgICAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFZhbHVlIHRvIHNldCBwcm9wZXJ0eSB0bwogICAgICAgICAgICovCiAgICAgICAgICBmb3J3YXJkSG9zdFByb3A6IGZ1bmN0aW9uKHByb3AsIHZhbHVlKSB7CiAgICAgICAgICAgIGxldCBpJCA9IHRoaXMuX19pbnN0YW5jZXM7CiAgICAgICAgICAgIGZvciAobGV0IGk9MCwgaW5zdDsgKGk8aSQubGVuZ3RoKSAmJiAoaW5zdD1pJFtpXSk7IGkrKykgewogICAgICAgICAgICAgIGluc3QuZm9yd2FyZEhvc3RQcm9wKHByb3AsIHZhbHVlKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSwKICAgICAgICAgIC8qKgogICAgICAgICAgICogQHRoaXMge3RoaXN9CiAgICAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gaW5zdCBJbnN0YW5jZSB0byBub3RpZnkKICAgICAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wIFByb3BlcnR5IHRvIG5vdGlmeQogICAgICAgICAgICogQHBhcmFtIHsqfSB2YWx1ZSBWYWx1ZSB0byBub3RpZnkKICAgICAgICAgICAqLwogICAgICAgICAgbm90aWZ5SW5zdGFuY2VQcm9wOiBmdW5jdGlvbihpbnN0LCBwcm9wLCB2YWx1ZSkgewogICAgICAgICAgICBpZiAoUG9seW1lci5QYXRoLm1hdGNoZXModGhpcy5hcywgcHJvcCkpIHsKICAgICAgICAgICAgICBsZXQgaWR4ID0gaW5zdFt0aGlzLml0ZW1zSW5kZXhBc107CiAgICAgICAgICAgICAgaWYgKHByb3AgPT0gdGhpcy5hcykgewogICAgICA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GVtcGxhdGUgKGJ5CiAgICAgICAgICogZGVmYXVsdCwgcmVuZGVyaW5nIG9jY3VycyBsYXppbHkpLiAgVG8gZm9yY2UgaW1tZWRpYXRlIHJlbmRlcmluZywgY2FsbAogICAgICAgICAqIGByZW5kZXJgLgogICAgICAgICAqCiAgICAgICAgICogQGV2ZW50IGRvbS1jaGFuZ2UKICAgICAgICAgKi8KCiAgICAgICAgLyoqCiAgICAgICAgICogQSBib29sZWFuIGluZGljYXRpbmcgd2hldGhlciB0aGlzIHRlbXBsYXRlIHNob3VsZCBzdGFtcC4KICAgICAgICAgKi8KICAgICAgICBpZjogewogICAgICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgICAgIG9ic2VydmVyOiAnX19kZWJvdW5jZVJlbmRlcicKICAgICAgICB9LAoKICAgICAgICAvKioKICAgICAgICAgKiBXaGVuIHRydWUsIGVsZW1lbnRzIHdpbGwgYmUgcmVtb3ZlZCBmcm9tIERPTSBhbmQgZGlzY2FyZGVkIHdoZW4gYGlmYAogICAgICAgICAqIGJlY29tZXMgZmFsc2UgYW5kIHJlLWNyZWF0ZWQgYW5kIGFkZGVkIGJhY2sgdG8gdGhlIERPTSB3aGVuIGBpZmAKICAgICAgICAgKiBiZWNvbWVzIHRydWUuICBCeSBkZWZhdWx0LCBzdGFtcGVkIGVsZW1lbnRzIHdpbGwgYmUgaGlkZGVuIGJ1dCBsZWZ0CiAgICAgICAgICogaW4gdGhlIERPTSB3aGVuIGBpZmAgYmVjb21lcyBmYWxzZSwgd2hpY2ggaXMgZ2VuZXJhbGx5IHJlc3VsdHMKICAgICAgICAgKiBpbiBiZXR0ZXIgcGVyZm9ybWFuY2UuCiAgICAgICAgICovCiAgICAgICAgcmVzdGFtcDogewogICAgICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgICAgIG9ic2VydmVyOiAnX19kZWJvdW5jZVJlbmRlcicKICAgICAgICB9CgogICAgICB9OwoKICAgIH0KCiAgICBjb25zdHJ1Y3RvcigpIHsK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bnR9ICovKHRoaXMucXVlcnlTZWxlY3RvcigndGVtcGxhdGUnKSk7CiAgICAgICAgICBpZiAoIXRlbXBsYXRlKSB7CiAgICAgICAgICAgIC8vIFdhaXQgdW50aWwgY2hpbGRMaXN0IGNoYW5nZXMgYW5kIHRlbXBsYXRlIHNob3VsZCBiZSB0aGVyZSBieSB0aGVuCiAgICAgICAgICAgIGxldCBvYnNlcnZlciA9IG5ldyBNdXRhdGlvbk9ic2VydmVyKCgpID0+IHsKICAgICAgICAgICAgICBpZiAodGhpcy5xdWVyeVNlbGVjdG9yKCd0ZW1wbGF0ZScpKSB7CiAgICAgICAgICAgICAgICBvYnNlcnZlci5kaXNjb25uZWN0KCk7CiAgICAgICAgICAgICAgICB0aGlzLl9fcmVuZGVyKCk7CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignZG9tLWlmIHJlcXVpcmVzIGEgPHRlbXBsYXRlPiBjaGlsZCcpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIG9ic2VydmVyLm9ic2VydmUodGhpcywge2NoaWxkTGlzdDogdHJ1ZX0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICB9CiAgICAgICAgICB0aGlzLl9fY3RvciA9IFBvbHltZXIuVGVtcGxhdGl6ZS50ZW1wbGF0aXplKHRlbXBsYXRlLCB0aGlzLCB7CiAgICAgICAgICAgIC8vIGRvbS1pZiB0ZW1wbGF0aXplciBpbnN0YW5jZXMgcmVxdWlyZSBgbXV0YWJsZTogdHJ1ZWAsIGFzCiAgICAgICAgICAgIC8vIGBfX3N5bmNIb3N0UHJvcGVydGllc2AgcmVsaWVzIG9uIHRoYXQgYmVoYXZpb3IgdG8gc3luYyBvYmplY3RzCiAgICAgICAgICAgIG11dGFibGVEYXRhOiB0cnVlLAogICAgICAgICAgICAvKioKICAgICAgICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3AgUHJvcGVydHkgdG8gZm9yd2FyZAogICAgICAgICAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFZhbHVlIG9mIHByb3BlcnR5CiAgICAgICAgICAgICAqIEB0aGlzIHt0aGlzfQogICAgICAgICAgICAgKi8KICAgICAgICAgICAgZm9yd2FyZEhvc3RQcm9wOiBmdW5jdGlvbihwcm9wLCB2YWx1ZSkgewogICAgICAgICAgICAgIGlmICh0aGlzLl9faW5zdGFuY2UpIHsKICAgICAgICAgICAgICAgIGlmICh0aGlzLmlmKSB7CiAgICAgICAgICAgICAgICAgIHRoaXMuX19pbnN0YW5jZS5mb3J3YXJkSG9zdFByb3AocHJvcCwgdmFsdWUpOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgLy8gSWYgd2UgaGF2ZSBhbiBpbnN0YW5jZSBidXQgYXJlIHNxdWVsY2hpbmcgaG9zdCBwcm9wZXJ0eQogICAgICAgICAgICAgICAgICAvLyBmb3J3YXJkaW5nIGR1ZSB0byBpZiBiZWluZyBmYWxzZSwgbm90ZSB0aGUgaW52YWxpZGF0ZWQKICAgICAgICAgICAgICAgICAgLy8gcHJvcGVydGllcyBzbyBgX19zeW5jSG9zdFByb3BlcnRpZXNgIGNhbiBzeW5jIHRoZW0gdGhlIG5leHQKICAgICAgICAgICAgICAgICAgLy8gdGltZSBgaWZgIGJlY29tZXMgdHJ1ZQogICAgICAgICAgICAgICAgICB0aGlzLl9faW52YWxpZFByb3BzID0gdGhpcy5fX2ludmFsaWRQcm9wcyB8fCBPYmplY3QuY3JlYXRlKG51bGwpOwogICAgICAgICAgICAgICAgICB0aGlzLl9faW52YWxpZFByb3BzW1BvbHltZXIuUGF0aC5yb290KHByb3ApXSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgICAgaWYgKCF0aGlzLl9faW5zdGFuY2UpIHsKICAgICAgICAgIHRoaXMuX19pbnN0YW5jZSA9IG5ldyB0aGlzLl9fY3RvcigpOwogICAgICAgICAgcGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUodGhpcy5fX2luc3RhbmNlLnJvb3QsIHRoaXMpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICB0aGlzLl9fc3luY0hvc3RQcm9wZXJ0aWVzKCk7CiAgICAgICAgICBsZXQgYyQgPSB0aGlzLl9faW5zdGFuY2UuY2hpbGRyZW47CiAgICAgICAgICBpZiAoYyQgJiYgYyQubGVuZ3RoKSB7CiAgICAgICAgICAgIC8vIERldGVjdCBjYXNlIHdoZXJlIGRvbS1pZiB3YXMgcmUtYXR0YWNoZWQgaW4gbmV3IHBvc2l0aW9uCiAgICAgICAgICAgIGxldCBsYXN0Q2hpbGQgPSB0aGlzLnByZXZpb3VzU2libGluZzsKICAgICAgICAgICAgaWYgKGxhc3RDaGlsZCAhPT0gYyRbYyQubGVuZ3RoLTFdKSB7CiAgICAgICAgICAgICAgZm9yIChsZXQgaT0wLCBuOyAoaTxjJC5sZW5ndGgpICYmIChuPWMkW2ldKTsgaSsrKSB7CiAgICAgICAgICAgICAgICBwYXJlbnROb2RlLmluc2VydEJlZm9yZShuLCB0aGlzKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgcmV0dXJuIHRydWU7CiAgICB9CgogICAgX19zeW5jSG9zdFByb3BlcnRpZXMoKSB7CiAgICAgIGxldCBwcm9wcyA9IHRoaXMuX19pbnZhbGlkUHJvcHM7CiAgICAgIGlmIChwcm9wcykgewogICAgICAgIGZvciAobGV0IHByb3AgaW4gcHJvcHMpIHsKICAgICAgICAgIHRoaXMuX19pbnN0YW5jZS5fc2V0UGVuZGluZ1Byb3BlcnR5KHByb3AsIHRoaXMuX19kYXRhSG9zdFtwcm9wXSk7CiAgICAgICAgfQogICAgICAgIHRoaXMuX19pbnZhbGlkUHJv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BsZXQgZWxlbWVudEJhc2UgPSBQb2x5bWVyLkVsZW1lbnRNaXhpbihzdXBlckNsYXNzKTsKCiAgICAvKioKICAgICAqIEBwb2x5bWVyCiAgICAgKiBAbWl4aW5DbGFzcwogICAgICogQGltcGxlbWVudHMge1BvbHltZXJfQXJyYXlTZWxlY3Rvck1peGlufQogICAgICogQHVucmVzdHJpY3RlZAogICAgICovCiAgICBjbGFzcyBBcnJheVNlbGVjdG9yTWl4aW4gZXh0ZW5kcyBlbGVtZW50QmFzZSB7CgogICAgICBzdGF0aWMgZ2V0IHByb3BlcnRpZXMoKSB7CgogICAgICAgIHJldHVybiB7CgogICAgICAgICAgLyoqCiAgICAgICAgICAgKiBBbiBhcnJheSBjb250YWluaW5nIGl0ZW1zIGZyb20gd2hpY2ggc2VsZWN0aW9uIHdpbGwgYmUgbWFkZS4KICAgICAgICAgICAqLwogICAgICAgICAgaXRlbXM6IHsKICAgICAgICAgICAgdHlwZTogQXJyYXksCiAgICAgICAgICB9LAoKICAgICAgICAgIC8qKgogICAgICAgICAgICogV2hlbiBgdHJ1ZWAsIG11bHRpcGxlIGl0ZW1zIG1heSBiZSBzZWxlY3RlZCBhdCBvbmNlIChpbiB0aGlzIGNhc2UsCiAgICAgICAgICAgKiBgc2VsZWN0ZWRgIGlzIGFuIGFycmF5IG9mIGN1cnJlbnRseSBzZWxlY3RlZCBpdGVtcykuICBXaGVuIGBmYWxzZWAsCiAgICAgICAgICAgKiBvbmx5IG9uZSBpdGVtIG1heSBiZSBzZWxlY3RlZCBhdCBhIHRpbWUuCiAgICAgICAgICAgKi8KICAgICAgICAgIG11bHRpOiB7CiAgICAgICAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgICAgICAgIHZhbHVlOiBmYWxzZSwKICAgICAgICAgIH0sCgogICAgICAgICAgLyoqCiAgICAgICAgICAgKiBXaGVuIGBtdWx0aWAgaXMgdHJ1ZSwgdGhpcyBpcyBhbiBhcnJheSB0aGF0IGNvbnRhaW5zIGFueSBzZWxlY3RlZC4KICAgICAgICAgICAqIFdoZW4gYG11bHRpYCBpcyBmYWxzZSwgdGhpcyBpcyB0aGUgY3VycmVudGx5IHNlbGVjdGVkIGl0ZW0sIG9yIGBudWxsYAogICAgICAgICAgICogaWYgbm8gaXRlbSBpcyBzZWxlY3RlZC4KICAgICAgICAgICAqIEB0eXBlIHs/KE9iamVjdHxBcnJheTwhT2JqZWN0Pil9CiAgICAgICAgICAgKi8KICAgICAgICAgIHNlbGVjdGVkOiB7CiAgICAgICAgICAgIHR5cGU6IE9iamVjdCwKICAgICAgICAgICAgbm90aWZ5OiB0cnVlCiAgICAgICAgICB9LAoKICAgICAgICAgIC8qKgogICAgICAgICAgICogV2hlbiBgbXVsdGlgIGlzIGZhbHNlLCB0aGlzIGlzIHRoZSBjdXJyZW50bHkgc2VsZWN0ZWQgaXRlbSwgb3IgYG51bGxgCiAgICAgICAgICAgKiBpZiBubyBpdGVtIGlzIHNlbGVjdGVkLgogICAgICAgICAgICogQHR5cGUgez9PYmplY3R9CiAgICAgICAgICAgKi8KICAgICAgICAgIHNlbGVjdGVkSXRlbTogewogICAgICAgICAgICB0eXBlOiBPYmplY3QsCiAgICAgICAgICAgIG5vdGlmeTogdHJ1ZQogICAgICAgICAgfSwKCiAgICAgICAgICAvKioKICAgICAgICAgICAqIFdoZW4gYHRydWVgLCBjYWxsaW5nIGBzZWxlY3RgIG9uIGFuIGl0ZW0gdGhhdCBpcyBhbHJlYWR5IHNlbGVjdGVkCiAgICAgICAgICAgKiB3aWxsIGRlc2VsZWN0IHRoZSBpdGVtLgogICAgICAgICAgICovCiAgICAgICAgICB0b2dnbGU6IHsKICAgICAgICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgICAgICB9CgogICAgICAgIH07CiAgICAgIH0KCiAgICAgIHN0YXRpYyBnZXQgb2JzZXJ2ZXJzKCkgewogICAgICAgIHJldHVybiBbJ19fdXBkYXRlU2VsZWN0aW9uKG11bHRpLCBpdGVtcy4qKSddOwogICAgICB9CgogICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICBzdXBlcigpOwogICAgICAgIHRoaXMuX19sYXN0SXRlbXMgPSBudWxsOwogICAgICAgIHRoaXMuX19sYXN0TXVsdGkgPSBudWxsOwogICAgICAgIHRoaXMuX19zZWxlY3RlZE1hcCA9IG51bGw7CiAgICAgIH0KCiAgICAgIF9fdXBkYXRlU2VsZWN0aW9uKG11bHRpLCBpdGVtc0luZm8pIHsKICAgICAgICBsZXQgcGF0aCA9IGl0ZW1zSW5mby5wYXRoOwogICAgICAgIGlmIChwYXRoID09ICdpdGVtcycpIHsKICAgICAgICAgIC8vIENhc2UgMSAtIGl0ZW1zIGFycmF5IGNoYW5nZWQsIHNvIGRpZmYgYWdhaW5zdCBwcmV2aW91cyBhcnJheSBhbmQKICAgICAgICAgIC8vIGRlc2VsZWN0IGFueSByZW1vdmVkIGl0ZW1zIGFuZCBhZGp1c3Qgc2VsZWN0ZWQgaW5kaWNlcwogICAgICAgICAgbGV0IG5ld0l0ZW1zID0gaXRlbXNJbmZvLmJhc2UgfHwgW107CiAgICAgICAgICBsZXQgbGFzdEl0ZW1zID0gdGhpcy5fX2xhc3RJdGVtczsKICAgICAgICAgIGxldCBsYXN0TXVsdGkgPSB0aGlzLl9fbGFzdE11bHRpOwogICAgICAgICAgaWYgKG11bHRpICE9PSBsYXN0TXVsdGkpIHsKICAgICAgICAgICAgdGhpcy5jbGVhclNlbGVjdGlvbigpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKGxhc3RJdGVtcykgewogICAgICAgICAgICBsZXQgc3BsaWNlcyA9IFBvbHltZXIuQXJyYXlTcGxpY2UuY2FsY3VsYXRlU3BsaWNlcyhuZXdJdGVtcywgbGFzdEl0ZW1zKTsKICAgICAgICAgICAgdGhpcy5fX2FwcGx5U3BsaWNlcyhzcGxpY2VzKTsKICAgICAgICAgIH0KICAgICAgICAgIHRoaXMuX19sYXN0SXRl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FjaCgoaWR4LCBpdGVtKSA9PiB7CiAgICAgICAgICBpZiAoaWR4IDwgMCkgewogICAgICAgICAgICBpZiAodGhpcy5tdWx0aSkgewogICAgICAgICAgICAgIHRoaXMuc3BsaWNlKCdzZWxlY3RlZCcsIHNpZHgsIDEpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWQgPSB0aGlzLnNlbGVjdGVkSXRlbSA9IG51bGw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgc2VsZWN0ZWQuZGVsZXRlKGl0ZW0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgc2lkeCsrOwogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9CgogICAgICBfX3VwZGF0ZUxpbmtzKCkgewogICAgICAgIHRoaXMuX19kYXRhTGlua2VkUGF0aHMgPSB7fTsKICAgICAgICBpZiAodGhpcy5tdWx0aSkgewogICAgICAgICAgbGV0IHNpZHggPSAwOwogICAgICAgICAgdGhpcy5fX3NlbGVjdGVkTWFwLmZvckVhY2goaWR4ID0+IHsKICAgICAgICAgICAgaWYgKGlkeCA+PSAwKSB7CiAgICAgICAgICAgICAgdGhpcy5saW5rUGF0aHMoJ2l0ZW1zLicgKyBpZHgsICdzZWxlY3RlZC4nICsgc2lkeCsrKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX19zZWxlY3RlZE1hcC5mb3JFYWNoKGlkeCA9PiB7CiAgICAgICAgICAgIHRoaXMubGlua1BhdGhzKCdzZWxlY3RlZCcsICdpdGVtcy4nICsgaWR4KTsKICAgICAgICAgICAgdGhpcy5saW5rUGF0aHMoJ3NlbGVjdGVkSXRlbScsICdpdGVtcy4nICsgaWR4KTsKICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENsZWFycyB0aGUgc2VsZWN0aW9uIHN0YXRlLgogIC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VGltZUludGVydmFsLmRheV09Myx1W2YuVGltZUludGVydmFsLndlZWtdPTQsdVtmLlRpbWVJbnRlcnZhbC5tb250aF09NSx1W2YuVGltZUludGVydmFsLnllYXJdPQo2LHUpO2guX0RFRkFVTFRfVElNRV9BWElTX0NPTkZJR1VSQVRJT05TPVtbe2ludGVydmFsOmYuVGltZUludGVydmFsLnNlY29uZCxzdGVwOjEsZm9ybWF0dGVyOnAudGltZSgiJUk6JU06JVMgJXAiKX0se2ludGVydmFsOmYuVGltZUludGVydmFsLmRheSxzdGVwOjEsZm9ybWF0dGVyOnAudGltZSgiJUIgJWUsICVZIil9XSxbe2ludGVydmFsOmYuVGltZUludGVydmFsLnNlY29uZCxzdGVwOjUsZm9ybWF0dGVyOnAudGltZSgiJUk6JU06JVMgJXAiKX0se2ludGVydmFsOmYuVGltZUludGVydmFsLmRheSxzdGVwOjEsZm9ybWF0dGVyOnAudGltZSgiJUIgJWUsICVZIil9XSxbe2ludGVydmFsOmYuVGltZUludGVydmFsLnNlY29uZCxzdGVwOjEwLGZvcm1hdHRlcjpwLnRpbWUoIiVJOiVNOiVTICVwIil9LHtpbnRlcnZhbDpmLlRpbWVJbnRlcnZhbC5kYXksc3RlcDoxLGZvcm1hdHRlcjpwLnRpbWUoIiVCICVlLCAlWSIpfV0sW3tpbnRlcnZhbDpmLlRpbWVJbnRlcnZhbC5zZWNvbmQsc3RlcDoxNSwKZm9ybWF0dGVyOnAudGltZSgiJUk6JU06JVMgJXAiKX0se2ludGVydmFsOmYuVGltZUludGVydmFsLmRheSxzdGVwOjEsZm9ybWF0dGVyOnAudGltZSgiJUIgJWUsICVZIil9XSxbe2ludGVydmFsOmYuVGltZUludGVydmFsLnNlY29uZCxzdGVwOjMwLGZvcm1hdHRlcjpwLnRpbWUoIiVJOiVNOiVTICVwIil9LHtpbnRlcnZhbDpmLlRpbWVJbnRlcnZhbC5kYXksc3RlcDoxLGZvcm1hdHRlcjpwLnRpbWUoIiVCICVlLCAlWSIpfV0s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m5leHQ7aWYoMDw9V2IocixhLHYpKXJldHVybiExO3ZhciB6PXIueD5hLng/ci54PnYueD9yLng6di54OmEueD52Lng/YS54OnYueCxFPXIueT5hLnk/ci55PnYueT9yLnk6di55OmEueT52Lnk/YS55OnYueSxGPVloKHIueDxhLng/ci54PHYueD9yLng6di54OmEueDx2Lng/YS54OnYueCxyLnk8YS55P3IueTx2Lnk/ci55OnYueTphLnk8di55P2EueTp2LnksYyxlLGcpO2M9WWgoeixFLGMsZSxnKTtlPWEucHJldlo7Zm9yKGc9YS5uZXh0WjtlJiZlLno+PUYmJmcmJmcuejw9Yzspe2lmKGUhPT1hLnByZXYmJmUhPT1hLm5leHQmJkxlKHIueCxyLnksYS54LGEueSx2Lngsdi55LGUueCxlLnkpJiYwPD1XYihlLnByZXYsZSxlLm5leHQpKXJldHVybiExO2U9ZS5wcmV2WjtpZihnIT09YS5wcmV2JiZnIT09YS5uZXh0JiZMZShyLngsCnIueSxhLngsYS55LHYueCx2LnksZy54LGcueSkmJjA8PVdiKGcucHJldixnLGcubmV4dCkpcmV0dXJuITE7Zz1nLm5leHRafWZvcig7ZSYmZS56Pj1GOyl7aWYoZSE9PWEucHJldiYmZSE9PWEubmV4dCYmTGUoci54LHIueSxhLngsYS55LHYueCx2LnksZS54LGUueSkmJjA8PVdiKGUucHJldixlLGUubmV4dCkpcmV0dXJuITE7ZT1lLnByZXZafWZvcig7ZyYmZy56PD1jOyl7aWYoZyE9PWEucHJldiYmZyE9PWEubmV4dCYmTGUoci54LHIueSxhLngsYS55LHYueCx2LnksZy54LGcueSkmJjA8PVdiKGcucHJldixnLGcubmV4dCkpcmV0dXJuITE7Zz1nLm5leHRafXJldHVybiEwfWZ1bmN0aW9uIGFtKGEsYyxlKXt2YXIgZz1hO2Rve3ZhciByPWcucHJldix2PWcubmV4dC5uZXh0OyFUZChyLHYpJiZJaihyLGcsZy5uZXh0LHYpJiZRZihyLHYpJiZRZih2LHIpJiYoYy5wdXNoKHIuaS9lKSxjLn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52YWx1ZT1uZS5nZXRMaW1pdCgpfSxfcGFnaW5hdGlvbkxpbWl0VmFsaWRhdGUoYil7Yi50YXJnZXQudmFsaWRhdGUoKX0sX3BhZ2luYXRpb25MaW1pdENoYW5nZWQoYil7Yj1OdW1iZXIucGFyc2VJbnQoYi50YXJnZXQudmFsdWUsMTApO2I9PT0rYiYmMDxiJiZuZS5zZXRMaW1pdChiKX19KTsK", "ok": true, "headers": [["content-type", "application/javascript; charset=utf-8"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/environment": {"data": "eyJkYXRhX2xvY2F0aW9uIjogImxvZ3MvZml0IiwgIndpbmRvd190aXRsZSI6ICIifQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugins_listing": {"data": "eyJzY2FsYXJzIjogeyJkaXNhYmxlX3JlbG9hZCI6IGZhbHNlLCAiZW5hYmxlZCI6IHRydWUsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJzY2FsYXJzIiwgImxvYWRpbmdfbWVjaGFuaXNtIjogeyJ0eXBlIjogIkNVU1RPTV9FTEVNRU5UIiwgImVsZW1lbnRfbmFtZSI6ICJ0Zi1zY2FsYXItZGFzaGJvYXJkIn19LCAiY3VzdG9tX3NjYWxhcnMiOiB7ImRpc2FibGVfcmVsb2FkIjogZmFsc2UsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJDdXN0b20gU2NhbGFycyIsICJsb2FkaW5nX21lY2hhbmlzbSI6IHsidHlwZSI6ICJDVVNUT01fRUxFTUVOVCIsICJlbGVtZW50X25hbWUiOiAidGYtY3VzdG9tLXNjYWxhci1kYXNoYm9hcmQifX0sICJpbWFnZXMiOiB7ImRpc2FibGVfcmVsb2FkIjogZmFsc2UsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJpbWFn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IGZhbHNlLCAiZW5hYmxlZCI6IGZhbHNlLCAicmVtb3ZlX2RvbSI6IGZhbHNlLCAidGFiX25hbWUiOiAiV2hhdC1JZiBUb29sIiwgImxvYWRpbmdfbWVjaGFuaXNtIjogeyJ0eXBlIjogIklGUkFNRSIsICJtb2R1bGVfcGF0aCI6ICIvZGF0YS9wbHVnaW4vd2hhdGlmL2luZGV4LmpzIn19fQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/runs": {"data": "WyIyMDIwMDUxOC0wNDUzMjkvdHJhaW4iXQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/font-roboto/RxZJdnzeo3R5zSexge8UUZBw1xU1rKptJj_0jans920.woff2": {"data": "d09GMgABAAAAACokAA4AAAAAUkQAACnNAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmXocg0oGYACGTBEMCu1A1wwLg14AATYCJAOHNgQgBYMAByAbO0QF3Bhn2DiAgX12b1EEGwcBhTGLomxQFmT/lwnmGE77wayn0NBAJAPXITeLlQAVKYYKjM1mpr7CgS0HNgpkY1bqRLvLsXy3dA8XPXqvM/yN+w2v2FOlAb85QmOf5P7Az633/wJaSkUwMImTqgk4GDAic6S4MSrGqFakDCocigoYRBqEHnCIYBIGGExRT1Qeqv3690x3z90AwCasSP6ngswqFUVYHrB8VBQAKcYder52r1wzByMHJRZ//0+nNV9g+H/GsveOK0AqSpwZGZI47CReYMFvJOfQ2hTNUVES1lvdXXeyFKh29/XX4ACRY/9vTgMuqbMdO2B5UFAD4VG4vRkzpRE/HAS4Jss5uTZKgIn5b///mp923r+ZD/x22f0pcYRbsj0ne84XpsZN7mQyee9lwgszWcwvZJLFD4WkECjkFyHriuAA87NMWVUCV9VTC6S6tsdX+ApZK4nU+gqn6ipcefja71ffCTv/vpktBbH4Q8OmUzIhiS6SSKLxDYn4I3iKlCraxSKRmLCxMhnQLaUZLPeL70z9PLvdGe4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ZxjzZymZTZ8QGj8RAxo2ShcMjb9pOU86KrQLkSLnRmOFGDjONFpx1CXp+s6dvOVx4h3IVL7nbxFUagep8f8S7NVocxKxEfnWDR6/hXkQ87T9Z9YNLZnCf9Dlmsfx8zbHCJMebeqYquSWXCc/YpjXvmnpUiazbSnKTQegpCAFh2s9hSjah52vufYbz9A+ryVFgrtCbZYzt0mfeGYLrgbJalzUNMqomgVWMVFks67y0EFM46+Y3I3DNNWVxTUwuiOvSaiYFqW2Ab7tDuU1RShGhKY6YnJTioazeKCeihEYwu6wmG9tUK49HpautZqJ1h+zsKPQcWAqIKVEnqsSSmJtqnhheK9M0WhgtmepO47uVyu7QWpqtDIeIjQmvctt4GOq3VGnMpi5Rs9OaD+OCoIJ9ijAlxEZ3q8K2cSvUZp3SmC0KHW3jbeojAD4qtIcFXFQPgB+g0B3g59viFAADqeUBeIDyWIQYj2NR/GIqMalKLI7FOYHJ8JDbG+VnZwxJhEixogQLFIRKghIFiqMigSxCBQ3lf2Jj4XzJMV2HhIZtGOJsxPx3x1+U6Iz5JTk2Ivg0hJqUYJ7IBqMJo7HA0wrlnUoclChnBYvwhxO5lcrUnXqV0epC08uiW50qEoH8CHRHjrfInPkG3P3JiRAlkIUK83VE+Guys6hlxhiJAQu2q5B9cEhhYPBIf8/JTwAA", "ok": true, "headers": [["content-type", "font/woff2"]], "status": 200, "status_text": ""}, "https://localhost:6006/font-roboto/oMMgfZMQthOryQo9n22dcuvvDin1pK8aKteLpeZ5c0A.woff2": {"data": "d09GMgABAAAAACn8AA4AAAAAUjgAACmjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmUAcg0oGYACGTBEMCu1810YLg14AATYCJAOHNgQgBYJ0ByAbL0RFB2LYOGCA7DduwB2DjQOQz3hJ9n+ZwI0hWB/YxYSYMBRSFENBsWqrAkWbJBHpUKamYBECLd7YUy2OVYvlKX1dMf05+T/7LtU4wMKUW3v6cz1MLF0FGyHJLEG01r/VMHufgpZJIoGKBHQM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Tzfts3QMAAAA=", "ok": true, "headers": [["content-type", "font/woff2"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/experiments": {"data": "W10=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/tags": {"data": "eyIyMDIwMDUxOC0wNDUzMjkvdHJhaW4iOiB7ImVwb2NoX2xvc3MiOiB7ImRpc3BsYXlOYW1lIjogImVwb2NoX2xvc3MiLCAiZGVzY3JpcHRpb24iOiAiIn0sICJlcG9jaF9hY2N1cmFjeSI6IHsiZGlzcGxheU5hbWUiOiAiZXBvY2hfYWNjdXJhY3kiLCAiZGVzY3JpcHRpb24iOiAiIn19fQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/scalars?tag=epoch_accuracy&run=20200518-045329%2Ftrain": {"data": "W1sxNTg5Nzc3NjEwLjI3MDkyMiwgMCwgMC4xODEyMDgwNTkxOTE3MDM4XSwgWzE1ODk3Nzc2MTAuMjg4NjM1LCAxLCAwLjE2Nzc4NTI0MjE5OTg5Nzc3XSwgWzE1ODk3Nzc2MTAuMzA2NDgzLCAyLCAwLjE2Nzc4NTI0MjE5OTg5Nzc3XSwgWzE1ODk3Nzc2MTAuMzIyNzUsIDMsIDAuMTc0NDk2NjUwNjk1ODAwNzhdLCBbMTU4OTc3NzYxMC4zNDAwMzcsIDQsIDAuMTk0NjMwODc2MTgzNTA5ODNdLCBbMTU4OTc3NzYxMC4zNTg5NzEsIDUsIDAuMjM0ODk5MzI3MTU4OTI3OTJdLCBbMTU4OTc3NzYxMC4zNzQ2NjIsIDYsIDAuMjAxMzQyMjg0Njc5NDEyODRdLCBbMTU4OTc3NzYxMC4zOTQwOTgsIDcsIDAuMTg3OTE5NDY3Njg3NjA2OF0sIFsxNTg5Nzc3NjEwLjQxMTA4NCwgOCwgMC4yNDgzMjIxNDQxNTA3MzM5NV0sIFsxNTg5Nzc3NjEwLjQyODkwNiwg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MiwgNDkxLCAwLjQyMjgxODc3OTk0NTM3MzU0XSwgWzE1ODk3Nzc2MjAuMTc2NzMzLCA0OTIsIDAuMzgyNTUwMzI4OTY5OTU1NDRdLCBbMTU4OTc3NzYyMC4xOTYzMSwgNDkzLCAwLjM4MjU1MDMyODk2OTk1NTQ0XSwgWzE1ODk3Nzc2MjAuMjE3MjkyLCA0OTQsIDAuNDQyOTUzMDIwMzM0MjQzOF0sIFsxNTg5Nzc3NjIwLjIzNzY2LCA0OTUsIDAuNDE2MTA3Mzg2MzUwNjMxN10sIFsxNTg5Nzc3NjIwLjI1OTMzMywgNDk2LCAwLjM2OTEyNzUxMTk3ODE0OTRdLCBbMTU4OTc3NzYyMC4yODEzNjMsIDQ5NywgMC4zOTU5NzMxNDU5NjE3NjE1XSwgWzE1ODk3Nzc2MjAuMjk5MDIyLCA0OTgsIDAuMzg5MjYxNzUyMzY3MDE5NjVdLCBbMTU4OTc3NzYyMC4zMTYyNTUsIDQ5OSwgMC4zODI1NTAzMjg5Njk5NTU0NF1d", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/scalars?tag=epoch_loss&run=20200518-045329%2Ftrain": {"data": "W1sxNTg5Nzc3NjEwLjI2OTU1NSwgMCwgMTMuNDE0ODk2MDExMzUyNTM5XSwgWzE1ODk3Nzc2MTAuMjg4MDM3LCAxLCAxMi41MjQyNDcxNjk0OTQ2MjldLCBbMTU4OTc3NzYxMC4zMDYwMjIsIDIsIDEyLjY4NjQ0MDQ2NzgzNDQ3M10sIFsxNTg5Nzc3NjEwLjMyMjM0MywgMywgMTAuMTczODg0MzkxNzg0NjY4XSwgWzE1ODk3Nzc2MTAuMzM5MDI5LCA0LCA4LjgyNTkwOTYxNDU2Mjk4OF0sIFsxNTg5Nzc3NjEwLjM1ODQxMywgNSwgMTAuMzQyNzYxOTkzNDA4MjAzXSwgWzE1ODk3Nzc2MTAuMzc0MjUyLCA2LCA3LjYwNTkyMD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ODk0Nzc1XSwgWzE1ODk3Nzc2MjAuMjgwNTc1LCA0OTcsIDEuMzYxNDM4MDM1OTY0OTY1OF0sIFsxNTg5Nzc3NjIwLjI5ODU4NCwgNDk4LCAxLjMzMjE2OTg5MDQwMzc0NzZdLCBbMTU4OTc3NzYyMC4zMTU3NzgsIDQ5OSwgMS4zMzMxODA2NjU5Njk4NDg2XV0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/font-roboto/d-6IYplOFocCacKzxwXSOJBw1xU1rKptJj_0jans920.woff2": {"data": "d09GMgABAAAAACoMAA4AAAAAUsQAACm2AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmXocg0oGYACGTBEMCu5A1nULg14AATYCJAOHNgQgBYJ+ByAbIkSzoqzwsjiKkj2aj6JicZf9lwnmGDrzUL5ooaWgICnvqxcvLU1UUm052dq0PPEbkDL7t7A4c3dKponrEu8IjX2Sy0PoX9DLJNk9AHsAO6uC0MkqVZH48wM/t95fEVEDtBGpESMixmDAqNgYMLpGpmSIhFWEFSiIoIiFRIli3p2nHuksZyTDeXbXshPuAKlMlW53Zbg7HZue7/8N06wSlnxFE+rSAhYVkmR44D5FCo4yXQlcOX/hZsHaQuZYMcQ8fkufGldr+uACwqKNzkSGPbR7G1BVUZ3KOl0lGRYOQuDT2zTbfVpvBF5fojuuchvk6YE73cxV6dJS//W/1qu/X2vQGiTZDshHKx3JCpgmIwjIGl8FXKUCLIGkY12AuaMOqUzRXNWnLQmqS1HWqdIFnu/vG79/2raDcUAPMPAMtn38TkB/ouZjIAEmGGgThZmsWZkYwdIwtsYh6+N7ZqYra0NPaN1poDFKzhjB6Ep9/G4ZTnWidqQaNBB6+Y1RoPACsDkUTvsZQJjzgUiWDJEtGyJXLgQLC6JIEUSJMohOPVAu+QiBQAHTADNAgAKRDAGmosIAZt317VxBcvfkGAZI7h0THA6SB/jHRYIkDOBDaNj+e8ZEAjtwbBhGLXC2MFFLe6nWKwp1s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wq2WK6l+wbzQZbs2GgoEqJaPZ8YhftPSXXCX6BbePSuo226ApjX0C4peCOiCh/gVyHxc8EuM6SuRTfzEf50M1I8Y9l3d7I79zQ8Foiklr4toqGbY8Jq1YdKhijSf4jbWQ6k+pcVJifSm+80LjSEpEeSuszCOW/5lUQ8xqzqrqMIl3Cvq2/MjACDqnWkU2fiG0Bh4tRk17Q7itkxlHJFPiP1oogCVUQIA5LKAOS800frEEAeawsNSLpqmGqSaT3Tl3tFR0SbXFdGUYimhesYS9Odo0rKnCmMZMHNUT1UxxE1HSTx4mh2oOeLC82drUrJ3CmDZF2GuFATQ0BPhBBVEOsBCA6UBArQgHAaYQAg1pHAB2AsddEdx8dkVhR98VTVTMoTG7Yh1QyHE+ZeSh8nJ1i6koTMli0IQKEwdPjQpVp+FZiiLwMwTv2VqkQMrc+AZGs4uHiHXiwWI1HiPBxoMo3+JRAhhxMFmZIShrxveFm088Fg0isn0oL1CnRTeYkVp+7mO07cw4TETHnZxYTZk/Jn+BwhKuzE6MUMdtNk2gYJFB3pNYx9mxZsqcAxJzx1ptUvlZcFlJF2QG", "ok": true, "headers": [["content-type", "font/woff2"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 838} outputId="bf82dfe6-9bb0-4331-f233-9d65489602e7" # %tensorboard --logdir logs/fit # + id="09X3nNmvGcbE" colab_type="code" colab={}
5,306,892
/Machine learning with python and R.ipynb
209abcea9d2457b5a9461c232995b4f69b4e28ad
[]
no_license
v-alan-m/machine_learning_python_and_R
https://github.com/v-alan-m/machine_learning_python_and_R
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
5,096
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Machine learning with python and R # Install: # - Anaconda: https://www.anaconda.com/ # - R: https://cran.r-project.org/ # - R Studio: https://rstudio.com/ # ## Contents # - What is Machine Learning # - Features of ML # - How it works # - Machine learning life cycle # - Important python libraries # - Types of machine learning # - Supervised learning # - Unsupervised learning # - Reinforcement learning # ### What is Machine Learning # - Machine learning is a class of algorithms which are data driven # - Unlike normal algorithms it is the data that indicates what the optimum/target answer is # - Getting computers to program themselves by creating an algorithm to make decisions using data # # #### Features of ML # - Uses the data to detect patterns in a dataset, and adjust the program accordingly # - Develops programs that can teach themselvees to grow and change when exposed to new data # - Enables computers to find hidden insights, using iterative algorithms without being explicitly programmed # - Automates analytical model building # # #### How it works # - A feedback loop is created, to automate, and output improved results # # # 1. Learn from data # 2. Find hidden insights # 3. Train and grow # # #### Machine learning life cycle # Step 1: Collect data # - YouTube, Excel, SQL # Step 2: Wrangle data # - Filter data (target data), clean data (format checks) # Step 3: Analyse data # - Use machine learning algorithms to create desired model # Step 4: Train algorithm # - Fed a training dataset to observe patterns within the data # Step 5: Test Algorithm # - Determines the accuracy of the model based on the defined goal # Step 6: Deploy and optimise # - Deplyed solution using all the assigned data # - If there is an undesired drop in preformance and model is retrained # ### Important python libraries # #### Numpy # - Provides useful features for operations on n-arrays and matrices # # #### Matplotlib # - Make charts to graphically-visualise data # # #### Scikit-Learn # - Efficient data mining and anaysis, built on NumPy and matplotlib # # #### Pandas # - Data wrangling, data manipulation and aggregation # # #### Seaborn # - Visualised data optimisation # ### Types of machine learning # # <br></br> # #### Supervised learning # - If x is input and y is output # - The algorithm is used to learn the mapping function, of input to output # # <img src="pics/supervised_learning.png"> # # - Using the training dataset, the algorithm can train and learn: # - What is typically a face # - What is typically a non-face # # - Once the training is done, the model is given an input, and the output is tested # - For this example the user can distinguish whether the answer is correct, as the test # # <br></br> # #### Unsupervised learning # - The training of data that is not classified or labelled # # <img src="pics/unsupervised_learning.png"> # # - Can be used to cluster the data into classes # - Or by a chosen variable, e.g color or shape (for the given example) # # <br></br> # #### Reinforcement learning # - Learning by interacting with a space or an environment # - Selects an action based on the past experience, exploration and new choices # # <img src="pics/reinforcement_learning.png"> # # - Can use a previously tranined model/algorithm to train for identifing a similar criteria #
3,725
/Week7/week_7.ipynb
fd1381d66161c56d24283f370a1f94f35200ba10
[]
no_license
Devsaa05/Inter_2-incubitu
https://github.com/Devsaa05/Inter_2-incubitu
1
0
null
2020-07-31T12:32:59
2020-07-31T12:32:44
Jupyter Notebook
Jupyter Notebook
false
false
.py
117,856
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- #https://rightcode.co.jp/blog/information-technology/pytorch-mnist-learning import torch.nn.functional as f from torch.utils.data import DataLoader from torchvision import datasets, transforms import matplotlib.pyplot as plt class MyNet(torch.nn.Module): def __init__(self): super(MyNet, self).__init__() self.fc1 = torch.nn.Linear(28*28, 1000) self.fc2 = torch.nn.Linear(1000, 10) def forward(self, x): x = self.fc1(x) x = torch.sigmoid(x) x = self.fc2(x) return f.log_softmax(x, dim=1) def load_MNIST(batch=128, intensity=1.0): train_loader = torch.utils.data.DataLoader( datasets.MNIST('./data', train=True, download=True, transform=transforms.Compose([ transforms.ToTensor(), transforms.Lambda(lambda x: x * intensity) ])), batch_size=batch, shuffle=True) test_loader = torch.utils.data.DataLoader( datasets.MNIST('./data', train=False, transform=transforms.Compose([ transforms.ToTensor(), transforms.Lambda(lambda x: x * intensity) ])), batch_size=batch, shuffle=True) return {'train': train_loader, 'test': test_loader} # + num_epoch = 20 history = { 'train_lostt':[], 'test_lostt':[], 'test_acc':[] } device = 'cuda' if torch.cuda.is_available() else 'cpu' net = MyNet().to(device) loaders = load_MNIST() # - optimizer = torch.optim.Adam(params=net.parameters(), lr=0.001) # + for i_epoch in range(num_epoch): loss = None net.train(True) for i, (data, target) in enumerate(loaders['train']): data = data.view(-1, 28*28) data = data.to(device) target = target.to(device) optimizer.zero_grad() output = net(data) loss = f.nll_loss(output, target) loss.backward() optimizer.step() if i % 10 == 0: print('Training log: {} epoch ({} / 60000 train. data). Loss: {}'.format(i_epoch+1, (i+1)*128, loss.item())) history['train_loss'].append(loss) net.eval() test_loss = 0 correct = 0 with torch.no_grad(): for data, target in loaders['test']: data = data.view(-1, 28*28) data = data.to(device) target = target.to(device) output = net(data) test_loss += f.nll_loss(output, target, reduction='sum').item() pred = output.argmax(dim=1, keepdim=True) correct += pred.eq(target.view_as(pred)).sum().item() test_loss /= 10000 print('Test loss (avg): {}, Accuracy: {}'.format(test_loss, correct / 10000)) history['test_loss'].append(test_loss) history['test_acc'].append(correct / 10000) print(history) plt.figure() plt.plot(range(1, num_epoch+1), history['train_loss'], label='train_loss') plt.plot(range(1, num_epoch+1), history['test_loss'], label='test_loss') plt.xlabel('epoch') plt.legend() plt.savefig('loss.png') plt.figure() plt.plot(range(1, epoch+1), history['test_acc']) plt.title('test accuracy') plt.xlabel('epoch') plt.savefig('test_acc.png') # - print(torch.cuda.is_available()) torch.cuda.get_device_name(0) index labels: weights = {"alice": 68, "bob": 83, "colin": 86, "darwin": 68} s3 = pd.Series(weights) s3 # You can control which elements you want to include in the `Series` and in what order by explicitly specifying the desired `index`: s4 = pd.Series(weights, index = ["colin", "alice"]) s4 # ## Automatic alignment # When an operation involves multiple `Series` objects, `pandas` automatically aligns items by matching index labels. # + print(s2.keys()) print(s3.keys()) s2 + s3 # - # The resulting `Series` contains the union of index labels from `s2` and `s3`. Since `"colin"` is missing from `s2` and `"charles"` is missing from `s3`, these items have a `NaN` result value. (ie. Not-a-Number means *missing*). # # Automatic alignment is very handy when working with data that may come from various sources with varying structure and missing items. But if you forget to set the right index labels, you can have surprising results: # + s5 = pd.Series([1000,1000,1000,1000]) print("s2 =", s2.values) print("s5 =", s5.values) s2 + s5 # - # Pandas could not align the `Series`, since their labels do not match at all, hence the full `NaN` result. # ## Init with a scalar # You can also initialize a `Series` object using a scalar and a list of index labels: all items will be set to the scalar. meaning = pd.Series(42, ["life", "universe", "everything"]) meaning # ## `Series` name # A `Series` can have a `name`: s6 = pd.Series([83, 68], index=["bob", "alice"], name="weights") s6 # ## Plotting a `Series` # Pandas makes it easy to plot `Series` data using matplotlib (for more details on matplotlib, check out the [matplotlib tutorial](tools_matplotlib.ipynb)). Just import matplotlib and call the `plot()` method: # %matplotlib inline import matplotlib.pyplot as plt temperatures = [4.4,5.1,6.1,6.2,6.1,6.1,5.7,5.2,4.7,4.1,3.9,3.5] s7 = pd.Series(temperatures, name="Temperature") s7.plot() plt.show() # There are *many* options for plotting your data. It is not necessary to list them all here: if you need a particular type of plot (histograms, pie charts, etc.), just look for it in the excellent [Visualization](http://pandas.pydata.org/pandas-docs/stable/visualization.html) section of pandas' documentation, and look at the example code. # # Handling time # Many datasets have timestamps, and pandas is awesome at manipulating such data: # * it can represent periods (such as 2016Q3) and frequencies (such as "monthly"), # * it can convert periods to actual timestamps, and *vice versa*, # * it can resample data and aggregate values any way you like, # * it can handle timezones. # # ## Time range # Let's start by creating a time series using `pd.date_range()`. This returns a `DatetimeIndex` containing one datetime per hour for 12 hours starting on October 29th 2016 at 5:30pm. dates = pd.date_range('2016/10/29 5:30pm', periods=12, freq='H') dates # This `DatetimeIndex` may be used as an index in a `Series`: temp_series = pd.Series(temperatures, dates) temp_series # Let's plot this series: # + temp_series.plot(kind="bar") plt.grid(True) plt.show() # - # ## Resampling # Pandas lets us resample a time series very simply. Just call the `resample()` method and specify a new frequency: temp_series_freq_2H = temp_series.resample("2H") temp_series_freq_2H # The resampling operation is actually a deferred operation, which is why we did not get a `Series` object, but a `DatetimeIndexResampler` object instead. To actually perform the resampling operation, we can simply call the `mean()` method: Pandas will compute the mean of every pair of consecutive hours: temp_series_freq_2H = temp_series_freq_2H.mean() # Let's plot the result: temp_series_freq_2H.plot(kind="bar") plt.show() # Note how the values have automatically been aggregated into 2-hour periods. If we look at the 6-8pm period, for example, we had a value of `5.1` at 6:30pm, and `6.1` at 7:30pm. After resampling, we just have one value of `5.6`, which is the mean of `5.1` and `6.1`. Rather than computing the mean, we could have used any other aggregation function, for example we can decide to keep the minimum value of each period: temp_series_freq_2H = temp_series.resample("2H").min() temp_series_freq_2H # Or, equivalently, we could use the `apply()` method instead: temp_series_freq_2H = temp_series.resample("2H").apply(np.min) temp_series_freq_2H # ## Upsampling and interpolation # This was an example of downsampling. We can also upsample (ie. increase the frequency), but this creates holes in our data: temp_series_freq_15min = temp_series.resample("15Min").mean() temp_series_freq_15min.head(n=10) # `head` displays the top n values # One solution is to fill the gaps by interpolating. We just call the `interpolate()` method. The default is to use linear interpolation, but we can also select another method, such as cubic interpolation: temp_series_freq_15min = temp_series.resample("15Min").interpolate(method="cubic") temp_series_freq_15min.head(n=10) temp_series.plot(label="Period: 1 hour") temp_series_freq_15min.plot(label="Period: 15 minutes") plt.legend() plt.show() # ## Timezones # By default datetimes are *naive*: they are not aware of timezones, so 2016-10-30 02:30 might mean October 30th 2016 at 2:30am in Paris or in New York. We can make datetimes timezone *aware* by calling the `tz_localize()` method: temp_series_ny = temp_series.tz_localize("America/New_York") temp_series_ny # Note that `-04:00` is now appended to all the datetimes. This means that these datetimes refer to [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) - 4 hours. # # We can convert these datetimes to Paris time like this: temp_series_paris = temp_series_ny.tz_convert("Europe/Paris") temp_series_paris # You may have noticed that the UTC offset changes from `+02:00` to `+01:00`: this is because France switches to winter time at 3am that particular night (time goes back to 2am). Notice that 2:30am occurs twice! Let's go back to a naive representation (if you log some data hourly using local time, without storing the timezone, you might get something like this): temp_series_paris_naive = temp_series_paris.tz_localize(None) temp_series_paris_naive # Now `02:30` is really ambiguous. If we try to localize these naive datetimes to the Paris timezone, we get an error: try: temp_series_paris_naive.tz_localize("Europe/Paris") except Exception as e: print(type(e)) print(e) # Fortunately using the `ambiguous` argument we can tell pandas to infer the right DST (Daylight Saving Time) based on the order of the ambiguous timestamps: temp_series_paris_naive.tz_localize("Europe/Paris", ambiguous="infer") # ## Periods # The `pd.period_range()` function returns a `PeriodIndex` instead of a `DatetimeIndex`. For example, let's get all quarters in 2016 and 2017: quarters = pd.period_range('2016Q1', periods=8, freq='Q') quarters # Adding a number `N` to a `PeriodIndex` shifts the periods by `N` times the `PeriodIndex`'s frequency: quarters + 3 # The `asfreq()` method lets us change the frequency of the `PeriodIndex`. All periods are lengthened or shortened accordingly. For example, let's convert all the quarterly periods to monthly periods (zooming in): quarters.asfreq("M") # By default, the `asfreq` zooms on the end of each period. We can tell it to zoom on the start of each period instead: quarters.asfreq("M", how="start") # And we can zoom out: quarters.asfreq("A") # Of course we can create a `Series` with a `PeriodIndex`: quarterly_revenue = pd.Series([300, 320, 290, 390, 320, 360, 310, 410], index = quarters) quarterly_revenue quarterly_revenue.plot(kind="line") plt.show() # We can convert periods to timestamps by calling `to_timestamp`. By default this will give us the first day of each period, but by setting `how` and `freq`, we can get the last hour of each period: last_hours = quarterly_revenue.to_timestamp(how="end", freq="H") last_hours # And back to periods by calling `to_period`: last_hours.to_period() # Pandas also provides many other time-related functions that we recommend you check out in the [documentation](http://pandas.pydata.org/pandas-docs/stable/timeseries.html). To whet your appetite, here is one way to get the last business day of each month in 2016, at 9am: months_2016 = pd.period_range("2016", periods=12, freq="M") one_day_after_last_days = months_2016.asfreq("D") + 1 last_bdays = one_day_after_last_days.to_timestamp() - pd.tseries.offsets.BDay() last_bdays.to_period("H") + 9 # # `DataFrame` objects # A DataFrame object represents a spreadsheet, with cell values, column names and row index labels. You can define expressions to compute columns based on other columns, create pivot-tables, group rows, draw graphs, etc. You can see `DataFrame`s as dictionaries of `Series`. # # ## Creating a `DataFrame` # You can create a DataFrame by passing a dictionary of `Series` objects: people_dict = { "weight": pd.Series([68, 83, 112], index=["alice", "bob", "charles"]), "birthyear": pd.Series([1984, 1985, 1992], index=["bob", "alice", "charles"], name="year"), "children": pd.Series([0, 3], index=["charles", "bob"]), "hobby": pd.Series(["Biking", "Dancing"], index=["alice", "bob"]), } people = pd.DataFrame(people_dict) people # A few things to note: # * the `Series` were automatically aligned based on their index, # * missing values are represented as `NaN`, # * `Series` names are ignored (the name `"year"` was dropped), # * `DataFrame`s are displayed nicely in Jupyter notebooks, woohoo! # You can access columns pretty much as you would expect. They are returned as `Series` objects: people["birthyear"] # You can also get multiple columns at once: people[["birthyear", "hobby"]] # If you pass a list of columns and/or index row labels to the `DataFrame` constructor, it will guarantee that these columns and/or rows will exist, in that order, and no other column/row will exist. For example: d2 = pd.DataFrame( people_dict, columns=["birthyear", "weight", "height"], index=["bob", "alice", "eugene"] ) d2 # Another convenient way to create a `DataFrame` is to pass all the values to the constructor as an `ndarray`, or a list of lists, and specify the column names and row index labels separately: values = [ [1985, np.nan, "Biking", 68], [1984, 3, "Dancing", 83], [1992, 0, np.nan, 112] ] d3 = pd.DataFrame( values, columns=["birthyear", "children", "hobby", "weight"], index=["alice", "bob", "charles"] ) d3 # To specify missing values, you can either use `np.nan` or NumPy's masked arrays: masked_array = np.ma.asarray(values, dtype=np.object) masked_array[(0, 2), (1, 2)] = np.ma.masked d3 = pd.DataFrame( masked_array, columns=["birthyear", "children", "hobby", "weight"], index=["alice", "bob", "charles"] ) d3 # Instead of an `ndarray`, you can also pass a `DataFrame` object: d4 = pd.DataFrame( d3, columns=["hobby", "children"], index=["alice", "bob"] ) d4 # It is also possible to create a `DataFrame` with a dictionary (or list) of dictionaries (or list): people = pd.DataFrame({ "birthyear": {"alice":1985, "bob": 1984, "charles": 1992}, "hobby": {"alice":"Biking", "bob": "Dancing"}, "weight": {"alice":68, "bob": 83, "charles": 112}, "children": {"bob": 3, "charles": 0} }) people # ## Multi-indexing # If all columns are tuples of the same size, then they are understood as a multi-index. The same goes for row index labels. For example: d5 = pd.DataFrame( { ("public", "birthyear"): {("Paris","alice"):1985, ("Paris","bob"): 1984, ("London","charles"): 1992}, ("public", "hobby"): {("Paris","alice"):"Biking", ("Paris","bob"): "Dancing"}, ("private", "weight"): {("Paris","alice"):68, ("Paris","bob"): 83, ("London","charles"): 112}, ("private", "children"): {("Paris", "alice"):np.nan, ("Paris","bob"): 3, ("London","charles"): 0} } ) d5 # You can now get a `DataFrame` containing all the `"public"` columns very simply: d5["public"] d5["public", "hobby"] # Same result as d5["public"]["hobby"] # ## Dropping a level # Let's look at `d5` again: d5 # There are two levels of columns, and two levels of indices. We can drop a column level by calling `droplevel()` (the same goes for indices): d5.columns = d5.columns.droplevel(level = 0) d5 # ## Transposing # You can swap columns and indices using the `T` attribute: d6 = d5.T d6 # ## Stacking and unstacking levels # Calling the `stack()` method will push the lowest column level after the lowest index: d7 = d6.stack() d7 # Note that many `NaN` values appeared. This makes sense because many new combinations did not exist before (eg. there was no `bob` in `London`). # # Calling `unstack()` will do the reverse, once again creating many `NaN` values. d8 = d7.unstack() d8 # If we call `unstack` again, we end up with a `Series` object: d9 = d8.unstack() d9 # The `stack()` and `unstack()` methods let you select the `level` to stack/unstack. You can even stack/unstack multiple levels at once: d10 = d9.unstack(level = (0,1)) d10 # ## Most methods return modified copies # As you may have noticed, the `stack()` and `unstack()` methods do not modify the object they apply to. Instead, they work on a copy and return that copy. This is true of most methods in pandas. # ## Accessing rows # Let's go back to the `people` `DataFrame`: people # The `loc` attribute lets you access rows instead of columns. The result is a `Series` object in which the `DataFrame`'s column names are mapped to row index labels: people.loc["charles"] # You can also access rows by integer location using the `iloc` attribute: people.iloc[2] # You can also get a slice of rows, and this returns a `DataFrame` object: people.iloc[1:3] # Finally, you can pass a boolean array to get the matching rows: people[np.array([True, False, True])] # This is most useful when combined with boolean expressions: people[people["birthyear"] < 1990] # ## Adding and removing columns # You can generally treat `DataFrame` objects like dictionaries of `Series`, so the following work fine: people # + people["age"] = 2018 - people["birthyear"] # adds a new column "age" people["over 30"] = people["age"] > 30 # adds another column "over 30" birthyears = people.pop("birthyear") del people["children"] people # - birthyears # When you add a new colum, it must have the same number of rows. Missing rows are filled with NaN, and extra rows are ignored: people["pets"] = pd.Series({"bob": 0, "charles": 5, "eugene":1}) # alice is missing, eugene is ignored people # When adding a new column, it is added at the end (on the right) by default. You can also insert a column anywhere else using the `insert()` method: people.insert(1, "height", [172, 181, 185]) people # ## Assigning new columns # You can also create new columns by calling the `assign()` method. Note that this returns a new `DataFrame` object, the original is not modified: people.assign( body_mass_index = people["weight"] / (people["height"] / 100) ** 2, has_pets = people["pets"] > 0 ) # Note that you cannot access columns created within the same assignment: try: people.assign( body_mass_index = people["weight"] / (people["height"] / 100) ** 2, overweight = people["body_mass_index"] > 25 ) except KeyError as e: print("Key error:", e) # The solution is to split this assignment in two consecutive assignments: d6 = people.assign(body_mass_index = people["weight"] / (people["height"] / 100) ** 2) d6.assign(overweight = d6["body_mass_index"] > 25) # Having to create a temporary variable `d6` is not very convenient. You may want to just chain the assigment calls, but it does not work because the `people` object is not actually modified by the first assignment: try: (people .assign(body_mass_index = people["weight"] / (people["height"] / 100) ** 2) .assign(overweight = people["body_mass_index"] > 25) ) except KeyError as e: print("Key error:", e) # But fear not, there is a simple solution. You can pass a function to the `assign()` method (typically a `lambda` function), and this function will be called with the `DataFrame` as a parameter: (people .assign(body_mass_index = lambda df: df["weight"] / (df["height"] / 100) ** 2) .assign(overweight = lambda df: df["body_mass_index"] > 25) ) # Problem solved! # ## Evaluating an expression # A great feature supported by pandas is expression evaluation. This relies on the `numexpr` library which must be installed. people.eval("weight / (height/100) ** 2 > 25") # Assignment expressions are also supported. Let's set `inplace=True` to directly modify the `DataFrame` rather than getting a modified copy: people.eval("body_mass_index = weight / (height/100) ** 2", inplace=True) people # You can use a local or global variable in an expression by prefixing it with `'@'`: overweight_threshold = 30 people.eval("overweight = body_mass_index > @overweight_threshold", inplace=True) people # ## Querying a `DataFrame` # The `query()` method lets you filter a `DataFrame` based on a query expression: people.query("age > 30 and pets == 0") # ## Sorting a `DataFrame` # You can sort a `DataFrame` by calling its `sort_index` method. By default it sorts the rows by their index label, in ascending order, but let's reverse the order: people.sort_index(ascending=False) # Note that `sort_index` returned a sorted *copy* of the `DataFrame`. To modify `people` directly, we can set the `inplace` argument to `True`. Also, we can sort the columns instead of the rows by setting `axis=1`: people.sort_index(axis=1, inplace=True) people # To sort the `DataFrame` by the values instead of the labels, we can use `sort_values` and specify the column to sort by: people.sort_values(by="age", inplace=True) people # ## Plotting a `DataFrame` # Just like for `Series`, pandas makes it easy to draw nice graphs based on a `DataFrame`. # # For example, it is trivial to create a line plot from a `DataFrame`'s data by calling its `plot` method: people.plot(kind = "line", x = "body_mass_index", y = ["height", "weight"]) plt.show() # You can pass extra arguments supported by matplotlib's functions. For example, we can create scatterplot and pass it a list of sizes using the `s` argument of matplotlib's `scatter()` function: people.plot(kind = "scatter", x = "height", y = "weight", s=[40, 120, 200]) plt.show() # Again, there are way too many options to list here: the best option is to scroll through the [Visualization](http://pandas.pydata.org/pandas-docs/stable/visualization.html) page in pandas' documentation, find the plot you are interested in and look at the example code. # ## Operations on `DataFrame`s # Although `DataFrame`s do not try to mimick NumPy arrays, there are a few similarities. Let's create a `DataFrame` to demonstrate this: grades_array = np.array([[8,8,9],[10,9,9],[4, 8, 2], [9, 10, 10]]) grades = pd.DataFrame(grades_array, columns=["sep", "oct", "nov"], index=["alice","bob","charles","darwin"]) grades # You can apply NumPy mathematical functions on a `DataFrame`: the function is applied to all values: np.sqrt(grades) # Similarly, adding a single value to a `DataFrame` will add that value to all elements in the `DataFrame`. This is called *broadcasting*: grades + 1 # Of course, the same is true for all other binary operations, including arithmetic (`*`,`/`,`**`...) and conditional (`>`, `==`...) operations: grades >= 5 # Aggregation operations, such as computing the `max`, the `sum` or the `mean` of a `DataFrame`, apply to each column, and you get back a `Series` object: grades.mean() # The `all` method is also an aggregation operation: it checks whether all values are `True` or not. Let's see during which months all students got a grade greater than `5`: (grades > 5).all() # Most of these functions take an optional `axis` parameter which lets you specify along which axis of the `DataFrame` you want the operation executed. The default is `axis=0`, meaning that the operation is executed vertically (on each column). You can set `axis=1` to execute the operation horizontally (on each row). For example, let's find out which students had all grades greater than `5`: (grades > 5).all(axis = 1) # The `any` method returns `True` if any value is True. Let's see who got at least one grade 10: (grades == 10).any(axis = 1) # If you add a `Series` object to a `DataFrame` (or execute any other binary operation), pandas attempts to broadcast the operation to all *rows* in the `DataFrame`. This only works if the `Series` has the same size as the `DataFrame`s rows. For example, let's substract the `mean` of the `DataFrame` (a `Series` object) from the `DataFrame`: grades - grades.mean() # equivalent to: grades - [7.75, 8.75, 7.50] # We substracted `7.75` from all September grades, `8.75` from October grades and `7.50` from November grades. It is equivalent to substracting this `DataFrame`: pd.DataFrame([[7.75, 8.75, 7.50]]*4, index=grades.index, columns=grades.columns) # If you want to substract the global mean from every grade, here is one way to do it: grades - grades.values.mean() # substracts the global mean (8.00) from all grades # ## Automatic alignment # Similar to `Series`, when operating on multiple `DataFrame`s, pandas automatically aligns them by row index label, but also by column names. Let's create a `DataFrame` with bonus points for each person from October to December: bonus_array = np.array([[0,np.nan,2],[np.nan,1,0],[0, 1, 0], [3, 3, 0]]) bonus_points = pd.DataFrame(bonus_array, columns=["oct", "nov", "dec"], index=["bob","colin", "darwin", "charles"]) bonus_points grades + bonus_points # Looks like the addition worked in some cases but way too many elements are now empty. That's because when aligning the `DataFrame`s, some columns and rows were only present on one side, and thus they were considered missing on the other side (`NaN`). Then adding `NaN` to a number results in `NaN`, hence the result. # # ## Handling missing data # Dealing with missing data is a frequent task when working with real life data. Pandas offers a few tools to handle missing data. # # Let's try to fix the problem above. For example, we can decide that missing data should result in a zero, instead of `NaN`. We can replace all `NaN` values by a any value using the `fillna()` method: (grades + bonus_points).fillna(0) # It's a bit unfair that we're setting grades to zero in September, though. Perhaps we should decide that missing grades are missing grades, but missing bonus points should be replaced by zeros: fixed_bonus_points = bonus_points.fillna(0) fixed_bonus_points.insert(0, "sep", 0) fixed_bonus_points.loc["alice"] = 0 grades + fixed_bonus_points # That's much better: although we made up some data, we have not been too unfair. # # Another way to handle missing data is to interpolate. Let's look at the `bonus_points` `DataFrame` again: bonus_points # Now let's call the `interpolate` method. By default, it interpolates vertically (`axis=0`), so let's tell it to interpolate horizontally (`axis=1`). bonus_points.interpolate(axis=1) # Bob had 0 bonus points in October, and 2 in December. When we interpolate for November, we get the mean: 1 bonus point. Colin had 1 bonus point in November, but we do not know how many bonus points he had in September, so we cannot interpolate, this is why there is still a missing value in October after interpolation. To fix this, we can set the September bonus points to 0 before interpolation. better_bonus_points = bonus_points.copy() better_bonus_points.insert(0, "sep", 0) better_bonus_points.loc["alice"] = 0 better_bonus_points = better_bonus_points.interpolate(axis=1) better_bonus_points # Great, now we have reasonable bonus points everywhere. Let's find out the final grades: grades + better_bonus_points # It is slightly annoying that the September column ends up on the right. This is because the `DataFrame`s we are adding do not have the exact same columns (the `grades` `DataFrame` is missing the `"dec"` column), so to make things predictable, pandas orders the final columns alphabetically. To fix this, we can simply add the missing column before adding: grades["dec"] = np.nan final_grades = grades + better_bonus_points final_grades # There's not much we can do about December and Colin: it's bad enough that we are making up bonus points, but we can't reasonably make up grades (well I guess some teachers probably do). So let's call the `dropna()` method to get rid of rows that are full of `NaN`s: final_grades_clean = final_grades.dropna(how="all") final_grades_clean # Now let's remove columns that are full of `NaN`s by setting the `axis` argument to `1`: final_grades_clean = final_grades_clean.dropna(axis=1, how="all") final_grades_clean # ## Aggregating with `groupby` # Similar to the SQL language, pandas allows grouping your data into groups to run calculations over each group. # # First, let's add some extra data about each person so we can group them, and let's go back to the `final_grades` `DataFrame` so we can see how `NaN` values are handled: final_grades["hobby"] = ["Biking", "Dancing", np.nan, "Dancing", "Biking"] final_grades # Now let's group data in this `DataFrame` by hobby: grouped_grades = final_grades.groupby("hobby") grouped_grades # We are ready to compute the average grade per hobby: grouped_grades.mean() # That was easy! Note that the `NaN` values have simply been skipped when computing the means. # ## Pivot tables # Pandas supports spreadsheet-like [pivot tables](https://en.wikipedia.org/wiki/Pivot_table) that allow quick data summarization. To illustrate this, let's create a simple `DataFrame`: bonus_points more_grades = final_grades_clean.stack().reset_index() more_grades.columns = ["name", "month", "grade"] more_grades["bonus"] = [np.nan, np.nan, np.nan, 0, np.nan, 2, 3, 3, 0, 0, 1, 0] more_grades # Now we can call the `pd.pivot_table()` function for this `DataFrame`, asking to group by the `name` column. By default, `pivot_table()` computes the mean of each numeric column: pd.pivot_table(more_grades, index="name") # We can change the aggregation function by setting the `aggfunc` argument, and we can also specify the list of columns whose values will be aggregated: pd.pivot_table(more_grades, index="name", values=["grade","bonus"], aggfunc=np.max) # We can also specify the `columns` to aggregate over horizontally, and request the grand totals for each row and column by setting `margins=True`: pd.pivot_table(more_grades, index="name", values="grade", columns="month", margins=True) # Finally, we can specify multiple index or column names, and pandas will create multi-level indices: pd.pivot_table(more_grades, index=("name", "month"), margins=True) # ## Overview functions # When dealing with large `DataFrames`, it is useful to get a quick overview of its content. Pandas offers a few functions for this. First, let's create a large `DataFrame` with a mix of numeric values, missing values and text values. Notice how Jupyter displays only the corners of the `DataFrame`: much_data = np.fromfunction(lambda x,y: (x+y*y)%17*11, (10000, 26)) large_df = pd.DataFrame(much_data, columns=list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")) large_df[large_df % 16 == 0] = np.nan large_df.insert(3,"some_text", "Blabla") large_df # The `head()` method returns the top 5 rows: large_df.head() # Of course there's also a `tail()` function to view the bottom 5 rows. You can pass the number of rows you want: large_df.tail(n=2) # The `info()` method prints out a summary of each columns contents: large_df.info() # Finally, the `describe()` method gives a nice overview of the main aggregated values over each column: # * `count`: number of non-null (not NaN) values # * `mean`: mean of non-null values # * `std`: [standard deviation](https://en.wikipedia.org/wiki/Standard_deviation) of non-null values # * `min`: minimum of non-null values # * `25%`, `50%`, `75%`: 25th, 50th and 75th [percentile](https://en.wikipedia.org/wiki/Percentile) of non-null values # * `max`: maximum of non-null values large_df.describe() # # Saving & loading # Pandas can save `DataFrame`s to various backends, including file formats such as CSV, Excel, JSON, HTML and HDF5, or to a SQL database. Let's create a `DataFrame` to demonstrate this: my_df = pd.DataFrame( [["Biking", 68.5, 1985, np.nan], ["Dancing", 83.1, 1984, 3]], columns=["hobby","weight","birthyear","children"], index=["alice", "bob"] ) my_df # ## Saving # Let's save it to CSV, HTML and JSON: my_df.to_csv("my_df.csv") my_df.to_html("my_df.html") my_df.to_json("my_df.json") # Done! Let's take a peek at what was saved: for filename in ("my_df.csv", "my_df.html", "my_df.json"): print("#", filename) with open(filename, "rt") as f: print(f.read()) print() # Note that the index is saved as the first column (with no name) in a CSV file, as `<th>` tags in HTML and as keys in JSON. # # Saving to other formats works very similarly, but some formats require extra libraries to be installed. For example, saving to Excel requires the openpyxl library: try: my_df.to_excel("my_df.xlsx", sheet_name='People') except ImportError as e: print(e) # ## Loading # Now let's load our CSV file back into a `DataFrame`: my_df_loaded = pd.read_csv("my_df.csv", index_col=0) my_df_loaded # As you might guess, there are similar `read_json`, `read_html`, `read_excel` functions as well. We can also read data straight from the Internet. For example, let's load all U.S. cities from [simplemaps.com](http://simplemaps.com/): us_cities = None try: csv_url = "http://simplemaps.com/files/cities.csv" us_cities = pd.read_csv(csv_url, index_col=0) us_cities = us_cities.head() except IOError as e: print(e) us_cities # There are more options available, in particular regarding datetime format. Check out the [documentation](http://pandas.pydata.org/pandas-docs/stable/io.html) for more details. # # Combining `DataFrame`s # # ## SQL-like joins # One powerful feature of pandas is it's ability to perform SQL-like joins on `DataFrame`s. Various types of joins are supported: inner joins, left/right outer joins and full joins. To illustrate this, let's start by creating a couple simple `DataFrame`s: city_loc = pd.DataFrame( [ ["CA", "San Francisco", 37.781334, -122.416728], ["NY", "New York", 40.705649, -74.008344], ["FL", "Miami", 25.791100, -80.320733], ["OH", "Cleveland", 41.473508, -81.739791], ["UT", "Salt Lake City", 40.755851, -111.896657] ], columns=["state", "city", "lat", "lng"]) city_loc city_pop = pd.DataFrame( [ [808976, "San Francisco", "California"], [8363710, "New York", "New-York"], [413201, "Miami", "Florida"], [2242193, "Houston", "Texas"] ], index=[3,4,5,6], columns=["population", "city", "state"]) city_pop # Now let's join these `DataFrame`s using the `merge()` function: pd.merge(left=city_loc, right=city_pop, on="city") # Note that both `DataFrame`s have a column named `state`, so in the result they got renamed to `state_x` and `state_y`. # # Also, note that Cleveland, Salt Lake City and Houston were dropped because they don't exist in *both* `DataFrame`s. This is the equivalent of a SQL `INNER JOIN`. If you want a `FULL OUTER JOIN`, where no city gets dropped and `NaN` values are added, you must specify `how="outer"`: all_cities = pd.merge(left=city_loc, right=city_pop, on="city", how="outer") all_cities # Of course `LEFT OUTER JOIN` is also available by setting `how="left"`: only the cities present in the left `DataFrame` end up in the result. Similarly, with `how="right"` only cities in the right `DataFrame` appear in the result. For example: pd.merge(left=city_loc, right=city_pop, on="city", how="right") # If the key to join on is actually in one (or both) `DataFrame`'s index, you must use `left_index=True` and/or `right_index=True`. If the key column names differ, you must use `left_on` and `right_on`. For example: city_pop2 = city_pop.copy() city_pop2.columns = ["population", "name", "state"] pd.merge(left=city_loc, right=city_pop2, left_on="city", right_on="name") # ## Concatenation # Rather than joining `DataFrame`s, we may just want to concatenate them. That's what `concat()` is for: result_concat = pd.concat([city_loc, city_pop]) result_concat # Note that this operation aligned the data horizontally (by columns) but not vertically (by rows). In this example, we end up with multiple rows having the same index (eg. 3). Pandas handles this rather gracefully: result_concat.loc[3] # Or you can tell pandas to just ignore the index: pd.concat([city_loc, city_pop], ignore_index=True) # Notice that when a column does not exist in a `DataFrame`, it acts as if it was filled with `NaN` values. If we set `join="inner"`, then only columns that exist in *both* `DataFrame`s are returned: pd.concat([city_loc, city_pop], join="inner") # You can concatenate `DataFrame`s horizontally instead of vertically by setting `axis=1`: pd.concat([city_loc, city_pop], axis=1) # In this case it really does not make much sense because the indices do not align well (eg. Cleveland and San Francisco end up on the same row, because they shared the index label `3`). So let's reindex the `DataFrame`s by city name before concatenating: pd.concat([city_loc.set_index("city"), city_pop.set_index("city")], axis=1) # This looks a lot like a `FULL OUTER JOIN`, except that the `state` columns were not renamed to `state_x` and `state_y`, and the `city` column is now the index. # The `append()` method is a useful shorthand for concatenating `DataFrame`s vertically: city_loc.append(city_pop) # As always in pandas, the `append()` method does *not* actually modify `city_loc`: it works on a copy and returns the modified copy. # # Categories # It is quite frequent to have values that represent categories, for example `1` for female and `2` for male, or `"A"` for Good, `"B"` for Average, `"C"` for Bad. These categorical values can be hard to read and cumbersome to handle, but fortunately pandas makes it easy. To illustrate this, let's take the `city_pop` `DataFrame` we created earlier, and add a column that represents a category: city_eco = city_pop.copy() city_eco["eco_code"] = [17, 17, 34, 20] city_eco # Right now the `eco_code` column is full of apparently meaningless codes. Let's fix that. First, we will create a new categorical column based on the `eco_code`s: city_eco["economy"] = city_eco["eco_code"].astype('category') city_eco["economy"].cat.categories # Now we can give each category a meaningful name: city_eco["economy"].cat.categories = ["Finance", "Energy", "Tourism"] city_eco # Note that categorical values are sorted according to their categorical order, *not* their alphabetical order: city_eco.sort_values(by="economy", ascending=False) # # What next? # As you probably noticed by now, pandas is quite a large library with *many* features. Although we went through the most important features, there is still a lot to discover. Probably the best way to learn more is to get your hands dirty with some real-life data. It is also a good idea to go through pandas' excellent [documentation](http://pandas.pydata.org/pandas-docs/stable/index.html), in particular the [Cookbook](http://pandas.pydata.org/pandas-docs/stable/cookbook.html).
39,451
/python/deeplearning/sonar_data_analysis.ipynb
ba9481f11fbf685b6aeaebb3308ba58b05b55752
[]
no_license
KANGSUNGHO/StudySpace
https://github.com/KANGSUNGHO/StudySpace
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
33,916
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import math def primeFact(n): while(n % 2 == 0): n = n // 2 yield 2 for i in range(3,round(math.sqrt(n)),2): while(n % i == 0): n = n // i yield i if n > 2: yield n for i in primeFact(81): print(i) primeFact(81) th labels, etc. # import matplotlib.pyplot as plt plt.plot([2, 4, 6, 4]) plt.ylabel('Numbers') plt.xlabel('Indices') plt.title('Myplot') plt.show() # If you provide a single list or array to the plot() command, matplotlib assumes it is a sequence of y values, and automatically generates the x values for you. Since python ranges start with 0, the default x vector has the same length as y but starts with 0. Hence the x data are [0,1,2,3]. # # **plot x versus y** plt.plot([1, 2, 3, 4], [1, 4, 9, 16]) plt.ylabel('squares') plt.xlabel('numbers') plt.grid() #grid on plt.show() # For every x, y pair of arguments, there is an optional third argument which is the **format string** that indicates the color and line type of the plot. plt.plot([1, 2, 3, 4], [1, 4, 9, 16], 'ro') #ro- red-dot(o shape) plt.grid() plt.show() # If matplotlib were limited to working with lists, it would be fairly useless for numeric processing. Generally, you will use **numpy arrays**. In fact, all sequences are converted to numpy arrays internally. # import numpy as np # + t = np.arange(0., 5., 0.2) # blue dashes, red squares and green triangles plt.plot(t, t**2, 'b--', label='^2') plt.plot(t, t**2.2, 'rs', label='^2.2') plt.plot(t, t**2.5, 'g^', label='^2.5') plt.grid() plt.legend() #add legend based on line labels plt.show() # - # ## Controlling line properties # # # **use keyword args** x = [1, 2, 3, 4] y = [1, 4, 9, 16] plt.plot(x, y, linewidth=5.0) plt.show() # **use the setp()** # + x1 = [1, 2, 3, 4] y1 = [1, 4, 9, 16] x2 = [1, 2, 3, 4] y2 = [2, 4, 6, 8] lines = plt.plot(x1, y1, x2, y2) # use keyword args plt.setp(lines[0], color='r', linewidth=2.0) #setp= set properties # or MATLAB style string value pairs plt.setp(lines[1], 'color', 'g', 'linewidth', 2.0) plt.grid() # - # ## working with multiple figures and axes # # + def f(t): return np.exp(-t) * np.cos(2*np.pi*t) t1 = np.arange(0.0, 5.0, 0.1) t2 = np.arange(0.0, 5.0, 0.02) plt.figure(1) # the subplot() command specifies numrows, numcols, # fignum where fignum ranges from 1 to numrows*numcols. plt.subplot(211) plt.grid() plt.plot(t1, f(t1), 'b--') plt.subplot(212) plt.plot(t2, np.cos(2*np.pi*t2), 'r--') plt.show() # + plt.figure(1) #the first figure plt.subplot(211) #the first subplot in the first figure plt.plot([1, 2, 3]) plt.subplot(212) #the second subplot in the first figure plt.figure(2) #a second figure plt.plot([4, 5, 6]) #creates a subplot(111) by default plt.figure(1) #figure 1 current; subplot(212 still current plt.subplot(211) #make subplot(211) in figure 1 current plt.title('Easy as 1, 2, 3') #subplot 211 title plt.show() tives using autograd functionality `grad()`: # # 1. **(1 pt.)** Plot `ReLU`, `ELU` ($\alpha = 1$), `Softplus` ($\beta = 1$) and `Sign`, `Sigmoid`, `Softsign`, `Tanh`. # Which of these functions may be, and which - definitely, are a poor choise as an activation function in a neural network? Why? # + # %matplotlib inline import torch.nn.functional as F import matplotlib.pyplot as plt import torch x = torch.arange(-2, 2, .01, requires_grad=True) x_np = x.detach().numpy() x.sum().backward() # to create x.grad f, axes = plt.subplots(2, 2, sharex=True, figsize=(14, 5)) axes[0, 0].set_title('Values') axes[0, 1].set_title('Derivatives') for i, function_set in (0, (('ReLU', F.relu), ('ELU', F.elu), ('Softplus', F.softplus))), \ (1, (('Sign', torch.sign), ('Sigmoid', torch.sigmoid), ('Softsign', F.softsign), ('Tanh', torch.tanh))): for function_name, activation in function_set: ### BEGIN Solution x.grad.zero_() xs = x.detach().numpy() values = activation(x).data.numpy() activation(x).sum().backward() derivatives = x.grad.data.numpy() axes[i, 0].plot(xs, values, label = function_name) axes[i, 1].plot(xs, derivatives , label=function_name) ### END Solution axes[i, 0].legend() axes[i, 1].legend() plt.tight_layout() plt.show() # - # ### Task 1.2. MNIST classification. (4 points) # # At the **Seminar 10** on neural networks, we built an MLP (Multilayer perceptron) with one hidden layer using our numpy implementations of linear layer and logistic and softmax activation functions. Your task is to # # 1. **(1 pt.)** Implement the MPL modules, including the Softmax cross entropy between `logits` and `labels`. # 2. **(2 pt.)** Train our numpy realization of MLP to classify the MNIST from `sklearn.datasets()`. Getting accuracy on validation `> 90%`. # 3. **(1 pt.)** Compare the acccuracy of classification to your scores from `Part 1` with and without dimensionality reduction. Will be this comparison fair? :) Derive the confusion matrix for all digits classes. What digits were predicted better or worse, than others? # from sklearn.metrics import confusion_matrix, accuracy_score from sklearn.datasets import load_digits import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split # + # fetch the dataset. digits, targets = load_digits(return_X_y=True) digits = digits.astype(np.float32) / 255 digits_train, digits_test, targets_train, targets_test = train_test_split(digits, targets, random_state=0) train_size = digits_train.shape[0] input_size = 8*8 classes_n = 10 # - digits.shape # **Implement the MLP with backprop.** # + class Linear: def __init__(self, input_size, output_size): self.thetas = np.random.randn(input_size, output_size) self.thetas_grads = np.empty_like(self.thetas) self.bias = np.random.randn(output_size).reshape(-1, 1) self.bias_grads = np.empty_like(self.bias).reshape(-1, 1) def forward(self, x): self.x = x # print('forward_linear') # print('linear forward, x shape: ', x.shape) # print('linear forward, thetas.shape: ',self.thetas.shape) # print('linear forward bias shape: ', self.bias.shape) return np.dot(x, self.thetas.T) + self.bias def backward(self, x, output_grad): ### BEGIN Solution print('backward_linear') print('backward_linear output_grad.shape: ', output_grad.shape) print('backward_linear thetas.shape: ', self.thetas.shape) print('backward_linear bias_grads shape: ', self.bias_grads.shape) print('backprob x shape', x.shape) print('backprob self.x shape', self.x.shape) self.thetas_grads += np.dot(self.x, output_grad.T) self.bias_grads += np.sum(output_grad, axis=1, keepdims=True) ### END Solution return np.dot(self.thetas, output_grad) class LogisticActivation: def forward(self, x): #print('forward_logistic') self.x = x self.output = 1.0/(1 + np.exp(-x)) return self.output def backward(self, x, output_grad): ### BEGIN Solution #print('backward_logistic') a = self.output.reshape(-1, 1) b = 1 - a c = a*b input_grad = c.T * output_grad ### END Solution return input_grad class MLP: def __init__(self, input_size, hidden_layer_size, output_size): self.linear1 = Linear(input_size, hidden_layer_size) self.activation1 = LogisticActivation() self.linear2 = Linear(hidden_layer_size, output_size) def forward(self, x): #print('forward_mlp') asd = self.linear2.forward(self.activation1.forward(self.linear1.forward(x))) return np.exp(asd) / np.sum(np.exp(asd), axis = 0, keepdims=True) def backward(self, x, output_grad): #print('backward_mlp') output = self.linear1.backward(x, self.activation1.backward(x,self.linear2.backward(x,output_grad))) return output # + ### BEGIN Solution def softmax_crossentropy_with_logits(logits, reference_answers): logits_vec = np.zeros(logits.shape) logits_vec[reference_answers, :] = 1 return -np.sum(logits_vec*np.log(logits) + (1-logits_vec)*np.log(1-logits), axis=0) def grad_softmax_crossentropy_with_logits(logits, reference_answers): logits_vec = np.zeros(logits.shape) logits_vec[reference_answers, :] = 1 out = logits_vec - logits return out ### END Solution # + def softmax_crossentropy_with_logits(logits,reference_answers): """Compute crossentropy from logits[batch,n_classes] and ids of correct answers""" logits_for_answers = logits[np.arange(len(logits)),reference_answers] xentropy = - logits_for_answers + np.log(np.sum(np.exp(logits),axis=-1)) return xentropy def grad_softmax_crossentropy_with_logits(logits,reference_answers): """Compute crossentropy gradient from logits[batch,n_classes] and ids of correct answers""" ones_for_answers = np.zeros_like(logits) ones_for_answers[np.arange(len(logits)),reference_answers] = 1 softmax = np.exp(logits) / np.exp(logits).sum(axis=-1,keepdims=True) return (- ones_for_answers + softmax) / logits.shape[0] # + np.random.seed(42) mlp = MLP(input_size=input_size, hidden_layer_size=100, output_size=classes_n) epochs_n = 100 learning_curve = [0] * epochs_n test_curve = [0] * epochs_n x_train = digits_train x_test = digits_test y_train = targets_train y_test = targets_test learning_rate = 1e-2 for epoch in range(epochs_n): for sample_i in range(train_size): x = x_train[sample_i].reshape(-1, 1) #print('x shape: ',x.shape) target = np.array([y_train[sample_i]]) ### BEGIN Solution mlp.linear1.thetas_grads = np.zeros_like(mlp.linear1.thetas_grads) mlp.linear2.thetas_grads = np.zeros_like(mlp.linear2.thetas_grads) mlp.linear1.bias_grads = np.zeros_like(mlp.linear1.bias_grads) mlp.linear2.bias_grads = np.zeros_like(mlp.linear2.bias_grads) prediction = mlp.forward(x) loss = softmax_crossentropy_with_logits(prediction, target) print(prediction) grad_loss = grad_softmax_crossentropy_with_logits(prediction, target) learning_curve[epoch] += loss mlp.backward(x, grad_loss) mlp.linear1.thetas -= mlp.linear1.thetas_grads * learning_rate mlp.linear2.thetas -= mlp.linear2.thetas_grads * learning_rate mlp.linear1.bias -= mlp.linear1.bias_grads * learning_rate mlp.linear2.bias -= mlp.linear2.bias_grads * learning_rate learning_curve[epoch] /= train_size preds = [] #print(loss) for sample_i in range(digits_test.shape[0]): x = x_test[sample_i].reshape(-1, 1) target = np.array([y_test[sample_i]]) pred = mlp.forward(x) loss = softmax_crossentropy_with_logits(pred, target) test_curve[epoch] += loss preds.append(np.argmax(pred, axis=0)) acc = accuracy_score(preds, y_test) test_curve[epoch] /=digits_test.shape[0] if epoch % 10 == 0: print('Starting epoch {}'.format(epoch),', Accuracy on test: ', acc) print() ### END Solution plt.plot(learning_curve,label='learning') plt.plot(test_curve, label='test') plt.legend() # - # confusion matrix predictions = mlp.forward(digits).argmax(axis = 1) pd.DataFrame(confusion_matrix(targets, predictions)) # >>> your solution here <<< # - Number 1, 3, 9 and 7 were predicted worse compared to other numbers. Thus is due to some similarity between numbers. The only strange thing is that there are 18 confusions between '1' and '8'. This result is worse compared to KNN with PCA from part 1, but such comparison is not fare since PCA provides great advantage by culling low-variance features. # ## Task 2. Autoencoders. (7 points) # # ### Task 2.1. Autoencoder on the tabular data. (3 points) # # # We will biuld the latent representation for tabular data with simple Autoencoding (AE) network. We will work with the cancer dataset from the scikit-learn package. You are to follow the instructions `1.0 - 1.6`. # # 1. **(1 pt.)** Implement the AE modules; # 2. **(2 pt.)** Train AE to get latent representation of the cancer dataset from `sklearn.datasets()`. Use `MSE` loss and get < $0.28$ on validation, with AE "bottleneck" = $2$; # 3. **(1 pt.)** Plot the latent representation of whole dataset in 2D and use colors to show object of differneet classes; # + # imports import sklearn.datasets as sk_data from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.preprocessing import StandardScaler import torch import torch.nn as nn import torch.utils.data as torch_data # - # #### 1.0 Featch the data. Scale it and split on train and test. # + cancer_dset = sk_data.load_breast_cancer() X = StandardScaler().fit_transform(cancer_dset['data']) print('Features: ', list(cancer_dset['feature_names'])) print('\nShape:', X.shape) X_train, X_val, y_train, y_val = train_test_split(X, cancer_dset['target'], test_size=0.2, random_state=42) print('\nTrain size: ', len(X_train)) print('Validation size: ', len(X_val)) # - # #### 1.1 Let us firtly make the dataset, which we'll be able to use with pytorch dataloader. # Implement the `__len__` and `__getitem__` methods. class CancerData(torch_data.Dataset): def __init__(self, X, y): super(CancerData, self).__init__() self.X = torch.tensor(X, dtype=torch.float32) self.y = torch.tensor(y, dtype=torch.float32) def __len__(self): return self.X.shape[0] def __getitem__(self, idx): return self.X[idx].unsqueeze(0), self.y[idx] # + train_dset = CancerData(X_train, y_train) val_dset = CancerData(X_val, y_val) print(train_dset[5]) # - # #### 1.2 Now, we'll be making a base class for out autoencoder. # It takes as input encoder and decoder (it will be tow neural networks). Using this two oblects, your task is to implement the forward pass. class MyFirstAE(nn.Module): def __init__(self, encoder, decoder): super(MyFirstAE, self).__init__() self.encoder = encoder self.decoder = decoder def forward(self, x): """ Take a mini-batch as an input, encode it to the latent space and decode back to the original space x_out = decoder(encoder(x)) :param x: torch.tensor, (MB, x_dim) :return: torch.tensor, (MB, x_dim) """ return self.decoder(self.encoder(x))# >>> your solution here <<< # #### 1.3 It is time to create neural networks for encoder an decoder networks. # Make hidden size of the network to be equal to `2`. # # **Hint.** You can use `nn.Sequential` to create your archtectures. # + ss = 200 sample_size = X.shape[1] encoder = nn.Sequential( nn.Linear(sample_size, ss*1), nn.ReLU(inplace=True), nn.Linear(ss*1,2) ) decoder = nn.Sequential( nn.Linear(2, ss*1), nn.ReLU(inplace=True), nn.Linear(ss*1, sample_size) ) # + device = 'cpu' net = MyFirstAE(encoder, decoder) criterion = nn.MSELoss() optimizer = torch.optim.Adam(net.parameters(), lr=1e-2) scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=50, gamma=0.7) train_loader = torch_data.DataLoader(train_dset, batch_size=100, shuffle=True) val_loader = torch_data.DataLoader(val_dset, batch_size=100, shuffle=False) # - # #### 1.4 Implement the missing parts in the `train` function def train(epochs, net, criterion, optimizer, train_loader, val_loader,scheduler=None, verbose=True, save_dir=None): net.to(device) for epoch in range(1, epochs+1): net.train() for X, _ in train_loader: # >>> your solution here <<< X = X.to(device) out = net(X) loss = criterion(out, X) optimizer.zero_grad() loss.backward() optimizer.step() # defining NN evaluation net.eval() for X, _ in val_loader: # >>> your solution here <<< X = X.to(device) out = net(X) val_loss = criterion(out, X) if scheduler is not None: scheduler.step() freq = max(epochs//20,1) if verbose and epoch%freq==0: print('Epoch {}/{} || Loss: Train {:.4f} | Validation {:.4f}'.format(epoch, epochs, loss.item(), val_loss.item())) # #### 1.5 Train your AE on breast cancer dataset. # Your goal is to get validation error < that 0.3. # # Some feartures that mey help you to improve performance: # * `Dropout` # * `Batchnorm` # * lr scheduler (e.g. reduce learning) # * Batch size # for `MSE` loss get < 0.28 on validation, with AE "bottleneck" = 2 train(100, net, criterion, optimizer, train_loader, val_loader, scheduler) # #### 1.6 Let's take a look at the latent space. # Encode the whole dataset, using your AE, plot it in 2D and use colors to show object of differneet classes # + ### BEGIN Solution plt.figure(figsize=(14, 5)) net.eval() enc = net.encoder(torch.from_numpy(X).float()).detach().numpy() plt.scatter(enc[:,0], enc[:,1], c=cancer_dset['target'], alpha=0.7); plt.title('Latent space from the Autoencoder bottle neck, purple dots go for malignant samples. '); ### END Solution # - # ### Task 2.2. Autoencoder on kMNIST. (4 points) # # # We will build the latent representation for `kMRIST` dataset, which you are already familiar with, using our AE network. We will work with the data from `Part 1`. # # 1. **(2 pt.)** Train AE to get latent representation of the `kMNIST` dataset from `sklearn.datasets()`. Follow the instructions `2.0 - 2.4`. Use `MSE` loss and get < $0.035$ on validation, with AE "bottleneck" < $40$; # 2. **(1 pt.)** Plot 10 images and their reconstructions. Plot the latent representation of the whole dataset in 3D, compare visually to your manifold from `Part 1` and upload (pictures) screenshots to this notebook. # 3. **(1 pt.)** Get the classification accuracy for the latest features. Use the `KNN` classifier with any hyperparameters you'll choose. Write a couple of sentences comparing the results of `manifold learning` and ` AE`. # 3. **(BONUS 3 pt.)** Sampling from latent representation. # + def load(f): return np.load(f)['arr_0'] # Load the data x_train = load('data/kmnist/kmnist-train-imgs.npz') x_test = load('data/kmnist/kmnist-test-imgs.npz') y_train = load('data/kmnist/kmnist-train-labels.npz') y_test = load('data/kmnist/kmnist-test-labels.npz') # Reshape the data and scale x_train = x_train.reshape(-1, 28*28)/255# >>> your solution here <<< x_test = x_test.reshape(-1, 28*28)/255# >>> your solution here <<< # - fig, ax = plt.subplots(ncols=10, figsize=(20, 5)) for i in range(10): ax[i].imshow(x_train[i].reshape(28,28)); ax[i].axis('off') class kMNISTData(torch_data.Dataset): def __init__(self, X, y): super(kMNISTData, self).__init__() self.X = torch.tensor(X, dtype=torch.float32) self.y = y.astype(int) def __len__(self): return self.X.shape[0]# >>> your solution here <<< def __getitem__(self, idx): return self.X[idx].unsqueeze(0), self.y[idx]# >>> your solution here <<< train_kmnist = kMNISTData(x_train, y_train) ### YOUR CODE HERE ### test_kmnist = kMNISTData(x_test, y_test) ### YOUR CODE HERE ### # #### 2.0 Create encoder and decoder network for kMNIST. # You can either use convolutions or flatten the images and use linear layers. You can choose hidden size (not larger than 40) and any architecture you like. x_train.shape sample_size = x_train.shape[1] ss = 128 encoder = lambda hid: nn.Sequential( nn.Linear(sample_size, ss*4), nn.LeakyReLU(inplace=True), nn.Dropout(0.2), nn.Linear(ss*4, ss*2), nn.LeakyReLU(inplace=True), nn.Dropout(0.2), nn.Linear(ss*2, hid) ) decoder = lambda hid: nn.Sequential( nn.Linear(hid, ss*2), nn.LeakyReLU(inplace=True), nn.Dropout(0.2), nn.Linear(ss*2, ss*4), nn.LeakyReLU(inplace=True), nn.Dropout(0.2), nn.Linear(ss*4, sample_size) ) # #### 2.1 Train AE on the kMNIST. # Your goal is to obtain MSE on the test set < $0.035$ on `MyFirstAE(encoder(40), decoder(40))`. # + device = 'cpu' net = MyFirstAE(encoder(40), decoder(40)) criterion = nn.MSELoss() optimizer = torch.optim.Adam(net.parameters(), lr=1e-4) scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=50, gamma=0.7) train_loader = torch_data.DataLoader(train_kmnist, batch_size=128, shuffle=True) val_loader = torch_data.DataLoader(test_kmnist, batch_size=128, shuffle=False) # - epochs = 100 train(epochs, net, criterion, optimizer, train_loader, val_loader, scheduler) # #### 2.2 Plot any 10 images and their reconstructions. fig, ax = plt.subplots(ncols=10, nrows=2, figsize=(20, 5)) for i in range(10): im = train_kmnist[i][0] rec = net(im.reshape(1, 28*28).to(device)) ax[0, i].imshow(im[0].reshape(28,28)); ax[1, i].imshow(rec.detach().numpy().reshape(28,28)); ax[0, i].axis('off') ax[1, i].axis('off') # #### 2.3 Plot the latent representation of whole dataset in 3D, compare visually to your manifold from `Part 1` and upload (pictures) screenshoots to this notebook. # + from mpl_toolkits.mplot3d import Axes3D fig = plt.figure(figsize=(20, 20)) ax = Axes3D(fig) cdict = {0: 'red', 1: 'blue', 2: 'green', 3: 'olive', 4: 'magenta', 5: 'yellow', 6: 'black', 7: 'orange', 8: 'pink', 9: 'purple'} target = np.concatenate((train_kmnist[:][1], test_kmnist[:][1]), axis=0) all_data = np.concatenate((train_kmnist[:][0][0], test_kmnist[:][0][0]), axis=0) rec = net.encoder(torch.from_numpy(all_data)).detach().numpy() ax.scatter(rec[:, 0], rec[:, 1], rec[:, 2], c=target) # - # PCA_kNN from part 1 3D represenation:![pca.png](attachment:pca.png) # Autoencoder 3D representation: ![autoencoder.png](attachment:autoencoder.png) # #### 2.4 Get the classification accuracy for the latest features. Use the `KNN` classifier with any hyperparameters you'll choose. Write a couple of sentences comparing the results of `manifold learning` and ` AE`. d = [rec[i, :] for i in range(rec.shape[0])] df = pd.DataFrame(data=d) df['target'] = target datka = df.drop('target', axis=1) targ = df.target # + from sklearn.model_selection import cross_val_score, StratifiedKFold from sklearn.preprocessing import StandardScaler from sklearn.neighbors import KNeighborsClassifier cv_score = [] sk = StratifiedKFold(n_splits=5) knn = KNeighborsClassifier(n_neighbors=10, n_jobs=-1) cv_score.append(cross_val_score(knn, datka, targ, cv=sk).mean()) print('cv accuracy: ', np.max(cv_score)) # - # - KNN shown 1.5% higher accuracy compared to the case with PCA from Part 1. Isomap could have shown better results, but it's very computationaly heavy, this is why I used PCA in Part 1. Autoencoder, by the way, is very computationaly light(tooks less than 1 sec to encode-decode on my laptop) # ### BONUS: Sampling from latent space. (3 points) # # Imagine, that you want to generate images, using you AE. To do that, you need to sample from the latent space and then decode the result. Of course, we do not know the exact distribution of the latent space. Therefore, let us assume that latent space distribution is Gaussian: # # * Encode all the training images into the latent space # * Calculate mean and covariance matrix ($\mu$ and $\Sigma$) # * Sample $z$ from the $\mathcal{N}(\mu, \Sigma)$ # * Decode $z$ from the previous step to obtain an image # # Using the procedure described above, sample 10 images and plot them (they should be similar to those of the initial dataset) target = train_kmnist[:][1] encoded = net.encoder(train_kmnist[:][0][0]).detach().numpy() #calc mean mean = np.mean(encoded, axis=0) #calc cov matrix cov = np.cov(encoded.T) #draw 10 samples samples = np.random.multivariate_normal(mean, cov, 10) fig, ax = plt.subplots(ncols=10, figsize=(20, 5)) samples = torch.from_numpy(samples) #decode samples decoded = net.decoder(samples.float()).detach().numpy() for i in range(10): ax[i].imshow(decoded[i].reshape(28,28)); ax[i].axis('off') # **Yeah, so you can get more than `100%` for the homework, good luck!**
25,263
/notebooks/.ipynb_checkpoints/02_practice_exercises-checkpoint.ipynb
4a64c4c84754ced3728015437cd7f50594775aa2
[]
no_license
pcthink11/dw17
https://github.com/pcthink11/dw17
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
85,247
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # author - Richard Liao # Dec 26 2016 # https://richliao.github.io/supervised/classification/2016/11/26/textclassifier-convolutional/ import numpy as np import pandas as pd import pickle from collections import defaultdict import re from bs4 import BeautifulSoup import sys import os os.environ['KERAS_BACKEND']='theano' from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from keras.utils.np_utils import to_categorical from keras.layers import Embedding from keras.layers import Dense, Input, Flatten from keras.models import Sequential from keras.layers.core import Activation from keras.layers import Conv1D, MaxPooling1D, Embedding, Merge, Dropout, Reshape from keras.models import Model from keras.models import load_model from keras.callbacks import EarlyStopping, ModelCheckpoint from keras.regularizers import l2 import matplotlib.pyplot as plt from sklearn import preprocessing from sklearn.model_selection import train_test_split # fix random seed for reproducibility seed = 42 np.random.seed(seed) # %matplotlib inline # + MAX_SEQUENCE_LENGTH = 1000 # top 30 MAX_NB_WORDS = 20000 # more than vocab size EMBEDDING_DIM = 100 VALIDATION_SPLIT = 0.2 data_train = pd.read_csv('../result_all_windows_labels.csv') # Cleanup - remove no labels data_train = data_train[data_train['label'].notnull()] data_train = data_train[data_train.label != 'environmental'] data_train = data_train[data_train.label != 'religious'] data_train = data_train[data_train.label != 'economical'] label_cat = {'violence/terrorism' : 1, 'misc': 2, 'political': 3, # 'religious': 4, 'economical': 5, 'environmental': 6 } print(label_cat) def to_category(x): return label_cat[x] data_train['target'] = data_train.apply(lambda row: to_category(row['label']), axis=1) data_train['target'].plot.hist(alpha=0.5) texts = [] # Get corpus by joining all keywords for index, row in data_train.iloc[ :, 2:32].iterrows(): texts.append(u' '.join(row.tolist())) data_train['topicFlat'] = texts # texts = datdata_traina_train['topicFlat'] labels = data_train['target'] # print(labels) data_train['topicFlat'].head() # + # %%time tokenizer = Tokenizer(num_words=MAX_NB_WORDS) tokenizer.fit_on_texts(texts) # max_fatures = 10000 # tokenizer = Tokenizer(num_words=max_fatures, split=' ') # tokenizer.fit_on_texts(data_train['topicFlat'].values) # X = tokenizer.texts_to_sequences(data_train['topicFlat'].values) # X = pad_sequences(X) # Y = pd.get_dummies(data_train['label']).values # x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size = 0.33, random_state = 42) # print(y_train[100]) # print(x_train.shape,y_train.shape) # print(x_test.shape, y_test.shape) # print('Number of positive and negative reviews in traing and validation set ') # print (y_train.sum(axis=0)) # print (y_test.sum(axis=0)) # print(X.shape[0]) sequences = tokenizer.texts_to_sequences(texts) # print(sequences[0]) # print (max(sequences, key=len)) word_index = tokenizer.word_index print('Found %s unique tokens.' % len(word_index)) # all the tokens in corpus # # print(word_index) data = pad_sequences(sequences, maxlen=MAX_SEQUENCE_LENGTH) # print(data[0]) labels = to_categorical(np.asarray(labels)) print('Shape of data tensor:', data.shape) print('Shape of label tensor:', labels.shape) # + indices = np.arange(data.shape[0]) np.random.shuffle(indices) data = data[indices] labels = labels[indices] nb_validation_samples = int(VALIDATION_SPLIT * data.shape[0]) x_train = data[:-nb_validation_samples] y_train = labels[:-nb_validation_samples] x_test = data[-nb_validation_samples:] y_test = labels[-nb_validation_samples:] print('Number of positive and negative reviews in traing and validation set ') print (y_train.sum(axis=0)) print (y_test.sum(axis=0)) # + # %%time # https://www.kaggle.com/rtatman/glove-global-vectors-for-word-representation/data GLOVE_DIR = "../data/" embeddings_index = {} f = open(os.path.join(GLOVE_DIR, 'glove.6B.100d.txt')) for line in f: values = line.split() word = values[0] coefs = np.asarray(values[1:], dtype='float32') embeddings_index[word] = coefs f.close() print('Total %s word vectors in Glove 6B 100d.' % len(embeddings_index)) # - def plot_history(history): # list all data in history print(history.history.keys()) # summarize history for accuracy plt.plot(history.history['acc']) plt.plot(history.history['val_acc']) plt.title('model accuracy') plt.ylabel('accuracy') plt.xlabel('epoch') plt.legend(['train', 'test'], loc='upper left') plt.show() # summarize history for loss plt.plot(history.history['loss']) plt.plot(history.history['val_loss']) plt.title('model loss') plt.ylabel('loss') plt.xlabel('epoch') plt.legend(['train', 'test'], loc='upper left') plt.show() # + # %%time embedding_matrix = np.random.random((len(word_index) + 1, EMBEDDING_DIM)) for word, i in word_index.items(): embedding_vector = embeddings_index.get(word) if embedding_vector is not None: # words not found in embedding index will be all-zeros. embedding_matrix[i] = embedding_vector embedding_layer = Embedding(len(word_index) + 1, EMBEDDING_DIM, weights=[embedding_matrix], # input_length=MAX_SEQUENCE_LENGTH, trainable=True) # Embedding(5000, 32, input_length=500) # + # %%time epochs=20 sequence_input = Input(shape=(MAX_SEQUENCE_LENGTH,), dtype='int32') embedded_sequences = embedding_layer(sequence_input) l_cov1= Conv1D(128, 5, activation='relu')(embedded_sequences) l_pool1 = MaxPooling1D(5)(l_cov1) l_cov2 = Conv1D(128, 5, activation='relu')(l_pool1) l_pool2 = MaxPooling1D(5)(l_cov2) l_cov3 = Conv1D(128, 5, activation='relu')(l_pool2) l_pool3 = MaxPooling1D(35)(l_cov3) # global max pooling l_flat = Flatten()(l_pool3) l_dense = Dense(128, activation='relu')(l_flat) preds = Dense(len(label_cat) + 1, activation='softmax')(l_dense) model = Model(sequence_input, preds) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) print("model fitting - simplified convolutional neural network") model.summary() model_name = 'topicConvNet-Reg.h5' early_stop = EarlyStopping(monitor='val_loss', patience=4, verbose=1) # best_model = ModelCheckpoint(model_name, verbose=1, save_best_only=True) best_model = ModelCheckpoint('weights.{epoch:03d}-{val_acc:.4f}.hdf5', monitor='val_acc', verbose=1, save_best_only=True, mode='auto') network_hist = model.fit(x_train, y_train, validation_data=(x_test, y_test), verbose=True, callbacks=[early_stop, best_model], validation_split=0.2, epochs=epochs, batch_size=50) score, acc = model.evaluate(x_test, y_test, batch_size=50) print('Test score:', score) print('Test accuracy:', acc) # print(network_hist.history) plot_history(network_hist) # + from IPython.display import SVG from keras.utils.vis_utils import model_to_dot SVG(model_to_dot(model).create(prog='dot', format='svg')) # + embedding_matrix = np.random.random((len(word_index) + 1, EMBEDDING_DIM)) for word, i in word_index.items(): embedding_vector = embeddings_index.get(word) if embedding_vector is not None: # words not found in embedding index will be all-zeros. embedding_matrix[i] = embedding_vector embedding_layer = Embedding(len(word_index) + 1, EMBEDDING_DIM, weights=[embedding_matrix], input_length=MAX_SEQUENCE_LENGTH, trainable=True) # applying a more complex convolutional approach convs = [] filter_sizes = [3,4,5] sequence_input = Input(shape=(MAX_SEQUENCE_LENGTH,), dtype='int32') embedded_sequences = embedding_layer(sequence_input) for fsz in filter_sizes: l_conv = Conv1D(filters=128,filter_length=fsz, activation='relu')(embedded_sequences) l_pool = MaxPooling1D(5)(l_conv) convs.append(l_pool) l_merge = Merge(mode='concat', concat_axis=1)(convs) l_cov1= Conv1D(filters=128, kernel_size=5, activation='relu')(l_merge) l_pool1 = MaxPooling1D(5)(l_cov1) l_cov2 = Conv1D(filters=128, kernel_size=5, activation='relu')(l_pool1) l_pool2 = MaxPooling1D(30)(l_cov2) l_flat = Flatten()(l_pool2) l_dense = Dense(128, activation='relu')(l_flat) preds = Dense(len(label_cat) + 1, activation='softmax')(l_dense) model = Model(sequence_input, preds) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) print("model fitting - more complex convolutional neural network") model.summary() model_name = 'topicConv_20.h5' early_stop = EarlyStopping(monitor='val_loss', patience=2, verbose=1) # best_model = ModelCheckpoint(model_name, verbose=0, save_best_only=True) best_model = ModelCheckpoint('weights.{epoch:03d}-{val_acc:.4f}.hdf5', monitor='val_acc', verbose=1, save_best_only=True, mode='auto') network_hist = model.fit(x_train, y_train, validation_data=(x_test, y_test), verbose=True, callbacks=[early_stop, best_model], epochs=20, batch_size=50) score, acc = model.evaluate(x_test, y_test, batch_size=50) print('Test score:', score) print('Test accuracy:', acc) # print(network_hist.history) plot_history(network_hist) # + # EMBEDDING_DIM = 32 # embedding_matrix = np.random.random((len(word_index) + 1, EMBEDDING_DIM)) # for word, i in word_index.items(): # embedding_vector = embeddings_index.get(word) # if embedding_vector is not None: # # words not found in embedding index will be all-zeros. # embedding_matrix[i] = embedding_vector # embedding_layer = Embedding(len(word_index) + 1, # EMBEDDING_DIM, # weights=[embedding_matrix], # input_length=MAX_SEQUENCE_LENGTH, # trainable=True) # create the model model = Sequential() model.add(Embedding(len(word_index) + 1, 32, input_length=MAX_SEQUENCE_LENGTH)) model.add(Conv1D(filters=32, kernel_size=3, padding='same', activation='relu')) model.add(MaxPooling1D(pool_size=2)) model.add(Flatten()) model.add(Dense(250, activation='relu')) model.add(Dense(len(label_cat) + 1, activation='sigmoid')) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) print(model.summary()) model_name = 'topicConv_simple.h5' early_stop = EarlyStopping(monitor='val_loss', patience=4, verbose=1) best_model = ModelCheckpoint(model_name, verbose=1, save_best_only=True) network_hist = model.fit(x_train, y_train, validation_data=(x_test, y_test), verbose=True, callbacks=[early_stop, best_model], epochs=20, batch_size=50) # Evaluation on the test set score, acc = model.evaluate(x_test, y_test) print("Test score: %.2f%%" % (score*100)) print("Test accuracy: %.2f%%" % (acc*100)) # print(network_hist.history) plot_history(network_hist)
11,412
/COVID_PREDICTION.ipynb
f4c7d4dbfafee648d5ce9c32616ca0977dd8b495
[]
no_license
pd1298/COVID19-PREDICTION
https://github.com/pd1298/COVID19-PREDICTION
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
589,233
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="0ccIvQkU96Zo" colab_type="text" # Importing Important Libraries # + id="D_1LLIDOqNMY" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 74} outputId="b746ce2a-0c61-4b3a-d7b9-11d0391dae0b" # importing the required libraries import pandas as pd # Visualisation libraries import matplotlib.pyplot as plt # %matplotlib inline import seaborn as sns import plotly.express as px import plotly.graph_objects as go import folium from folium import plugins # Manipulating the default plot size plt.rcParams['figure.figsize'] = 10, 12 # Disable warnings import warnings warnings.filterwarnings('ignore') # + [markdown] id="EIHjFFG4IJ_f" colab_type="text" # 1.Reading the Datasets # + id="J6qskKA4qOsd" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 798} outputId="849ebf31-4c95-4134-e0da-ed3aea58f0dd" #Reading a .xls file by creating a dataframe using pandas # Reading the datasets df= pd.read_excel('/content/drive/My Drive/COVID PREDICTION/Covid cases in India.xlsx') df_india = df.copy() df # + id="zJ_3JfmeqOt_" colab_type="code" colab={} #Coordinates of India States and Union Territories India_coord = pd.read_excel('/content/drive/My Drive/COVID PREDICTION/Indian Coordinates.xlsx') #Day by day data of India, Korea, Italy and Wuhan dbd_India = pd.read_excel('/content/drive/My Drive/COVID PREDICTION/per_day_cases.xlsx',parse_dates=True, sheet_name='India') dbd_Italy = pd.read_excel('/content/drive/My Drive/COVID PREDICTION/per_day_cases.xlsx',parse_dates=True, sheet_name="Italy") dbd_Korea = pd.read_excel('/content/drive/My Drive/COVID PREDICTION/per_day_cases.xlsx',parse_dates=True, sheet_name="Korea") dbd_Wuhan = pd.read_excel('/content/drive/My Drive/COVID PREDICTION/per_day_cases.xlsx',parse_dates=True, sheet_name="Wuhan") # + [markdown] id="uD1GI1ASIVdK" colab_type="text" # 2. Analysing the COVID19 Dataset # + id="aaz8XFJkqOw2" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 35} outputId="a85cfea3-4946-4074-b5c1-b695937019af" #Total case is the total number of confirmed cases (Indian National + Foreign National) df.drop(['S. No.'],axis=1,inplace=True) df['Total cases'] = df['Total Confirmed cases (Indian National)'] + df['Total Confirmed cases ( Foreign National )'] total_cases = df['Total cases'].sum() print('Total number of confirmed COVID 2019 cases across India till date (22nd March, 2020):', total_cases) # + id="A41HRuQ8qOzb" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 563} outputId="5930441a-6b3b-444a-c60a-523e1b447ab2" #Learn how to highlight your dataframe df.style.background_gradient(cmap='Reds') # + [markdown] id="rhY6uS-IIjdG" colab_type="text" # 3.Number of Active COVID cases # + id="BkwWaTtis70E" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 602} outputId="31a253fb-4ed2-40a2-8cce-f30f1abcf854" #Total Active is the Total cases - (Number of death + Cured) df['Total Active'] = df['Total cases'] - (df['Death'] + df['Cured']) total_active = df['Total Active'].sum() print('Total number of active COVID 2019 cases across India:', total_active) Tot_Cases = df.groupby('Name of State / UT')['Total Active'].sum().sort_values(ascending=False).to_frame() Tot_Cases.style.background_gradient(cmap='Reds') # + [markdown] id="S5BQhEToIrnF" colab_type="text" # 4.Visualising the spread geographically # + id="RnCNIqNZs_6C" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 689} outputId="9eb53828-bcd2-409b-acae-422450415504" # Learn how to use folium to create a zoomable map df_full = pd.merge(India_coord,df,on='Name of State / UT') map = folium.Map(location=[20, 70], zoom_start=4,tiles='Stamenterrain') for lat, lon, value, name in zip(df_full['Latitude'], df_full['Longitude'], df_full['Total cases'], df_full['Name of State / UT']): folium.CircleMarker([lat, lon], radius=value*0.8, popup = ('<strong>State</strong>: ' + str(name).capitalize() + '<br>''<strong>Total Cases</strong>: ' + str(value) + '<br>'),color='red',fill_color='red',fill_opacity=0.3 ).add_to(map) map # + id="K8MaPqFStHck" colab_type="code" colab={} # + [markdown] id="TIKiuvQwI75e" colab_type="text" # Confirmed vs Recovered figures # + _kg_hide-input=true _kg_hide-output=false id="yBavZ1TndhFG" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 497} outputId="3fa18b95-0ba1-4c99-bb0d-66ab4992c7c9" #Learn how to use Seaborn for visualization f, ax = plt.subplots(figsize=(12, 8)) data = df_full[['Name of State / UT','Total cases','Cured','Death']] data.sort_values('Total cases',ascending=False,inplace=True) sns.set_color_codes("pastel") sns.barplot(x="Total cases", y="Name of State / UT", data=data,label="Total", color="r") sns.set_color_codes("muted") sns.barplot(x="Cured", y="Name of State / UT", data=data, label="Cured", color="g") # Add a legend and informative axis label ax.legend(ncol=2, loc="lower right", frameon=True) ax.set(xlim=(0, 35), ylabel="",xlabel="Cases") sns.despine(left=True, bottom=True) # + [markdown] id="qNrAEx7iJC26" colab_type="text" # How the Coronavirus cases are rising? # + id="BHFEy_aEtOHs" colab_type="code" colab={} #This cell's code is required when you are working with plotly on colab import plotly plotly.io.renderers.default = 'colab' # + id="b_zF2OCmtWls" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 942} outputId="8c883f46-e07b-4210-e432-f09ab19f5be8" #Learn how to create interactive graphs using plotly # import plotly.graph_objects as go # Rise of COVID-19 cases in India fig = go.Figure() fig.add_trace(go.Scatter(x=dbd_India['Date'], y = dbd_India['Total Cases'], mode='lines+markers',name='Total Cases')) fig.update_layout(title_text='Trend of Coronavirus Cases in India (Cumulative cases)',plot_bgcolor='rgb(230, 230, 230)') fig.show() # New COVID-19 cases reported daily in India import plotly.express as px fig = px.bar(dbd_India, x="Date", y="New Cases", barmode='group', height=400) fig.update_layout(title_text='Coronavirus Cases in India on daily basis',plot_bgcolor='rgb(230, 230, 230)') fig.show() # + [markdown] id="fIEIDFQVJJSG" colab_type="text" # Cumulative cases in India, Italy, S.Korea, and Wuhan # + id="TI0VxFsztZKi" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 1000} outputId="7da833d5-7b5b-4753-8b06-89cbf3edfcfd" # import plotly.express as px fig = px.bar(dbd_India, x="Date", y="Total Cases", color='Total Cases', orientation='v', height=600, title='Confirmed Cases in India', color_discrete_sequence = px.colors.cyclical.IceFire) '''Colour Scale for plotly https://plot.ly/python/builtin-colorscales/ ''' fig.update_layout(plot_bgcolor='rgb(230, 230, 230)') fig.show() fig = px.bar(dbd_Italy, x="Date", y="Total Cases", color='Total Cases', orientation='v', height=600, title='Confirmed Cases in Italy', color_discrete_sequence = px.colors.cyclical.IceFire) fig.update_layout(plot_bgcolor='rgb(230, 230, 230)') fig.show() fig = px.bar(dbd_Korea, x="Date", y="Total Cases", color='Total Cases', orientation='v', height=600, title='Confirmed Cases in South Korea', color_discrete_sequence = px.colors.cyclical.IceFire) fig.update_layout(plot_bgcolor='rgb(230, 230, 230)') fig.show() fig = px.bar(dbd_Wuhan, x="Date", y="Total Cases", color='Total Cases', orientation='v', height=600, title='Confirmed Cases in Wuhan', color_discrete_sequence = px.colors.cyclical.IceFire) fig.update_layout(plot_bgcolor='rgb(230, 230, 230)') fig.show() # + [markdown] id="nFIXjOaJJU8g" colab_type="text" # Comparison between the rise of cases in Wuhan, S.Korea, Italy and India # + id="dvz3B2NWtoH1" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 542} outputId="548de806-0c45-4bd6-95a2-bf6203cf83ce" #Learn how to create subplots using plotly # import plotly.graph_objects as go from plotly.subplots import make_subplots fig = make_subplots( rows=2, cols=2, specs=[[{}, {}], [{"colspan": 2}, None]], subplot_titles=("S.Korea","Italy", "India","Wuhan")) fig.add_trace(go.Bar(x=dbd_Korea['Date'], y=dbd_Korea['Total Cases'], marker=dict(color=dbd_Korea['Total Cases'], coloraxis="coloraxis")),1, 1) fig.add_trace(go.Bar(x=dbd_Italy['Date'], y=dbd_Italy['Total Cases'], marker=dict(color=dbd_Italy['Total Cases'], coloraxis="coloraxis")),1, 2) fig.add_trace(go.Bar(x=dbd_India['Date'], y=dbd_India['Total Cases'], marker=dict(color=dbd_India['Total Cases'], coloraxis="coloraxis")),2, 1) # fig.add_trace(go.Bar(x=dbd_Wuhan['Date'], y=dbd_Wuhan['Total Cases'], # marker=dict(color=dbd_Wuhan['Total Cases'], coloraxis="coloraxis")),2, 2) fig.update_layout(coloraxis=dict(colorscale='Bluered_r'), showlegend=False,title_text="Total Confirmed cases(Cumulative)") fig.update_layout(plot_bgcolor='rgb(230, 230, 230)') fig.show() # + [markdown] id="g2BFZokAJa60" colab_type="text" # Trend after crossing 100 cases # + id="NTAw6OlDtvgF" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 542} outputId="2b2954d5-7da2-4cd2-b3fe-c7998645538e" # import plotly.graph_objects as go title = 'Main Source for News' labels = ['S.Korea', 'Italy', 'India'] colors = ['rgb(122,128,0)', 'rgb(255,0,0)', 'rgb(49,130,189)'] mode_size = [10, 10, 12] line_size = [1, 1, 8] fig = go.Figure() fig.add_trace(go.Scatter(x=dbd_Korea['Days after surpassing 100 cases'], y=dbd_Korea['Total Cases'],mode='lines', name=labels[0], line=dict(color=colors[0], width=line_size[0]), connectgaps=True)) fig.add_trace(go.Scatter(x=dbd_Italy['Days after surpassing 100 cases'], y=dbd_Italy['Total Cases'],mode='lines', name=labels[1], line=dict(color=colors[1], width=line_size[1]), connectgaps=True)) fig.add_trace(go.Scatter(x=dbd_India['Days after surpassing 100 cases'], y=dbd_India['Total Cases'],mode='lines', name=labels[2], line=dict(color=colors[2], width=line_size[2]), connectgaps=True)) annotations = [] annotations.append(dict(xref='paper', yref='paper', x=0.5, y=-0.1, xanchor='center', yanchor='top', text='Days after crossing 100 cases ', font=dict(family='Arial', size=12, color='rgb(150,150,150)'), showarrow=False)) fig.update_layout(annotations=annotations,plot_bgcolor='white',yaxis_title='Cumulative cases') fig.show() # + [markdown] id="O1IbAQtXJn1k" colab_type="text" # Exploring Worldwide Data # + id="pNxVqcmxJhtD" colab_type="code" colab={} df = pd.read_csv('/content/drive/My Drive/COVID PREDICTION/covid_19_clean_complete.csv',parse_dates=['Date']) df.rename(columns={'ObservationDate':'Date', 'Country/Region':'Country'}, inplace=True) df_confirmed = pd.read_csv("/content/drive/My Drive/COVID PREDICTION/time_series_covid19_confirmed_global.csv") df_recovered = pd.read_csv("/content/drive/My Drive/COVID PREDICTION/time_series_covid19_recovered_global.csv") df_deaths = pd.read_csv("/content/drive/My Drive/COVID PREDICTION/time_series_covid19_deaths_global.csv") df_confirmed.rename(columns={'Country/Region':'Country'}, inplace=True) df_recovered.rename(columns={'Country/Region':'Country'}, inplace=True) df_deaths.rename(columns={'Country/Region':'Country'}, inplace=True) # + id="eUQ33IqWJhu1" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 218} outputId="04f37b7b-c390-47be-caf0-504a1b00f20c" df_deaths.head() # + id="MmWi0AD3Jhyi" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 198} outputId="d5327df5-baa7-47e2-b8fe-528b530c3fb0" df.head() # + id="GrsFnRhmJh1C" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 198} outputId="7eb2420f-012f-460c-cbba-9b4ec61e94e0" df2 = df.groupby(["Date", "Country", "Province/State"])[['Date', 'Province/State', 'Country', 'Confirmed', 'Deaths', 'Recovered']].sum().reset_index() df2.head() # + id="m--6Wlc5Jh5f" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 407} outputId="2000811c-4b58-4fcc-b566-b56b76407c30" # Check for India's data df.query('Country=="India"').groupby("Date")[['Confirmed', 'Deaths', 'Recovered']].sum().reset_index() # + id="vuzDu_lcJh9V" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 228} outputId="9ae90054-5e7a-4add-817f-07788ef9e7a2" #Overall worldwide Confirmed/ Deaths/ Recovered cases df.groupby('Date').sum().head() # + [markdown] id="T6utDl93KFPY" colab_type="text" # Visualizing WorldWide COVID19 Data # + id="-ubMuxdjJh4d" colab_type="code" colab={} confirmed = df.groupby('Date').sum()['Confirmed'].reset_index() deaths = df.groupby('Date').sum()['Deaths'].reset_index() recovered = df.groupby('Date').sum()['Recovered'].reset_index() # + id="q1VV-RAqKLdw" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 542} outputId="395430dd-d314-4257-d6cb-7dc725c6f0c0" fig = go.Figure() #Plotting datewise confirmed cases fig.add_trace(go.Scatter(x=confirmed['Date'], y=confirmed['Confirmed'], mode='lines+markers', name='Confirmed',line=dict(color='blue', width=2))) fig.add_trace(go.Scatter(x=deaths['Date'], y=deaths['Deaths'], mode='lines+markers', name='Deaths', line=dict(color='Red', width=2))) fig.add_trace(go.Scatter(x=recovered['Date'], y=recovered['Recovered'], mode='lines+markers', name='Recovered', line=dict(color='Green', width=2))) fig.update_layout(title='Worldwide NCOVID-19 Cases', xaxis_tickfont_size=14,yaxis=dict(title='Number of Cases')) fig.show() # + [markdown] id="XlcgJaqFRzGY" colab_type="text" # Forecasting Total Number of Cases Worldwide # + id="Bbed4Qx3J-zm" colab_type="code" colab={} from fbprophet import Prophet # + id="ooUbGfROKUs5" colab_type="code" colab={} confirmed = df.groupby('Date').sum()['Confirmed'].reset_index() deaths = df.groupby('Date').sum()['Deaths'].reset_index() recovered = df.groupby('Date').sum()['Recovered'].reset_index() # + id="j0YPW3tdKUuv" colab_type="code" colab={} confirmed.columns = ['ds','y'] #confirmed['ds'] = confirmed['ds'].dt.date confirmed['ds'] = pd.to_datetime(confirmed['ds']) # + id="sP_kO33HKUyl" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 198} outputId="eef8a17c-c065-4c17-e1fb-0cb0f0833846" confirmed.tail() # + [markdown] id="5mS_QGZRSJen" colab_type="text" # Forecasting Confirmed NCOVID-19 Cases Worldwide with Prophet (Base model) # + id="qJsbYoFHKU8Y" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 235} outputId="abe2e5ec-12cc-4777-844e-f8b2500039af" m = Prophet(interval_width=0.95) m.fit(confirmed) future = m.make_future_dataframe(periods=7) future.tail() # + id="GRxD893LNygg" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 198} outputId="3c005358-b9c8-4bac-bf55-901b149b06b5" #predicting the future with date, and upper and lower limit of y value forecast = m.predict(future) forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail() # + id="yU148IqyNyjW" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 441} outputId="f61515ff-7825-46bc-c549-af0c7e7fe33d" confirmed_forecast_plot = m.plot(forecast) # + id="ncY09iBSNytM" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 441} outputId="0326ca99-71bf-4e99-8cd3-a5ca6c5423d1" confirmed_forecast_plot =m.plot_components(forecast) # + [markdown] id="Zrr6ouyBSYKS" colab_type="text" # Forecasting Worldwide Deaths using Prophet (Base model) # + id="YfX-slcqN9Wc" colab_type="code" colab={} deaths.columns = ['ds','y'] deaths['ds'] = pd.to_datetime(deaths['ds']) # + id="44gtwzIUN9fT" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 235} outputId="8e7ad307-8e6c-44d9-c421-8862abdb4d84" m = Prophet(interval_width=0.95) m.fit(deaths) future = m.make_future_dataframe(periods=7) future.tail() # + id="l8KjTIMON9hZ" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 198} outputId="339c5e80-d084-4d71-bd3e-b78449496a36" forecast = m.predict(future) forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail() # + id="smWg4xKYN9kx" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 441} outputId="a16d14f0-6ebf-4040-c567-aa850060ecc1" deaths_forecast_plot = m.plot(forecast) # + id="f1HQPZoGONdM" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 441} outputId="af88cd66-6802-48f4-f7b7-6e9f7a4cd49d" deaths_forecast_plot = m.plot_components(forecast) # + [markdown] id="IpraBCZLShX7" colab_type="text" # Forecasting Worldwide Recovered Cases with Prophet (Base model) # + id="DISne1aCOTGY" colab_type="code" colab={} recovered.columns = ['ds','y'] recovered['ds'] = pd.to_datetime(recovered['ds']) # + id="1MLongLsOTQe" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 235} outputId="69a01bd4-5c27-481a-832d-d5e508b2c70c" m = Prophet(interval_width=0.95) m.fit(recovered) future = m.make_future_dataframe(periods=7) future.tail() # + id="TRnCAQi0OTTb" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 198} outputId="377c9a17-3055-4699-961a-0d28a2e7f930" forecast = m.predict(future) forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail() # + id="bA06VpJoOacE" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 441} outputId="910390d8-4eaa-4c31-be19-309f7a714ca6" recovered_forecast_plot = m.plot(forecast) # + id="XNX_NhSBOamZ" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 441} outputId="1af013d8-9f3c-4ef8-ca7d-c3796be56059" recovered_forecast_plot = m.plot_components(forecast)
18,322
/09_Youtube_Data_Analysis/UseCase_9.ipynb
63a5f6b00ea1f86fd2350ae45ed473a06485fbc8
[]
no_license
VarunCK25/UseCases_PySpark
https://github.com/VarunCK25/UseCases_PySpark
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
10,292
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Youtube Data Analysis # This usecase is about analyzing the data of YouTube. This total analysis is performed using Apache Spark. This YouTube data is publicly available and the data set is described below under the heading Data Set Description. # Using that dataset, we will perform some analysis and will draw out some insights, like what are the top 10 rated videos in YouTube and who uploaded the most number of videos. # **Data Set Description** # # - **Column 1:** Video id of 11 characters. # # - **Column 2:** Uploader of the video. # # - **Column 3:** Interval between day of establishment of YouTube and the date of uploading of the video. # # - **Column 4:** Category of the video. # # - **Column 5:** Length of the video. # # - **Column 6:** Number of views for the video. # # - **Column 7:** Rating on the video. # # - **Column 8:** Number of ratings given for the video # # - **Column 9:** Number of comments on the videos. # # - **Column 10:** Related video ids with the uploaded video. # ## Initializing spark session import findspark findspark.init() import pyspark from pyspark.sql import SparkSession spark = SparkSession.builder.appName('usecase_9').getOrCreate() sc = spark.sparkContext sc.setLogLevel('ERROR') # ### YouTube Data youtube_df = spark.read.format('csv').options(header=False, inferSchema=True, delimiter='\t').load('youtubedata.txt') youtube_df.count() youtube_df.printSchema() youtube_df.show(3) from pyspark.sql.functions import desc # ### Problem Statement 1: Find out what are the top five categories with maximum number of videos uploaded. youtube_df = youtube_df.withColumnRenamed('_c3','category') youtube_df.groupBy('category').count().orderBy(desc('count')).show(5) # ### Problem Statement 2: Find the top 10 rated videos in YouTube. youtube_df = youtube_df.withColumnRenamed('_c0','video_id').withColumnRenamed('_c6','Rating') youtube_df.select('video_id','rating').show(3) youtube_df.groupBy('video_id').agg({'Rating':'sum'}).orderBy(desc('sum(Rating)')).show(10) # ## Closing Spark Session spark.stop()
2,349
/Uber.ipynb
b6a09901424616baac308575dfc41ff8d0f0e048
[]
no_license
ScottSmith59/Driving
https://github.com/ScottSmith59/Driving
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
304,717
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import pandas as pd import numpy as np from datetime import datetime df_uber = pd.read_csv('Uber.csv') # - df_uber.head() df_uber.shape df_uber.info() df_uber.describe() df_uber_clean = df_uber.copy() df_uber_clean df_uber_clean = df_uber_clean.drop('Time.1', axis=1) # + #df_uber_clean['Time']= pd.to_datetime(df_uber_clean['Time']) # - df_uber_clean.head() df_uber_clean = df_uber_clean.drop('Unnamed: 5', axis=1) df_uber_clean = df_uber_clean.drop('Total', axis=1) df_uber_clean.head() df_uber_clean.Miles = df_uber_clean.Miles.str[:-3] df_uber_clean.tail() df_uber_clean.Miles = df_uber_clean.Miles.astype(float) df_uber_clean.at[912, "Cost"] = '$7.67' df_uber_clean.info() df_uber_clean['Day'], df_uber_clean['Dates'] = df_uber_clean['Date'].str.split(' ', 1).str df_uber_clean.head() df_uber_clean = df_uber_clean.drop('Date', axis=1) df_uber_clean.head() df_uber_clean = df_uber_clean[['Day', 'Dates', 'Time', 'Miles', 'Cost', 'Beginning Route', 'End Route']] df_uber_clean.Cost = df_uber_clean.Cost.str[1:] df_uber_clean.head() df_uber_clean.Cost = df_uber_clean.Cost.astype(float) df_uber_clean.info() df_uber_clean['WkDay'] = df_uber_clean['Day'].str[:3] df_uber_clean.head() df_uber_clean = df_uber_clean.drop('Day', axis=1) df_uber_clean.head() df_uber_clean = df_uber_clean[['WkDay', 'Dates', 'Time', 'Miles', 'Cost', 'Beginning Route', 'End Route']] df_uber_clean.head() # + #df_uber_clean.loc[df_uber_clean['Beginning Route'].isna(), 'Beginning Route'] == 'none' #df_uber_clean.loc[df_uber_clean['Beginning Route'] == '', 'Beginning Route'] = df_uber_clean.loc[df_uber_clean['Beginning Route'] == '', 'Beginning Route'].fillna('none') # - df_uber_clean.mean() df_day = df_uber_clean.groupby(['WkDay'], as_index = False)['Cost'].mean() #df_day = df_uber_clean.groupby(['WkDay', "Time"], as_index = False)['Cost'].mean() df_day df_day[['WkDay'] == 'Fri'].mean() df_time_m = df_uber_clean[df_uber_clean['Time'] <= 1000] df_time_m mask = df_uber_clean['Time'] <= 1000 df_time_m = df_uber_clean[mask] df_time_m df_time_m.Cost.mean() df_time_m.WkDay.value_counts() df_time_m['Dates'].describe() df_time_a = df_uber_clean[df_uber_clean['Time'] > 1400] mask = df_uber_clean['Time'] > 1400 df_time_a = df_uber_clean[mask] df_time_a df_time_a.Cost.mean() df_time_a.WkDay.value_counts() df_time_l = df_uber_clean[(df_uber_clean.Time > 1000) & (df_uber_clean.Time <= 1400)] df_time_l df_time_l.Cost.mean() df_time_mor = df_uber_clean.query('Time < 1000') df_time_mor df_time_mor.Cost.mean() df_time_aft = df_uber_clean.query('Time > 1400') df_time_aft df_time_aft.Cost.mean() df_time_lun = df_uber_clean.query('Time > 1000 & Time <= 1400') df_time_lun df_time_lun.Cost.mean()
3,011
/dataset creation using beautifulsoup.ipynb
18f2ea8b42b3e1c4b466a3d94080a076c3e19b68
[ "MIT" ]
permissive
ranjankoirala1998/predict-box-office-revenue-with-simple-linear-regression
https://github.com/ranjankoirala1998/predict-box-office-revenue-with-simple-linear-regression
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
3,106
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- #Import necessary Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # %matplotlib inline # #### Load the dataframe into pandas dataframe data=pd.read_csv("insurance.csv") data #shape of the data data.shape # So, there are 1338 observations and 7 columns are available in the dataset. data.duplicated().sum() data=data.drop_duplicates() #Datatype of Attributes data.dtypes #Checking missing values data.isnull().values.any() # shows True==> if any missing values is there. # # False==> if any missing values is not there. # # Here, Dataset has no missing Values. # it gives total number of non null entries in the dataframe data.isnull().sum() #5 point summary of numerical attributes des_data=data.describe().T des_data # Distribution of bmi,age, charges columns. data1=data[["bmi","age","charges"]] sns.pairplot( data1) sns.distplot(data1["bmi"]) # The curve shows the density plot which is a smooth version of the histogram. The y-axis is in terms of density and the histogram is normalized by default. plt.figure(figsize = (12,8)) cnt=sns.countplot(x="age",data=data1) cnt.set_title("Different age groups:",fontsize=20) sns.boxplot("charges",data=data1) # The shape of the charges is right skewed Distribution. corr=data1.corr() corr sns.heatmap(corr) # The above correlation value informs that there is a comparatively strong relationship exists between age & charges. sns.scatterplot(x=data1['bmi'], y=data1['charges']) # The scatterplot above suggests that body mass index (BMI) and charges are positively correlated. #Measure of skewness of ‘bmi’, ‘age’ and ‘charges’ columns data1.skew() # When, Skewness=0 ==>normal distribution # # Skewness>0 ==>positively skewed distribution/Right skewed Distribution. (has a long right tail). # # Skewness<0==>negatively skewed distribution/Left skewed Distribution. (has a long left tail). # # We have al positive values that means the shape of "bmi","age","charges" are right skewed. # + #Checking the presence of outliers in ‘bmi’, ‘age’ and ‘charges columns. outliers=[] def find_outliers(data): sorted_data=sorted(data) q1,q3=np.percentile(sorted_data,[25,75]) iqr=q3-q1 min=q1-1.5*iqr max=q3+1.5*iqr for i in data: if i<min or i>max: outliers.append(i) print("The number of outliers present are:",len(outliers)) bmi=data1["bmi"] age=data1["age"] charges=data1["charges"] find_outliers(bmi) # - sns.boxplot(data1["bmi"]) sns.boxplot(data1["age"]) sns.boxplot(data1["charges"]) #Distribution of categorical column. data_cat=data[["sex","smoker","region","children"]] data_cat data_cat["smoker"].count() data_cat["smoker"].value_counts() sns.countplot("smoker",data=data_cat) data_cat["sex"].value_counts() sns.countplot(x="smoker",hue="sex",data=data_cat) pd.pivot_table(data_cat,index=["region","sex"],columns=["smoker"],aggfunc=len) #Pair plot that includes all the columns of the data frame. sns.pairplot(data) sns.pairplot(data=data,hue='sex') sns.pairplot(data=data,hue='smoker') sns.pairplot(data=data,hue='region') sns.scatterplot(x=data["bmi"], y=data["charges"], hue=data["smoker"]) sns.swarmplot(x=data["smoker"],y=data["charges"]) # This above plot shows that smokers billing amount is more than the non-smoker. # #### Do charges of people who smoke differ significantly from the people who don't ? import scipy.stats as stats # + Ho="Charges of smoker and non-smoker are same" #Null hypothesis Ha="charges of smoker and non-smoker are not same" #Alternative hypothesis # - x=np.array(data[data["smoker"]=="yes"].charges) y=np.array(data[data["smoker"]=="no"].charges) # + t_stat,p_value=stats.ttest_ind(x,y,axis=0) t_stat,p_value # - #significant level=0.05 if p_value<0.05: print(Ha) else: print(Ho) # #### Does bmi of males differ significantly from that of females? # + Ho="bmi of male and female are same" #Null hypothesis Ha="bmi of male and female are not same" #Alternative hypothesis # - x=np.array(data[data["sex"]=="male"].bmi) y=np.array(data[data["sex"]=="female"].bmi) # + t_stat,p_value=stats.ttest_ind(x,y,axis=0) t_stat,p_value # - #significant level=0.05 if p_value<0.05: print(Ha) else: print(Ho) `key in di` will return `True` if _di_ has a key _key_, else `False`. # # The dictionary `vocab` will utilize these features. # + # load in the training corpus with open("WSJ_02-21.pos", 'r') as f: training_corpus = f.readlines() print(f"A few items of the training corpus list") print(training_corpus[0:5]) # + # read the vocabulary data, split by each line of text, and save the list with open("hmm_vocab.txt", 'r') as f: voc_l = f.read().split('\n') print("A few items of the vocabulary list") print(voc_l[0:50]) print() print("A few items at the end of the vocabulary list") print(voc_l[-50:]) # + # vocab: dictionary that has the index of the corresponding words vocab = {} # Get the index of the corresponding words. for i, word in enumerate(sorted(voc_l)): vocab[word] = i print("Vocabulary dictionary, key is the word, value is a unique integer") cnt = 0 for k,v in vocab.items(): print(f"{k}:{v}") cnt += 1 if cnt > 20: break # + # load in the test corpus with open("WSJ_24.pos", 'r') as f: y = f.readlines() print("A sample of the test corpus") print(y[0:10]) # + #corpus without tags, preprocessed _, prep = preprocess(vocab, "test.words") print('The length of the preprocessed test corpus: ', len(prep)) print('This is a sample of the test_corpus: ') print(prep[0:10]) # - # <a name='1'></a> # # Part 1: Parts-of-speech tagging # # <a name='1.1'></a> # ## Part 1.1 - Training # You will start with the simplest possible parts-of-speech tagger and we will build up to the state of the art. # # In this section, you will find the words that are not ambiguous. # - For example, the word `is` is a verb and it is not ambiguous. # - In the `WSJ` corpus, $86$% of the token are unambiguous (meaning they have only one tag) # - About $14\%$ are ambiguous (meaning that they have more than one tag) # # <img src = "pos.png" style="width:400px;height:250px;"/> # # Before you start predicting the tags of each word, you will need to compute a few dictionaries that will help you to generate the tables. # #### Transition counts # - The first dictionary is the `transition_counts` dictionary which computes the number of times each tag happened next to another tag. # # This dictionary will be used to compute: # $$P(t_i |t_{i-1}) \tag{1}$$ # # This is the probability of a tag at position $i$ given the tag at position $i-1$. # # In order for you to compute equation 1, you will create a `transition_counts` dictionary where # - The keys are `(prev_tag, tag)` # - The values are the number of times those two tags appeared in that order. # #### Emission counts # # The second dictionary you will compute is the `emission_counts` dictionary. This dictionary will be used to compute: # # $$P(w_i|t_i)\tag{2}$$ # # In other words, you will use it to compute the probability of a word given its tag. # # In order for you to compute equation 2, you will create an `emission_counts` dictionary where # - The keys are `(tag, word)` # - The values are the number of times that pair showed up in your training set. # #### Tag counts # # The last dictionary you will compute is the `tag_counts` dictionary. # - The key is the tag # - The value is the number of times each tag appeared. # <a name='ex-01'></a> # ### Exercise 01 # # **Instructions:** Write a program that takes in the `training_corpus` and returns the three dictionaries mentioned above `transition_counts`, `emission_counts`, and `tag_counts`. # - `emission_counts`: maps (tag, word) to the number of times it happened. # - `transition_counts`: maps (prev_tag, tag) to the number of times it has appeared. # - `tag_counts`: maps (tag) to the number of times it has occured. # # Implementation note: This routine utilises *defaultdict*, which is a subclass of *dict*. # - A standard Python dictionary throws a *KeyError* if you try to access an item with a key that is not currently in the dictionary. # - In contrast, the *defaultdict* will create an item of the type of the argument, in this case an integer with the default value of 0. # - See [defaultdict](https://docs.python.org/3.3/library/collections.html#defaultdict-objects). # UNQ_C1 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: create_dictionaries def create_dictionaries(training_corpus, vocab): """ Input: training_corpus: a corpus where each line has a word followed by its tag. vocab: a dictionary where keys are words in vocabulary and value is an index Output: emission_counts: a dictionary where the keys are (tag, word) and the values are the counts transition_counts: a dictionary where the keys are (prev_tag, tag) and the values are the counts tag_counts: a dictionary where the keys are the tags and the values are the counts """ # initialize the dictionaries using defaultdict emission_counts = defaultdict(int) transition_counts = defaultdict(int) tag_counts = defaultdict(int) # Initialize "prev_tag" (previous tag) with the start state, denoted by '--s--' prev_tag = '--s--' # use 'i' to track the line number in the corpus i = 0 # Each item in the training corpus contains a word and its POS tag # Go through each word and its tag in the training corpus for word_tag in training_corpus: # Increment the word_tag count i += 1 # Every 50,000 words, print the word count if i % 50000 == 0: print(f"word count = {i}") ### START CODE HERE (Replace instances of 'None' with your code) ### # get the word and tag using the get_word_tag helper function (imported from utils_pos.py) word, tag = get_word_tag(word_tag, vocab) # Increment the transition count for the previous word and tag transition_counts[(prev_tag, tag)] += 1 # Increment the emission count for the tag and word emission_counts[(tag, word)] += 1 # Increment the tag count tag_counts[tag] += 1 # Set the previous tag to this tag (for the next iteration of the loop) prev_tag = tag ### END CODE HERE ### return emission_counts, transition_counts, tag_counts emission_counts, transition_counts, tag_counts = create_dictionaries(training_corpus, vocab) # get all the POS states states = sorted(tag_counts.keys()) print(f"Number of POS tags (number of 'states'): {len(states)}") print("View these POS tags (states)") print(states) # ##### Expected Output # # ```CPP # Number of POS tags (number of 'states'46 # View these states # ['#', '$', "''", '(', ')', ',', '--s--', '.', ':', 'CC', 'CD', 'DT', 'EX', 'FW', 'IN', 'JJ', 'JJR', 'JJS', 'LS', 'MD', 'NN', 'NNP', 'NNPS', 'NNS', 'PDT', 'POS', 'PRP', 'PRP$', 'RB', 'RBR', 'RBS', 'RP', 'SYM', 'TO', 'UH', 'VB', 'VBD', 'VBG', 'VBN', 'VBP', 'VBZ', 'WDT', 'WP', 'WP$', 'WRB', '``'] # ``` # The 'states' are the Parts-of-speech designations found in the training data. They will also be referred to as 'tags' or POS in this assignment. # # - "NN" is noun, singular, # - 'NNS' is noun, plural. # - In addition, there are helpful tags like '--s--' which indicate a start of a sentence. # - You can get a more complete description at [Penn Treebank II tag set](https://www.clips.uantwerpen.be/pages/mbsp-tags). # + print("transition examples: ") for ex in list(transition_counts.items())[:3]: print(ex) print() print("emission examples: ") for ex in list(emission_counts.items())[200:203]: print (ex) print() print("ambiguous word example: ") for tup,cnt in emission_counts.items(): if tup[1] == 'back': print (tup, cnt) # - # ##### Expected Output # # ```CPP # transition examples: # (('--s--', 'IN'), 5050) # (('IN', 'DT'), 32364) # (('DT', 'NNP'), 9044) # # emission examples: # (('DT', 'any'), 721) # (('NN', 'decrease'), 7) # (('NN', 'insider-trading'), 5) # # ambiguous word example: # ('RB', 'back') 304 # ('VB', 'back') 20 # ('RP', 'back') 84 # ('JJ', 'back') 25 # ('NN', 'back') 29 # ('VBP', 'back') 4 # ``` # <a name='1.2'></a> # ### Part 1.2 - Testing # # Now you will test the accuracy of your parts-of-speech tagger using your `emission_counts` dictionary. # - Given your preprocessed test corpus `prep`, you will assign a parts-of-speech tag to every word in that corpus. # - Using the original tagged test corpus `y`, you will then compute what percent of the tags you got correct. # <a name='ex-02'></a> # ### Exercise 02 # # **Instructions:** Implement `predict_pos` that computes the accuracy of your model. # # - This is a warm up exercise. # - To assign a part of speech to a word, assign the most frequent POS for that word in the training set. # - Then evaluate how well this approach works. Each time you predict based on the most frequent POS for the given word, check whether the actual POS of that word is the same. If so, the prediction was correct! # - Calculate the accuracy as the number of correct predictions divided by the total number of words for which you predicted the POS tag. # + # UNQ_C2 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: predict_pos def predict_pos(prep, y, emission_counts, vocab, states): ''' Input: prep: a preprocessed version of 'y'. A list with the 'word' component of the tuples. y: a corpus composed of a list of tuples where each tuple consists of (word, POS) emission_counts: a dictionary where the keys are (tag,word) tuples and the value is the count vocab: a dictionary where keys are words in vocabulary and value is an index states: a sorted list of all possible tags for this assignment Output: accuracy: Number of times you classified a word correctly ''' # Initialize the number of correct predictions to zero num_correct = 0 # Get the (tag, word) tuples, stored as a set all_words = set(emission_counts.keys()) # Get the number of (word, POS) tuples in the corpus 'y' total = len(y) for word, y_tup in zip(prep, y): # Split the (word, POS) string into a list of two items y_tup_l = y_tup.split() # Verify that y_tup contain both word and POS if len(y_tup_l) == 2: # Set the true POS label for this word true_label = y_tup_l[1] else: # If the y_tup didn't contain word and POS, go to next word continue count_final = 0 pos_final = '' # If the word is in the vocabulary... if word in vocab: for pos in states: ### START CODE HERE (Replace instances of 'None' with your code) ### # define the key as the tuple containing the POS and word key = (pos, word) # check if the (pos, word) key exists in the emission_counts dictionary if key in emission_counts: # complete this line # get the emission count of the (pos,word) tuple count = emission_counts[key] # keep track of the POS with the largest count if count > count_final: # complete this line # update the final count (largest count) count_final = count # update the final POS pos_final = pos # If the final POS (with the largest count) matches the true POS: if pos_final == true_label: # complete this line # Update the number of correct predictions num_correct += 1 ### END CODE HERE ### accuracy = num_correct / total return accuracy # - accuracy_predict_pos = predict_pos(prep, y, emission_counts, vocab, states) print(f"Accuracy of prediction using predict_pos is {accuracy_predict_pos:.4f}") # ##### Expected Output # ```CPP # Accuracy of prediction using predict_pos is 0.8889 # ``` # # 88.9% is really good for this warm up exercise. With hidden markov models, you should be able to get **95% accuracy.** # <a name='2'></a> # # Part 2: Hidden Markov Models for POS # # Now you will build something more context specific. Concretely, you will be implementing a Hidden Markov Model (HMM) with a Viterbi decoder # - The HMM is one of the most commonly used algorithms in Natural Language Processing, and is a foundation to many deep learning techniques you will see in this specialization. # - In addition to parts-of-speech tagging, HMM is used in speech recognition, speech synthesis, etc. # - By completing this part of the assignment you will get a 95% accuracy on the same dataset you used in Part 1. # # The Markov Model contains a number of states and the probability of transition between those states. # - In this case, the states are the parts-of-speech. # - A Markov Model utilizes a transition matrix, `A`. # - A Hidden Markov Model adds an observation or emission matrix `B` which describes the probability of a visible observation when we are in a particular state. # - In this case, the emissions are the words in the corpus # - The state, which is hidden, is the POS tag of that word. # <a name='2.1'></a> # ## Part 2.1 Generating Matrices # # ### Creating the 'A' transition probabilities matrix # Now that you have your `emission_counts`, `transition_counts`, and `tag_counts`, you will start implementing the Hidden Markov Model. # # This will allow you to quickly construct the # - `A` transition probabilities matrix. # - and the `B` emission probabilities matrix. # # You will also use some smoothing when computing these matrices. # # Here is an example of what the `A` transition matrix would look like (it is simplified to 5 tags for viewing. It is 46x46 in this assignment.): # # # |**A** |...| RBS | RP | SYM | TO | UH|... # | --- ||---:-------------| ------------ | ------------ | -------- | ---------- |---- # |**RBS** |...|2.217069e-06 |2.217069e-06 |2.217069e-06 |0.008870 |2.217069e-06|... # |**RP** |...|3.756509e-07 |7.516775e-04 |3.756509e-07 |0.051089 |3.756509e-07|... # |**SYM** |...|1.722772e-05 |1.722772e-05 |1.722772e-05 |0.000017 |1.722772e-05|... # |**TO** |...|4.477336e-05 |4.472863e-08 |4.472863e-08 |0.000090 |4.477336e-05|... # |**UH** |...|1.030439e-05 |1.030439e-05 |1.030439e-05 |0.061837 |3.092348e-02|... # | ... |...| ... | ... | ... | ... | ... | ... # # Note that the matrix above was computed with smoothing. # # Each cell gives you the probability to go from one part of speech to another. # - In other words, there is a 4.47e-8 chance of going from parts-of-speech `TO` to `RP`. # - The sum of each row has to equal 1, because we assume that the next POS tag must be one of the available columns in the table. # # The smoothing was done as follows: # # $$ P(t_i | t_{i-1}) = \frac{C(t_{i-1}, t_{i}) + \alpha }{C(t_{i-1}) +\alpha * N}\tag{3}$$ # # - $N$ is the total number of tags # - $C(t_{i-1}, t_{i})$ is the count of the tuple (previous POS, current POS) in `transition_counts` dictionary. # - $C(t_{i-1})$ is the count of the previous POS in the `tag_counts` dictionary. # - $\alpha$ is a smoothing parameter. # <a name='ex-03'></a> # ### Exercise 03 # # **Instructions:** Implement the `create_transition_matrix` below for all tags. Your task is to output a matrix that computes equation 3 for each cell in matrix `A`. # UNQ_C3 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: create_transition_matrix def create_transition_matrix(alpha, tag_counts, transition_counts): ''' Input: alpha: number used for smoothing tag_counts: a dictionary mapping each tag to its respective count transition_counts: transition count for the previous word and tag Output: A: matrix of dimension (num_tags,num_tags) ''' # Get a sorted list of unique POS tags all_tags = sorted(tag_counts.keys()) # Count the number of unique POS tags num_tags = len(all_tags) # Initialize the transition matrix 'A' A = np.zeros((num_tags,num_tags)) # Get the unique transition tuples (previous POS, current POS) trans_keys = set(transition_counts.keys()) ### START CODE HERE (Replace instances of 'None' with your code) ### # Go through each row of the transition matrix A for i in range(num_tags): # Go through each column of the transition matrix A for j in range(num_tags): # Initialize the count of the (prev POS, current POS) to zero count = 0 # Define the tuple (prev POS, current POS) # Get the tag at position i and tag at position j (from the all_tags list) key = (all_tags[i], all_tags[j]) # Check if the (prev POS, current POS) tuple # exists in the transition counts dictionary if key in transition_counts: #complete this line # Get count from the transition_counts dictionary # for the (prev POS, current POS) tuple count = transition_counts[key] # Get the count of the previous tag (index position i) from tag_counts count_prev_tag = tag_counts[all_tags[i]] # Apply smoothing using count of the tuple, alpha, # count of previous tag, alpha, and total number of tags A[i,j] = (count + alpha) / (count_prev_tag + (alpha * num_tags)) ### END CODE HERE ### return A # + alpha = 0.001 A = create_transition_matrix(alpha, tag_counts, transition_counts) # Testing your function print(f"A at row 0, col 0: {A[0,0]:.9f}") print(f"A at row 3, col 1: {A[3,1]:.4f}") print("View a subset of transition matrix A") A_sub = pd.DataFrame(A[30:35,30:35], index=states[30:35], columns = states[30:35] ) print(A_sub) # - # ##### Expected Output # ```CPP # A at row 0, col 0: 0.000007040 # A at row 3, col 1: 0.1691 # View a subset of transition matrix A # RBS RP SYM TO UH # RBS 2.217069e-06 2.217069e-06 2.217069e-06 0.008870 2.217069e-06 # RP 3.756509e-07 7.516775e-04 3.756509e-07 0.051089 3.756509e-07 # SYM 1.722772e-05 1.722772e-05 1.722772e-05 0.000017 1.722772e-05 # TO 4.477336e-05 4.472863e-08 4.472863e-08 0.000090 4.477336e-05 # UH 1.030439e-05 1.030439e-05 1.030439e-05 0.061837 3.092348e-02 # ``` # ### Create the 'B' emission probabilities matrix # # Now you will create the `B` transition matrix which computes the emission probability. # # You will use smoothing as defined below: # # $$P(w_i | t_i) = \frac{C(t_i, word_i)+ \alpha}{C(t_{i}) +\alpha * N}\tag{4}$$ # # - $C(t_i, word_i)$ is the number of times $word_i$ was associated with $tag_i$ in the training data (stored in `emission_counts` dictionary). # - $C(t_i)$ is the number of times $tag_i$ was in the training data (stored in `tag_counts` dictionary). # - $N$ is the number of words in the vocabulary # - $\alpha$ is a smoothing parameter. # # The matrix `B` is of dimension (num_tags, N), where num_tags is the number of possible parts-of-speech tags. # # Here is an example of the matrix, only a subset of tags and words are shown: # <p style='text-align: center;'> <b>B Emissions Probability Matrix (subset)</b> </p> # # |**B**| ...| 725 | adroitly | engineers | promoted | synergy| ...| # |----|----|--------------|--------------|--------------|--------------|-------------|----| # |**CD** | ...| **8.201296e-05** | 2.732854e-08 | 2.732854e-08 | 2.732854e-08 | 2.732854e-08| ...| # |**NN** | ...| 7.521128e-09 | 7.521128e-09 | 7.521128e-09 | 7.521128e-09 | **2.257091e-05**| ...| # |**NNS** | ...| 1.670013e-08 | 1.670013e-08 |**4.676203e-04** | 1.670013e-08 | 1.670013e-08| ...| # |**VB** | ...| 3.779036e-08 | 3.779036e-08 | 3.779036e-08 | 3.779036e-08 | 3.779036e-08| ...| # |**RB** | ...| 3.226454e-08 | **6.456135e-05** | 3.226454e-08 | 3.226454e-08 | 3.226454e-08| ...| # |**RP** | ...| 3.723317e-07 | 3.723317e-07 | 3.723317e-07 | **3.723317e-07** | 3.723317e-07| ...| # | ... | ...| ... | ... | ... | ... | ... | ...| # # # <a name='ex-04'></a> # ### Exercise 04 # **Instructions:** Implement the `create_emission_matrix` below that computes the `B` emission probabilities matrix. Your function takes in $\alpha$, the smoothing parameter, `tag_counts`, which is a dictionary mapping each tag to its respective count, the `emission_counts` dictionary where the keys are (tag, word) and the values are the counts. Your task is to output a matrix that computes equation 4 for each cell in matrix `B`. # + # UNQ_C4 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: create_emission_matrix def create_emission_matrix(alpha, tag_counts, emission_counts, vocab): ''' Input: alpha: tuning parameter used in smoothing tag_counts: a dictionary mapping each tag to its respective count emission_counts: a dictionary where the keys are (tag, word) and the values are the counts vocab: a dictionary where keys are words in vocabulary and value is an index. within the function it'll be treated as a list Output: B: a matrix of dimension (num_tags, len(vocab)) ''' # get the number of POS tag num_tags = len(tag_counts) # Get a list of all POS tags all_tags = sorted(tag_counts.keys()) # Get the total number of unique words in the vocabulary num_words = len(vocab) # Initialize the emission matrix B with places for # tags in the rows and words in the columns B = np.zeros((num_tags, num_words)) # Get a set of all (POS, word) tuples # from the keys of the emission_counts dictionary emis_keys = set(list(emission_counts.keys())) ### START CODE HERE (Replace instances of 'None' with your code) ### # Go through each row (POS tags) for i in range(num_tags): # complete this line # Go through each column (words) for j in range(num_words): # complete this line # Initialize the emission count for the (POS tag, word) to zero count = 0 # Define the (POS tag, word) tuple for this row and column key = (all_tags[i], vocab[j]) # check if the (POS tag, word) tuple exists as a key in emission counts if key in emission_counts.keys(): # complete this line # Get the count of (POS tag, word) from the emission_counts d count = emission_counts[key] # Get the count of the POS tag count_tag = tag_counts[all_tags[i]] # Apply smoothing and store the smoothed value # into the emission matrix B for this row and column B[i,j] = (count + alpha) / (count_tag + alpha*num_words) ### END CODE HERE ### return B # + # creating your emission probability matrix. this takes a few minutes to run. B = create_emission_matrix(alpha, tag_counts, emission_counts, list(vocab)) print(f"View Matrix position at row 0, column 0: {B[0,0]:.9f}") print(f"View Matrix position at row 3, column 1: {B[3,1]:.9f}") # Try viewing emissions for a few words in a sample dataframe cidx = ['725','adroitly','engineers', 'promoted', 'synergy'] # Get the integer ID for each word cols = [vocab[a] for a in cidx] # Choose POS tags to show in a sample dataframe rvals =['CD','NN','NNS', 'VB','RB','RP'] # For each POS tag, get the row number from the 'states' list rows = [states.index(a) for a in rvals] # Get the emissions for the sample of words, and the sample of POS tags B_sub = pd.DataFrame(B[np.ix_(rows,cols)], index=rvals, columns = cidx ) print(B_sub) # - # ##### Expected Output # # ```CPP # View Matrix position at row 0, column 0: 0.000006032 # View Matrix position at row 3, column 1: 0.000000720 # 725 adroitly engineers promoted synergy # CD 8.201296e-05 2.732854e-08 2.732854e-08 2.732854e-08 2.732854e-08 # NN 7.521128e-09 7.521128e-09 7.521128e-09 7.521128e-09 2.257091e-05 # NNS 1.670013e-08 1.670013e-08 4.676203e-04 1.670013e-08 1.670013e-08 # VB 3.779036e-08 3.779036e-08 3.779036e-08 3.779036e-08 3.779036e-08 # RB 3.226454e-08 6.456135e-05 3.226454e-08 3.226454e-08 3.226454e-08 # RP 3.723317e-07 3.723317e-07 3.723317e-07 3.723317e-07 3.723317e-07 # ``` # <a name='3'></a> # # Part 3: Viterbi Algorithm and Dynamic Programming # # In this part of the assignment you will implement the Viterbi algorithm which makes use of dynamic programming. Specifically, you will use your two matrices, `A` and `B` to compute the Viterbi algorithm. We have decomposed this process into three main steps for you. # # * **Initialization** - In this part you initialize the `best_paths` and `best_probabilities` matrices that you will be populating in `feed_forward`. # * **Feed forward** - At each step, you calculate the probability of each path happening and the best paths up to that point. # * **Feed backward**: This allows you to find the best path with the highest probabilities. # # <a name='3.1'></a> # ## Part 3.1: Initialization # # You will start by initializing two matrices of the same dimension. # # - best_probs: Each cell contains the probability of going from one POS tag to a word in the corpus. # # - best_paths: A matrix that helps you trace through the best possible path in the corpus. # <a name='ex-05'></a> # ### Exercise 05 # **Instructions**: # Write a program below that initializes the `best_probs` and the `best_paths` matrix. # # Both matrices will be initialized to zero except for column zero of `best_probs`. # - Column zero of `best_probs` is initialized with the assumption that the first word of the corpus was preceded by a start token ("--s--"). # - This allows you to reference the **A** matrix for the transition probability # # Here is how to initialize column 0 of `best_probs`: # - The probability of the best path going from the start index to a given POS tag indexed by integer $i$ is denoted by $\textrm{best_probs}[s_{idx}, i]$. # - This is estimated as the probability that the start tag transitions to the POS denoted by index $i$: $\mathbf{A}[s_{idx}, i]$ AND that the POS tag denoted by $i$ emits the first word of the given corpus, which is $\mathbf{B}[i, vocab[corpus[0]]]$. # - Note that vocab[corpus[0]] refers to the first word of the corpus (the word at position 0 of the corpus). # - **vocab** is a dictionary that returns the unique integer that refers to that particular word. # # Conceptually, it looks like this: # $\textrm{best_probs}[s_{idx}, i] = \mathbf{A}[s_{idx}, i] \times \mathbf{B}[i, corpus[0] ]$ # # # In order to avoid multiplying and storing small values on the computer, we'll take the log of the product, which becomes the sum of two logs: # # $best\_probs[i,0] = log(A[s_{idx}, i]) + log(B[i, vocab[corpus[0]]$ # # Also, to avoid taking the log of 0 (which is defined as negative infinity), the code itself will just set $best\_probs[i,0] = float('-inf')$ when $A[s_{idx}, i] == 0$ # # # So the implementation to initialize $best\_probs$ looks like this: # # $ if A[s_{idx}, i] <> 0 : best\_probs[i,0] = log(A[s_{idx}, i]) + log(B[i, vocab[corpus[0]]])$ # # $ if A[s_{idx}, i] == 0 : best\_probs[i,0] = float('-inf')$ # # Please use [math.log](https://docs.python.org/3/library/math.html) to compute the natural logarithm. # The example below shows the initialization assuming the corpus starts with the phrase "Loss tracks upward". # # <img src = "Initialize4.png"/> # Represent infinity and negative infinity like this: # # ```CPP # float('inf') # float('-inf') # ``` # UNQ_C5 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: initialize def initialize(states, tag_counts, A, B, corpus, vocab): ''' Input: states: a list of all possible parts-of-speech tag_counts: a dictionary mapping each tag to its respective count A: Transition Matrix of dimension (num_tags, num_tags) B: Emission Matrix of dimension (num_tags, len(vocab)) corpus: a sequence of words whose POS is to be identified in a list vocab: a dictionary where keys are words in vocabulary and value is an index Output: best_probs: matrix of dimension (num_tags, len(corpus)) of floats best_paths: matrix of dimension (num_tags, len(corpus)) of integers ''' # Get the total number of unique POS tags num_tags = len(tag_counts) # Initialize best_probs matrix # POS tags in the rows, number of words in the corpus as the columns best_probs = np.zeros((num_tags, len(corpus))) # Initialize best_paths matrix # POS tags in the rows, number of words in the corpus as columns best_paths = np.zeros((num_tags, len(corpus)), dtype=int) # Define the start token s_idx = states.index("--s--") ### START CODE HERE (Replace instances of 'None' with your code) ### # Go through each of the POS tags for i in range(num_tags): # complete this line # Handle the special case when the transition from start token to POS tag i is zero if A[s_idx, i] == 0: # complete this line # Initialize best_probs at POS tag 'i', column 0, to negative infinity best_probs[i,0] = float('-inf') # For all other cases when transition from start token to POS tag i is non-zero: else: # Initialize best_probs at POS tag 'i', column 0 # Check the formula in the instructions above best_probs[i,0] = np.log(A[s_idx, i]) + np.log(B[i, vocab[corpus[0]]]) ### END CODE HERE ### return best_probs, best_paths best_probs, best_paths = initialize(states, tag_counts, A, B, prep, vocab) # Test the function print(f"best_probs[0,0]: {best_probs[0,0]:.4f}") print(f"best_paths[2,3]: {best_paths[2,3]:.4f}") # ##### Expected Output # # ```CPP # best_probs[0,0]: -22.6098 # best_paths[2,3]: 0.0000 # ``` # # <a name='3.2'></a> # ## Part 3.2 Viterbi Forward # # In this part of the assignment, you will implement the `viterbi_forward` segment. In other words, you will populate your `best_probs` and `best_paths` matrices. # - Walk forward through the corpus. # - For each word, compute a probability for each possible tag. # - Unlike the previous algorithm `predict_pos` (the 'warm-up' exercise), this will include the path up to that (word,tag) combination. # # Here is an example with a three-word corpus "Loss tracks upward": # - Note, in this example, only a subset of states (POS tags) are shown in the diagram below, for easier reading. # - In the diagram below, the first word "Loss" is already initialized. # - The algorithm will compute a probability for each of the potential tags in the second and future words. # # Compute the probability that the tag of the second work ('tracks') is a verb, 3rd person singular present (VBZ). # - In the `best_probs` matrix, go to the column of the second word ('tracks'), and row 40 (VBZ), this cell is highlighted in light orange in the diagram below. # - Examine each of the paths from the tags of the first word ('Loss') and choose the most likely path. # - An example of the calculation for **one** of those paths is the path from ('Loss', NN) to ('tracks', VBZ). # - The log of the probability of the path up to and including the first word 'Loss' having POS tag NN is $-14.32$. The `best_probs` matrix contains this value -14.32 in the column for 'Loss' and row for 'NN'. # - Find the probability that NN transitions to VBZ. To find this probability, go to the `A` transition matrix, and go to the row for 'NN' and the column for 'VBZ'. The value is $4.37e-02$, which is circled in the diagram, so add $-14.32 + log(4.37e-02)$. # - Find the log of the probability that the tag VBS would 'emit' the word 'tracks'. To find this, look at the 'B' emission matrix in row 'VBZ' and the column for the word 'tracks'. The value $4.61e-04$ is circled in the diagram below. So add $-14.32 + log(4.37e-02) + log(4.61e-04)$. # - The sum of $-14.32 + log(4.37e-02) + log(4.61e-04)$ is $-25.13$. Store $-25.13$ in the `best_probs` matrix at row 'VBZ' and column 'tracks' (as seen in the cell that is highlighted in light orange in the diagram). # - All other paths in best_probs are calculated. Notice that $-25.13$ is greater than all of the other values in column 'tracks' of matrix `best_probs`, and so the most likely path to 'VBZ' is from 'NN'. 'NN' is in row 20 of the `best_probs` matrix, so $20$ is the most likely path. # - Store the most likely path $20$ in the `best_paths` table. This is highlighted in light orange in the diagram below. # The formula to compute the probability and path for the $i^{th}$ word in the $corpus$, the prior word $i-1$ in the corpus, current POS tag $j$, and previous POS tag $k$ is: # # $\mathrm{prob} = \mathbf{best\_prob}_{k, i-1} + \mathrm{log}(\mathbf{A}_{k, j}) + \mathrm{log}(\mathbf{B}_{j, vocab(corpus_{i})})$ # # where $corpus_{i}$ is the word in the corpus at index $i$, and $vocab$ is the dictionary that gets the unique integer that represents a given word. # # $\mathrm{path} = k$ # # where $k$ is the integer representing the previous POS tag. # # <a name='ex-06'></a> # # ### Exercise 06 # # Instructions: Implement the `viterbi_forward` algorithm and store the best_path and best_prob for every possible tag for each word in the matrices `best_probs` and `best_tags` using the pseudo code below. # # `for each word in the corpus # # for each POS tag type that this word may be # # for POS tag type that the previous word could be # # compute the probability that the previous word had a given POS tag, that the current word has a given POS tag, and that the POS tag would emit this current word. # # retain the highest probability computed for the current word # # set best_probs to this highest probability # # set best_paths to the index 'k', representing the POS tag of the previous word which produced the highest probability ` # # Please use [math.log](https://docs.python.org/3/library/math.html) to compute the natural logarithm. # <img src = "Forward4.PNG"/> # <details> # <summary> # <font size="3" color="darkgreen"><b>Hints</b></font> # </summary> # <p> # <ul> # <li>Remember that when accessing emission matrix B, the column index is the unique integer ID associated with the word. It can be accessed by using the 'vocab' dictionary, where the key is the word, and the value is the unique integer ID for that word.</li> # </ul> # </p> # # UNQ_C6 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: viterbi_forward def viterbi_forward(A, B, test_corpus, best_probs, best_paths, vocab): ''' Input: A, B: The transition and emission matrices respectively test_corpus: a list containing a preprocessed corpus best_probs: an initilized matrix of dimension (num_tags, len(corpus)) best_paths: an initilized matrix of dimension (num_tags, len(corpus)) vocab: a dictionary where keys are words in vocabulary and value is an index Output: best_probs: a completed matrix of dimension (num_tags, len(corpus)) best_paths: a completed matrix of dimension (num_tags, len(corpus)) ''' # Get the number of unique POS tags (which is the num of rows in best_probs) num_tags = best_probs.shape[0] # Go through every word in the corpus starting from word 1 # Recall that word 0 was initialized in `initialize()` for i in range(1, len(test_corpus)): # Print number of words processed, every 5000 words if i % 5000 == 0: print("Words processed: {:>8}".format(i)) ### START CODE HERE (Replace instances of 'None' with your code EXCEPT the first 'best_path_i = None') ### # For each unique POS tag that the current word can be for j in range(num_tags): # complete this line # Initialize best_prob for word i to negative infinity best_prob_i = float("-inf") # Initialize best_path for current word i to None best_path_i = None # For each POS tag that the previous word can be: for k in range(num_tags): # complete this line # Calculate the probability = # best probs of POS tag k, previous word i-1 + # log(prob of transition from POS k to POS j) + # log(prob that emission of POS j is word i) prob = best_probs[k, i-1] + math.log(A[k, j]) + math.log(B[j, vocab[test_corpus[i]]]) # check if this path's probability is greater than # the best probability up to and before this point if prob > best_prob_i: # complete this line # Keep track of the best probability best_prob_i = prob # keep track of the POS tag of the previous word # that is part of the best path. # Save the index (integer) associated with # that previous word's POS tag best_path_i = k # Save the best probability for the # given current word's POS tag # and the position of the current word inside the corpus best_probs[j,i] = best_prob_i # Save the unique integer ID of the previous POS tag # into best_paths matrix, for the POS tag of the current word # and the position of the current word inside the corpus. best_paths[j,i] = best_path_i ### END CODE HERE ### return best_probs, best_paths # Run the `viterbi_forward` function to fill in the `best_probs` and `best_paths` matrices. # # **Note** that this will take a few minutes to run. There are about 30,000 words to process. # this will take a few minutes to run => processes ~ 30,000 words best_probs, best_paths = viterbi_forward(A, B, prep, best_probs, best_paths, vocab) # Test this function print(f"best_probs[0,1]: {best_probs[0,1]:.4f}") print(f"best_probs[0,4]: {best_probs[0,4]:.4f}") # ##### Expected Output # # ```CPP # best_probs[0,1]: -24.7822 # best_probs[0,4]: -49.5601 # ``` # <a name='3.3'></a> # ## Part 3.3 Viterbi backward # # Now you will implement the Viterbi backward algorithm. # - The Viterbi backward algorithm gets the predictions of the POS tags for each word in the corpus using the `best_paths` and the `best_probs` matrices. # # The example below shows how to walk backwards through the best_paths matrix to get the POS tags of each word in the corpus. Recall that this example corpus has three words: "Loss tracks upward". # # POS tag for 'upward' is `RB` # - Select the the most likely POS tag for the last word in the corpus, 'upward' in the `best_prob` table. # - Look for the row in the column for 'upward' that has the largest probability. # - Notice that in row 28 of `best_probs`, the estimated probability is -34.99, which is larger than the other values in the column. So the most likely POS tag for 'upward' is `RB` an adverb, at row 28 of `best_prob`. # - The variable `z` is an array that stores the unique integer ID of the predicted POS tags for each word in the corpus. In array z, at position 2, store the value 28 to indicate that the word 'upward' (at index 2 in the corpus), most likely has the POS tag associated with unique ID 28 (which is `RB`). # - The variable `pred` contains the POS tags in string form. So `pred` at index 2 stores the string `RB`. # # # POS tag for 'tracks' is `VBZ` # - The next step is to go backward one word in the corpus ('tracks'). Since the most likely POS tag for 'upward' is `RB`, which is uniquely identified by integer ID 28, go to the `best_paths` matrix in column 2, row 28. The value stored in `best_paths`, column 2, row 28 indicates the unique ID of the POS tag of the previous word. In this case, the value stored here is 40, which is the unique ID for POS tag `VBZ` (verb, 3rd person singular present). # - So the previous word at index 1 of the corpus ('tracks'), most likely has the POS tag with unique ID 40, which is `VBZ`. # - In array `z`, store the value 40 at position 1, and for array `pred`, store the string `VBZ` to indicate that the word 'tracks' most likely has POS tag `VBZ`. # # POS tag for 'Loss' is `NN` # - In `best_paths` at column 1, the unique ID stored at row 40 is 20. 20 is the unique ID for POS tag `NN`. # - In array `z` at position 0, store 20. In array `pred` at position 0, store `NN`. # <img src = "Backwards5.PNG"/> # <a name='ex-07'></a> # ### Exercise 07 # Implement the `viterbi_backward` algorithm, which returns a list of predicted POS tags for each word in the corpus. # # - Note that the numbering of the index positions starts at 0 and not 1. # - `m` is the number of words in the corpus. # - So the indexing into the corpus goes from `0` to `m - 1`. # - Also, the columns in `best_probs` and `best_paths` are indexed from `0` to `m - 1` # # # **In Step 1:** # Loop through all the rows (POS tags) in the last entry of `best_probs` and find the row (POS tag) with the maximum value. # Convert the unique integer ID to a tag (a string representation) using the list `states`. # # Referring to the three-word corpus described above: # - `z[2] = 28`: For the word 'upward' at position 2 in the corpus, the POS tag ID is 28. Store 28 in `z` at position 2. # - `states[28]` is 'RB': The POS tag ID 28 refers to the POS tag 'RB'. # - `pred[2] = 'RB'`: In array `pred`, store the POS tag for the word 'upward'. # # **In Step 2:** # - Starting at the last column of best_paths, use `best_probs` to find the most likely POS tag for the last word in the corpus. # - Then use `best_paths` to find the most likely POS tag for the previous word. # - Update the POS tag for each word in `z` and in `preds`. # # Referring to the three-word example from above, read best_paths at column 2 and fill in z at position 1. # `z[1] = best_paths[z[2],2]` # # The small test following the routine prints the last few words of the corpus and their states to aid in debug. # UNQ_C7 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: viterbi_backward def viterbi_backward(best_probs, best_paths, corpus, states): ''' This function returns the best path. ''' # Get the number of words in the corpus # which is also the number of columns in best_probs, best_paths m = best_paths.shape[1] # Initialize array z, same length as the corpus z = [None] * m # Get the number of unique POS tags num_tags = best_probs.shape[0] # Initialize the best probability for the last word best_prob_for_last_word = float('-inf') # Initialize pred array, same length as corpus pred = [None] * m ### START CODE HERE (Replace instances of 'None' with your code) ### ## Step 1 ## # Go through each POS tag for the last word (last column of best_probs) # in order to find the row (POS tag integer ID) # with highest probability for the last word for k in range(num_tags): # complete this line # If the probability of POS tag at row k # is better than the previously best probability for the last word: if best_probs[k, -1] > best_prob_for_last_word: # complete this line # Store the new best probability for the last word best_prob_for_last_word = best_probs[k, -1] # Store the unique integer ID of the POS tag # which is also the row number in best_probs z[m - 1] = k # Convert the last word's predicted POS tag # from its unique integer ID into the string representation # using the 'states' list # store this in the 'pred' array for the last word pred[m - 1] = states[k] ## Step 2 ## # Find the best POS tags by walking backward through the best_paths # From the last word in the corpus to the 0th word in the corpus for i in range(len(corpus) - 1, -1, -1): # complete this line # Retrieve the unique integer ID of # the POS tag for the word at position 'i' in the corpus pos_tag_for_word_i = best_paths[np.argmax(best_probs[:, i]), i] # In best_paths, go to the row representing the POS tag of word i # and the column representing the word's position in the corpus # to retrieve the predicted POS for the word at position i-1 in the corpus z[i - 1] = best_paths[pos_tag_for_word_i, i] # Get the previous word's POS tag in string form # Use the 'states' list, # where the key is the unique integer ID of the POS tag, # and the value is the string representation of that POS tag pred[i - 1] = states[pos_tag_for_word_i] ### END CODE HERE ### return pred # Run and test your function pred = viterbi_backward(best_probs, best_paths, prep, states) m=len(pred) print('The prediction for pred[-7:m-1] is: \n', prep[-7:m-1], "\n", pred[-7:m-1], "\n") print('The prediction for pred[0:8] is: \n', pred[0:7], "\n", prep[0:7]) # **Expected Output:** # # ```CPP # The prediction for pred[-7:m-1] is: # ['see', 'them', 'here', 'with', 'us', '.'] # ['VB', 'PRP', 'RB', 'IN', 'PRP', '.'] # The prediction for pred[0:8] is: # ['DT', 'NN', 'POS', 'NN', 'MD', 'VB', 'VBN'] # ['The', 'economy', "'s", 'temperature', 'will', 'be', 'taken'] # ``` # # Now you just have to compare the predicted labels to the true labels to evaluate your model on the accuracy metric! # <a name='4'></a> # # Part 4: Predicting on a data set # # Compute the accuracy of your prediction by comparing it with the true `y` labels. # - `pred` is a list of predicted POS tags corresponding to the words of the `test_corpus`. print('The third word is:', prep[3]) print('Your prediction is:', pred[3]) print('Your corresponding label y is: ', y[3]) # <a name='ex-08'></a> # ### Exercise 08 # # Implement a function to compute the accuracy of the viterbi algorithm's POS tag predictions. # - To split y into the word and its tag you can use `y.split()`. # UNQ_C8 (UNIQUE CELL IDENTIFIER, DO NOT EDIT) # GRADED FUNCTION: compute_accuracy def compute_accuracy(pred, y): ''' Input: pred: a list of the predicted parts-of-speech y: a list of lines where each word is separated by a '\t' (i.e. word \t tag) Output: ''' num_correct = 0 total = 0 # Zip together the prediction and the labels for prediction, y in zip(pred, y): ### START CODE HERE (Replace instances of 'None' with your code) ### # Split the label into the word and the POS tag word_tag_tuple = y.split() # Check that there is actually a word and a tag # no more and no less than 2 items if len(word_tag_tuple) != 2: # complete this line continue # store the word and tag separately word, tag = word_tag_tuple # Check if the POS tag label matches the prediction if prediction == tag: # complete this line # count the number of times that the prediction # and label match num_correct += 1 # keep track of the total number of examples (that have valid labels) total += 1 ### END CODE HERE ### return num_correct/total print(f"Accuracy of the Viterbi algorithm is {compute_accuracy(pred, y):.4f}") # ##### Expected Output # # ```CPP # Accuracy of the Viterbi algorithm is 0.9531 # ``` # # Congratulations you were able to classify the parts-of-speech with 95% accuracy. # ### Key Points and overview # # In this assignment you learned about parts-of-speech tagging. # - In this assignment, you predicted POS tags by walking forward through a corpus and knowing the previous word. # - There are other implementations that use bidirectional POS tagging. # - Bidirectional POS tagging requires knowing the previous word and the next word in the corpus when predicting the current word's POS tag. # - Bidirectional POS tagging would tell you more about the POS instead of just knowing the previous word. # - Since you have learned to implement the unidirectional approach, you have the foundation to implement other POS taggers used in industry. # ### References # # - ["Speech and Language Processing", Dan Jurafsky and James H. Martin](https://web.stanford.edu/~jurafsky/slp3/) # - We would like to thank Melanie Tosik for her help and inspiration
53,979
/k-nearest Neighbors (kNN).ipynb
13928c0db0b312ebfd4e015cc086ba97b32a7885
[]
no_license
KamingYip/Trading_Strategies_with_Stock_Data_Updating
https://github.com/KamingYip/Trading_Strategies_with_Stock_Data_Updating
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
156,730
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # <div align="center">Data Science with Stock Data - k-nearest Neighbors (kNN)</div> # ### <div align="center">Author: <a href="https://www.linkedin.com/in/kaming-yip-22b03a1a0/">Kaming Yip</a>&emsp;&emsp;Date: Feb. 22, 2020</div> # Before start reading this file, you are suggested to read the project instruction in the <a href="https://github.com/KamingYip/Data-Science-with-Stock-Data/blob/master/README.md">README.md</a> file. # # In this file, we will implement <b>k-nearest Neighbors (kNN)</b> in our selected stock data, YELP, for two years 2018 and 2019, to predict labels and compute the model performance of trading strategies based on the labels. # # First, we scrape the historical data from <a href="https://finance.yahoo.com/quote/YELP?p=YELP&.tsrc=fin-srch-v1">yahoo web</a> and manipulate the data to create desirable columns. from pandas_datareader import data as web import pandas as pd import numpy as np # + def get_stock(ticker, start_date, end_date): try: df = web.get_data_yahoo(ticker, start=start_date, end=end_date) df['Return'] = df['Adj Close'].pct_change() df['Return'].fillna(0, inplace = True) df['Return'] = 100.0 * df['Return'] df['Return'] = df['Return'].round(3) df['Date'] = df.index df['Date'] = pd.to_datetime(df['Date']) df['Month'] = df['Date'].dt.month df['Year'] = df['Date'].dt.year df['Day'] = df['Date'].dt.day for col in ['Open', 'High', 'Low', 'Close', 'Adj Close']: df[col] = df[col].round(2) df['Weekday'] = df['Date'].dt.weekday_name df['Week_Number'] = df['Date'].dt.strftime('%U') df['Year_Week'] = df['Date'].dt.strftime('%Y-%U') col_list = ['Date', 'Year', 'Month', 'Day', 'Weekday', 'Week_Number', 'Year_Week', 'Open', 'High', 'Low', 'Close', 'Volume', 'Adj Close', 'Return'] df = df[col_list] return df except Exception as error: print(error) return None ticker='YELP' df = get_stock(ticker, start_date='2017-01-01', end_date='2019-12-31') df.head() # - # Then we will create the mean return and volatility values for each week. These two features will be our main independent variables to train the model. # + def weekly_return_volatility(data, start_date, end_date): df_2 = data[data['Date'] >= start_date] df_2 = df_2[df_2['Date'] <= end_date] df_2 = df_2[['Year', 'Week_Number', 'Open', 'Adj Close', 'Return']] df_2.index = range(len(df_2)) df_grouped = df_2.groupby(['Year', 'Week_Number'])['Return'].agg([np.mean, np.std]) df_grouped.reset_index(['Year', 'Week_Number'], inplace=True) df_grouped.rename(columns={'mean': 'mean_return', 'std':'volatility'}, inplace=True) df_grouped.fillna(0, inplace=True) df_grouped["Open"] = df_2.groupby(["Year", "Week_Number"])["Open"].head(1).\ reset_index(drop = True).copy() df_grouped["Adj Close"] = df_2.groupby(["Year", "Week_Number"])["Adj Close"].tail(1).\ reset_index(drop = True).copy() return df_grouped df_weekly = weekly_return_volatility(df, start_date='2018-01-01', end_date='2019-12-31') df_weekly.head() # - # For each week, we will label as "green" or "red": # * a "green" week means that it was a good week to be invested for that week (from Friday to Friday) # * a "red" week means that it was <b>NOT</b> a good week (e.g. prices fell or there was too much volatility in the price) # # In this project, we will label those weeks with mean return higher than or equal to the 50-percentile threshold as well as with volatility not higher than the 50-percentile threshold of that year as "Green"; otherwise, they will be labeled as "Red". # + def weekly_label(data, year): df_label = data[data["Year"] == year].copy() mean_return_percent50 = np.percentile(df_label["mean_return"], 50) volatility_percent50 = np.percentile(df_label["volatility"], 50) df_label["True Label"] = np.where((df_label["mean_return"] >= mean_return_percent50) & \ (df_label["volatility"] <= volatility_percent50), "Green", "Red") return df_label df_labeling = pd.DataFrame() for year in [2018, 2019]: df_year_label = weekly_label(df_weekly, year) label_count = df_year_label.groupby("True Label")["True Label"].size().to_frame(name = "Freq") df_labeling = df_labeling.append(df_year_label, ignore_index = True) df_labeling.head() # - # Let's take a look at the label distribution in training data and testing data. # + train_df = df_labeling[df_labeling["Year"] == 2018].copy() test_df = df_labeling[df_labeling["Year"] == 2019].copy() train_test_sum = pd.DataFrame({ "Dataset": ["Training", "Testing", "Total"], "Week Num": ["{0:,}({1:.2f}%)".format(len(train_df), len(train_df)/len(df_labeling)*100), "{0:,}({1:.2f}%)".format(len(test_df), len(test_df)/len(df_labeling)*100), "{0:,}({1:.2f}%)".format(len(df_labeling), len(df_labeling)/len(df_labeling)*100)], "Green Label": ["{0:,}({1:.2f}%)".format(len(train_df[train_df["True Label"] == "Green"]), len(train_df[train_df["True Label"] == "Green"])/len(train_df)*100), "{0:,}({1:.2f}%)".format(len(test_df[test_df["True Label"] == "Green"]), len(test_df[test_df["True Label"] == "Green"])/len(test_df)*100), "{0:,}({1:.2f}%)".format(len(df_labeling[df_labeling["True Label"] == "Green"]), len(df_labeling[df_labeling["True Label"] == "Green"])/len(df_labeling)*100)], "Red Label": ["{0:,}({1:.2f}%)".format(len(train_df[train_df["True Label"] == "Red"]), len(train_df[train_df["True Label"] == "Red"])/len(train_df)*100), "{0:,}({1:.2f}%)".format(len(test_df[test_df["True Label"] == "Red"]), len(test_df[test_df["True Label"] == "Red"])/len(test_df)*100), "{0:,}({1:.2f}%)".format(len(df_labeling[df_labeling["True Label"] == "Red"]), len(df_labeling[df_labeling["True Label"] == "Red"])/len(df_labeling)*100)]}) train_test_sum # - # By far, we have completed the data preparation. From the raw data, we have conducted feature engineering to create new features that we would use in the modeling, calculated the average return and volatility for each week, and labeled each week as "Green" or "Red" by a predetermined rule. We will then use the labeled dataset in the following sections. # # We will first define our confusion matrix function to better visualize the model performance, including Accuracy, Recall, Precision, and F1 score. from tabulate import tabulate import itertools from sklearn.metrics import confusion_matrix, accuracy_score, recall_score, precision_score, f1_score def designed_confusion_matrix(train_actual, train_pred, train_title, test_actual, test_pred, test_title, classes): fig = plt.figure(figsize = (8, 5)) fig.add_subplot(221) train_cm = confusion_matrix(train_actual, train_pred) plt.imshow(train_cm, interpolation = "nearest", cmap = "Reds") plt.title(train_title) plt.colorbar() tick_marks = np.arange(len(classes)) plt.xticks(tick_marks, classes, rotation = 45) plt.yticks(tick_marks, classes) for i, j in itertools.product(range(train_cm.shape[0]), range(train_cm.shape[1])): plt.text(j, i, format(train_cm[i, j], "d"), horizontalalignment = "center", color = "black") plt.tight_layout() plt.ylabel("Actual Class") plt.xlabel("Predicted Class") fig.add_subplot(222) test_cm = confusion_matrix(test_actual, test_pred) plt.imshow(test_cm, interpolation = "nearest", cmap = "Reds") plt.title(test_title) plt.colorbar() tick_marks = np.arange(len(classes)) plt.xticks(tick_marks, classes, rotation = 45) plt.yticks(tick_marks, classes) for i, j in itertools.product(range(test_cm.shape[0]), range(test_cm.shape[1])): plt.text(j, i, format(test_cm[i, j], "d"), horizontalalignment = "center", color = "black") plt.tight_layout() plt.ylabel("Actual Class") plt.xlabel("Predicted Class") plt.show() stats_summary = pd.DataFrame(columns = ["Training Data", "Testing Data"], index = ["Accuracy", "Recall", "Precision", "F1 Score"]) stats_set = [[train_actual, train_pred], [test_actual, test_pred]] for i, ele in enumerate(stats_set): stats_summary.iloc[:, i] = [accuracy_score(ele[0], ele[1]), recall_score(ele[0], ele[1]), precision_score(ele[0], ele[1]), f1_score(ele[0], ele[1])] print(tabulate(stats_summary, headers = "keys", numalign = "right", floatfmt = ".3f"), end = "\n\n") # The kNN model will be trained by stock data in 2018 and several k values will be tested against the training data and computed the accuracy of the kNN classifier. from sklearn.preprocessing import StandardScaler, LabelEncoder from sklearn.neighbors import KNeighborsClassifier from sklearn.metrics import accuracy_score import matplotlib.pyplot as plt X_train = train_df[["mean_return", "volatility"]].values kNN_scaler = StandardScaler().fit(X_train) X_train = kNN_scaler.transform(X_train) y_train = train_df["True Label"].values le = LabelEncoder().fit(y_train) y_train = le.transform(y_train) # + k_values = list(range(3, 17, 2)) max_accuracy = 0.0 accuracy_list = [] for k in k_values: kNN_classifier = KNeighborsClassifier(n_neighbors = k).fit(X_train, y_train) y_train_pred = kNN_classifier.predict(X_train) accuracy = accuracy_score(y_train, y_train_pred) accuracy_list.append(accuracy) if accuracy >= max_accuracy: max_accuracy = accuracy optimal_k_dict = {k:accuracy for (k, accuracy) in enumerate(accuracy_list) if accuracy == max_accuracy} optimal_k_list = [k_values[i] for i in optimal_k_dict.keys()] plt.figure(figsize = (6, 4)) plt.plot(k_values, accuracy_list, color = "black", marker = "o", markerfacecolor = "red", markersize = 10) plt.title("Accuracy Rate against Different k Values") plt.xlabel("k Values") plt.xticks(k_values) plt.ylabel("Accuracy") plt.show() # - # As shown in the graph above, the accuracy reaches to its peak as 96.23% when k = 3 and k = 5. Next, we will take these two k values to test the model performance against testing data and choose the optimal one. # + X_test = test_df[["mean_return", "volatility"]].values X_test = kNN_scaler.transform(X_test) y_test = test_df["True Label"].values y_test = le.transform(y_test) for k in optimal_k_list: kNN_classifier = KNeighborsClassifier(n_neighbors = k).fit(X_train, y_train) y_train_pred = kNN_classifier.predict(X_train) y_test_pred = kNN_classifier.predict(X_test) designed_confusion_matrix(y_train, y_train_pred, "The Confusion Matrix\nfor the Training Data (k = {0})".format(k), y_test, y_test_pred, "The Confusion Matrix\nfor the Testing Data (k = {0})".format(k), ["Green", "Red"]) # - # The two sets of confusion matrix indicate that the kNN models built with k = 3 and k = 5 perform outstandingly against the training data, as well as the testing data. The accuracy of the models is satisfied when they met with unseen data (i.e. the testing data) and the model built with k = 3 slightly outperforms the other one. # # It is worth noting that, in k-nearest Neighbors model, the advantage of choosing k > 1 is that higher values of k provide smoothing that reduces the risk of overfitting due to noise in the training data. Generally speaking, choosing smaller values for k can be noisy and will have a higher influence on the result; however, if k is too high, we will miss out the method's ability to capture the local structure in the data, also computationally expensive. One of the extreme cases would be k = N, where N is the number of records. In this instance, no matter what features the new record will have, the larger-number group in the training data will always win, which will be majority rule in a binary case. # # Therefore, taking all the reasons into consideration, we will choose <b>k = 3</b> as our final decision and implement the trading strategy by the labels created by the kNN model when k = 3. # + def trade_with_labels(data, col_name): money = 100.0 shares = 0.0 position = "No" balance = [] df_trade_labels = data.copy() for i in range(len(df_trade_labels) - 1): if i == 0: label = df_trade_labels.iloc[i][col_name] if label == "Green": shares = money / df_trade_labels.iloc[i]["Open"] money = 0.0 position = "Long" balance.append(shares * df_trade_labels.iloc[i]["Adj Close"]) else: balance.append(money) else: label = df_trade_labels.iloc[i+1][col_name] if label == "Red": if position == "Long": money = shares * df_trade_labels.iloc[i]["Adj Close"] shares = 0.0 position = "No" balance.append(money) else: if position == "No": shares = money / df_trade_labels.iloc[i+1]["Open"] money = 0.0 position = "Long" balance.append(shares * df_trade_labels.iloc[i]["Adj Close"]) if position == "Long": balance.append(shares * df_trade_labels.iloc[-1]["Adj Close"]) else: balance.append(money) return balance def script_text(data, year, col_name): label_text_max = "{0} Week {1}\nmax ${2}".\ format(year, data.iloc[data[data["Year"] == year][col_name].idxmax()]["Week_Number"], round(data[data["Year"] == year][col_name].max(), 2)) label_x_max = data[data["Year"] == year][col_name].idxmax() label_y_max = round(data[data["Year"] == year][col_name].max(), 2) label_text_min = "{0} Week {1}\nmin ${2}".\ format(year, data.iloc[data[data["Year"] == year][col_name].idxmin()]["Week_Number"], round(data[data["Year"] == year][col_name].min(), 2)) label_x_min = data[data["Year"] == year][col_name].idxmin() label_y_min = round(data[data["Year"] == year][col_name].min(), 2) label_text_final = "{0} Final:\n${1}".format(year, round(data[data["Year"] == year].iloc[-1][col_name], 2)) label_x_final = data[data["Year"] == year].tail(1).index.values label_y_final = round(data[data["Year"] == year].iloc[-1][col_name], 2) return label_text_max, label_x_max, label_y_max,\ label_text_min, label_x_min, label_y_min,\ label_text_final, label_x_final, label_y_final def buy_n_hold(data): money = 100.0 shares = 0.0 balance = [] df_buy_hold = data.copy() for i in range(len(df_buy_hold)): if i == 0: shares = money / df_buy_hold.iloc[i]["Open"] balance.append(shares * df_buy_hold.iloc[i]["Adj Close"]) return balance # + df_trading = df_labeling[df_labeling["Year"] == 2019].copy().reset_index(drop = True) df_trading["True Label Balance"] = trade_with_labels(df_trading, "True Label") df_trading["Buy and Hold Balance"] = buy_n_hold(df_trading) k = 3 kNN_classifier = KNeighborsClassifier(n_neighbors = k).fit(X_train, y_train) y_test_pred = kNN_classifier.predict(X_test) df_trading["kNN Label(k = {0})".format(k)] = le.inverse_transform(y_test_pred) df_trading["kNN Balance(k = {0})".format(k)] = trade_with_labels(df_trading, "kNN Label(k = {0})".format(k)) fig, ax = plt.subplots(figsize = (9, 5)) label_text_max_2019, label_x_max_2019, label_y_max_2019,\ label_text_min_2019, label_x_min_2019, label_y_min_2019,\ label_text_final_2019, label_x_final_2019, label_y_final_2019 =\ script_text(df_trading, 2019, "True Label Balance") buy_hold_text_max_2019, buy_hold_x_max_2019, buy_hold_y_max_2019,\ buy_hold_text_min_2019, buy_hold_x_min_2019, buy_hold_y_min_2019,\ buy_hold_text_final_2019, buy_hold_x_final_2019, buy_hold_y_final_2019 =\ script_text(df_trading, 2019, "Buy and Hold Balance") kNN_text_max_2019, kNN_x_max_2019, kNN_y_max_2019,\ kNN_text_min_2019, kNN_x_min_2019, kNN_y_min_2019,\ kNN_text_final_2019, kNN_x_final_2019, kNN_y_final_2019 =\ script_text(df_trading, 2019, "kNN Balance(k = {0})".format(k)) # Trading with True Labels ax.plot(df_trading.index, "True Label Balance", data = df_trading, color = "blue") ax.annotate(label_text_max_2019, xy = (label_x_max_2019, label_y_max_2019), xycoords = "data", xytext = (label_x_max_2019+5, label_y_max_2019+5), color = "blue", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "blue"), ha = "left", va = "bottom") ax.annotate(label_text_min_2019, xy = (label_x_min_2019, label_y_min_2019), xycoords = "data", xytext = (label_x_min_2019+5, label_y_min_2019+17), color = "blue", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "blue"), ha = "left", va = "bottom") ax.annotate(label_text_final_2019, xy = (label_x_final_2019, label_y_final_2019), xycoords = "data", xytext = (label_x_final_2019+5, label_y_final_2019-5), color = "blue", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "blue"), ha = "left", va = "bottom") # Buy and Hold ax.plot(df_trading.index, "Buy and Hold Balance", data = df_trading, color = "red") ax.annotate(buy_hold_text_max_2019, xy = (buy_hold_x_max_2019, buy_hold_y_max_2019), xycoords = "data", xytext = (buy_hold_x_max_2019+5, buy_hold_y_max_2019+15), color = "red", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "red"), ha = "left", va = "bottom") ax.annotate(buy_hold_text_min_2019, xy = (buy_hold_x_min_2019, buy_hold_y_min_2019), xycoords = "data", xytext = (buy_hold_x_min_2019+4, buy_hold_y_min_2019+2), color = "red", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "red"), ha = "left", va = "bottom") ax.annotate(buy_hold_text_final_2019, xy = (buy_hold_x_final_2019, buy_hold_y_final_2019), xycoords = "data", xytext = (buy_hold_x_final_2019+5, buy_hold_y_final_2019-2), color = "red", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle3", color = "red"), ha = "left", va = "bottom") # kNN Labels ax.plot(df_trading.index, "kNN Balance(k = {0})".format(k), data = df_trading, color = "green") ax.annotate(kNN_text_max_2019, xy = (kNN_x_max_2019, kNN_y_max_2019), xycoords = "data", xytext = (kNN_x_max_2019+5, kNN_y_max_2019+10), color = "green", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "green"), ha = "left", va = "bottom") ax.annotate(kNN_text_min_2019, xy = (kNN_x_min_2019, kNN_y_min_2019), xycoords = "data", xytext = (kNN_x_min_2019+5, kNN_y_min_2019+25), color = "green", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "green"), ha = "left", va = "bottom") ax.annotate(kNN_text_final_2019, xy = (kNN_x_final_2019, kNN_y_final_2019), xycoords = "data", xytext = (kNN_x_final_2019+5, kNN_y_final_2019-2), color = "green", arrowprops = dict(arrowstyle = "->", connectionstyle = "angle,angleA=0,angleB=90", color = "green"), ha = "left", va = "bottom") plt.title("* Year 2019 *\n" + "Performance against Different Investing Strategies", loc = "center") plt.xlabel("Week Number") plt.xticks(np.arange(0, 60, 5)) plt.ylabel("Total Balance($)") plt.legend() plt.show() # - # As displayed in the plot above, the kNN strategy results in the largest amount as $155.93 at the end of year 2019 when we start with $100 at the begining of the year. # # The buy-and-hold strategy refers that we invest $100 on the first trading day (at the opening price) and sell at the last trading day of the year at the adjusted closing price. For this strategy, we end up with $101.87 at the end of the year. # # Lastly, if we trade with the true labels, we can earn $137.54 at the end. By analyzing the differences between the three strategies, we can learn that the kNN model predicts some weeks (especially between Week 25 and Week 40) as "good" weeks to be invested and labels those weeks as "Green" when they are actually labeled as "Red" by our labeling rule. Although the kNN model did not perfectly predict the labels, it provides better trading strategy for us to trade stock, which is an interesting finding from this assignment.
21,771
/Data Visualization.ipynb
a17d8f03decc66845d662dad998b494f88e0f507
[]
no_license
Vishal425/Data-Visualization
https://github.com/Vishal425/Data-Visualization
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
106,309
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import matplotlib.pyplot as plt #Array, list, Tupples and pandas series import seaborn as sns #DataFrame import numpy as np import pandas as pd year = [2015,2016,2017,2018,2019] sales = [1234,4344,4454,3222,3343] profit = [223,334,352,333,434] plt.plot(year,sales) plt.plot(year,sales,'red') plt.xlabel('Year') plt.ylabel('Sales and Profit') plt.plot(year,profit,'blue') plt.title('Sales and Profit by Year') plt.show() plt.axes([0.05,0.05,0.9,0.9]) plt.plot(year,sales,'red') plt.xlabel('Year') plt.ylabel('Sales') plt.title('Sales Vs Year') plt.axes([1.1,0.05,0.9,0.9]) plt.plot(year,profit,'blue') plt.xlabel('Year') plt.ylabel('Profit') plt.title('Profir Vs Sales') plt.subplot(2,1,1) plt.plot(year,sales,'red') plt.xlabel('Year') plt.ylabel('Sales') plt.title('Sales Vs Year') plt.subplot(2,1,2) plt.plot(year,profit,'blue') plt.xlabel('Year') plt.ylabel('Profit') plt.title('Profir Vs Sales') plt.tight_layout() plt.plot(year,sales,'red') plt.xlim(2017,2018) plt.ylim(4000,4500) plt.plot(year,sales,'brown') plt.axis((2017,2018,4000,4500)) plt.scatter(x=sales,y=profit,marker='+',label='sales vs profit') plt.legend(loc=0) plt.annotate('customer1',xy=(3343,333)) plt.style.use('seaborn-darkgrid') print(plt.style.available) sales profit
1,522
/42_rnn_seq2seq_colab.ipynb
d1a50d0108da80ccda2ed43a3c539861412ac46c
[]
no_license
gubosd/lecture18
https://github.com/gubosd/lecture18
1
2
null
null
null
null
Jupyter Notebook
false
false
.py
80,566
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] id="h_GAwHdc1_fH" # ## 자연어 처리 딥러닝 # # Seq2seq : 영어-불어 번역기 # + [markdown] id="8DgZT-mi1_fv" # - http://keras.io/examples/lstm_seq2seq/ # - 데이타 : http://www.manythings.org/anki/fra-eng.zip # + [markdown] id="cFZLgrwB1_gJ" # <img src='https://www.d2l.ai/_images/seq2seq.svg' /> # (출처: https://www.d2l.ai/chapter_recurrent-neural-networks/seq2seq.html) # + [markdown] id="v3s2tVzL1_gL" # - Encoder 와 Decoder 두 개의 모델을 만든고 연결한다. # - Encoder 는 최종 상태값을 Decoder 에게 넘긴다. (Decoder 의 초기 상태입력값이 된다.) # - Decoder 의 목표값은 불어 문장에서 한 단어씩 밀린 문장이다. (최종 출력 문장과 비교하여 손실값 계산) # - Seq2seq 는 번역과 같이 쌍으로 된 문장들에 적용한다. => 문장 생성용으로 챗봇 또는 Q/A 등에 사용된다. # + id="hunoWrRb1_ga" import numpy as np import matplotlib.pyplot as plt import pandas as pd from tensorflow import keras # + colab={"base_uri": "https://localhost:8080/"} id="yqKCo2Ou2RS6" outputId="22afd8a1-5bff-4dfb-c2d1-420dca6ce0c1" from google.colab import drive drive.mount('/content/drive') # + colab={"base_uri": "https://localhost:8080/"} id="-0SaN8WX2Qsu" outputId="79004d4c-8457-4a35-a54f-4cb6e9191d0b" # ! ls /content/drive/MyDrive/*.txt # + id="hBKKKUCj1_ge" with open('/content/drive/MyDrive/fra.txt', encoding='utf-8') as f: lines = f.read().split('\n') # + colab={"base_uri": "https://localhost:8080/", "height": 283} id="ZwwR75sJ1_gj" outputId="9d714250-3197-4fad-89ec-e90498df7131" display(len(lines), lines[:10], lines[-3:]) # + [markdown] id="ivuLTKe-1_g5" # - 총 라인수는 149,862개 임 # - 탭으로 구분됨 => '영어문장\t불어문장' # - 마지막 라인은 공백임 # - 이 중 10,000 라인만 사용할 것임 # + id="ZQfphmEX1_hJ" input_texts = [] output_texts = [] input_chars = set() output_chars = set() for line in lines[:10000]: s1, s2 = line.split('\t') s2 = '\t' + s2 + '\n' # 앞에는 탭, 뒤에는 개행문자를 붙인다 input_texts.append(s1) output_texts.append(s2) for c1 in s1: input_chars.add(c1) for c2 in s2: output_chars.add(c2) input_chars = sorted(list(input_chars)) output_chars = sorted(list(output_chars)) # + colab={"base_uri": "https://localhost:8080/"} id="7ebU3rz61_hR" outputId="c3b6f5b6-be4c-4130-b34b-e78300dae115" len(input_texts), len(output_texts), len(input_chars), len(output_chars) # + [markdown] id="1aFzivCA1_hn" # ### 단어 사전 (토큰) # + colab={"base_uri": "https://localhost:8080/"} id="QOFKxUI81_hr" outputId="5ee9ebd5-d7c5-4b5f-a1d2-2bf2feaf5635" len(input_chars), len(output_chars) # 71, 94 # + colab={"base_uri": "https://localhost:8080/"} id="zz4bneCP1_h_" outputId="2d4ecbeb-7400-43f8-9170-fd85bf05d343" print(input_chars) print(output_chars) # + [markdown] id="dJ3B1MOv1_iH" # ### 시퀀스 만들기 # + id="LMYnBkbo1_iM" max_input_len = max([len(s) for s in input_texts]) # 16 max_output_len = max([len(s) for s in output_texts]) # 59 # + colab={"base_uri": "https://localhost:8080/"} id="ylXL6Qi11_iP" outputId="400f6d14-f682-4ba5-c767-dfcb9275a0ee" max_input_len, max_output_len # + id="m4V-O2vB1_iz" enc_in_data = np.zeros([10000, max_input_len, len(input_chars)]) # (10000,16,71) dec_in_data = np.zeros([10000, max_output_len, len(output_chars)]) # (10000,59,94) dec_out_data = np.zeros([10000, max_output_len, len(output_chars)]) # (10000,59,94) # + id="f0-SuMOb1_jI" for i, (s1, s2) in enumerate(zip(input_texts, output_texts)): for j, c1 in enumerate(s1): enc_in_data[i, j, input_chars.index(c1)] = 1 for j, c2 in enumerate(s2): dec_in_data[i, j, output_chars.index(c2)] = 1 if j>0: dec_out_data[i, j-1, output_chars.index(c2)] = 1 # + colab={"base_uri": "https://localhost:8080/"} id="2HI_PvsB1_jX" outputId="6410aa04-81ef-478a-cc4a-dfa400f3d38f" enc_in_data.shape, dec_in_data.shape, dec_out_data.shape # + [markdown] id="g2Sb5jyC1_jb" # ### 데이터 설명 # - enc_in_data (10000,16,71) # - 인코더에 들어가는 영어 시퀀스들 # - 시퀀스는 16개의 토큰으로 되어 있고, 한 토큰은 영어 71개 문자 원핫인코딩 # - dec_in_data (10000,59,94) # - 디코더에 들어가는 불어 시퀀스들 # - 시퀀스는 59개의 토큰으로 되어 있고, 한 토큰은 불어 94개 문자 원핫인코딩 # - 첫번째 문자는 '\t', 마지막 문자는 '\n' # - dec_out_data (10000,59,94) # - 디코더에서 출력되는 불어 시퀀스들 # - dec_in_data 에서 한 토큰씩 밀린 데이터 # - 마지막 문자는 '\n' # + [markdown] id="PbqGxE071_je" # ### Encoder/Decoder 정의 # - 함수형 API : https://keras.io/getting-started/functional-api-guide/ # + id="24bJr1nN1_jf" from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, LSTM, Dense # + id="9qb6_n3Z1_jl" enc_input = Input(shape=(None,71)) enc_lstm = LSTM(256, return_state=True) enc_output, enc_h, enc_c = enc_lstm(enc_input) enc_states = [enc_h, enc_c] # + id="5ErwmPUP1_jn" dec_input = Input(shape=(None,94)) dec_lstm = LSTM(256, return_sequences=True, return_state=True) dec_outputs, _, _ = dec_lstm(dec_input, initial_state=enc_states) # (59,256) dec_dense = Dense(94, activation='softmax') dec_outputs = dec_dense(dec_outputs) # 각 LSTM 쉘의 출력을 256 => 94 으로 변환 => (59,94) # + id="hYLSxcPM1_jp" model = Model(inputs=[enc_input, dec_input], outputs=dec_outputs) # + colab={"base_uri": "https://localhost:8080/"} id="KvSq6PpJ1_jr" outputId="01b428a2-7d42-4408-c7e1-b614e450b8f3" model.summary() # + id="ilcOE5Bj1_jt" model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['acc']) # + colab={"base_uri": "https://localhost:8080/"} id="IH37PQpw1_jv" outputId="50e56100-c563-496f-ef80-ff6383d7df67" h = model.fit([enc_in_data, dec_in_data], dec_out_data, batch_size=64, epochs=100, validation_split=0.2) # + id="zmQXw0_21_jx" model.save('eng_fra_model_colab.h5') # + id="Z9RRbafX4epT" # ! cp eng_fra_model_colab.h5 /content/drive/MyDrive/ # + id="Nawnx6zVEw8X" # + colab={"base_uri": "https://localhost:8080/", "height": 282} id="z3eV5btt1_jz" outputId="8ebc1b5c-f9e5-4781-d89d-54bfbe284c5f" plt.plot(h.history['loss'], 'b-') plt.plot(h.history['val_loss'], 'r-') plt.legend(['loss','val_loss']) # + colab={"base_uri": "https://localhost:8080/", "height": 282} id="6L8cD_vI6U2s" outputId="48cd570a-c781-4ca3-9bd7-375e3e952a9a" plt.plot(h.history['acc'], 'b-') plt.plot(h.history['val_acc'], 'r-') plt.legend(['acc','val_acc']) # + [markdown] id="1r608Xi31_kh" # ### 번역 실행 # + id="z8ZlNX6B1_kj" enc_model = Model(enc_input, enc_states) # + id="tZuUUBxvChsM" # + id="_0ePkwfS1_kk" dec_input_h = Input(shape=(256,)) dec_input_c = Input(shape=(256,)) dec_states_input = [dec_input_h, dec_input_c] # + id="9NQlkwcq1_kn" dec_outputs, dec_h, dec_c = dec_lstm(dec_input, initial_state=dec_states_input) dec_states = [dec_h, dec_c] dec_outputs2 = dec_dense(dec_outputs) dec_model = Model([dec_input] + dec_states_input, [dec_outputs2] + dec_states) # + [markdown] id="2djp1-wI1_kp" # ### 출력 테스트 # + id="Ormvf9hU1_lT" def decode_sequence(seq): states_value = enc_model.predict(seq) output_seq = np.zeros([1,1,94]) # 94 는 불어사전 문자수 output_seq[0,0,output_chars.index('\t')] = 1 # 첫번째 입력문자를 '\t' 로 설정 stop = False result = '' while not stop: output_tokens, h, c = dec_model.predict([output_seq] + states_value) result += output_chars[np.argmax(output_tokens[0,-1,:])] if (result[-1]=='\n' or len(result)>=59): # 59는 불어 문장 최대 길이 stop = True output_seq = np.zeros([1,1,94]) # 94 는 불어사전 문자수 output_seq[0,0,np.argmax(output_tokens[0,-1])] = 1 states_value = [h,c] return result # + colab={"base_uri": "https://localhost:8080/"} id="9CfXkYQt1_lh" outputId="893cae19-e990-43f8-d0f1-adb5093133c4" for i in range(2): seq = enc_in_data[5000+i:5000+i+1] result = decode_sequence(seq) print('################################') print(input_texts[5000+i]) print('=>') print(result) # + colab={"base_uri": "https://localhost:8080/"} id="SX7PtOqm1_lk" outputId="72dcaf78-1a56-4cf4-dde0-bdb38acc7879" start = 7000 for i in range(3): seq = enc_in_data[start+i:start+i+1] result = decode_sequence(seq) print('################################') print(input_texts[start+i]) print(output_texts[start+i][1:-1]) print('=>') #print('[%s]' % result.replace(' ','_')) print('[%s]' % result) # + [markdown] id="ndgWHV3j1_ln" # ### 새로운 문장으로 테스트 # + colab={"base_uri": "https://localhost:8080/", "height": 72} id="FOSRZvF21_lo" outputId="9893fc8e-fd01-4d6b-b447-222e92c4e956" #s1, s2 = lines[10010].strip().split('\t') s1 = 'I want to go home.' s2 = '' v = [input_chars.index(c) for c in s1] a = np.zeros([1,30,71]) for i in range(len(v)): a[0,i,v[i]] = 1 r = decode_sequence(a) display(s1, s2, r[:-1])
8,750
/03_Audio_Data_Model_MFCC.ipynb
c10a12727707eb8504efe4556a906a68a4b85d4f
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
ryanbales/Audio-Data-Insights
https://github.com/ryanbales/Audio-Data-Insights
10
3
Apache-2.0
2022-11-21T21:23:27
2020-10-24T20:07:22
Jupyter Notebook
Jupyter Notebook
false
false
.py
89,395
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Building an Audio Data Model using MFCC Features # #### Ryan Bales (@ryanbales)<br>ryan@balesofdata.com # *** # ### Import Packages import librosa import librosa.display import matplotlib.pyplot as plt import numpy as np import pandas as pd import os import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import BatchNormalization from keras.layers import LSTM # #### Define Constants # + num_mfccs = 20 max_feature_length = 128 train_data_path = "data/audio_train/train/" val_data_path = "data/audio_train/validation/" model_output_path = "models/mfcc/" # - # ### Feature Extraction # #### Let's take a look at the Librosa Python Library raw_audio, sample_rate = librosa.load("{}Applause/170eeda2.wav".format(train_data_path), sr=None) raw_audio raw_audio.shape sample_rate # #### Visualize the RAW Audio plt.figure(figsize=(10, 4)) librosa.display.waveplot(raw_audio, sr=sample_rate) plt.title('RAW Audio') # #### Extract MFCCs using Librosa mfccs = librosa.feature.mfcc(y=raw_audio, sr=sample_rate, n_mfcc=num_mfccs) mfccs mfccs.shape # #### Visualize the MFCCs plt.figure(figsize=(10, 4)) librosa.display.specshow(mfccs, x_axis='time') plt.colorbar() plt.title('MFCC') plt.tight_layout() # #### Define a Method to Extact MFCCs from an Audio File def get_mfccs(wav_file, num_mfcc=20, max_length=128): raw_audio, sample_rate = librosa.load(wav_file, sr=None, duration=1) mfccs = librosa.feature.mfcc(y=raw_audio, sr=sample_rate, n_mfcc=num_mfcc) # Truncate Each MFCC to max_length if (max_length > mfccs.shape[1]): pad_width = max_length - mfccs.shape[1] mfccs = np.pad(mfccs, pad_width=((0, 0), (0, pad_width)), mode='constant') else: mfccs = mfccs[:, :max_length] return mfccs # #### Process all Files and Extract Features # + mfcc_list = [] category_list = [] for root, subdirs, files in os.walk(train_data_path): subdirs.sort() for subdir in subdirs: for file_name in os.listdir(os.path.join(root, subdir)): if file_name.endswith(".wav"): mfcc = get_mfccs(os.path.join(root, subdir, file_name), num_mfccs, max_feature_length) mfcc_list.append(mfcc) category_list.append(subdir) # - X_features = np.array(mfcc_list) from sklearn import preprocessing le = preprocessing.LabelEncoder() y_features = keras.utils.np_utils.to_categorical(le.fit_transform(category_list)) # ### Save Feature Extraction Results to Disk # Note: We're saving the extracted features to a file in case we need them later on. This helps us not have to re-run the Feature Extraction Steps. np.save("{}features.npy".format(model_output_path), X_features) np.save("{}labels.npy".format(model_output_path), y_features) np.save("{}label_encoder.npy".format(model_output_path), le) # ### Model Training # + model = Sequential() model.add(BatchNormalization(input_shape=[X_features.shape[1], X_features.shape[2]])) model.add(LSTM(units=128, dropout=0.05, recurrent_dropout=0.35, return_sequences=True)) model.add(LSTM(units=32, dropout=0.05, recurrent_dropout=0.35, return_sequences=False)) model.add(Dense(len(le.classes_), activation='softmax')) model.compile(loss='categorical_crossentropy', optimizer='Adam', metrics=['categorical_accuracy']) model.fit(X_features, y_features, batch_size=16, epochs=50) # - # ### Now that our Model is trained, let's take a look at the Model Layers model.summary() # ### Save the Trained Model to Disk from keras.models import load_model model.save("{}model.h5".format(model_output_path)) # ### Let's Take a Look at How the Model is Performing mfcc = np.array([get_mfccs("{}Bass_drum/f78fbf28.wav".format(val_data_path), num_mfccs, max_feature_length)]) prediction = model.predict(mfcc) prediction le.classes_[np.argmax(prediction)] # ### Let's run Prediction on the files in our Validation DataSet # ### Load the Validation Dataset df_validation = pd.read_csv("data/validation_split.csv") df_validation["predicted_label"] = "" print(df_validation.shape) df_validation.head() # ### Iterate over the Validation Dataset and Run the Model Prediction Step for index, row in df_validation.iterrows(): val_file_path = "{}{}/{}".format(val_data_path, row['label'], row['fname']) mfcc = np.array([get_mfccs(val_file_path, num_mfccs, max_feature_length)]) prediction = model.predict(mfcc) predicted_label = le.classes_[np.argmax(prediction)] df_validation.at[index,'predicted_label'] = predicted_label df_validation.head() # ### Let's Review our F1 Score per Category # + y_val = df_validation.label y_val_predicted = df_validation.predicted_label # Classification Report from sklearn.metrics import classification_report print(classification_report(y_val, y_val_predicted)) # -
5,132
/Super_Resolution- GAN.ipynb
1034df0af1cf8d5d3d92b8d0789705b5ee2fd5e5
[]
no_license
Ram-5508/Super-Resolution--GAN
https://github.com/Ram-5508/Super-Resolution--GAN
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
2,701,635
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Task 1 : Linear Regression with Python # ## Name : Snehal Kankure # ## Predict the percentage of a student based on the no. of study hours. # Importing all libraries required for this task import numpy as np import pandas as pd import matplotlib.pyplot as plt # %matplotlib inline from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn import metrics import math # Reading the data link = "http://bit.ly/w-data" data = pd.read_csv(link) data.head() # ## Plotting the graph # Plotting the distribution of scores data.plot(x = 'Hours', y = 'Scores',style = 'o') plt.title('Hours vs Percentage') plt.xlabel('Hours Studied') plt.ylabel('Percentage Score') plt.show() # #### The graph depicts that there is a positive correlation between the hours studied and percentage score. # ## Splitting the data using train_test_split # Preparing the data X = np.array(data.drop(['Scores'], 1)) Y = np.array(data['Scores']) X_train, X_test, y_train, y_test = train_test_split(X,Y, test_size = 0.2, random_state = 0) # ## Implementing Linear Regression Model linear = LinearRegression() linear.fit(X_train, y_train) # ## Fitting the regression line # + # Plotting the regression line line = linear.coef_*X + linear.intercept_ # Plotting for the test data plt.scatter(X, Y) plt.plot(X, line) plt.show() # - # ## Prediction using test data y_pred = linear.predict(X_test) y_pred # ## Comparing the actual and predicted values df = pd.DataFrame({'Actual' : y_test, 'Predicted' : y_pred}) df # ## Evaluating the model print('Mean Absolute Error : ', metrics.mean_absolute_error(y_test, y_pred)) print('Mean Squared Error : ', metrics.mean_squared_error(y_test, y_pred)) print('Root Mean Squared Error : ', math.sqrt(metrics.mean_squared_error(y_test, y_pred))) # ## Predicting the value for given question # Testing with our own data hours = np.array([9.25]) hours = hours.reshape((1,1)) own_pred = linear.predict(hours) print("No of hours = {}". format(hours)) print("Predicted Score = {}". format(own_pred[0])) tlib.pyplot as plt import pandas as pd # We load the dataset and sort out the attributes that are needed for the formulation of the model. # Load Dataset url = "https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/breast-cancer-wisconsin.data" names = ['id', 'clump_thickness', 'uniform_cell_size', 'uniform_cell_shape', 'marginal_adhesion', 'single_epithelial_size', 'bare_nuclei', 'bland_chromatin', 'normal_nucleoli', 'mitoses', 'class'] df = pd.read_csv(url, names=names) # Now, we clean the obtained data by replacing invalid values and dropping unecessary columns. # + # Preprocess the data df.replace('?',-99999, inplace=True) print(df.axes) df.drop(['id'], 1, inplace=True) # + # Let explore the dataset and do a few visualizations print(df.loc[10]) # Print the shape of the dataset print(df.shape) # - # Getting to know about the statistics of each attribute. # Describe the dataset print(df.describe()) # Plot histograms for each variable df.hist(figsize = (10, 10)) plt.show() # Create scatter plot matrix scatter_matrix(df, figsize = (18,18)) plt.show() # ### The above result shows the relationship between attributes and that we can go ahead with the modelling. ### # Now lets split the dataset for testing and training. # + # Create X and Y datasets for training X = np.array(df.drop(['class'], 1)) y = np.array(df['class']) X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2) # - # Testing Options seed = 8 scoring = 'accuracy' # Comparing the KNN and SVC models on the dataset. # + # Define models to train models = [] models.append(('KNN', KNeighborsClassifier(n_neighbors = 5))) models.append(('SVM', SVC())) # evaluate each model in turn results = [] names = [] for name, model in models: kfold = model_selection.KFold(n_splits=10, random_state = seed) cv_results = model_selection.cross_val_score(model, X_train, y_train, cv=kfold, scoring=scoring) results.append(cv_results) names.append(name) msg = "%s: %f (%f)" % (name, cv_results.mean(), cv_results.std()) print(msg) # + # Make predictions on validation dataset for name, model in models: model.fit(X_train, y_train) predictions = model.predict(X_test) print(name) print(accuracy_score(y_test, predictions)) print(classification_report(y_test, predictions)) # Accuracy - ratio of correctly predicted observation to the total observations. # Precision - (false positives) ratio of correctly predicted positive observations to the total predicted positive observations # Recall (Sensitivity) - (false negatives) ratio of correctly predicted positive observations to the all observations in actual class - yes. # F1 score - F1 Score is the weighted average of Precision and Recall. Therefore, this score takes both false positives and false # - # ### The above result shows the SVC to be a more accurate model for this case ### # Going ahead with the SVC model to predict the unknown. # + clf = SVC() clf.fit(X_train, y_train) accuracy = clf.score(X_test, y_test) print(accuracy) example_measures = np.array([[4,2,1,1,1,2,3,2,1]]) example_measures = example_measures.reshape(len(example_measures), -1) prediction = clf.predict(example_measures) print(prediction) # - til as GPU gpu = GPU.getGPUs()[0] process = psutil.Process(os.getpid()) print(f"Gen RAM: Free {humanize.naturalsize(psutil.virtual_memory().available)} | Proc size {humanize.naturalsize(process.memory_info().rss)}") print(f"GPU RAM: Free {gpu.memoryFree:.0f}MB | Used {gpu.memoryUsed:.0f}MB | Util {gpu.memoryUtil*100:.0f}% | Total {gpu.memoryTotal:.0f}MB") # + [markdown] id="HMubMpKy15ac" colab_type="text" # # **Main Code** # + [markdown] id="pIuewxbgsM4d" colab_type="text" # ## Data Loading # + id="C4DoUU8GYJes" colab_type="code" colab={} import cv2 import numpy as np import matplotlib.pyplot as plt # %matplotlib inline import os # + id="aS8Xf5iwpeXt" colab_type="code" outputId="390232fa-c195-4319-f9fa-3efd67779089" colab={"base_uri": "https://localhost:8080/", "height": 50} train_img=[] train_hr_path = '/content/rephrase-pubfig831/degraded/train' for subdir, dirs, _ in os.walk(train_hr_path): for file in dirs: path = os.path.join(subdir,file) for i in os.listdir(path): img = cv2.imread(os.path.join(path,i)) img = cv2.resize(img , (250,250)) train_img.append(img) train_img = np.array(train_img).astype('uint8') real_img=[] train_lr_path = '/content/rephrase-pubfig831/correct/train' for subdir, dirs, _ in os.walk(train_lr_path): for file in dirs: path = os.path.join(subdir,file) for i in os.listdir(path): img = cv2.imread(os.path.join(path,i)) img = cv2.resize(img , (250,250)) real_img.append(img) real_img = np.array(real_img).astype('uint8') print(train_img.shape) print(real_img.shape) # + id="imAwlarzIEdC" colab_type="code" outputId="e5967d5c-2331-4a59-fafb-d17858862bba" colab={"base_uri": "https://localhost:8080/", "height": 285} plt.imshow(train_img[0][:,:,::-1]) # + id="hd6AFx0vCBVD" colab_type="code" colab={} batch_size = 1 batch_count = (real_img.shape[0]//batch_size) # + [markdown] id="bSV-9eYyfbX2" colab_type="text" # ## Structure # + [markdown] id="jqLOT8BUsAaW" colab_type="text" # ### **Constants and Hyperparemeters** # + id="S8NNBxqO4qPH" colab_type="code" outputId="599c94e4-a745-47b7-a0c5-546c514d7f9a" colab={"base_uri": "https://localhost:8080/", "height": 407} import tensorflow as tf learning_rate = 0.0001 # + id="eCk3LSlUACtO" colab_type="code" outputId="bf80e582-b9ab-4e93-f104-4e8218870c1a" colab={"base_uri": "https://localhost:8080/", "height": 33} tf.__version__ # + [markdown] id="xQr7M263s-CE" colab_type="text" # ### Generator Model # + id="vLjLc0INPJY6" colab_type="code" colab={} def generator(): inp = tf.keras.layers.Input(shape=(250,250,3)) l1=(tf.keras.layers.Conv2D(64,(3,3),padding='same',activation='relu'))(inp) l1=(tf.keras.layers.BatchNormalization(momentum=0.8))(l1) nn = l1 for i in range(0,6): res=(tf.keras.layers.Conv2D(64,(3,3),padding='same',activation='relu'))(nn) #res=(tf.keras.layers.BatchNormalization(momentum=0.5))(res) nn = res residual_out = tf.keras.layers.add([l1,res]) l2=(tf.keras.layers.Conv2D(64,(3,3),padding='same',activation='relu'))(residual_out) l3=(tf.keras.layers.Conv2D(3,(3,3),padding='same',activation='tanh'))(l2) final = (tf.keras.layers.BatchNormalization())(l3) model = tf.keras.models.Model(inputs = inp , outputs = final) model.summary() return model # + id="koLS0F47Ax58" colab_type="code" outputId="39d19cef-78f9-4e51-a088-826ed2ba4733" colab={"base_uri": "https://localhost:8080/", "height": 586} model_generator = generator() # + id="2dgf05ciaY42" colab_type="code" outputId="a0dddd6f-8fb0-4d45-9164-63ffd1c0afee" colab={"base_uri": "https://localhost:8080/", "height": 285} img = np.reshape(train_img[0],(1,250,250,3)) trial = tf.image.convert_image_dtype(img,tf.float32) new = tf.image.convert_image_dtype(real_img[0],tf.float32) pred = model_generator.predict(trial) pred = tf.image.convert_image_dtype(pred,tf.uint8) pred = pred[:,:,:,::-1] plt.imshow(tf.reshape(pred[0],(250,250,3))) print(pred.shape) # + [markdown] id="_u7Eq3yltYld" colab_type="text" # # + id="qQ6tsJqgi-Gd" colab_type="code" colab={} def discriminator(): model = tf.keras.models.Sequential() model.add(tf.keras.layers.Conv2D(64,(3,3),input_shape=(250,250,3))) model.add(tf.keras.layers.LeakyReLU()) model.add(tf.keras.layers.Conv2D(64,(3,3),input_shape=(250,250,3))) model.add(tf.keras.layers.LeakyReLU()) model.add(tf.keras.layers.Flatten()) model.add(tf.keras.layers.Dense(32,activation='relu')) model.add(tf.keras.layers.Dense(1,activation='sigmoid')) return model # + id="I_0WEqG7GNna" colab_type="code" colab={} model_discriminator = discriminator() # + [markdown] colab_type="text" id="bVjtttv0fKhp" # # ### Loss Functions # + id="uD0xLY_FfRRO" colab_type="code" colab={} def loss_disc(real_output,fake_output): real_output = tf.sigmoid(real_output) fake_output = tf.sigmoid(fake_output) real_loss = tf.losses.binary_crossentropy(tf.ones_like(batch_size),real_output) fake_loss = tf.losses.binary_crossentropy(tf.zeros_like(batch_size),fake_output) return real_loss + fake_loss def loss_gen(fake_output): fake_output = tf.sigmoid(fake_output) fake_loss = tf.losses.binary_crossentropy(tf.ones_like(batch_size),fake_output) return fake_loss # + id="eZptm4sy_8FP" colab_type="code" outputId="b0320495-db6b-4668-cf9b-0434b8e726bb" colab={"base_uri": "https://localhost:8080/", "height": 50} resnet = tf.keras.applications.resnet50.ResNet50(include_top=False , weights = 'imagenet',input_shape=(250,250,3)) resnet.trainable = False model_res = tf.keras.models.Model(inputs = resnet.input ,outputs= resnet.output) model_res.trainable = False def resnet_loss(real,fake): hr = model_res.predict(real) lr = model_res.predict(fake) loss = tf.keras.losses.mean_squared_error(hr,lr) return np.mean(loss) # + id="YERIQsYriYXA" colab_type="code" colab={} def color_loss(real,fake): loss = tf.keras.losses.mean_squared_error(real,fake) return (loss) # + [markdown] colab_type="text" id="OHWHhltZfP2r" # ### Optimizer # + id="PhL1Myvmopcg" colab_type="code" colab={} optimizer_gen = tf.keras.optimizers.Adam(learning_rate) optimizer_disc = tf.keras.optimizers.Adam(learning_rate) # + [markdown] id="db_eANXWf52U" colab_type="text" # ## Preprocessing # + [markdown] id="No1MjnCQsoP9" colab_type="text" # ### Setting device to use for tensor operations # + id="DCZ5YQ4uJbP6" colab_type="code" colab={} # + [markdown] id="1q_IX5GGs0hh" colab_type="text" # ### Initializing weights (if required) # + id="huQiEB4sLP4c" colab_type="code" outputId="a95fa163-5311-4800-9d8e-61821ce1a9bc" colab={"base_uri": "https://localhost:8080/", "height": 33} trained_model = tf.keras.models.load_model('/content/new.h5') # + [markdown] id="u7msb0gPuC2A" colab_type="text" # ## Training # + id="K6Ccj64AtlK8" colab_type="code" colab={} def start(epochs): for e in range(epochs): train_model(e) if e%5 == 0: model_generator.save('/content/train_model.h5') # + id="zYFdUIscKJOg" colab_type="code" colab={} def train_model(e): rand = np.random.randint(0,train_img.shape[0],size = batch_size) low=[] high=[] for num in rand: low.append(train_img[num]) high.append(real_img[num]) low = np.array(low).astype('float32') high = np.array(high).astype('float32') noise_image = low/255 with tf.GradientTape() as gen_tape , tf.GradientTape() as disc_tape: generated_image = model_generator(noise_image) r_image= high/255 real_output = model_discriminator(r_image) fake_output = model_discriminator(generated_image) real_loss = loss_disc(real_output,fake_output) fake_loss_out = loss_gen(fake_output) loss_mse = color_loss(r_image,generated_image) content_loss = resnet_loss(r_image , generated_image) fake_loss = content_loss + fake_loss_out+loss_mse gradient_gen = gen_tape.gradient(fake_loss , model_generator.trainable_variables) gradient_disc = disc_tape.gradient(real_loss , model_discriminator.trainable_variables) optimizer_disc.apply_gradients(zip(gradient_disc,model_discriminator.trainable_variables)) optimizer_gen.apply_gradients(zip(gradient_gen,model_generator.trainable_variables)) print('Epoch : {} , loss: {}'.format(e,np.mean(fake_loss))) # + id="9Mu_m83NLQNd" colab_type="code" colab={} start(batch_count) # + [markdown] id="EloW4JAcyYDJ" colab_type="text" # ## Evaluation # + id="SIAidhJQY0s9" colab_type="code" outputId="6f2b7adc-ae4f-482f-8411-723aecb7abc2" colab={"base_uri": "https://localhost:8080/", "height": 285} trial = np.reshape(train_img[1],(1,250,250,3)) trial = trial/255 trial = trial.astype('float32') new = tf.image.convert_image_dtype(real_img[8534],tf.float32) pred = trained_model.predict(trial) pred = tf.image.convert_image_dtype(pred,tf.uint8) pred = pred[:,:,:,::-1] plt.imshow(tf.reshape(pred,(250,250,3))) print(pred.shape) # + id="9h1FFAS45TTm" colab_type="code" outputId="b16b462e-5ee5-48db-9819-270b3e4b8e95" colab={"base_uri": "https://localhost:8080/", "height": 286} r = (train_img[1]) plt.imshow(r[:,:,::-1]) # + id="m2ctYf4fcCsl" colab_type="code" outputId="1c0672a5-5063-4cc8-c1a5-ee7dd4170504" colab={"base_uri": "https://localhost:8080/", "height": 286} r = (real_img[1]) plt.imshow(r[:,:,::-1]) # + id="FNnCAsPZgyqn" colab_type="code" colab={} def fix(image): """ This function should take a degraded image in BGR format as a 250x250x3 numpy array with dtype np.uint8, and return its fixed version in the same format. Make sure you don't return floating point values, or RGB instead of BGR, else the image will look completely wrong when displayed. """ image = np.reshape(image,(1,250,250,3)) image = image/255 image = tf.image.convert_image_dtype(image,tf.float32) img = trained_model(image) img = tf.image.convert_image_dtype(img,tf.uint8) img = np.reshape(img,(250,250,3)) return img # + [markdown] id="hZk4RFZhnpab" colab_type="text" # # Results # Run this block after done to look at some of the results of the fix function. Do not change this block in any way. Instead write the fix function in a way that makes sure that this block works. # + id="akZdSIK8odKM" colab_type="code" outputId="8eab27be-5758-4f1f-ec53-7713acfaa0d8" colab={"base_uri": "https://localhost:8080/", "height": 1000} # %matplotlib inline import os import random from glob import glob import cv2 import matplotlib.pyplot as plt import numpy as np NUM_DISPLAY = 5 files = glob('/content/rephrase-pubfig831/correct/test/*/*') grid = [] for path in random.sample(files, NUM_DISPLAY): correct = cv2.imread(path) split = path.split('/') degraded = cv2.imread('/'.join([*split[:3], 'degraded', *split[4:]])) #degraded = np.reshape(degraded , (1,250,250,3)) fixed = fix(degraded) grid.append(np.column_stack([degraded, fixed, correct])) image = np.row_stack(grid) dpi = float(plt.rcParams['figure.dpi']) figsize = image.shape[1] / dpi, image.shape[0] / dpi ax = plt.figure(figsize=figsize).add_axes([0, 0, 1, 1]) ax.axis('off') ax.imshow(image[..., ::-1]) plt.show() # + id="0E4DQkecc63V" colab_type="code" colab={}
16,725
/Python Dev/python_assignment.ipynb
099819126d7c47f88e1ea066e6881b103249bca0
[ "MIT" ]
permissive
Buhle/Assessments
https://github.com/Buhle/Assessments
0
0
MIT
2020-04-01T14:02:52
2019-04-04T06:58:24
null
Jupyter Notebook
false
false
.py
9,193
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import datetime import json import numpy as np import pandas as pd from pandas import Series, DataFrame import pprint import time import re import requests import sklearn from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt # %matplotlib inline import seaborn as sns sns.set_style('whitegrid') # - url = "https://api.syosetu.com/novelapi/api/" # + # 収集データの決定 data_info_of = 't-s-bg-g-k-gf-gl-nt-ga-l-ir-izk-its-iti-gp-dp-wp-mp-qp-yp-f-imp-r-a-ah-sa-ka' payload_daily = {'out': 'json', 'order': 'dailypoint', 'lim': 100, 'biggenre': '2', 'of': data_info_of} # - d = requests.get(url, params=payload_daily) json_data = d.json() print(len(json_data)) json_data # + datas = [] datas.extend(json_data[1:]) columns = [] for c in datas[0]: columns.append(c) # - bf_df = pd.DataFrame(datas, columns=columns) df = bf_df.copy() title_length = [] keyword_length = [] story_length = [] for x, y, z in zip(df.title, df.keyword, df.story): try: title_length.append(len(x)) keyword_length.append(len(y)) story_length.append(len(z)) except TypeError: continue df.title = title_length df.keyword = keyword_length df.story = story_length df now_date = datetime.datetime.now() now_date def difference_type_search(self): date_pattern = r'....-..-.. ..:..:..' dt = [] st = [] for index, d in enumerate(self): if type(d) == str: if re.search(date_pattern, d) != None: for i, d in enumerate(df): if i == index: dt.append(d) else: for i, d in enumerate(df): if i == index: st.append(d) return dt, st def df_type_change(self): dts_d = difference_type_search(df.iloc[0])[0] dts_s = difference_type_search(df.iloc[0])[1] for d in dts_d: difference_date = [] for t in df[d]: df_date = datetime.datetime.strptime(t, '%Y-%m-%d %H:%M:%S') day_sa = now_date - df_date difference_date.append(day_sa.days) df[d] = difference_date for d in dts_s: length = [] for i in df[d]: length.append(len(i)) df[d] = length difference_type_search(df.iloc[0]) df_type_change(df) df # + # .max()  最大値 # .min() 最小値 # .mode()  最頻値 # .mean()  平均値 # .median()  中央値 # .std()  標準偏差 # .count()  件数 # .corr() 相関係数(列間のデータの相関関係を数値化、主にテーブル全体に対して使う。) # .unique() カテゴリカルデータの項目を表示 # .value_counts()  項目別数量 # + # numpy.sqrt(x) 配列xの平方根を求めます。 # numpy.cbrt(x) 配列xの立方根(三乗根)を求めます。 # numpy.square(x) 配列xの二乗を求めます。 # - X = df.daily_point Y = df.yearly_point X = np.array([[value, 1] for value in X]) model = LinearRegression() model.fit(X, Y) print('切片:', model.intercept_) print('傾き:', model.coef_) a,b = np.linalg.lstsq(X, Y)[0] # + plt.plot(df.yearly_point, df.kaiwaritu, 'o') x = df.yearly_point plt.plot(x, a*x+b, 'r') # - lreg = LinearRegression() X_multi = df.drop('daily_point', 1) X_multi.shape Y_target = df.daily_point lreg.fit(X_multi, Y_target) lreg.intercept_ len(lreg.coef_) coeff_df = DataFrame(df.columns) coeff_df.columns = ['Featers'] coeff_df['Coefficient Estimate'] = pd.Series(lreg.coef_) coeff_df X_train, X_test,Y_train, Y_test = sklearn.model_selection.train_test_split(X_multi,df.daily_point) print(X_train.shape, X_test.shape, Y_train.shape, Y_test.shape) lreg = LinearRegression() lreg.fit(X_train,Y_train) pred_train = lreg.predict(X_train) pred_test = lreg.predict(X_test) # + print('X_trainを使ったモデルの平均二乗誤差={:0.2f}'.format(np.mean((Y_train - pred_train) ** 2))) print('X_testを使ったモデルの平均二乗誤差={:0.2f}'.format(np.mean((Y_test - pred_test) ** 2))) # + # 学習用のデータの残差プロットです。 train = plt.scatter(pred_train,(pred_train-Y_train),c='b',alpha=0.5) # テスト用のデータの残差プロットです。 test = plt.scatter(pred_test,(pred_test-Y_test),c='r',alpha=0.5) # y=0の水平な線を描いておきます。 plt.hlines(y=0,xmin=-10,xmax=50) plt.legend((train,test),('Training','Test'),loc='lower left') plt.title('Residual Plots') # -
4,353
/univariate-linear-regression.ipynb
405dd9c2e532caae188df4907698a4cea28c6f5c
[]
no_license
cricketjanoon/linear-regression-pytorch
https://github.com/cricketjanoon/linear-regression-pytorch
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
32,218
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: pytorch-gpu # language: python # name: pytorch-gpu # --- import torch import pandas as pd from matplotlib import pyplot as plt # + #reading data df = pd.read_csv('salary_data.csv') x = df['YearsExperience'].values y = df['Salary'].values x = torch.from_numpy(x).float() y = torch.from_numpy(y).float() x = x.view(30, -1) y = y.view(30, -1) # + # initializing weight and bias w = torch.randn(1, 1, requires_grad=True) b = torch.randn(1, requires_grad=True) print(w.shape) print(b.shape) # + # linear regression model def linreg_model(x): return x @ w + b y_pred = linreg_model(x) # + # mean square loss def calculate_loss(y_true, y_pred): diff = y_true - y_pred return torch.sum(diff * diff) / diff.numel() loss = calculate_loss(y, y_pred) print(loss) # + # hyperparamters lr = 0.002 epochs = 100 # + #training loop loss_hist = [] for epoch in range(epochs): y_pred = linreg_model(x) loss = calculate_loss(y, y_pred) loss.backward() loss_hist.append(loss.item()) with torch.no_grad(): w -= w.grad * lr b -= b.grad * lr w.grad.zero_() b.grad.zero_() # - preds = linreg_model(x) loss = calculate_loss(preds, y) print(loss) plt.plot(range(epochs), loss_hist) plt.xlabel("# of epochs") plt.ylabel("training error") plt.title("Epochs vs Error") plt.scatter(x, y) plt.plot(x, y_pred.detach(), 'r') plt.xlabel('Experience') plt.ylabel('Salary')
1,640
/notebooks/aggregations-joins-sparksql.ipynb
008166feaa2d81073f8b94a951cdfd3a3d14756a
[]
no_license
parijatbanik/spark-examples
https://github.com/parijatbanik/spark-examples
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
48,219
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## Examples for Aggregation functions, joins and SQL # + from pyspark.sql import SparkSession import pandas as pd spark = SparkSession.builder.appName("SimpleApp2").getOrCreate() spark.conf.set("spark.sql.shuffle.partitions", "5") netflix = spark.read.csv("../data/netflix_titles.csv",header='true') netflix.limit(5).toPandas().head() # + avocadoprice = spark.read.csv("../data/avocado.csv",header='true') avocadoprice.cache() avocadoprice.createOrReplaceTempView("avocadopriceTable") avocadoprice.limit(5).toPandas().head() # - from pyspark.sql.functions import count avocadoprice.select(count("AveragePrice")).show() from pyspark.sql.functions import countDistinct avocadoprice.select(countDistinct("AveragePrice")).show() from pyspark.sql.functions import min,max avocadoprice.select(min("AveragePrice"),max("AveragePrice")).show() # + from pyspark.sql.functions import var_pop, stddev_pop from pyspark.sql.functions import var_samp, stddev_samp avocadoprice.select(var_pop("AveragePrice"), var_samp("AveragePrice"), stddev_pop("AveragePrice"), stddev_samp("AveragePrice")).show() # + from pyspark.sql.functions import skewness, kurtosis avocadoprice.select(skewness("AveragePrice"), kurtosis("AveragePrice")).show() # - # ## Grouping avocadoprice.groupBy("year","region").count().show() # + from pyspark.sql.window import Window from pyspark.sql.functions import desc windowSpec = Window\ .partitionBy("_c0", "Date")\ .orderBy(desc("Total Volume"))\ .rowsBetween(Window.unboundedPreceding, Window.currentRow) # - from pyspark.sql.functions import max from pyspark.sql.functions import col maxPurchaseQuantity = max(col("Quantity")).over(windowSpec) maxPurchaseQuantity pivoted = avocadoprice.groupBy("region").pivot("type").sum() pivoted.limit(6).toPandas().head() # ## Joins happy2018 = spark.read.csv("../data/happiness/2018.csv",header='true') happy2018.limit(5).toPandas().head() happy2019 = spark.read.csv("../data/happiness/2019.csv",header='true') happy2019.limit(5).toPandas().head() # + happy2018.cache() happy2018.createOrReplaceTempView("happy2018Table") happy2019.cache() happy2019.createOrReplaceTempView("happy2019Table") # - spark.sql("select `Country or region` as Country, `Social support` as social from happy2018Table limit 5").show() joinExpression = happy2018["Country or region"] == happy2019['Country or region'] joinExpression # + person = spark.createDataFrame([ (0, "Bill Chambers", 0, [100]), (1, "Matei Zaharia", 1, [500, 250, 100]), (2, "Michael Armbrust", 1, [250, 100])])\ .toDF("id", "name", "graduate_program", "spark_status") graduateProgram = spark.createDataFrame([ (0, "Masters", "School of Information", "UC Berkeley"), (2, "Masters", "EECS", "UC Berkeley"), (1, "Ph.D.", "EECS", "UC Berkeley")])\ .toDF("id", "degree", "department", "school") sparkStatus = spark.createDataFrame([ (500, "Vice President"), (250, "PMC Member"), (100, "Contributor")])\ .toDF("id", "status") # - person.createOrReplaceTempView("person") graduateProgram.createOrReplaceTempView("graduateProgram") sparkStatus.createOrReplaceTempView("sparkStatus") joinExpression = person["graduate_program"] == graduateProgram['id'] person.join(graduateProgram, joinExpression).show() joinType = "inner" person.join(graduateProgram, joinExpression, joinType).show() joinType = "outer" person.join(graduateProgram, joinExpression, joinType).show() joinType = "left_outer" graduateProgram.join(person, joinExpression, joinType).show() joinType = "right_outer" person.join(graduateProgram, joinExpression, joinType).show() joinType = "cross" graduateProgram.join(person, joinExpression, joinType).show() # ## Spark SQL avocadoprice.limit(5).toPandas().head() spark.sql("""SELECT Date, sum(AveragePrice) FROM avocadopriceTable GROUP BY Date """).show()
4,123
/Utils/train_interactive.ipynb
83189212600210b8d295a8f4af37cdaf43ea37ec
[]
no_license
carlmoore256/VR-ML-Drumkit
https://github.com/carlmoore256/VR-ML-Drumkit
3
0
null
null
null
null
Jupyter Notebook
false
false
.py
19,686
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: 'Python 3.7.7 64-bit (''venv'': venv)' # name: python37764bitvenvvenvab0f665d5e6242889e1be50fddda4d67 # --- # # Query examples # ## Example 1 # # Parse the authors name of the 14th paper in the paper list queried with "particles", and the following 10. import pandas as pd from pprint import pprint from scrapxiv.shelf import Shelf # Intialise a shelf with a query for deep learning papers, starting from the 14th paper in the output query, and getting the first 10 results: shelf = Shelf() shelf.query(keywords="deep learning", start_index=14, max_results=10) # Getting the basic information of the papers in the shelf: shelf.get_papers_ids() from pprint import pprint pprint(shelf.get_papers_info()) # Download all the papers in the shelf in a local folder: shelf.clean_download_folder() shelf.download_papers() pd.set_option('display.max_rows', 100) shelf.get_authors_dataframe(get_emails=True) # ## Example 2 # Query authors data from the first 8 papers, filtering with the keywords "sub multisets". shelf = Shelf() shelf.query(keywords="sub multisets", start_index=1, max_results=8) pd.set_option('display.max_rows', 78) df_multiset = shelf.get_authors_dataframe() df_multiset dict_texts = shelf.fetch_texts() pprint(dict_texts)
1,461
/0_Functions.ipynb
3729dbe48249b30387687824abb1e711d2114bcc
[]
no_license
Ebanchous/Banks_insolvency_forecast_ML
https://github.com/Ebanchous/Banks_insolvency_forecast_ML
11
0
null
null
null
null
Jupyter Notebook
false
false
.py
11,121
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # %%time import pandas as pd print('''по счетам погашенных кредитов (учтенных векселей)''') redeemed_loans = pd.read_csv(r'C:\Users\DSimonov\Desktop\aa\loans_pns.csv') redeemed_loans.head() accounts_loans = redeemed_loans['Acc'].astype(str).values.tolist() print('''общему объему денежных средств, поступивших на корреспондентские счета кредитной организации (дебетовые обороты за месяц по счетам НОСТРО)''') nostro = pd.read_csv(r'C:\Users\DSimonov\Desktop\aa\nostro.csv') nostro.head() account_nostro = nostro['Acc'].astype(str).values.tolist() # + def last_report_date(reg_number): date = max(df101.loc[df['regn'] == reg_number]['dt']) return date def periods(reg_number): date = df101.loc[df101['regn'] == reg_number]['dt'].unique() date = pd.Series(date) date.sort_values(ascending=True, inplace=True) return date def filter_bank(df, reg_num): df_regnum = df101.loc[df101['regn'] == reg_num] return df_regnum def filter_date(df_regnum, date): df_regnum_date = df_regnum.loc[df_regnum['dt'].isin(date)] return df_regnum_date def filtering(df101, reg_num, date): df_regnum = filter_bank(df101, reg_num) df_ready = filter_date(df_regnum, date) return df_ready def status(reg_number): reg_number = int(reg_number) status = "Operating" date = max(df101.loc[df101['regn'] == reg_number]['dt']) date_overall = df101['dt'].unique() date_overall_value = max(date_overall) if date<date_overall_value: status = "Liquidation" return status # - # %%time reg_number = 880 accounts_loans = redeemed_loans['Acc'].astype(str).values.tolist() account_nostro = nostro['Acc'].astype(str).values.tolist() date1 = periods(reg_number)[-2:] periods1 = periods(reg_number)[-2:] print(periods1) for date in periods1[::-1]: date = str(date)[:10].split() df_total = filtering(df, reg_number, date) a = df_total.loc[df_total['num_sc'].isin(accounts_loans)]['iitg'].sum(axis = 0) b = df_total.loc[df_total['num_sc'].isin(account_nostro)]['oitga'].sum(axis = 0) print(f"first value is {a}, the second value is {b}") print (f'The coefficient is {"{:.1%}".format(a/b)}') # %%time import pandas as pd banks = df['regn'].unique() banks = pd.Series(banks) banks.sort_values(ascending=True, inplace=True) banks.to_csv(r'C:\Users\DSimonov\Desktop\aa\banks.csv', encoding = 'utf-8', index = False) # + def periods_135(reg_number): date = df135.loc[df135['regn'] == reg_number]['dt'].unique() date = pd.Series(date) date.sort_values(ascending=True, inplace=True) return date def filter_bank_135(df, reg_num): df_regnum_135 = df135.loc[df135['regn'] == reg_num] return df_regnum_135 def filter_date_135(df_regnum_135, date): df_regnum_date = df_regnum_135.loc[df_regnum_135['dt'].isin(date)] return df_regnum_date def filtering_135(df135, reg_num, date): df_regnum_135 = filter_bank_135(df135, reg_num) df_ready_135 = filter_date_135(df_regnum_135, date) return df_ready_135 # + # 'ova','oitga - обороты по дебету итого', 'orp', 'ovp','oitgp - обороты по кредиту итого', 'ir', 'iv','iitg - исходящие осттаки итого', 'dt', 'priz'] # ['regn', 'plan', 'num_sc', 'a_p', 'vr', 'vv','vitg', 'ora', 'ova','oitga', 'orp', 'ovp','oitgp', 'ir', 'iv','iitg', 'dt', 'priz'] def core_function_1(df_total): try: a = df_total.loc[df_total['num_sc'].isin(numerator)]['oitgp'].sum(axis = 0) b = df_total.loc[df_total['num_sc'].isin(denominator)]['oitga'].sum(axis = 0) c= a/b except: c=0 return c def core_function_2(df_total_135): try: c= df_total_135.loc[df_total_135['code_norm'].str.contains("Н7")]['act_norm'].values[0] except: c = 0 return c def core_function_3(df_total): try: a = df_total.loc[df_total['num_sc'].isin(numerator)]['oitga'].sum(axis = 0) b = df_total.loc[df_total['num_sc'].isin(denominator)]['oitgp'].sum(axis = 0) c= a/b except: c=0 return c # - # %%time # Form 135 count = 1 bank_coef_df = pd.DataFrame() for bank in banks: print(f'Analysing RegNumber of Bank number {count} with regnumber {bank} out of {len(banks)} banks ({int(count/len(banks)*100)}% done)') periods_1 = periods_135(int(bank))[-12:] temp_coef_df = pd.DataFrame() for date in periods_1[::-1]: date = str(date)[:10].split() df_total_135 = filtering_135(df135, bank, date) c = core_function_2(df_total_135) # a = df_total.loc[df_total['num_sc'].isin(numerator)]['oitga'].sum(axis = 0) # b = df_total.loc[df_total['num_sc'].isin(denominator)]['oitgp'].sum(axis = 0) # c= a/b temp_coef_df = temp_coef_df.append({'bank': bank, 'date': date, 'coeff': c}, ignore_index=True) temp_coef_df = pd.DataFrame(temp_coef_df) temp_coef_df1 = temp_coef_df.transpose() temp_coef_df1 = temp_coef_df1.iloc[[1]] temp_coef_df1['bank'] = temp_coef_df.iloc[0,0] bank_coef_df = bank_coef_df.append(temp_coef_df1, ignore_index=True) count+=1 cols = list(bank_coef_df.columns) bank_coef_df.columns =['recent', 'recent-1m', 'recent-2m', 'recent-3m', 'recent-4m', 'recent-5m', 'recent-6m', 'recent-7m','recent-8m', 'recent-9m', 'recent-10m','recent-11m', 'bank'] bank_coef_df = bank_coef_df[['bank', 'recent', 'recent-1m', 'recent-2m', 'recent-3m', 'recent-4m', 'recent-5m', 'recent-6m', 'recent-7m', 'recent-8m', 'recent-9m', 'recent-10m', 'recent-11m']] bank_coef_df[bank_coef_df.columns[0]] = bank_coef_df[bank_coef_df.columns[0]].astype('int') bank_coef_df.columns =[ 'bank', 'recent', 'recent-1m', 'recent-2m', 'recent-3m', 'recent-4m', 'recent-5m', 'recent-6m', 'recent-7m','recent-8m', 'recent-9m', 'recent-10m','recent-11m'] # %%time accounts_loans = redeemed_loans['Acc'].astype(str).values.tolist() account_nostro = nostro['Acc'].astype(str).values.tolist() bank_coef_df = pd.DataFrame() for bank in banks[:5]: print(f'Setting RegNumber of Bank with regnumber {bank}') periods_1 = periods(int(bank))[-12:] temp_coef_df = pd.DataFrame() for date in periods_1[::-1]: date = str(date)[:10].split() df_total = filtering(df101, bank, date) a = df_total.loc[df_total['num_sc'].isin(accounts_loans)]['iitg'].sum(axis = 0) b = df_total.loc[df_total['num_sc'].isin(account_nostro)]['oitga'].sum(axis = 0) c= a/b temp_coef_df = temp_coef_df.append({'bank': bank, 'date': date, 'coeff': c}, ignore_index=True) temp_coef_df = pd.DataFrame(temp_coef_df) temp_coef_df1 = temp_coef_df.transpose() temp_coef_df1 = temp_coef_df1.iloc[[1]] temp_coef_df1['bank'] = temp_coef_df.iloc[0,0] bank_coef_df = bank_coef_df.append(temp_coef_df1, ignore_index=True) re_order = [-1,0,1,2,3,4,5,6,7,8,9,10,11] bank_coef_df = bank_coef_df[bank_coef_df.columns[re_order]] bank_coef_df[bank_coef_df.columns[0]] = bank_coef_df[bank_coef_df.columns[0]].astype('int') bank_coef_df.columns =[ 'bank', 'recent', 'recent-1m', 'recent-2m', 'recent-3m', 'recent-4m', 'recent-5m', 'recent-6m', 'recent-7m','recent-8m', 'recent-9m', 'recent-10m','recent-11m'] # %%time df_accounts = pd.DataFrame() df_accounts1 = pd.DataFrame() df_accounts = df101.drop(['regn', 'plan', 'vr', 'vv','vitg', 'ora', 'ova','oitga', 'orp', 'ovp','oitgp','ir', 'iv','iitg', 'dt', 'priz'], axis=1) df_accounts1= df_accounts.drop_duplicates(['num_sc', 'a_p']) df_accounts1 = pd.DataFrame(df_accounts1) df_accounts1.columns =['num_sc', 'a_p'] df_accounts1.to_csv(r'C:\Users\DSimonov\Desktop\aa\accounts2.csv', encoding = 'utf-8', index = False)
8,009
/HandsOnMachineLearning2_Chapter3.ipynb
993f6177f5e342237c00be9acaa6b2e1c5a0123f
[]
no_license
Jangsehawn/HandsOnMachineLearning2
https://github.com/Jangsehawn/HandsOnMachineLearning2
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
59,606
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## Capítulo 1.1.: Modelos estadísticos para control de calidad # ### Caso 1.1.1: Análisis de capacidad de proceso import numpy as np import math import scipy.stats as st # ### Ejemplo 3: # Una característica de calidad importante en la fabricación de una llanta es la longitud de capa, que para cierto tipo de llanta debe ser de 870 mm con una tolerancia de $\pm$ 7 mm. Para monitorear el correcto funcionamiento del proceso de corte, cada media hora se toman cinco (5) capas y se miden. De acuerdo a las mediciones realizadas el último mes, en donde el proceso ha estado trabajando de manera estable, se tiene que la media y la desviación estándar del proceso son $\mu =$ 873 mm y $\sigma =$ 2.5 mm, respectivamente. Con base a lo anterior se quiere saber en qué medida el proceso está cumpliendo con las especificaciones respondiendo a los siguientes interrogantes: # * **a) Determine la capacidad del proceso (Cp).** # * **b) ¿Cuál es la capacidad real del proceso (Cpk)?** # * **c) Calcule los límites de fluctiación natural del proceso (LFNP).** # * **d) ¿Qué proporción de producto no conforme se está generando por fuera de los límites de especificación?** # * **e) ¿Entre qué valores debería oscilar la media del proceso para que el porcentaje de no conformidad sea a lo sumo 4.0%?** # **a) Determine la capacidad del proceso (Cp):** # R/ Se sabe que el índice de capacidad del proceso Cp esta dado por: # # $$\rightarrow C_{p}=\frac{T}{6\sigma'}$$ # # Y: # $$\rightarrow T = 2\nabla = LSE - LIE$$ # # Donde: # * $\nabla$ es la discrepancia y de ahora en adelante se le asignará la letra 'D', # * $\sigma'$ que es la desviación estándar se le asignará la letra 's',y # * 'T' es la tolerancia. # # A continuación se procederá determinar la capacidad del proceso: # + LIE = 870 - 7 # Límite Inferior de Especificación LSE = 870 + 7 # Límite Superior de Especificación T = LSE - LIE s = 2.5 Cp = T/(6*s) print(Cp) # - # Dado que $0.67 < C_{p} < 1.00$ entonces esto por lo pronto indica que el proceso no tiene capacidad de fabricar producto dentro de las especificaciones, requiere modificaciones para generar producto que alcance una calidad satisfactoria. # **b) ¿Cuál es la capacidad real del proceso (Cpk)?** # R/ Cuando el proceso no está centrado, se emplea el **índice de capacidad unilateral** o **índice de capacidad real (Cpk)**: # # $$\rightarrow C_{pk}=min(C_{pki}, C_{pks})$$ # # $$\rightarrow C_{pk}=min(C_{pki}=\frac{\bar{X'}-LIE}{3\sigma'}, C_{pks}=\frac{LSE-\bar{X'}}{3\sigma'})$$ # # Donde: # # * $\bar{X'}$ es la media del proceso, y # * $\sigma'$ es la desviación del proceso. # # Por tanto, el índice Cpk es: # + X = 873 Cpki = np.round((X-LIE)/(3*s),2) Cpks = np.round((LSE-X)/(3*s),2) Cpk = np.min([Cpki,Cpks]) print("Cpki = "+ str(Cpki)) print("Cpks = "+ str(Cpks)) print("Cpk = "+ str(Cpk)) # - # Dado que Cpk $\approx$ 0.53, esto indica que el proceso no es realmente capaz y por lo menos tiende a no cumplir con una de las especificaciones de calidad. Dicho lo anterior, tal parece que no se está cumpliendo con el límite superior de calidad, pues corresponde a Cpks $\approx$ 0.53. Por el contrario, el proceso no parece tener problemas para cumplir con el límite inferior de especificación, ya que Cpki $\approx$ 1.33. # **c) Calcule los límites de fluctuación natural del proceso (LFNP):** # R/ Se tiene que los límites de fluctuación natural del proceso están dados por la siguiente fórmula: # # $$\rightarrow LFN_{i,s} = \bar{X'} \pm 3\sigma'$$ # # Donde: # # * $\bar{X'}$ es la media del proceso, y # * $\sigma'$ es la desviación estándar del proceso. # # Entonces, los límites de fluctuación son: # + LIFN = np.round(X - 3*s,4) LSFN = np.round(X + 3*s,4) print("LIFN = " + str(LIFN) + " y LSFN = " + str(LSFN)) # - # Se compara si LIFN es mayor o igual a LIE y si LSFN es menor o igual a LSE: print(LIFN>=LIE, LSFN<=LSE) # Se tiene que **el límite superior fluctuación natural (LIFN) es mas alto (>) que el límite superior de especificación (LSE)**, por lo que **se confirma que el proceso está generando producto no conforme por encima de dicho límite.** # **d) ¿Qué proporción de producto no conforme se está generando por fuera de los límites de especificación?** # R/ Como el proceso está generando producto no conforme por encima del límite superior de especificación, inicialmente se debe determinar el valor Z estandarizado para dicho límite. Esto se obtiene con la siguiente fórmula: # # $$\rightarrow Z_{sup}=\frac{LSE-\bar{X'}}{\sigma'}$$ # # Obteniendo el siguiente resultado: Zsup = np.round((LSE - X)/s,4) print(Zsup) # Luego de esto, se obtiene de la tabla de distribución normal estándar la probabilidad de obtener un valor Zsup mayor a 1.6, así: P = np.round(1 - st.norm.cdf(Zsup),4) print(P) # Es decir que la proporción de producto no conforme generado por encima del límite superior de especificación es del 5.48%. El porcentaje es bajo pero no despreciable, aproximadamente 548 unidades defectuosas en cada lote de 10.000 unidades, pero se podría mejorar centrando un poco más el proceso. # **e) ¿Entre qué valores debería oscilar la media del proceso para que el porcentaje de no conformidad sea a lo sumo 4.0%?** # Inicialmente se debe despejar $\bar{X'}$ de la fórmula de Z estandarizado inferior, así: # # $$Z_{inf}=\frac{LIE-\bar{X'}}{\sigma'}\rightarrow\bar{X'}_{inf}=LIE-\sigma'Z_{inf}$$ # # Lo mismo ocurre con la formula de Z estandarizado superior: # # $$Z_{sup}=\frac{LSE-\bar{X'}}{\sigma'}\rightarrow\bar{X'}_{sup}=LSE-\sigma'Z_{sup}$$ # # Donde: # * $Z_{inf}$ es el valor de Z estandarizado inferior que representa una probabilidad de 4.0% de obtener producto no conforme por debajo de LIE, y # * $Z_{sup}$ es el valor de Z estandarizado superior que representa una probabilidad de 96.0% (100.0% - 4.0%) de no obtener inconformidades de producto por encima de LSE. # # Por lo tanto: # + VO_inf = 0.04 Zinf_vo = np.round(st.norm.ppf(VO_inf),4) VO_sup = 1 - VO_inf Zsup_vo = np.round(st.norm.ppf(VO_sup),4) print("Zinf = "+str(Zinf_vo) + " y Zsup = " + str(Zsup_vo)) # - # Entonces, los valores entre los cuales puede oscilar $\bar{X'}$ para obtener a lo sumo 4.0% de producto no conforme son: Xinf_vo = np.round(LIE - (Zinf_vo*s),1) # Cuando el proceso entrega 4% de producto no conforme por debajo del límite inferior de especificación. Xsup_vo = np.round(LSE - (Zsup_vo*s),1) # Cuando el proceso entrega 4% de producto no conforme por encima del límite superior de especificación. print("Xinf = " + str(Xinf_vo) + " y Xsup = " + str(Xsup_vo)) # Es decir, el proceso debe mejorar la exactitud debido a que la media del proceso debe oscilar entre 867.4 mm y 872.6 mm para obtener máximo 4% de no conformidades. ot_roc_curve(fpr_forest,tpr_forest, "랜덤 포레스트") # 랜포가 더 좋음 # # 3.6 다중 레이블 분류 데이터 에 다중 레이블이 있는 것의 분류(사람 얼굴 여러개 등) # + from sklearn.neighbors import KNeighborsClassifier y_train_large=(y_train>=7) # 7보다 크거나 작은지 y_train_odd=(y_train%2==1) # 홀수인지 y_multilabel=np.c_[y_train_large,y_train_odd] knn_clf=KNeighborsClassifier() knn_clf.fit(X_train,y_multilabel) # - knn_clf.predict([some_digit]) # some_digit은 5이므로 둘다 맞음 ! y_train_knn_pred=cross_val_predict(knn_clf,X_train,y_multilabel,cv=3) f1_score(y_multilabel, y_train_knn_pred,average= "macro")# average="weighted"로 클래스마다 가중치를 줄 수도 있음 # 모든 레이블의 f1스코어의 평균을 계산함 # # 3.7 다중 출력 분류 # 잡음이 많은 숫자를 입력받고 깨끗한 숫자이미지를 출력합니다 (다중 레이블(픽셀당 한레이블), 레이블이 값을 여러개 가짐(0~255)) noise = np.random.randint(0,100,len(X_train),784)) X_train_mod=X_train+noise noise = np.random.randint(0,100,len(X_test),784)) X_test_mod=X_test+noise y_train_mod=X_train y_test_mod=X_test knn_clf.fit(X_train_mod,y_train_mod) clean_digit=knn_clf.predict([X_test_mod[some_index]]) plot_digit(clean_digit)
8,022
/python - time series.ipynb
dfe9075c860dd8746e81acceedd0a3f74ea075b3
[]
no_license
thomashuan88/python_ml
https://github.com/thomashuan88/python_ml
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
99,513
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %pwd # https://stackabuse.com/time-series-analysis-with-lstm-using-pythons-keras-library/ # https://towardsdatascience.com/time-series-in-python-exponential-smoothing-and-arima-processes-2c67f2a52788 # https://towardsdatascience.com/time-series-in-python-part-2-dealing-with-seasonal-data-397a65b74051 # https://towardsdatascience.com/time-series-in-python-part-3-forecasting-taxi-trips-with-lstms-277afd4f811 # https://machinelearning.samcart.com/products/deep-learning-for-time-series-forecasting/ # https://towardsdatascience.com/human-activity-recognition-har-tutorial-with-keras-and-core-ml-part-1-8c05e365dfa0 import pandas as pd appl_data = pd.read_csv("./AAPL.csv") print(appl_data.head()) print(appl_data.shape) appl_data.dtypes import datetime import requests from bokeh.plotting import figure, show, output_file appl_data['Date'] = pd.to_datetime(appl_data['Date']) appl_data = appl_data.sort_values(by=['Date']) df = appl_data # + from math import pi inc = df.Close > df.Open dec = df.Open > df.Close w = 12*60*60*1000 TOOLS = "pan,wheel_zoom,box_zoom,reset,save" title = 'AAPL' + ' chart' p = figure(x_axis_type="datetime", tools=TOOLS, plot_width=1000, title=title) p.xaxis.major_label_orientation = pi/4 p.grid.grid_line_alpha=0.3 p.segment(df.Date, df.High, df.Date, df.Low, color="black") p.vbar(df.Date[inc], w, df.Open[inc], df.Close[inc], fill_color="#D5E1DD", line_color="black") p.vbar(df.Date[dec], w, df.Open[dec], df.Close[dec], fill_color="#F2583E", line_color="black") #Store as a HTML file output_file("stock_information.html", title="candlestick example") show(p) # + import numpy as np import matplotlib.pyplot as plt import pandas as pd appl_data = pd.read_csv("./appl_train2.csv") print(appl_data.head()) print(appl_data.shape) df = appl_data df_training_processed = df.iloc[:, 1:2].values df_training_processed # + # Data Normalization # As a rule of thumb, whenever you use a neural network, you should normalize or scale your data. # We will use MinMaxScaler class from the sklear.preprocessing library to scale our data between 0 and 1. # The feature_range parameter is used to specify the range of the scaled data. Execute the following script: from sklearn.preprocessing import MinMaxScaler scaler = MinMaxScaler(feature_range = (0,1)) df_training_scaled = scaler.fit_transform(df_training_processed) # + features_set = [] labels = [] for i in range(60, 2460): features_set.append(df_training_scaled[i-60:i, 0]) labels.append(df_training_scaled[i, 0]) features_set, labels = np.array(features_set), np.array(labels) print(df_training_scaled[62,0]) print(df_training_scaled[0:4, 0]) print(labels) # - features_set = np.reshape(features_set, (features_set.shape[0], features_set.shape[1], 1)) features_set.shape from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers import Dropout # + model = Sequential() model.add(LSTM(units=64, return_sequences=True, input_shape=(features_set.shape[1], 1))) # model.add(Dropout(0.2)) model.add(LSTM(units=32)) # model.add(LSTM(units=32, return_sequences=True)) model.add(Dropout(0.2)) # model.add(LSTM(units=50, return_sequences=True)) # model.add(Dropout(0.2)) # model.add(LSTM(units=50)) # model.add(Dropout(0.2)) model.add(Dense(units=16)) model.add(Dense(units=1)) model.compile(optimizer='adam', loss='mean_squared_error') print(model.summary()) # - model.fit(features_set, labels, epochs = 100, batch_size = 32) apple_testing_complete = pd.read_csv('./appl_test2.csv') apple_testing_complete = apple_testing_complete.iloc[0:10,:] apple_testing_processed = apple_testing_complete.iloc[:, 1:2].values # + import pandas as pd import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(15,10)) apple_testing_complete['Date'] = pd.to_datetime(apple_testing_complete['Date']) ax.plot(apple_testing_complete['Date'], apple_testing_complete['Open'], color='red') plt.setp(ax.get_xticklabels(), rotation=45) ax.set(xlabel='Date', ylabel='Open', title='app test open price') # - apple_total = pd.concat((df['Open'], apple_testing_complete['Open']), axis=0) apple_testing_complete.shape test_inputs = apple_total[len(apple_total) - len(apple_testing_complete) - 60:].values print(test_inputs.shape) test_inputs = test_inputs.reshape(-1,1) test_inputs = scaler.transform(test_inputs) test_features = [] for i in range(60, 70): test_features.append(test_inputs[i-60:i, 0]) test_features = np.array(test_features) print(test_features.shape) # + test_features = np.reshape(test_features, (test_features.shape[0], test_features.shape[1], 1)) predictions = model.predict(test_features) predictions = scaler.inverse_transform(predictions) # - plt.figure(figsize=(10,6)) plt.plot(apple_testing_processed, color='blue', label='actual apple stock price') plt.plot(predictions, color='red', label='predicted appled stock price') plt.title('apple stock price prediction') plt.xlabel('Date') plt.ylabel('open price') plt.legend() plt.show() # https://medium.com/datadriveninvestor/multivariate-time-series-using-rnn-with-keras-7f78f4488679 # https://towardsdatascience.com/choosing-the-right-hyperparameters-for-a-simple-lstm-using-keras-f8e9ed76f046
5,537
/Simulation_state-based_2ndTask/MATLAB-Funktion_und_LyapunovBoundaryPlotting.ipynb
d870ec543651a4bde549e81f911e1a39d0e80c81
[ "MIT" ]
permissive
ipa-lth/jupyter_nb
https://github.com/ipa-lth/jupyter_nb
0
2
null
2017-09-29T07:57:32
2016-12-13T10:42:20
Jupyter Notebook
Jupyter Notebook
false
false
.py
16,089
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # 机器学习工程师纳米学位 # ## 模型评价与验证 # ## 项目 1: 预测波士顿房价 # # # 欢迎来到机器学习的预测波士顿房价项目!在此文件中,有些示例代码已经提供给你,但你还需要实现更多的功能来让项目成功运行。除非有明确要求,你无须修改任何已给出的代码。以**编程练习**开始的标题表示接下来的内容中有需要你必须实现的功能。每一部分都会有详细的指导,需要实现的部分也会在注释中以**TODO**标出。请仔细阅读所有的提示! # # 除了实现代码外,你还**必须**回答一些与项目和实现有关的问题。每一个需要你回答的问题都会以**'问题 X'**为标题。请仔细阅读每个问题,并且在问题后的**'回答'**文字框中写出完整的答案。你的项目将会根据你对问题的回答和撰写代码所实现的功能来进行评分。 # # >**提示:**Code 和 Markdown 区域可通过 **Shift + Enter** 快捷键运行。此外,Markdown可以通过双击进入编辑模式。 # --- # ## 第一步. 导入数据 # 在这个项目中,你将利用马萨诸塞州波士顿郊区的房屋信息数据训练和测试一个模型,并对模型的性能和预测能力进行测试。通过该数据训练后的好的模型可以被用来对房屋做特定预测---尤其是对房屋的价值。对于房地产经纪等人的日常工作来说,这样的预测模型被证明非常有价值。 # # 此项目的数据集来自[UCI机器学习知识库(数据集已下线)](https://archive.ics.uci.edu/ml/datasets.html)。波士顿房屋这些数据于1978年开始统计,共506个数据点,涵盖了麻省波士顿不同郊区房屋14种特征的信息。本项目对原始数据集做了以下处理: # - 有16个`'MEDV'` 值为50.0的数据点被移除。 这很可能是由于这些数据点包含**遗失**或**看不到的值**。 # - 有1个数据点的 `'RM'` 值为8.78. 这是一个异常值,已经被移除。 # - 对于本项目,房屋的`'RM'`, `'LSTAT'`,`'PTRATIO'`以及`'MEDV'`特征是必要的,其余不相关特征已经被移除。 # - `'MEDV'`特征的值已经过必要的数学转换,可以反映35年来市场的通货膨胀效应。 # # 运行下面区域的代码以载入波士顿房屋数据集,以及一些此项目所需的 Python 库。如果成功返回数据集的大小,表示数据集已载入成功。 # + # Import libraries necessary for this project import numpy as np import pandas as pd from sklearn.model_selection import ShuffleSplit # Import supplementary visualizations code visuals.py import visuals as vs # Pretty display for notebooks # %matplotlib inline # Load the Boston housing dataset data = pd.read_csv('housing.csv') prices = data['MEDV'] features = data.drop('MEDV', axis = 1) # Success print("Boston housing dataset has {} data points with {} variables each.".format(*data.shape)) # - maximum_price = np.max(prices) print(maximum_price) # --- # ## 第二步. 分析数据 # 在项目的第一个部分,你会对波士顿房地产数据进行初步的观察并给出你的分析。通过对数据的探索来熟悉数据可以让你更好地理解和解释你的结果。 # # 由于这个项目的最终目标是建立一个预测房屋价值的模型,我们需要将数据集分为**特征(features)**和**目标变量(target variable)**。 # - **特征** `'RM'`, `'LSTAT'`,和 `'PTRATIO'`,给我们提供了每个数据点的数量相关的信息。 # - **目标变量**:` 'MEDV'`,是我们希望预测的变量。 # # 他们分别被存在 `features` 和 `prices` 两个变量名中。 # ### 编程练习 1:基础统计运算 # 你的第一个编程练习是计算有关波士顿房价的描述统计数据。我们已为你导入了 ` NumPy `,你需要使用这个库来执行必要的计算。这些统计数据对于分析模型的预测结果非常重要的。 # 在下面的代码中,你要做的是: # - 计算 `prices` 中的 `'MEDV'` 的最小值、最大值、均值、中值和标准差; # - 将运算结果储存在相应的变量中。 # + # TODO: Minimum price of the data minimum_price = np.min(prices) # TODO: Maximum price of the data maximum_price = np.max(prices) # TODO: Mean price of the data mean_price = np.mean(prices) # TODO: Median price of the data median_price = np.median(prices) # TODO: Standard deviation of prices of the data std_price = np.std(prices) # Show the calculated statistics print("Statistics for Boston housing dataset:\n") print("Minimum price: ${:.2f}".format(minimum_price)) print("Maximum price: ${:.2f}".format(maximum_price)) print("Mean price: ${:.2f}".format(mean_price)) print("Median price ${:.2f}".format(median_price)) print("Standard deviation of prices: ${:.2f}".format(std_price)) # - # ### 问题 1 - 特征观察 # # 如前文所述,本项目中我们关注的是其中三个值:`'RM'`、`'LSTAT'` 和`'PTRATIO'`,对每一个数据点: # - `'RM'` 是该地区中每个房屋的平均房间数量; # - `'LSTAT'` 是指该地区有多少百分比的业主属于是低收入阶层(有工作但收入微薄); # - `'PTRATIO'` 是该地区的中学和小学里,学生和老师的数目比(`学生/老师`)。 # # _凭直觉,上述三个特征中对每一个来说,你认为增大该特征的数值,`'MEDV'`的值会是**增大**还是**减小**呢?每一个答案都需要你给出理由。_ # # **提示:**你预期一个`'RM'` 值是6的房屋跟`'RM'` 值是7的房屋相比,价值更高还是更低呢? # ### 问题 1 - 回答: # RM值越大,MEDV越大,因为房屋的平均房间数增多,房屋越大,价格也越贵。 # LSTAT值也大,MEDV越小,因为低收入阶层占比越多,能负担得起的房屋价格越低,所以新建的房屋和二手房屋价格越低。 # PTRATIO值越大,说明一个老师负责的学生相对越多,师资力量薄弱,说明学校的收入低下,对应地区的房屋价格也较低。 # --- # ## 第三步. 建立模型 # 在项目的第三步中,你需要了解必要的工具和技巧来让你的模型进行预测。用这些工具和技巧对每一个模型的表现做精确的衡量可以极大地增强你预测的信心。 # ### 编程练习2:定义衡量标准 # 如果不能对模型的训练和测试的表现进行量化地评估,我们就很难衡量模型的好坏。通常我们会定义一些衡量标准,这些标准可以通过对某些误差或者拟合程度的计算来得到。在这个项目中,你将通过运算[决定系数](https://en.wikipedia.org/wiki/Coefficient_of_determination) $R^2$ 来量化模型的表现。模型的决定系数是回归分析中十分常用的统计信息,经常被当作衡量模型预测能力好坏的标准。 # # $R^2$ 的数值范围从0至1,表示**目标变量**的预测值和实际值之间的相关程度平方的百分比。一个模型的 $R^2$ 值为0还不如直接用**平均值**来预测效果好;而一个 $R^2$ 值为1的模型则可以对目标变量进行完美的预测。从0至1之间的数值,则表示该模型中目标变量中有百分之多少能够用**特征**来解释。模型也可能出现负值的 $R^2$,这种情况下模型所做预测有时会比直接计算目标变量的平均值差很多。 # # 在下方代码的 `performance_metric` 函数中,你要实现: # - 使用 `sklearn.metrics` 中的 [`r2_score`](http://scikit-learn.org/stable/modules/generated/sklearn.metrics.r2_score.html) 来计算 `y_true` 和 `y_predict` 的 $R^2$ 值,作为对其表现的评判。 # - 将他们的表现评分储存到 `score` 变量中。 # TODO: Import 'r2_score' from sklearn.metrics import r2_score def performance_metric(y_true, y_predict): """ Calculates and returns the performance score between true and predicted values based on the metric chosen. """ # TODO: Calculate the performance score between 'y_true' and 'y_predict' score = r2_score(y_true, y_predict) # Return the score return score # ### 问题 2 - 拟合程度 # # 假设一个数据集有五个数据且一个模型做出下列目标变量的预测: # # | 真实数值 | 预测数值 | # | :-------------: | :--------: | # | 3.0 | 2.5 | # | -0.5 | 0.0 | # | 2.0 | 2.1 | # | 7.0 | 7.8 | # | 4.2 | 5.3 | # *你觉得这个模型已成功地描述了目标变量的变化吗?如果成功,请解释为什么,如果没有,也请给出原因。* # # **提示1**:运行下方的代码,使用 `performance_metric` 函数来计算 `y_true` 和 `y_predict` 的决定系数。 # # **提示2**:$R^2$ 分数是指可以从自变量中预测的因变量的方差比例。 换一种说法: # # * $R^2$ 为0意味着因变量不能从自变量预测。 # * $R^2$ 为1意味着可以从自变量预测因变量。 # * $R^2$ 在0到1之间表示因变量可预测的程度。 # * $R^2$ 为0.40意味着 Y 中40%的方差可以从 X 预测。 # Calculate the performance of this model score = performance_metric([3, -0.5, 2, 7, 4.2], [2.5, 0.0, 2.1, 7.8, 5.3]) print("Model has a coefficient of determination, R^2, of {:.3f}.".format(score)) from sklearn.model_selection import train_test_split prices = data['MEDV'] features = data.drop('MEDV', axis = 1) features.shape,prices.shape X_train, X_test, y_train, y_test = train_test_split(features, prices, test_size=0.2, random_state=42) # ### 问题 2 - 回答: # R^2的分数高达92%以上,说明Y中92%的方差可以从X预测,这个模型能描述目标变量的变化。 # ### 编程练习 3: 数据分割与重排 # 接下来,你需要把波士顿房屋数据集分成训练和测试两个子集。通常在这个过程中,数据也会被重排列,以消除数据集中由于顺序而产生的偏差。 # 在下面的代码中,你需要 # # * 使用 `sklearn.model_selection` 中的 `train_test_split`, 将 `features` 和 `prices` 的数据都分成用于训练的数据子集和用于测试的数据子集。 # - 分割比例为:80%的数据用于训练,20%用于测试; # - 选定一个数值以设定 `train_test_split` 中的 `random_state` ,这会确保结果的一致性; # * 将分割后的训练集与测试集分配给 `X_train`, `X_test`, `y_train` 和 `y_test`。 # + # TODO: Import 'train_test_split' from sklearn.model_selection import train_test_split # TODO: Shuffle and split the data into training and testing subsets X_train, X_test, y_train, y_test = train_test_split(features, prices, test_size=0.2, random_state=42) # Success print("Training and testing split was successful.") X_train.shape, X_test.shape # - # ### 问题 3 - 训练及测试 # *将数据集按一定比例分为训练用的数据集和测试用的数据集对学习算法有什么好处?* # # *如果用模型已经见过的数据,例如部分训练集数据进行测试,又有什么坏处?* # # **提示:** 如果没有数据来对模型进行测试,会出现什么问题? # ### 问题 3 - 回答: # 如果同一份数据集用来训练模型和测试模型,测试的结果会非常好,不能检测模型的拟合程度。用训练集来生成模型,然后用测试集来测试模型,才能检验出模型学习程度的拟合度和命中率。 # --- # ## 第四步. 分析模型的表现 # 在项目的第四步,我们来看一下不同参数下,模型在训练集和验证集上的表现。这里,我们专注于一个特定的算法(带剪枝的决策树,但这并不是这个项目的重点),和这个算法的一个参数 `'max_depth'`。用全部训练集训练,选择不同`'max_depth'` 参数,观察这一参数的变化如何影响模型的表现。画出模型的表现来对于分析过程十分有益。 # ### 学习曲线 # 下方区域内的代码会输出四幅图像,它们是一个决策树模型在不同最大深度下的表现。每一条曲线都直观得显示了随着训练数据量的增加,模型学习曲线的在训练集评分和验证集评分的变化,评分使用决定系数 $R^2$。曲线的阴影区域代表的是该曲线的不确定性(用标准差衡量)。 # # 运行下方区域中的代码,并利用输出的图形回答下面的问题。 # Produce learning curves for varying training set sizes and maximum depths vs.ModelLearning(features, prices) # ### 问题 4 - 学习曲线 # * 选择上述图像中的其中一个,并给出其最大深度。 # * 随着训练数据量的增加,训练集曲线的评分有怎样的变化?验证集曲线呢? # * 如果有更多的训练数据,是否能有效提升模型的表现呢? # # **提示:**学习曲线的评分是否最终会收敛到特定的值?一般来说,你拥有的数据越多,模型表现力越好。但是,如果你的训练和测试曲线以高于基准阈值的分数收敛,这是否有必要?基于训练和测试曲线已经收敛的前提下,思考添加更多训练点的优缺点。 # ### 问题 4 - 回答: # 第一幅图中,最大深度是1 # 训练集曲线的评分在50个点内下降很快,大于50个点后缓慢下降收敛于0.5左右。验证集曲线评分在50个点内上升很快,50个点后平稳于测试集分数0.5左右,两个得分都比较低。 # 增加更多的训练数据并不能有效提升模型的表现,因为两者在300个样本之后就收敛于0.5这个比较低的分数,此时说明模型欠拟合,应该换其他深度更大的模型来提高命中率和拟合度。 # ### 复杂度曲线 # 下列代码内的区域会输出一幅图像,它展示了一个已经经过训练和验证的决策树模型在不同最大深度条件下的表现。这个图形将包含两条曲线,一个是训练集的变化,一个是验证集的变化。跟**学习曲线**相似,阴影区域代表该曲线的不确定性,模型训练和测试部分的评分都用的 `performance_metric` 函数。 # # **运行下方区域中的代码,并利用输出的图形并回答下面的问题5与问题6。** vs.ModelComplexity(X_train, y_train) # ### 问题 5 - 偏差(bias)与方差(variance)之间的权衡取舍 # * 当模型以最大深度 1训练时,模型的预测是出现很大的偏差还是出现了很大的方差? # * 当模型以最大深度10训练时,情形又如何呢? # * 图形中的哪些特征能够支持你的结论? # # **提示:** 高偏差表示欠拟合(模型过于简单),而高方差表示过拟合(模型过于复杂,以至于无法泛化)。考虑哪种模型(深度1或10)对应着上述的情况,并权衡偏差与方差。 # ### 问题 5 - 回答: # 以最大深度为1训练时,模型预测出现高偏差,低方差。因为训练集和测试集分数都很低为0.4左右,说明命中率低。但是训练集和测试集的分数很接近,说明方差不大。 # 以最大深度为10训练时,模型预测出现低偏差,高方差。因为训练集分数很高在0.9以上,说明命中率高,偏差低。但是测试集只有0.6左右,说明模型方差高,已经过拟合了。 # # ### 问题 6- 最优模型的猜测 # * 结合问题 5 中的图,你认为最大深度是多少的模型能够最好地对未见过的数据进行预测? # * 你得出这个答案的依据是什么? # # **提示**:查看问题5上方的图表,并查看模型在不同 `depth`下的验证分数。随着深度的增加模型的表现力会变得更好吗?我们在什么情况下获得最佳验证分数而不会使我们的模型过度复杂?请记住,奥卡姆剃刀:“在竞争性假设中,应该选择假设最少的那一个。” # ### 问题 6 - 回答: # 深度为3的模型能最好预测未见过的数据。两条曲线在深度1到3之间不断提高分数,3之后方差突然一下加大,训练集分数持续上升,测试集分数持续下降,说明模型在深度为3时两者的偏差和方差最理想的权衡状态。 # --- # ## 第五步. 评估模型的表现 # 在项目的最后一节中,你将构建一个模型,并使用 `fit_model` 中的优化模型去预测客户特征集。 # ### 问题 7- 网格搜索(Grid Search) # * 什么是网格搜索法? # * 如何用它来优化模型? # # **提示**:在解释网格搜索算法时,首先要理解我们为什么使用网格搜索算法,以及我们使用它的最终目的是什么。为了使你的回答更具有说服力,你还可以给出一个模型中可以使用此方法进行优化参数的示例。 # ### 问题 7 - 回答: # 有些模型具有多个超参数,多个超参数的值有多个不同的组合,我们用网格把这些参数值的组合列出,然后用交叉验证法,先用训练集训练拟合模型,再计算多个验证集的平均分数,然后再挑出表现最好的参数值组合(如果是命中率分数则取最高,如果是损失分数则取最低),然后再用测试集去验证挑出的模型参数值是否好。 # ### 问题 8 - 交叉验证 # - 什么是K折交叉验证法(k-fold cross-validation)? # - [GridSearchCV](http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html) 是如何结合交叉验证来完成对最佳参数组合的选择的? # - [GridSearchCV](http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html) 中的`'cv_results_'`属性能告诉我们什么? # - 网格搜索为什么要使用K折交叉验证?K折交叉验证能够避免什么问题? # # **提示**:在解释k-fold交叉验证时,一定要理解'k'是什么,和数据集是如何分成不同的部分来进行训练和测试的,以及基于'k'值运行的次数。 # 在考虑k-fold交叉验证如何帮助网格搜索时,你可以使用特定的数据子集来进行训练与测试有什么缺点,以及K折交叉验证是如何帮助缓解这个问题。 # ### 问题 8 - 回答: # 1.K折交叉验证法是把训练样本数据集平均分为K份,训练模型K次,每次把其中一份数据作为验证集,其他K-1份数据作为训练集,最后把K次验证的结果取平均值,最后用测试集来测试模型是否好。 # 2.GridSearchCV中,把模型多个超参数列表作为参数整体传入,针对不同的参数组合用传入的K个训练集进行训练K次,验证K次,最后把K次验证的结果取平均值,得到结果最好的参数值组合。 # 3.cv_results_ 属性按照参数值组合的不同,存在cv_results_['params'],并且存有交叉验证K轮的每一轮验证结果,'split0_test_score'作为第一轮验证结果,'split1_test_score'作为第二轮验证结果。。。'mean_test_score'作为每一轮结果平均值,'std_test_score'作为每一轮结果标准方差,还有最终基于平均值('mean_test_score')的排序结果cv_results_['rank_test_score'] # 4.网格搜索有多个参数值组合,如果对于每一个参数值组合都简单的用同一份训练数据和同一份测试数据,可能会因为测试次数过少很难找出每个组合的优劣。用K折交叉验证法可以保证评估结果的稳定性和保真性,以选出最优的参数值组合的模型。 # ### 编程练习 4:拟合模型 # 在这个练习中,你将需要将所学到的内容整合,使用**决策树算法**训练一个模型。为了得出的是一个最优模型,你需要使用网格搜索法训练模型,以找到最佳的 `'max_depth'` 参数。你可以把`'max_depth'` 参数理解为决策树算法在做出预测前,允许其对数据提出问题的数量。决策树是**监督学习算法**中的一种。 # # 另外,你会发现在实现的过程中是使用`ShuffleSplit()`作为交叉验证的另一种形式(参见'cv_sets'变量)。虽然它不是你在问题8中描述的K-fold交叉验证方法,但它同样非常有用!下面的`ShuffleSplit()`实现将创建10个('n_splits')混洗集合,并且对于每个混洗集,数据的20%('test_size')将被用作验证集合。当您在实现代码的时候,请思考一下它与`K-fold cross-validation`的不同与相似之处。 # # 请注意,`ShuffleSplit` 在 `Scikit-Learn` 版本0.17和0.18中有不同的参数。对于下面代码单元格中的 `fit_model` 函数,您需要实现以下内容: # # 1. **定义 `'regressor'` 变量**: 使用 `sklearn.tree` 中的 [`DecisionTreeRegressor`](http://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeRegressor.html) 创建一个决策树的回归函数; # 2. **定义 `'params'` 变量**: 为 `'max_depth'` 参数创造一个字典,它的值是从1至10的数组; # 3. **定义 `'scoring_fnc'` 变量**: 使用 `sklearn.metrics` 中的 [`make_scorer`](http://scikit-learn.org/stable/modules/generated/sklearn.metrics.make_scorer.html) 创建一个评分函数。将 `‘performance_metric’` 作为参数传至这个函数中; # 4. **定义 `'grid'` 变量**: 使用 `sklearn.model_selection` 中的 [`GridSearchCV`](http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html) 创建一个网格搜索对象;将变量`'regressor'`, `'params'`, `'scoring_fnc'`和 `'cross_validator'` 作为参数传至这个对象构造函数中; # # # 如果你对 Python 函数的默认参数定义和传递不熟悉,可以参考这个MIT课程的[视频](http://cn-static.udacity.com/mlnd/videos/MIT600XXT114-V004200_DTH.mp4)。 # + # TODO: Import 'make_scorer', 'DecisionTreeRegressor', and 'GridSearchCV' from sklearn.model_selection import ShuffleSplit,GridSearchCV from sklearn.tree import DecisionTreeRegressor from sklearn.metrics import fbeta_score, make_scorer def fit_model(X, y): """ Performs grid search over the 'max_depth' parameter for a decision tree regressor trained on the input data [X, y]. """ # Create cross-validation sets from the training data # sklearn version 0.18: ShuffleSplit(n_splits=10, test_size=0.1, train_size=None, random_state=None) # sklearn versiin 0.17: ShuffleSplit(n, n_iter=10, test_size=0.1, train_size=None, random_state=None) cv_sets = ShuffleSplit(n_splits=10, test_size=0.20, random_state=42) # TODO: Create a decision tree regressor object regressor = DecisionTreeRegressor() # TODO: Create a dictionary for the parameter 'max_depth' with a range from 1 to 10 params = {'max_depth':[1,2,3,4,5,6,7,8,9,10]} # TODO: Transform 'performance_metric' into a scoring function using 'make_scorer' scoring_fnc = make_scorer(performance_metric) # TODO: Create the grid search cv object --> GridSearchCV() # Make sure to include the right parameters in the object: # (estimator, param_grid, scoring, cv) which have values 'regressor', 'params', 'scoring_fnc', and 'cv_sets' respectively. grid = GridSearchCV(regressor, params, scoring_fnc, cv=cv_sets) # Fit the grid search object to the data to compute the optimal model grid = grid.fit(X, y) # Return the optimal model after fitting the data return grid.best_estimator_ # - cv_sets = ShuffleSplit(n_splits=10, test_size=0.20, random_state=42) regressor = DecisionTreeRegressor() params = {'max_depth':[1,2,3,4,5,6,7,8,9,10]} scoring_fnc = make_scorer(performance_metric) scoring_fnc grid = GridSearchCV(regressor, params, scoring_fnc, cv=cv_sets) grid grid =grid.fit(X_train, y_train) grid.best_estimator_ # ## 第六步. 做出预测 # 当我们用数据训练出一个模型,它现在就可用于对新的数据进行预测。在决策树回归函数中,模型已经学会对新输入的数据*提问*,并返回对**目标变量**的预测值。你可以用这个预测来获取数据未知目标变量的信息,这些数据必须是不包含在训练数据之内的。 # ### 问题 9 - 最优模型 # *最优模型的最大深度(maximum depth)是多少?此答案与你在**问题 6**所做的猜测是否相同?* # # 运行下方区域内的代码,将决策树回归函数代入训练数据的集合,以得到最优化的模型。 # + # Fit the training data to the model using grid search reg = fit_model(X_train, y_train) # Produce the value for 'max_depth' #print("Parameter 'max_depth' is {} for the optimal model.".format(reg.get_params()['max_depth'])) # - reg.get_params()['max_depth'] # ### 问题 9 - 回答: # 最优模型的最大深度是3,和问题6作出的猜测是相同的。 # ### 问题 10 - 预测销售价格 # 想像你是一个在波士顿地区的房屋经纪人,并期待使用此模型以帮助你的客户评估他们想出售的房屋。你已经从你的三个客户收集到以下的资讯: # # | 特征 | 客戶 1 | 客戶 2 | 客戶 3 | # | :---: | :---: | :---: | :---: | # | 房屋内房间总数 | 5 间房间 | 4 间房间 | 8 间房间 | # | 社区贫困指数(%被认为是贫困阶层) | 17% | 32% | 3% | # | 邻近学校的学生-老师比例 | 15:1 | 22:1 | 12:1 | # # * 你会建议每位客户的房屋销售的价格为多少? # * 从房屋特征的数值判断,这样的价格合理吗?为什么? # # **提示:**用你在**分析数据**部分计算出来的统计信息来帮助你证明你的答案。 # # 运行下列的代码区域,使用你优化的模型来为每位客户的房屋价值做出预测。 # + # Produce a matrix for client data client_data = [[5, 17, 15], # Client 1 [4, 32, 22], # Client 2 [8, 3, 12]] # Client 3 # Show predictions for i, price in enumerate(reg.predict(client_data)): print("Predicted selling price for Client {}'s home: ${:,.2f}".format(i+1, price)) # - # ### 问题 10 - 回答: # 会建议每位客户的房屋销售价格为这三个值:$345,707.55,$260,645.00,$903,393.75 # 这样的价格是合理的:最贵的是客户3,房间数,社区贫困指数和学生老师比例这几个特征在样本数据中处于比平均水平要好很多的位置,因此它的价格比平均价格$454342.94和中位数$438900.00要高很多。中间的价格是客户1,房间数,社区贫困指数和学生老师比例在样本总体中都在中间位置偏下,价格因此要比平均值和中位值要低些。最便宜的是客户2,三个指数都最低,因此价格最便宜,比平均值和中位值要低很多。 # # ### 编程练习 5 # 你刚刚预测了三个客户的房子的售价。在这个练习中,你将用你的最优模型在整个测试数据上进行预测, 并计算相对于目标变量的决定系数 $R^2$ 的值。 # # **提示:** # * 你可能需要用到 `X_test`, `y_test`, `optimal_reg`, `performance_metric`。 # * 参考问题10的代码进行预测。 # * 参考问题2的代码来计算R^2的值。 # # + # TODO Calculate the r2 score between 'y_true' and 'y_predict' reg.fit(X_train, y_train) train_predict = reg.predict(X_train) test_predict = reg.predict(X_test) r2 = performance_metric(y_train, train_predict) r2 = performance_metric(y_test, test_predict) print("Optimal model has R^2 score {:,.2f} on test data".format(r2)) # - # ### 问题11 - 分析决定系数 # # 你刚刚计算了最优模型在测试集上的决定系数,你会如何评价这个结果? # ### 问题11 - 回答 # 测试集R^2的分数达到77%,说明Y中77%的方差可以从X预测,略低于训练集的82%,但两者已经很接近,说明这个模型能成功预测。 # ### 模型健壮性 # # 一个最优的模型不一定是一个健壮模型。有的时候模型会过于复杂或者过于简单,以致于难以泛化新增添的数据;有的时候模型采用的学习算法并不适用于特定的数据结构;有的时候样本本身可能有太多噪点或样本过少,使得模型无法准确地预测目标变量。这些情况下我们会说模型是欠拟合的。 # # ### 问题 12 - 模型健壮性 # # 模型是否足够健壮来保证预测的一致性? # # **提示**: 执行下方区域中的代码,采用不同的训练和测试集执行 `fit_model` 函数10次。注意观察对一个特定的客户来说,预测是如何随训练数据的变化而变化的。 vs.PredictTrials(features, prices, fit_model, client_data) # ### 问题 12 - 回答: # 对同一个样本总体随机划分成训练集和测试集,划分10次,得到不同的训练集和测试集。而预测结果始终在$410,000上下波动,说明预测结果收敛于某个值,模型足够健壮。 # ### 问题 13 - 实用性探讨 # *简单地讨论一下你建构的模型能否在现实世界中使用?* # # 提示:回答以下几个问题,并给出相应结论的理由: # - *1978年所采集的数据,在已考虑通货膨胀的前提下,在今天是否仍然适用?* # - *数据中呈现的特征是否足够描述一个房屋?* # - *在波士顿这样的大都市采集的数据,能否应用在其它乡镇地区?* # - *你觉得仅仅凭房屋所在社区的环境来判断房屋价值合理吗?* # ### 问题 13 - 回答: # 1.在考虑通胀的情况下不适用,必须得用近期的价格样本总体去预测。 # 2.一个房屋的特征除了模型中的三个特征值,还需要有其他的值,比如房屋建造成本,每年应征税赋,居民收入情况等。 # 3.不能,因为乡镇地区的房屋所在社区环境跟波士顿截然不同。 # 4.还需要考虑房屋建造成本,建造年份,维修费用等。 # ## 第七步.完成和提交 # 当你完成了以上所有的代码和问题,你需要将 iPython Notebook 导出 HTML,导出方法:在左上角的菜单中选择 **File -> Download as -> HTML (.html)**。当你提交项目时,需要包含**可运行的 .ipynb 文件**和**导出的 HTML 文件**。
16,787
/EDA_with_Personal_Email_Analysis.ipynb
36c6da0b0d1babfef7a64890b42d3bd2951dea13
[]
no_license
omarn8911/Dphi-MLBootCamp
https://github.com/omarn8911/Dphi-MLBootCamp
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
1,922,595
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # 01_Tokenization of paragraphs_sentences import nltk # + # APJ speech paragraph = """I have three visions for India. In 3000 years of our history, people from all over the world have come and invaded us, captured our lands, conquered our minds. From Alexander onwards, the Greeks, the Turks, the Moguls, the Portuguese, the British, the French, the Dutch, all of them came and looted us, took over what was ours. Yet we have not done this to any other nation. We have not conquered anyone. We have not grabbed their land, their culture, their history and tried to enforce our way of life on them. Why? Because we respect the freedom of others.That is why my first vision is that of freedom. I believe that India got its first vision of this in 1857, when we started the War of Independence. It is this freedom that we must protect and nurture and build on. If we are not free, no one will respect us. My second vision for India’s development. For fifty years we have been a developing nation. It is time we see ourselves as a developed nation. We are among the top 5 nations of the world in terms of GDP. We have a 10 percent growth rate in most areas. Our poverty levels are falling. Our achievements are being globally recognised today. Yet we lack the self-confidence to see ourselves as a developed nation, self-reliant and self-assured. Isn’t this incorrect? I have a third vision. India must stand up to the world. Because I believe that unless India stands up to the world, no one will respect us. Only strength respects strength. We must be strong not only as a military power but also as an economic power. Both must go hand-in-hand. My good fortune was to have worked with three great minds. Dr. Vikram Sarabhai of the Dept. of space, Professor Satish Dhawan, who succeeded him and Dr. Brahm Prakash, father of nuclear material. I was lucky to have worked with all three of them closely and consider this the great opportunity of my life. I see four milestones in my career""" # - # Tokenizing sentences sentences = nltk.sent_tokenize(paragraph) len(sentences) sentences # Tokenizing Words words=nltk.word_tokenize(paragraph) len(words) # # 02_Stemming # # Note: Stemming will stem to a root word, may or maynot be a meaningful word. # # Ex: # # History, Historical ==> Hotori # Finally, Final, Finalized ==> Fina # Go, Going, Gone ==> Go # + from nltk.stem import PorterStemmer # for stemming the words from nltk.corpus import stopwords # for removing stopwords # Stop workds like of for the then etc does not value much. Stop words will remove all these words # - stopwords.words('english') sentences_Stemmer = nltk.sent_tokenize(paragraph) len(sentences_Stemmer) # Initilize Instance stemmer = PorterStemmer() # + # Stemming for i in range(len(sentences_Stemmer)): words=nltk.word_tokenize(sentences_Lemmatize[i]) # Below will stem only those words which are not in StopWords words=[stemmer.stem(word) for word in words if word not in set(stopwords.words('english'))] sentences_Stemmer[i]=' '.join(words) # - sentences_Stemmer # Below we can see we dont have stopwords in the sentence and # we have stemmed all the workds to a root word. # # 03_Lemmatization # # Lemmatization coverts to a meaningful word # # Ex: # # History, Historical ==> Hotory # Finally, Final, Finalized ==> Final # Go, Going, Gone ==> Go from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords sentences_Lemmatize = nltk.sent_tokenize(paragraph) len(sentences_Lemmatize) # Creating an instance lemmatizer = WordNetLemmatizer() for i in range(len(sentences_Lemmatize)): words = nltk.word_tokenize(sentences_Lemmatize[i]) words =[lemmatizer.lemmatize(word) for word in words if word not in set(stopwords.words('english'))] sentences_Lemmatize[i]=' '.join(words) sentences_Lemmatize # ### NOTE # # Now you can compare all the three outputs and compare the outputs. # # # # 04_BagofWords # # It is a process of converting a sentence to a vector of 0s and 1s. # # Disadvantage: It gives equal importance to all words. Which is not good for sentimental analysis. For that we have **TF*IDF** # + # Cleaning the text import re # This is regullar expression library from nltk.corpus import stopwords from nltk.stem import PorterStemmer from nltk.stem import WordNetLemmatizer # Creating instances ps = PorterStemmer() wordnet = WordNetLemmatizer() sentences_BOW = nltk.sent_tokenize(paragraph) corpus = [] # - for i in range(len(sentences_BOW)): # This below command from regullar exp. will only allow words with char a-z, A-Z ans spaces review = re.sub('[^a-zA-Z]', ' ', sentences_BOW[i]) review = review.lower() #converting to lower case review = review.split() review = [ps.stem(word) for word in review if word not in set(stopwords.words('english'))] review = ' '.join(review) corpus.append(review) # Creating a BagOfWords model from sklearn.feature_extraction.text import CountVectorizer cv = CountVectorizer(max_features=1500) X = cv.fit_transform(corpus).toarray() X # you can see below all 31 sentences are converted to a Vector, using CountVectorizer library # # 05_TFIDF # # This is a very effective way in NLP where in each sentence, all workds are given a weitage based on TF*IDF formula # Cleaning the texts (This is the first step in every Natural Language processing project) import re from nltk.corpus import stopwords from nltk.stem.porter import PorterStemmer from nltk.stem import WordNetLemmatizer ps = PorterStemmer() wordnet=WordNetLemmatizer() sentences_TFIDF = nltk.sent_tokenize(paragraph) corpus = [] for i in range(len(sentences_TFIDF)): review = re.sub('[^a-zA-Z]', ' ', sentences_TFIDF[i]) review = review.lower() review = review.split() review = [wordnet.lemmatize(word) for word in review if not word in set(stopwords.words('english'))] review = ' '.join(review) corpus.append(review) # Creating the TFIDF model from sklearn.feature_extraction.text import TfidfVectorizer tfidf = TfidfVectorizer() Y = tfidf.fit_transform(corpus).toarray() Y # you can see there is a perticula weighage assigmend to each word e('%a, %d %b %Y %I:%M %p')) print(dfs.index.max().strftime('%a, %d %b %Y %I:%M %p')) print(dfs['label'].value_counts()) # + colab_type="code" id="ZnEhuNjjHJVe" colab={} import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator # ticker module contains classes to support completely configurable tick locating and formatting. # MaxNLocator finds up to a max number of intervals with ticks at nice locations. # + colab_type="code" id="r6NBjrTWC18s" colab={} # This function might look complex and hard to understand # All it does is set how the plots will look # It first plots a scatter plot # It then adds the location of the ticks on x and y axis, labels and title # The scatter plot will only be drawn when the function is called def plot_todo_vs_year(df, ax, color='C0', s=0.5, title=''): ind = np.zeros(len(df), dtype='bool') est = pytz.timezone('US/Eastern') df[~ind].plot.scatter('year', 'timeofday', s=s, alpha=0.6, ax=ax, color=color) ax.set_ylim(0, 24) ax.yaxis.set_major_locator(MaxNLocator(8)) ax.set_yticklabels([datetime.datetime.strptime(str(int(np.mod(ts, 24))), "%H").strftime("%I %p") for ts in ax.get_yticks()]); ax.set_xlabel('') ax.set_ylabel('') ax.set_title(title) ax.grid(ls=':', color='k') return ax # + colab_type="code" id="P6Gwp9fcMboo" colab={} #Let's create two sub-dataframe—one for sent emails and another for received emails: sent = dfs[dfs['label']=='sent'] received = dfs[dfs['label']=='inbox'] # + colab_type="code" id="6V5ds-_rNtkb" outputId="337bfc13-ab8e-455c-dcb7-e42599916bd5" colab={"base_uri": "https://localhost:8080/", "height": 298} fig, ax = plt.subplots(nrows=1, ncols=2, figsize=(30, 8)) # Since the function is called twice, one with sent and other with recieved as datapoints, 2 plots will be made plot_todo_vs_year(sent, ax[0], title='Sent') plot_todo_vs_year(received, ax[1], title='Received') # + [markdown] id="a3xnr1cLxiUf" colab_type="text" # The higher the density of the graph data points, the higher the number of emails. Note that the number of sent emails is less than the number of received emails. I received more emails than I sent from 2012 to 2020. Note that I received most of the emails between 03:00 PM and 03:00 AM. This graph gives a nice overview of the time of day of email activity. # + colab_type="code" id="CcxH7jgtYCM6" colab={} # Function to plot a histogram for average emails per day def plot_number_perday_per_year(df, ax, label=None, dt=0.3, **plot_kwargs): year = df[df['year'].notna()]['year'].values T = year.max() - year.min() bins = int(T / dt) weights = 1 / (np.ones_like(year) * dt * 365.25) ax.hist(year, bins=bins, weights=weights, label=label, **plot_kwargs); ax.grid(ls=':', color='k') # + colab_type="code" id="t205_eltYGWd" colab={} from scipy import ndimage # Function to plot a histogram for average emails per hour def plot_number_perdhour_per_year(df, ax, label=None, dt=1, smooth=False, weight_fun=None, **plot_kwargs): tod = df[df['timeofday'].notna()]['timeofday'].values year = df[df['year'].notna()]['year'].values Ty = year.max() - year.min() T = tod.max() - tod.min() bins = int(T / dt) if weight_fun is None: weights = 1 / (np.ones_like(tod) * Ty * 365.25 / dt) else: weights = weight_fun(df) if smooth: hst, xedges = np.histogram(tod, bins=bins, weights=weights); x = np.delete(xedges, -1) + 0.5*(xedges[1] - xedges[0]) hst = ndimage.gaussian_filter(hst, sigma=0.75) f = interp1d(x, hst, kind='cubic') x = np.linspace(x.min(), x.max(), 10000) hst = f(x) ax.plot(x, hst, label=label, **plot_kwargs) else: ax.hist(tod, bins=bins, weights=weights, label=label, **plot_kwargs); ax.grid(ls=':', color='k') orientation = plot_kwargs.get('orientation') if orientation is None or orientation == 'vertical': ax.set_xlim(0, 24) ax.xaxis.set_major_locator(MaxNLocator(8)) ax.set_xticklabels([datetime.datetime.strptime(str(int(np.mod(ts, 24))), "%H").strftime("%I %p") for ts in ax.get_xticks()]); elif orientation == 'horizontal': ax.set_ylim(0, 24) ax.yaxis.set_major_locator(MaxNLocator(8)) ax.set_yticklabels([datetime.datetime.strptime(str(int(np.mod(ts, 24))), "%H").strftime("%I %p") for ts in ax.get_yticks()]); # + colab_type="code" id="WQPZPs0wYKBE" colab={} # This class specifies the location of each plot class TriplePlot: def __init__(self): gs = gridspec.GridSpec(6, 6) self.ax1 = plt.subplot(gs[2:6, :4]) self.ax2 = plt.subplot(gs[2:6, 4:6], sharey=self.ax1) plt.setp(self.ax2.get_yticklabels(), visible=False); self.ax3 = plt.subplot(gs[:2, :4]) plt.setp(self.ax3.get_xticklabels(), visible=False); def plot(self, df, color='darkblue', alpha=0.8, markersize=0.5, yr_bin=0.1, hr_bin=0.5): plot_todo_vs_year(df, self.ax1, color=color, s=markersize) plot_number_perdhour_per_year(df, self.ax2, dt=hr_bin, color=color, alpha=alpha, orientation='horizontal') self.ax2.set_xlabel('Average emails per hour') plot_number_perday_per_year(df, self.ax3, dt=yr_bin, color=color, alpha=alpha) self.ax3.set_ylabel('Average emails per day') # + colab_type="code" id="q8a8CgVLYMtZ" outputId="47775fb8-f18b-4a0e-e3c6-5b59fc265a02" colab={"base_uri": "https://localhost:8080/", "height": 714} import matplotlib.gridspec as gridspec import matplotlib.patches as mpatches # Specifying the figure size and calling the function to plot the graphs plt.figure(figsize=(12,12)); tpl = TriplePlot() tpl.plot(received, color='C0', alpha=0.3) tpl.plot(sent, color='C1', alpha=0.9) p1 = mpatches.Patch(color='C0', label='Incoming', alpha=0.3) p2 = mpatches.Patch(color='C1', label='Outgoing', alpha=0.9) plt.legend(handles=[p1, p2], bbox_to_anchor=[1.45, 0.7], fontsize=36, shadow=True); # + [markdown] id="OUZQAhIuxiU5" colab_type="text" # The average emails per hour and per graph is illustrated by the preceding graph. In my case, most email communication happened between 2018 and 2020. # + colab_type="code" id="h67Gtw0wG-Et" outputId="ccfe5768-3650-4fc8-d73e-02994ac35524" colab={"base_uri": "https://localhost:8080/", "height": 333} # Counting the no. of emails received each day of the week and plotting a bar chart counts = dfs.dayofweek.value_counts(sort=False) counts.plot(kind='bar') # + [markdown] id="rC-eoPnpxiVD" colab_type="text" # The preceding output shows that my busiest day is Monday. I receive most of my emails on monday,tuesday. Lets go one step further and see the most active days for receiving and sending emails separately: # + colab_type="code" id="FshoFdvXYeFT" colab={} outputId="c03e053c-92d0-4536-cf79-345e10fee790" # Finding out who sends me the most emails addrs = received['from'].value_counts() addrs[0:10] # + colab_type="code" id="GT7De6EAyaBi" outputId="883f2b91-0414-4f78-f5eb-04a95895f304" colab={"base_uri": "https://localhost:8080/", "height": 714} # Plotting the above inferences in a Triple Plot plt.figure(figsize=(12,12)); tpl = TriplePlot() labels = [] colors = ['C{}'.format(ii) for ii in range(9)] idx = np.array([1,2,3,7]) for ct, addr in enumerate(addrs.index[idx]): tpl.plot(dfs[dfs['from'] == addr], color=colors[ct], alpha=0.3, yr_bin=0.5, markersize=1.0) labels.append(mpatches.Patch(color=colors[ct], label=addrs[0:4], alpha=0.5)) plt.legend(handles=labels, bbox_to_anchor=[2.8, 0.2], fontsize=12, shadow=True); # + colab_type="code" id="ONVxBNjcY7ca" colab={} outputId="42f39177-1720-4827-c5d4-dd3b380d1ec5" # Plotting bar chart with multiple values sdw = sent.groupby('dayofweek').size() / len(sent) rdw = received.groupby('dayofweek').size() / len(received) df_tmp = pd.DataFrame(data={'Outgoing Email': sdw, 'Incoming Email':rdw}) df_tmp.plot(kind='bar', rot=45, figsize=(8,5), alpha=0.5) plt.xlabel(''); plt.ylabel('Fraction of weekly emails'); plt.grid(ls=':', color='k', alpha=0.5) # + [markdown] id="s2GR6whYxiVb" colab_type="text" # We can even go one level further. Let's find the most active time of day for email communication. We can do that easily. See the following code: # + colab_type="code" id="M65qYDspZBPF" outputId="a89693cb-2026-4157-d155-0d658694718a" colab={"base_uri": "https://localhost:8080/", "height": 337} import scipy.ndimage from scipy.interpolate import interp1d # Using the previously defined plot_number_perdhour_per_year function to find most active time of day plt.figure(figsize=(12,8)) ax = plt.subplot(111) for ct, dow in enumerate(dfs.dayofweek.cat.categories): df_r = received[received['dayofweek']==dow] weights = np.ones(len(df_r)) / len(received) wfun = lambda x: weights plot_number_perdhour_per_year(df_r, ax, dt=1, smooth=True, color=f'C{ct}', alpha=0.8, lw=3, label=dow, weight_fun=wfun) df_s = sent[sent['dayofweek']==dow] weights = np.ones(len(df_s)) / len(sent) wfun = lambda x: weights plot_number_perdhour_per_year(df_s, ax, dt=1, smooth=True, color=f'C{ct}', alpha=0.8, lw=2, label=dow, ls='--', weight_fun=wfun) ax.set_ylabel('Fraction of weekly emails per hour') plt.legend(bbox_to_anchor=[1.8, 0.2], fontsize=12, shadow=True) # + [markdown] id="nmq9LN1ixiVw" colab_type="text" # One of the easiest things to analyze about your emails is the most frequently used words. We can create a word cloud to see the most frequently used words. Let's first remove the archived emails: # + id="MnF03SYUxiVx" colab_type="code" colab={} outputId="8da009fa-5741-4d6e-d4ec-d7c86e8e3320" # !pip install WordCloud # cloud filled with lots of words in different sizes, which represent the frequency or the importance of each word. # + colab_type="code" id="S0XobdERZqQy" colab={} from wordcloud import WordCloud text = ' '.join(map(str, dfs['subject'].values)) # + colab_type="code" id="kbUU2K_BZssY" outputId="6be77593-f19f-43c0-85ea-1649fd26836d" colab={"base_uri": "https://localhost:8080/", "height": 846} stopwords = ['Re', 'Fwd', '3A_'] wrd = WordCloud(width=700, height=480, margin=0, collocations=False) for sw in stopwords: wrd.stopwords.add(sw) wordcloud = wrd.generate(text) plt.figure(figsize=(25,15)) plt.imshow(wordcloud, interpolation='bilinear') plt.axis("off") plt.margins(x=0, y=0) # + [markdown] id="iaKw4OMxxiWQ" colab_type="text" # This tells me what I mostly communicate about. From the analysis of emails from 2012 to 2020, the most frequently used words are Regarding, India, new, Data, job, and learning. This is really good, right? What is presented in this notebook is just a starting point. You can take this further in several other directions.
17,555
/qqplot/qqplot_no2.ipynb
707a3604ea491e10729542cf1804bd9840d84f83
[]
no_license
saireddythfc/Air-Quality-Index-Analysis
https://github.com/saireddythfc/Air-Quality-Index-Analysis
0
0
null
2019-12-03T12:31:28
2019-12-03T12:28:37
null
Jupyter Notebook
false
false
.py
33,812
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import pandas as pd import numpy as np from scipy.special import ndtri import matplotlib.pyplot as plt # + df2 = pd.read_excel(r'/home/pragya/fyp/abc_median.xlsx') df2 = df2.sort_values(by=['no2'],ascending=True).reset_index() df2['count2'] = df2.index + 1 n_rows2 = df2.shape[0] df2['percentile_area2'] = (df2['count2'])/n_rows2 df2['z_theoritical2'] = ndtri(df2['percentile_area2']) df2['z_actual2'] = (df2['no2']-df2['no2'].mean())/df2['no2'].std(ddof=0) df2.head() # + df1 = pd.read_excel(r'/home/pragya/fyp/abc_1.xlsx') df1 = df1.sort_values(by=['no2'],ascending=True).reset_index() df1['count1'] = df1.index + 1 n_rows1 = df1.shape[0] df1['percentile_area1'] = (df1['count1'])/n_rows1 df1['z_theoritical1'] = ndtri(df1['percentile_area1']) df1['z_actual1'] = (df1['no2']-df1['no2'].mean())/df1['no2'].std(ddof=0) df1.head() # - plt.scatter(df1.z_actual1, df1.z_theoritical1, c="g",alpha = 0.5, marker=r'$\clubsuit$',label="Mean") plt.scatter(df2.z_actual2, df2.z_theoritical2, c="r", alpha = 0.5, marker='x',label="Median") plt.plot([-3,-2,-1,0,1,2,3],[-3,-2,-1,0,1,2,3])
1,364
/12_solid.ipynb
524d3babf7138fd79b24acffd7683bf8e31f99cc
[]
no_license
SalmonMoses/oop2020
https://github.com/SalmonMoses/oop2020
0
0
null
2021-05-08T21:33:31
2021-04-17T20:27:40
Jupyter Notebook
Jupyter Notebook
false
false
.py
25,000
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="GBgYUDM7VwUm" # # ThinkDSP课后习题 # + [markdown] id="AE5o0EYiV4SU" # ## 第一章:声音与信号 # + colab={"base_uri": "https://localhost:8080/"} executionInfo={"elapsed": 3138, "status": "ok", "timestamp": 1615735803061, "user": {"displayName": "Chuanchao Xu", "photoUrl": "", "userId": "08016207472332924278"}, "user_tz": -480} id="dyhumJvjVpKI" outputId="c26e20a0-3450-4c1f-f564-c526f6f71bb8" import os if not os.path.exists('170255__dublie__trumpet.wav'): # !wget https://github.com/AllenDowney/ThinkDSP/raw/master/code/170255__dublie__trumpet.wav # + colab={"base_uri": "https://localhost:8080/"} executionInfo={"elapsed": 4733, "status": "ok", "timestamp": 1615735866398, "user": {"displayName": "Chuanchao Xu", "photoUrl": "", "userId": "08016207472332924278"}, "user_tz": -480} id="xB3vFO0eWwjr" outputId="7031f79f-a8b4-49dc-b441-a073ff43a745" if not os.path.exists('thinkdsp.py'): # !wget https://github.com/AllenDowney/ThinkDSP/raw/master/code/thinkdsp.py # + colab={"background_save": true} id="_27nHHohXOZx" from thinkdsp import read_wave wave = read_wave('170255__dublie__trumpet.wav') wave.normalize() wave_make_audio() pam_filter.png) # **Unsupervised learning**: Extracting structure from data or learning how to best represent data. # # - Example: If dataset was the characteristics and purchasing behaviour of shoppers at a grocery store, the unsupervised learning task might be to segment grocery store shoppers into groups or clusters that exhibit similar behaviors. # - There is no "right answer" # ![Clustering](images/01_clustering.png) # ## How does machine learning "work"? # # High-level steps of supervised learning: # # 1. First, train a **machine learning model** using **labeled data** # # - "Labeled data" has been labeled with the outcome. (eg. whether the email is 'spam' or 'ham') # - This is called model training because the model is learning the relationship between the attributes of the data and the outcome. (eg. Attributes can be email message text, length of message, no. of embedded links etc) # - "Machine learning model" learns the relationship between the attributes of the data and its outcome # # 2. Then, make **predictions** on **new data** for which the label is unknown # ![Supervised learning](images/01_supervised_learning.png) # The primary goal of supervised learning is to build a model that "generalizes": It accurately predicts the **future** rather than the **past**! # ## Questions about machine learning # # - How do I choose **which attributes** of my data to include in the model? # - How do I choose **which model** to use? # - How do I **optimize** this model for best performance? # - How do I ensure that I'm building a model that will **generalize** to unseen data? # - Can I **estimate** how well my model is likely to perform on unseen data? # ## Resources # # - Book: [An Introduction to Statistical Learning](http://www-bcf.usc.edu/~gareth/ISL/) (section 2.1, 14 pages) # - Video: [Learning Paradigms](http://work.caltech.edu/library/014.html) (13 minutes) # ## Comments or Questions? # # - Email: <kevin@dataschool.io> # - Website: http://dataschool.io # - Twitter: [@justmarkham](https://twitter.com/justmarkham) from IPython.core.display import HTML def css_styling(): styles = open("styles/custom.css", "r").read() return HTML(styles) css_styling() можу так: пікпікпік!!!') elif animal.name == 'Змія': print('я можу так: шшшшшшшш !!!') def main(): animals = [ Animal('Лев'), Animal('Миша'), Animal('Змія') ] animal_sound(animals) if __name__ == '__main__': main() # + #3-n class Discount: def __init__(self, customer, price): self.customer = customer self.price = price def get_discount(self): if self.customer == 'звичайний': return self.price * 0.2 if self.customer == 'ВІП': return self.price * 0.4 def main(): customer1, price1 = 'звичайний', 100 assert Discount(customer1, price1).get_discount() == 20.0 customer2, price2 = 'ВІП', 100 assert Discount(customer2, price2).get_discount() == 40.0 print(customer1, price1) print(customer2, price2) if __name__ == '__main__': main() # + #1.1-y class Animal: def __init__(self, name: str): self.name = name def get_name(self) -> str: return f'Мене звуть : {self.name}' def make_sound(self): pass class Lion(Animal): def make_sound(self): return 'я можу так: рррррррр!!!' class Mouse(Animal): def make_sound(self): return 'я можу так: пікпікпік!!!' def animal_sound(animals: list): for animal in animals: print(animal.make_sound()) def main(): animals = [ Lion('Лев'), Mouse('Миша') ] animal_sound(animals) if __name__ == '__main__': main() # + #1.1-y class Animal: def __init__(self, name: str): self.name = name def get_name(self) -> str: return f'Мене звуть : {self.name}' def make_sound(self): pass class Lion(Animal): def make_sound(self): return 'я можу так: рррррррр!!!' class Mouse(Animal): def make_sound(self): return 'я можу так: пікпікпік!!!' class Snake(Animal): def make_sound(self): return 'я можу так: шшшшшшшш !!!' def animal_sound(animals: list): for animal in animals: print(animal.make_sound()) def main(): animals = [ Lion('Лев'), Mouse('Миша'), Snake('Змія') ] animal_sound(animals) if __name__ == '__main__': main() # + #2.1-y class Animal: def __init__(self, name: str): self.name = name def get_name(self) -> str: return f'Мене звуть : {self.name}' def make_sound(self): pass class Lion(Animal): def make_sound(self): return 'я можу так: рррррррр!!!' class Mouse(Animal): def make_sound(self): return 'я можу так: пікпікпік!!!' class Snake(Animal): def make_sound(self): return 'я можу так: шшшшшшшш !!!' def animal_sound(animals: list): for animal in animals: print(animal.make_sound()) def main(): animals = [ Lion('Лев'), Mouse('Миша'), Snake('Питон') ] animal_sound(animals) if __name__ == '__main__': main() # + #3.1-y class Discount: def __init__(self, customer, price): self.customer = customer self.price = price def get_discount(self): return self.price * 0.2 class VIPDiscount(Discount): def get_discount(self): return super().get_discount() * 2 class SuperVIPDiscount(VIPDiscount): def get_discount(self): return super().get_discount() * 2 def main(): customer, price = 'Лютий', 100 assert Discount(customer, price).get_discount() == 20.0 assert VIPDiscount(customer, price).get_discount() == 40.0 assert SuperVIPDiscount(customer, price).get_discount() == 80.0 if __name__ == '__main__': main() # - # ## Liskov # + #1 DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 class Animal: pass class Lion(Animal): pass class Mouse(Animal): pass class Snake(Animal): pass def animal_leg_count(animals: list): for animal in animals: if isinstance(animal, Lion): print(DEFAULT_LION_LEG_COUNT) elif isinstance(animal, Mouse): print(DEFAULT_MOUSE_LEG_COUNT) elif isinstance(animal, Snake): print(DEFAULT_SNAKE_LEG_COUNT) def main(): animals = [ Lion(), Mouse(), Snake() ] animal_leg_count(animals) if __name__ == '__main__': main() # + #1+crocodile DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 DEFAULT_CROCODILE_LEG_COUNT = 4 class Animal: pass class Lion(Animal): pass class Mouse(Animal): pass class Snake(Animal): pass class Crocodile(Animal): pass def animal_leg_count(animals: list): for animal in animals: if isinstance(animal, Lion): print(DEFAULT_LION_LEG_COUNT) elif isinstance(animal, Mouse): print(DEFAULT_MOUSE_LEG_COUNT) elif isinstance(animal, Snake): print(DEFAULT_SNAKE_LEG_COUNT) elif isinstance(animal, Crocodile): print(DEFAULT_CROCODILE_LEG_COUNT) def main(): animals = [ Lion(), Mouse(), Snake(), Crocodile() ] animal_leg_count(animals) if __name__ == '__main__': main() # + #1.1-y DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 class Animal: def get_legs_count(self): pass class Lion(Animal): def get_legs_count(self): return DEFAULT_LION_LEG_COUNT class Mouse(Animal): def get_legs_count(self): return DEFAULT_MOUSE_LEG_COUNT class Snake(Animal): def get_legs_count(self): return DEFAULT_SNAKE_LEG_COUNT def animal_leg_count(animals: list): for animal in animals: print(animal.get_legs_count()) def main(): animals = [ Lion(), Mouse(), Snake() ] animal_leg_count(animals) if __name__ == '__main__': main() # + #1.1-y DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 DEFAULT_CROCODILE_LEG_COUNT = 4 class Animal: def get_legs_count(self): pass class Lion(Animal): def get_legs_count(self): return DEFAULT_LION_LEG_COUNT class Mouse(Animal): def get_legs_count(self): return DEFAULT_MOUSE_LEG_COUNT class Snake(Animal): def get_legs_count(self): return DEFAULT_SNAKE_LEG_COUNT class Crocodile(Animal): def get_legs_count(self): return DEFAULT_CROCODILE_LEG_COUNT def animal_leg_count(animals: list): for animal in animals: print(animal.get_legs_count()) def main(): animals = [ Lion(), Mouse(), Snake(), Crocodile() ] animal_leg_count(animals) if __name__ == '__main__': main() # - # ## ISP # + #1-n from abc import ABCMeta, abstractmethod from six import with_metaclass DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 class Animal(with_metaclass(ABCMeta)): @abstractmethod def get_legs_lion(self): raise NotImplementedError @abstractmethod def get_legs_mouse(self): raise NotImplementedError @abstractmethod def get_legs_snake(self): raise NotImplementedError class Lion(Animal): def get_legs_lion(self): print(DEFAULT_LION_LEG_COUNT) def get_legs_mouse(self): print(DEFAULT_MOUSE_LEG_COUNT) def get_legs_snake(self): print(DEFAULT_SNAKE_LEG_COUNT) class Mouse(Animal): def get_legs_lion(self): print(DEFAULT_LION_LEG_COUNT) def get_legs_mouse(self): print(DEFAULT_MOUSE_LEG_COUNT) def get_legs_snake(self): print(DEFAULT_SNAKE_LEG_COUNT) class Snake(Animal): def get_legs_lion(self): print(DEFAULT_LION_LEG_COUNT) def get_legs_mouse(self): print(DEFAULT_MOUSE_LEG_COUNT) def get_legs_snake(self): print(DEFAULT_SNAKE_LEG_COUNT) class Manager(): def __init__(self): self.animal = None def set_animal(self, animal): assert isinstance( animal, Animal), "`animal` must be of type {}".format(Animal) self.animal = animal def get_legs_lion(self): self.animal.get_legs_lion() def get_legs_mouse(self): self.animal.get_legs_mouse() def get_legs_snake(self): self.animal.get_legs_snake() def main(): manager = Manager() manager.set_animal(Lion()) manager.get_legs_lion() manager.set_animal(Mouse()) manager.get_legs_mouse() manager.set_animal(Snake()) manager.get_legs_snake() if __name__ == '__main__': main() # + #1.1-y from abc import ABCMeta, abstractmethod from six import with_metaclass DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 class Animal(with_metaclass(ABCMeta)): @abstractmethod def get_legs_count(self): pass class Manager(): def __init__(self): self.animal = None def set_animal(self, animal): assert isinstance( animal, Animal), "`animal` must be of type {}".format(Animal) self.animal = animal def get_legs_count(self): self.animal.get_legs_count() class Lion(Animal): def get_legs_count(self): print(DEFAULT_LION_LEG_COUNT) class Mouse(Animal): def get_legs_count(self): print(DEFAULT_MOUSE_LEG_COUNT) class Snake(Animal): def get_legs_count(self): print(DEFAULT_SNAKE_LEG_COUNT) def main(): manager = Manager() manager.set_animal(Lion()) manager.get_legs_count() manager.set_animal(Mouse()) manager.get_legs_count() manager.set_animal(Snake()) manager.get_legs_count() if __name__ == '__main__': main() # - # ## DIP # + #1-n DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 class Lion: def get_legs_count(self): print(DEFAULT_LION_LEG_COUNT) class Mouse: def get_legs_count(self): print(DEFAULT_MOUSE_LEG_COUNT) class Manager: def __init__(self): self.animal = None def set_animal(self, animal): assert isinstance( animal, Lion), "`animal` must be of type {}".format(Lion) self.animal = animal def get_legs_count(self): if self.animal is not None: self.animal.get_legs_count() def main(): lion = Lion() manager = Manager() manager.set_animal(lion) manager.get_legs_count() # не вовинно працювати... mouse = Mouse() try: manager.set_animal(mouse) except AssertionError: print("програма не підтримує мишу ...") if __name__ == '__main__': main() # + #2.1-y from abc import ABCMeta, abstractmethod from six import with_metaclass DEFAULT_LION_LEG_COUNT = 4 DEFAULT_MOUSE_LEG_COUNT = 4 DEFAULT_SNAKE_LEG_COUNT = 0 class Animal(with_metaclass(ABCMeta)): @abstractmethod def get_legs_count(self): pass class Lion(Animal): def get_legs_count(self): print(DEFAULT_LION_LEG_COUNT) class Mouse(Animal): def get_legs_count(self): print(DEFAULT_MOUSE_LEG_COUNT) class Snake(Animal): def get_legs_count(self): print(DEFAULT_SNAKE_LEG_COUNT) class Manager: def __init__(self): self.animal = None def set_animal(self, animal): assert isinstance( animal, Animal), "`animal` must be of type {}".format(Animal) self.animal = animal def get_legs_count(self): if self.animal is not None: self.animal.get_legs_count() def main(): lion = Lion() manager = Manager() manager.set_animal(lion) manager.get_legs_count() # The following will work! mouse = Mouse() try: manager.set_animal(mouse) manager.get_legs_count() except AssertionError: print("програма не підтримує мишу ...") snake = Snake() manager.set_animal(snake) manager.get_legs_count() if __name__ == '__main__': main()
15,660
/modules/autoencoder_mednist.ipynb
ce0013f8093546e25bb49f07f1d57586ac10cc86
[ "Apache-2.0" ]
permissive
szh13818253048/tutorials
https://github.com/szh13818253048/tutorials
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
238,335
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import numpy as np import csv from extract import Extractor BASE = "http://www.mapdevelopers.com/what-county-am-i-in.php?address=" with open("stations.csv", 'r') as f: st = list(csv.reader(f, delimiter=',')) headers = st[0] station_data = np.array(st[1:]) ids = { 'city': 'display_city', 'county': 'display_county', 'zipcode': 'display_zip', 'latitude': 'display_lat', 'longitude': 'display_lng' } e = Extractor() with e: for row in station_data[:10]: station = row[2] url = BASE + station.replace(' ', '%20') e.get(url) idx = 3 for key, value in ids.items(): row[idx] = e.id_text(value) idx+=1 with open('stations_new.csv', 'wb') as f: h_string = ",".join(headers) np.savetxt(f, station_data, fmt='%s,%s,%s,%s,%s,%s,%s,%s', delimiter=",",header=h_string,comments='') e.util import random_noise from monai.apps import download_and_extract from monai.config import print_config from monai.data import CacheDataset, DataLoader from monai.networks.nets import AutoEncoder from monai.transforms import ( AddChannelD, Compose, LoadImageD, RandFlipD, RandRotateD, RandZoomD, ScaleIntensityD, EnsureTypeD, Lambda, ) from monai.utils import set_determinism print_config() # - logging.basicConfig(stream=sys.stdout, level=logging.INFO) set_determinism(0) device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # Create small visualistaion function def plot_ims(ims, shape=None, figsize=(10, 10), titles=None): shape = (1, len(ims)) if shape is None else shape plt.subplots(*shape, figsize=figsize) for i, im in enumerate(ims): plt.subplot(*shape, i + 1) im = plt.imread(im) if isinstance(im, str) else torch.squeeze(im) plt.imshow(im, cmap='gray') if titles is not None: plt.title(titles[i]) plt.axis('off') plt.tight_layout() plt.show() # # 2. Get the data # # The MedNIST dataset was gathered from several sets from [TCIA](https://wiki.cancerimagingarchive.net/display/Public/Data+Usage+Policies+and+Restrictions), # [the RSNA Bone Age Challenge](http://rsnachallenges.cloudapp.net/competitions/4), # and [the NIH Chest X-ray dataset](https://cloud.google.com/healthcare/docs/resources/public-datasets/nih-chest). # # The dataset is kindly made available by [Dr. Bradley J. Erickson M.D., Ph.D.](https://www.mayo.edu/research/labs/radiology-informatics/overview) (Department of Radiology, Mayo Clinic) # under the Creative Commons [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/). directory = os.environ.get("MONAI_DATA_DIRECTORY") root_dir = tempfile.mkdtemp() if directory is None else directory print(root_dir) # + resource = "https://drive.google.com/uc?id=1QsnnkvZyJPcbRoV_ArW8SnE1OTuoVbKE" md5 = "0bc7306e7427e00ad1c5526a6677552d" compressed_file = os.path.join(root_dir, "MedNIST.tar.gz") data_dir = os.path.join(root_dir, "MedNIST") if not os.path.exists(data_dir): download_and_extract(resource, compressed_file, root_dir, md5) # + # scan_type could be AbdomenCT BreastMRI CXR ChestCT Hand HeadCT scan_type = "Hand" im_dir = os.path.join(data_dir, scan_type) all_filenames = [os.path.join(im_dir, filename) for filename in os.listdir(im_dir)] random.shuffle(all_filenames) # Visualise a few of them rand_images = np.random.choice(all_filenames, 8, replace=False) plot_ims(rand_images, shape=(2, 4)) # - # Split into training and testing test_frac = 0.2 num_test = int(len(all_filenames) * test_frac) num_train = len(all_filenames) - num_test train_datadict = [{"im": fname} for fname in all_filenames[:num_train]] test_datadict = [{"im": fname} for fname in all_filenames[-num_test:]] print(f"total number of images: {len(all_filenames)}") print(f"number of images for training: {len(train_datadict)}") print(f"number of images for testing: {len(test_datadict)}") # # 3. Create the image transform chain # # To train the autoencoder to de-blur/de-noise our images, we'll want to pass the degraded image into the encoder, but in the loss function, we'll do the comparison with the original, undegraded version. In this sense, the loss function will be minimised when the encode and decode steps manage to remove the degradation. # # Other than the fact that one version of the image is degraded and the other is not, we want them to be identical, meaning they need to be generated from the same transforms. The easiest way to do this is via dictionary transforms, where at the end, we have a lambda function that will return a dictionary containing the three images – the original, the Gaussian blurred and the noisy (salt and pepper). # + NoiseLambda = Lambda(lambda d: { "orig": d["im"], "gaus": torch.tensor( random_noise(d["im"], mode='gaussian'), dtype=torch.float32), "s&p": torch.tensor(random_noise(d["im"], mode='s&p', salt_vs_pepper=0.1)), }) train_transforms = Compose( [ LoadImageD(keys=["im"]), AddChannelD(keys=["im"]), ScaleIntensityD(keys=["im"]), RandRotateD(keys=["im"], range_x=np.pi / 12, prob=0.5, keep_size=True), RandFlipD(keys=["im"], spatial_axis=0, prob=0.5), RandZoomD(keys=["im"], min_zoom=0.9, max_zoom=1.1, prob=0.5), EnsureTypeD(keys=["im"]), NoiseLambda, ] ) test_transforms = Compose( [ LoadImageD(keys=["im"]), AddChannelD(keys=["im"]), ScaleIntensityD(keys=["im"]), EnsureTypeD(keys=["im"]), NoiseLambda, ] ) # - # ### Create dataset and dataloader # # Hold data and present batches during training. # + batch_size = 300 num_workers = 10 train_ds = CacheDataset(train_datadict, train_transforms, num_workers=num_workers) train_loader = DataLoader(train_ds, batch_size=batch_size, shuffle=True, num_workers=num_workers) test_ds = CacheDataset(test_datadict, test_transforms, num_workers=num_workers) test_loader = DataLoader(test_ds, batch_size=batch_size, shuffle=True, num_workers=num_workers) # - # Get image original and its degraded versions def get_single_im(ds): loader = torch.utils.data.DataLoader( ds, batch_size=1, num_workers=10, shuffle=True) itera = iter(loader) return next(itera) data = get_single_im(train_ds) plot_ims([data['orig'], data['gaus'], data['s&p']], titles=['orig', 'Gaussian', 's&p']) def train(dict_key_for_training, max_epochs=10, learning_rate=1e-3): model = AutoEncoder( spatial_dims=2, in_channels=1, out_channels=1, channels=(4, 8, 16, 32), strides=(2, 2, 2, 2), ).to(device) # Create loss fn and optimiser loss_function = torch.nn.MSELoss() optimizer = torch.optim.Adam(model.parameters(), learning_rate) epoch_loss_values = [] t = trange( max_epochs, desc=f"{dict_key_for_training} -- epoch 0, avg loss: inf", leave=True) for epoch in t: model.train() epoch_loss = 0 step = 0 for batch_data in train_loader: step += 1 inputs = batch_data[dict_key_for_training].to(device) optimizer.zero_grad() outputs = model(inputs) loss = loss_function(outputs, batch_data['orig'].to(device)) loss.backward() optimizer.step() epoch_loss += loss.item() epoch_loss /= step epoch_loss_values.append(epoch_loss) t.set_description( f"{dict_key_for_training} -- epoch {epoch + 1}" + f", average loss: {epoch_loss:.4f}") return model, epoch_loss_values max_epochs = 50 training_types = ['orig', 'gaus', 's&p'] models = [] epoch_losses = [] for training_type in training_types: model, epoch_loss = train(training_type, max_epochs=max_epochs) models.append(model) epoch_losses.append(epoch_loss) plt.figure() plt.title("Epoch Average Loss") plt.xlabel("epoch") for y, label in zip(epoch_losses, training_types): x = list(range(1, len(y) + 1)) line, = plt.plot(x, y) line.set_label(label) plt.legend() # + data = get_single_im(test_ds) recons = [] for model, training_type in zip(models, training_types): im = data[training_type] recon = model(im.to(device)).detach().cpu() recons.append(recon) plot_ims( [data['orig'], data['gaus'], data['s&p']] + recons, titles=['orig', 'Gaussian', 'S&P'] + ["recon w/\n" + x for x in training_types], shape=(2, len(training_types))) # - # ### Cleanup data directory # # Remove directory if a temporary was used. # + pycharm={"is_executing": true} if directory is None: shutil.rmtree(root_dir)
9,033
/.ipynb_checkpoints/DSherrill Map two excel worksheets using Python - Five Minute Python Automation Scripts-checkpoint.ipynb
c35a9fa35bc67b7a86f2e46185430ad56a2e08c9
[]
no_license
ulrikSebastienR/Python-Diaries
https://github.com/ulrikSebastienR/Python-Diaries
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
8,898
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # trying out https://www.youtube.com/watch?v=OB_ixIlQbWI&list=LLNzsZNOL8ahph4IIYK2c9Pg&index=4&t=0s # or Map two excel worksheets using Python - Five Minute Python Automation Scripts Derrick Sherrill import pandas as pd # Assign a variable name to your excel file. Open Document Spreadsheets can't be opened. excel1 = 'worksheet1.xlsx' print(excel1) # #rows1 = rows(excel1) # #help(pd.Series.loc) excel2 = 'worksheet2.xlsx' excel2 pip install xlrd df1 = pd.read_excel(excel1) print(df1) df2 = pd.read_excel(excel2) print(df2) merge = pd.merge(df1,df2,on = "Date") print(merge) merge.to_excel("output.xlsx") output_Sheet = "output.xlsx" print(output_Sheet) pip install openpyxl df_Output = pd.read_excel(output_Sheet) print(df_Output)
1,024