hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a310360f9994b9d898a30fcbc8f3e5ffd70919a6
| 178
|
py
|
Python
|
scenario/blackjack/cards_deck/__init__.py
|
tomasruizt/Reinforcement-Learning-Scenarios
|
660175318bbecc7de51596740ddc5aa7ab993595
|
[
"Apache-2.0"
] | null | null | null |
scenario/blackjack/cards_deck/__init__.py
|
tomasruizt/Reinforcement-Learning-Scenarios
|
660175318bbecc7de51596740ddc5aa7ab993595
|
[
"Apache-2.0"
] | null | null | null |
scenario/blackjack/cards_deck/__init__.py
|
tomasruizt/Reinforcement-Learning-Scenarios
|
660175318bbecc7de51596740ddc5aa7ab993595
|
[
"Apache-2.0"
] | null | null | null |
from scenario.blackjack.cards_deck.card import Card
from scenario.blackjack.cards_deck.hand import Hand
from scenario.blackjack.cards_deck.poker_cards_deck import PokerCardsDeck
| 44.5
| 73
| 0.882022
| 26
| 178
| 5.846154
| 0.384615
| 0.236842
| 0.414474
| 0.513158
| 0.592105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067416
| 178
| 3
| 74
| 59.333333
| 0.915663
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
a351cfd92f9585e3cf4eeabff9251c58e587a911
| 17,934
|
py
|
Python
|
pytpp/api/websdk/endpoints/metadata.py
|
Venafi/pytpp
|
42af655b2403b8c9447c86962abd4aaa0201f646
|
[
"MIT"
] | 4
|
2022-02-04T23:58:55.000Z
|
2022-02-15T18:53:08.000Z
|
pytpp/api/websdk/endpoints/metadata.py
|
Venafi/pytpp
|
42af655b2403b8c9447c86962abd4aaa0201f646
|
[
"MIT"
] | null | null | null |
pytpp/api/websdk/endpoints/metadata.py
|
Venafi/pytpp
|
42af655b2403b8c9447c86962abd4aaa0201f646
|
[
"MIT"
] | null | null | null |
from typing import List
from pytpp.api.api_base import API, APIResponse, api_response_property
from pytpp.properties.response_objects.metadata import Metadata
from pytpp.properties.response_objects.config import Config
class _Metadata(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url='/Log')
self.DefineItem = self._DefineItem(api_obj=api_obj)
self.Find = self._Find(api_obj=api_obj)
self.FindItem = self._FindItem(api_obj=api_obj)
self.Get = self._Get(api_obj=api_obj)
self.GetItemGuids = self._GetItemGuids(api_obj=api_obj)
self.GetItems = self._GetItems(api_obj=api_obj)
self.GetItemsForClass = self._GetItemsForClass(api_obj=api_obj)
self.GetPolicyItems = self._GetPolicyItems(api_obj=api_obj)
self.Items = self._Items(api_obj=api_obj)
self.LoadItem = self._LoadItem(api_obj=api_obj)
self.LoadItemGuid = self._LoadItemGuid(api_obj=api_obj)
self.ReadEffectiveValues = self._ReadEffectiveValues(api_obj=api_obj)
self.ReadPolicy = self._ReadPolicy(api_obj=api_obj)
self.Set = self._Set(api_obj=api_obj)
self.SetPolicy = self._SetPolicy(api_obj=api_obj)
self.UndefineItem = self._UndefineItem(api_obj=api_obj)
self.UpdateItem = self._UpdateItem(api_obj=api_obj)
class _DefineItem(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/DefineItem')
def post(self, item: dict):
body = {
'Item': item
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def dn(self) -> str:
return self._from_json('DN')
@property
@api_response_property()
def item(self):
return Metadata.Item(self._from_json('Item'))
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _Find(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/Find')
def post(self, item: str = None, item_guid: str = None, value: str = None):
body = {
'Item': item,
'ItemGuid': item_guid,
'Value': value
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def objects(self):
return [Config.Object(obj) for obj in self._from_json('Objects')]
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _FindItem(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/FindItem')
def post(self, name: str):
body = {
'Name': name
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def item_guid(self) -> str:
return self._from_json('ItemGuid')
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _Get(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/Get')
def post(self, dn: str, all_included: bool = None):
body = {
'DN': dn,
'All': all_included
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def data(self):
return [Metadata.Data(self._from_json('Data'))]
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _GetItemGuids(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/GetItemGuids')
def post(self, dn: str):
body = {
'DN': dn
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def item_guids(self) -> List[str]:
return self._from_json('ItemGuids')
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _GetItems(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/GetItems')
def post(self, dn: str):
body = {
'DN': dn
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def items(self):
return [Metadata.Item(item) for item in self._from_json('Items')]
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _GetItemsForClass(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/GetItemsForClass')
def post(self, config_class: str):
body = {
'ConfigClass': config_class
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def items(self):
return [Metadata.Item(item) for item in self._from_json('Items')]
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _GetPolicyItems(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/GetPolicyItems')
def post(self, dn: str):
body = {
'DN': dn
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def policy_items(self):
return [Metadata.PolicyItem(item) for item in self._from_json('PolicyItems')]
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _Items(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/Items')
def get(self):
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def items(self):
return [Metadata.Item(item) for item in self._from_json('Items')]
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._get())
class _LoadItem(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/LoadItem')
def post(self, dn: str):
body = {
'DN': dn
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def item(self):
return Metadata.Item(self._from_json('Item'))
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _LoadItemGuid(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/LoadItemGuid')
def post(self, dn: str):
body = {
'DN': dn
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def item_guid(self) -> str:
return self._from_json('ItemGuid')
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _ReadEffectiveValues(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/ReadEffectiveValues')
def post(self, dn: str, item_guid: str):
body = {
'DN': dn,
'ItemGuid': item_guid
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def policy_dn(self) -> str:
return self._from_json('PolicyDn')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
@property
@api_response_property()
def values(self) -> List[str]:
return self._from_json('Values')
return _Response(response=self._post(data=body))
class _ReadPolicy(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/ReadPolicy')
def post(self, dn: str, item_guid: str, obj_type: str):
body = {
'DN': dn,
'ItemGuid': item_guid,
'Type': obj_type
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
@property
@api_response_property()
def values(self) -> List[str]:
return self._from_json('Values')
return _Response(response=self._post(data=body))
class _Set(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/Set')
def post(self, dn: str, guid_data: list, keep_existing: bool = False):
body = {
'DN': dn,
'GuidData': guid_data,
'KeepExisting': keep_existing
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _SetPolicy(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/SetPolicy')
def post(self, dn: str, config_class: str, guid_data: list, locked: bool = False):
body = {
'DN': dn,
'ConfigClass': config_class,
'GuidData': guid_data,
'Locked': locked
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _UndefineItem(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/UndefineItem')
def post(self, item_guid: str, remove_data: bool = True):
body = {
'ItemGuid': item_guid,
'RemoveData': remove_data
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
class _UpdateItem(API):
def __init__(self, api_obj):
super().__init__(api_obj=api_obj, url=f'/Metadata/UpdateItem')
def post(self, item: dict = None, update: dict = None):
body = {
'ItemGuid': item,
'Update': update
}
class _Response(APIResponse):
def __init__(self, response):
super().__init__(response=response)
@property
@api_response_property()
def locked(self) -> bool:
return self._from_json('Locked')
@property
@api_response_property()
def result(self):
return Metadata.Result(self._from_json('Result'))
return _Response(response=self._post(data=body))
| 33.458955
| 97
| 0.513605
| 1,699
| 17,934
| 5.018835
| 0.047087
| 0.061921
| 0.111411
| 0.155154
| 0.815527
| 0.763457
| 0.763457
| 0.744811
| 0.738478
| 0.738478
| 0
| 0
| 0.386751
| 17,934
| 535
| 98
| 33.521495
| 0.775323
| 0
| 0
| 0.731415
| 0
| 0
| 0.043995
| 0.008085
| 0
| 0
| 0
| 0
| 0
| 1
| 0.242206
| false
| 0
| 0.009592
| 0.117506
| 0.494005
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 9
|
a3a18d64b4778213ff2635c83bc539bc0eff8adf
| 45,300
|
py
|
Python
|
optimization.py
|
mcmahon-lab/error_mitigation_vqe
|
6507daa78dfab01cdc5932892e2305750595b60a
|
[
"CC-BY-4.0"
] | 6
|
2021-06-23T17:25:57.000Z
|
2022-03-16T04:57:53.000Z
|
optimization.py
|
mcmahon-lab/error_mitigation_vqe
|
6507daa78dfab01cdc5932892e2305750595b60a
|
[
"CC-BY-4.0"
] | null | null | null |
optimization.py
|
mcmahon-lab/error_mitigation_vqe
|
6507daa78dfab01cdc5932892e2305750595b60a
|
[
"CC-BY-4.0"
] | null | null | null |
import numpy as np
from copy import deepcopy
from scipy.optimize import minimize
import csv
import os
import re
import os.path
from os import path
from math import isnan
import time
from library import *
from datetime import datetime
# if you use a gpu, change this to set which gpu you use
global whichGPU
whichGPU = 3
# replace "/your_directory/saved_parameters/" with the desired directory for saved parameters
def pauli(i):
# i = 1 for x, 2 for y, 3 for z
if i == 1:
P = np.array([[0,1],[1,0]])
elif i == 2:
P = np.array([[0,-1j],[1j,0]])
elif i == 3:
P = np.array([[1,0],[0,-1]])
elif i == 0:
P = np.eye(2)
return P
def rot(theta,i,output_gradient=True):
# i = 1 for x, 2 for y, 3 for z
P = pauli(i)
I = np.eye(2)
U = np.cos(theta/2)*I - 1j*np.sin(theta/2)*P
if output_gradient:
dU = -np.sin(theta/2)/2*I - 1j*np.cos(theta/2)/2*P
elif not output_gradient:
dU = []
return [U,dU]
def apply_one_qubit_matrix(U,psi, qubit, n, dU = []):
if len(np.shape(psi)) == n and np.size(psi) == 2**n:
first_gate = True
elif len(np.shape(psi)) == n+1:
first_gate = False
elif np.size(psi) == 2**n:
first_gate = True
psi = np.reshape(psi,2*np.ones(n,dtype=np.int),order='F')
output_gradient = np.size(dU) > 0
array_of_Us = output_gradient and len(np.shape(dU)) == 3
if output_gradient and first_gate:
dpsi = multiply_state(dU,psi,qubit,array_of_Us=array_of_Us)
elif output_gradient:
dpsi = multiply_state(dU,psi[0],qubit,array_of_Us=array_of_Us)
psi = multiply_state(U,psi,qubit,leave_first_index = not first_gate)
if output_gradient and first_gate:
psi = [psi]
if output_gradient and array_of_Us:
psi = np.concatenate((psi,dpsi),axis=0) # changed to concatenate.
elif output_gradient and not array_of_Us:
psi = np.append(psi,[dpsi],axis=0)
return psi
def apply_one_qubit_matrix_gpu(U,psi, qubit, n, dU = [],which_theta=0):
output_gradient = np.size(dU) > 0
array_of_Us = output_gradient and len(np.shape(dU)) == 3
if output_gradient:
dpsi = multiply_state_gpu(dU,psi[0],qubit,array_of_Us=array_of_Us)
psi[:(np.min(which_theta)+1)] = multiply_state_gpu(U,psi[:(np.min(which_theta)+1)],qubit,leave_first_index = output_gradient)
psi[which_theta+1] = dpsi
else:
psi = multiply_state_gpu(U,psi,qubit,leave_first_index = output_gradient)
return psi
def P_i(whichPauli,psi,qubit,leave_first_index=False,gpu=False):
if not gpu:
return multiply_state(pauli(whichPauli),psi,qubit,leave_first_index=leave_first_index)
elif gpu:
return multiply_state_gpu(pauli(whichPauli),psi,qubit,leave_first_index=leave_first_index)
def multiply_state(U,psi,qubits,leave_first_index=False,array_of_Us=False):
# multiples the state psi by the matrix U. qubits indicates the indices to contract. If leave_first_index = True, then psi is treated as an array of state vectors, where the first index indices the different state vectors. All of the states in that array are multiplied by U.
if not hasattr(qubits,'__iter__'):
qubits = [qubits]
n_to_contract = len(qubits)
qubits = np.array(qubits)
sh_U = np.shape(U)
if len(sh_U) != 2*n_to_contract and not array_of_Us:
U = np.reshape(U,2*np.ones(2*n_to_contract,dtype=np.int), order='C')
sh = np.shape(psi)
if not leave_first_index:
n = int(np.log2(np.size(psi)))
elif leave_first_index:
n = len(sh) - 1
if (not leave_first_index) and len(sh) != n:
psi = np.reshape(psi,2*np.ones(n,dtype=np.int),order='F')
U_axes = np.flip(np.arange(n_to_contract,2*n_to_contract)) + array_of_Us
psi_axes = qubits + leave_first_index
extra_indices = leave_first_index + array_of_Us
if not array_of_Us:
axesInv = list(np.concatenate( (np.flip(qubits)+ extra_indices, np.delete(np.arange(n+extra_indices) ,qubits+extra_indices) )))
elif array_of_Us:
axesInv = list(np.concatenate( ([0], np.flip(qubits)+ extra_indices, np.delete(np.arange(1,n+extra_indices) ,qubits+extra_indices-1) )))
axes = [axesInv.index(i) for i in range(n+extra_indices)]
psi = np.tensordot(U,psi,axes=(U_axes,psi_axes))
psi = np.transpose(psi,axes=axes)
if (not leave_first_index) and len(sh) != n:
psi = np.reshape(psi,sh,order='F')
return psi
def multiply_state_gpu(U,psi,qubits,leave_first_index=False,array_of_Us=False):
# multiples the state psi by the matrix U. qubits indicates the indices to contract. If leave_first_index = True, then psi is treated as an array of state vectors, where the first index indices the different state vectors. All of the states in that array are multiplied by U.
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
if not hasattr(qubits,'__iter__'):
qubits = [qubits]
n_to_contract = len(qubits)
qubits = np.array(qubits)
if type(U) == type(np.array([])):
U = cp.array(U,dtype=cp.complex128)
sh_U = cp.shape(U)
if len(sh_U) != 2*n_to_contract and not array_of_Us:
U = cp.reshape(U,2*np.ones(2*n_to_contract,dtype=np.int), order='C')
sh = cp.shape(psi)
if not leave_first_index:
n = int(np.log2(cp.size(psi)))
elif leave_first_index:
n = len(sh) - 1
if (not leave_first_index) and len(sh) != n:
psi = cp.reshape(psi,2*np.ones(n,dtype=np.int),order='F')
U_axes = np.flip(np.arange(n_to_contract,2*n_to_contract)) + array_of_Us
psi_axes = qubits + leave_first_index
extra_indices = leave_first_index + array_of_Us
if not array_of_Us:
axesInv = list(np.concatenate( (np.flip(qubits)+ extra_indices, np.delete(np.arange(n+extra_indices) ,qubits+extra_indices) )))
elif array_of_Us:
axesInv = list(np.concatenate( ([0], np.flip(qubits)+ extra_indices, np.delete(np.arange(1,n+extra_indices) ,qubits+extra_indices-1) )))
axes = [axesInv.index(i) for i in range(n+extra_indices)]
psi = cp.tensordot(U,psi,axes=(U_axes,psi_axes))
psi = cp.transpose(psi,axes=axes)
if (not leave_first_index) and len(sh) != n:
psi = cp.reshape(psi,sh,order='F')
return psi
def ALAy_state(theta,n,output_gradient=True,includeH=False):
# ansatz from Fig 4 of https://arxiv.org/pdf/2001.00550.pdf
C01 = np.array([[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]])
if includeH:
H = 1/np.sqrt(2) * np.array([[1,1],[1,-1]])
l = (len(theta)-n)//n
psi = np.zeros(2**n)
psi[0] = 1
#psi = np.reshape(psi,2*np.ones(n,dtype=np.int),order='F')
# now act with ansatz layers.
whichTheta = 0
for layer in range(l):
# first apply one qubit gates
for i in range(n):
[U,dU] = rot(theta[whichTheta],2)
if not output_gradient:
dU = []
whichTheta += 1
psi = apply_one_qubit_matrix(U,psi, i, n, dU = dU)
# now apply Hs
if includeH and layer == 0:
for i in range(n//2):
psi = apply_one_qubit_matrix(H,psi,2*i+1,n)
# now apply cnots
odd = layer%2
for j in range(n//2):
q1 = 2*j+odd
q2 = (2*j+odd+1)%n
if not odd:
psi = multiply_state(C01,psi,[q1,q2],leave_first_index=output_gradient)
elif odd:
psi = multiply_state(C01,psi,[q2,q1],leave_first_index=output_gradient)
# now apply Hs
if includeH and layer == 0:
for i in range(n//2):
psi = apply_one_qubit_matrix(H,psi,2*i+1)
# now act with last row of 1-qubit unitaries
for i in range(n):
[U,dU] = rot(theta[whichTheta],2)
if not output_gradient:
dU = []
psi = apply_one_qubit_matrix(U,psi, i, n, dU = dU)
whichTheta +=1
return psi
def ALAy_state_lc(theta,n,qubits_measured,output_gradient=True):
# don't include Hs, i.e. this is ALAy_cx.
C01 = np.array([[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]])
l = (len(theta)-n)//n
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc) # number of qubits that we need to represent
psi = np.zeros(2**m)
psi[0] = 1
for layer in range(l):
for q in lc[layer]:
[U,dU] = rot(theta[n*layer+q],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix(U,psi, vq, m, dU = dU)
# now apply cnots
odd = layer%2
for j in range(n//2):
q1 = 2*j+odd
q2 = (2*j+odd+1)%n
if q1 in lc[layer]:
vq1 = qubits_in_lc.index(q1)
vq2 = qubits_in_lc.index(q2)
if not odd:
psi = multiply_state(C01,psi,[vq1,vq2],leave_first_index=output_gradient)
elif odd:
psi = multiply_state(C01,psi,[vq2,vq1],leave_first_index=output_gradient)
# now act with last row of 1-qubit unitaries
for q in lc[l]:
[U,dU] = rot(theta[n*l+q],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix(U,psi, vq, m, dU = dU)
return psi
def ALAy_state_lc_symm(theta,n,qubits_measured,output_gradient=True):
# don't include Hs, i.e. this is ALAy_cx.
# impose permutation symmetry.
# not finished.
C01 = np.array([[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]])
l = (len(theta)-2)//2
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc) # number of qubits that we need to represent
psi = np.zeros(2**m)
psi[0] = 1
for layer in range(l):
for q in lc[layer]:
[U,dU] = rot(theta[2*layer+(q%2)],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix(U,psi, vq, m, dU = dU)
# now apply cnots
odd = layer%2
for j in range(n//2):
q1 = 2*j+odd
q2 = (2*j+odd+1)%n
if q1 in lc[layer]:
vq1 = qubits_in_lc.index(q1)
vq2 = qubits_in_lc.index(q2)
if not odd:
psi = multiply_state(C01,psi,[vq1,vq2],leave_first_index=output_gradient)
elif odd:
psi = multiply_state(C01,psi,[vq2,vq1],leave_first_index=output_gradient)
# now act with last row of 1-qubit unitaries
for q in lc[l]:
[U,dU] = rot(theta[n*l+q],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix(U,psi, vq, m, dU = dU)
return psi
def ALAy_state_lc_gpu(theta,n,qubits_measured,output_gradient=True):
# don't include Hs, i.e. this is ALAy_cx.
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
C01 = cp.array([[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]],dtype=cp.int8)
l = (len(theta)-n)//n
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
thetas_in_lc = 0
for q_l in lc:
thetas_in_lc += len(q_l) # number of thetas in light cone
m = len(qubits_in_lc) # number of qubits that we need to represent
shape = [2 for _ in range(m)]
if output_gradient:
shape = [thetas_in_lc + 1]+shape
psi = cp.zeros(shape,dtype = cp.complex128)
if output_gradient:
psi[tuple([0 for _ in range(m+1)])] = 1
else:
psi[tuple([0 for _ in range(m)])] = 1
which_theta = 0
for layer in range(l):
for q in lc[layer]:
[U,dU] = rot(theta[n*layer+q],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix_gpu(U,psi, vq, m, dU = dU,which_theta = which_theta)
which_theta += 1
# now apply cnots
odd = layer%2
for j in range(n//2):
q1 = 2*j+odd
q2 = (2*j+odd+1)%n
if q1 in lc[layer]:
vq1 = qubits_in_lc.index(q1)
vq2 = qubits_in_lc.index(q2)
if not odd:
psi = multiply_state_gpu(C01,psi,[vq1,vq2],leave_first_index=output_gradient)
elif odd:
psi = multiply_state_gpu(C01,psi,[vq2,vq1],leave_first_index=output_gradient)
# now act with last row of 1-qubit unitaries
for q in lc[l]:
[U,dU] = rot(theta[n*l+q],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix_gpu(U,psi, vq, m, dU = dU, which_theta = which_theta)
which_theta += 1
return psi
def ALAy_state_lc_gpu_symm(theta,n,qubits_measured,output_gradient=True):
# don't include Hs, i.e. this is ALAy_cx.
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
C01 = cp.array([[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]],dtype=cp.int8)
l = (len(theta)-2)//2
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
thetas_in_lc = 0 # number of thetas in light cone
for q_l in lc:
if len(q_l) > 1:
thetas_in_lc += 2
elif len(q_l) == 1:
thetas_in_lc += 1
m = len(qubits_in_lc) # number of qubits that we need to represent
shape = [2 for _ in range(m)]
if output_gradient:
shape = [thetas_in_lc + 1]+shape
psi = cp.zeros(shape,dtype = cp.complex128)
if output_gradient:
psi[tuple([0 for _ in range(m+1)])] = 1
else:
psi[tuple([0 for _ in range(m)])] = 1
which_theta = 0
for layer in range(l):
lc_layer_even = [i for i in lc[layer] if (i%2)==0]
lc_layer_odd = [i for i in lc[layer] if (i%2) == 1]
for q in lc_layer_even:
[U,dU] = rot(theta[2*layer+(q%2)],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix_gpu(U,psi, vq, m, dU = dU,which_theta = which_theta)
which_theta += 1
for q in lc_layer_odd:
[U,dU] = rot(theta[2*layer+(q%2)],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix_gpu(U,psi, vq, m, dU = dU,which_theta = which_theta)
which_theta += 1
# now apply cnots
odd = layer%2
for j in range(n//2):
q1 = 2*j+odd
q2 = (2*j+odd+1)%n
if q1 in lc[layer]:
vq1 = qubits_in_lc.index(q1)
vq2 = qubits_in_lc.index(q2)
if not odd:
psi = multiply_state_gpu(C01,psi,[vq1,vq2],leave_first_index=output_gradient)
elif odd:
psi = multiply_state_gpu(C01,psi,[vq2,vq1],leave_first_index=output_gradient)
# now act with last row of 1-qubit unitaries
lc_l_even = [q for q in lc[l] if q%2 == 0]
lc_l_odd = [q for q in lc[l] if q%2 == 1]
for q in lc_l_even:
[U,dU] = rot(theta[2*l+q%2],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix_gpu(U,psi, vq, m, dU = dU, which_theta = which_theta)
if len(lc_l_even) > 0:
which_theta += 1
for q in lc_l_odd:
[U,dU] = rot(theta[2*l+q%2],2)
if not output_gradient:
dU = []
vq = qubits_in_lc.index(q)
psi = apply_one_qubit_matrix_gpu(U,psi, vq, m, dU = dU, which_theta = which_theta)
return psi
def E_from_theta(theta,paulis_in_H,coeffs,output_gradient=True,directory='ising',saveOutput=True):
# assumes ansatz is ALAy_cx
# not tested yet.
n = len(paulis_in_H[0])
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(len(coeffs)):
Phat = paulis_in_H[i]
qubits_measured = [j for j in range(n) if Phat[j]>0]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc(theta,n,qubits_measured,output_gradient)
ket = deepcopy(psi)
for j in range(len(qubits_measured)):
vq = qubits_in_lc.index(qubits_measured[j])
ket = P_i(Phat[qubits_measured[j]],ket,vq,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += coeffs[i]*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += coeffs[i]*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory == 'ising':
directory = '/your_directory/saved_parameters/ising/ALAy_cx/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
else:
directory = '/your_directory/saved_parameters/'+directory
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def ising_E_from_theta_lc(theta,n,hx,hz,output_gradient=False,saveOutput=True,directory='default'):
# ansatz is ALAy_cx
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(n):
qubits_measured = [i,(i+1)%n]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc(theta,n,qubits_measured,output_gradient)
vq = qubits_in_lc.index(i)
ket = P_i(3,psi,vq,leave_first_index=output_gradient)
# Z:
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= hz*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E -= hz*P
# ZZ:
vq2 = qubits_in_lc.index( (i+1)%n)
ket = P_i(3,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= P
elif not output_gradient:
P = np.vdot(psi,ket).real
E -= P
# X:
vq = qubits_in_lc.index(i)
ket = P_i(1,psi,vq,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= hx*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E -= hx*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory=='default':
directory = '/your_directory/saved_parameters/ising/ALAy_cx/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def ising_E_from_theta(theta,n,hx,hz,output_gradient=False,directory='default',ansatz='ALAy_cx',includeH=False,saveOutput=True):
if ansatz == 'ALAy_cx':
ansatz = 'ALAy'
includeH = False
if directory == 'default':
if ansatz=='PSA':
l = (len(theta)-3*n)//(9*n//2)
directory = '/your_directory/saved_parameters/ising/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
elif ansatz=='ALAy' and includeH:
l = (len(theta)-n)//n
directory = '/your_directory/saved_parameters/ising/ALAy/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
elif ansatz=='ALAy' and not includeH:
l = (len(theta)-n)//n
directory = '/your_directory/saved_parameters/ising/ALAy_cx/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
if ansatz == 'PSA':
psi = ALA_state(theta,n,output_gradient=output_gradient)
elif ansatz == 'ALAy':
psi = ALAy_state(theta,n,output_gradient=output_gradient,includeH=includeH)
E = ising_H(hx,hz,psi,output_gradient=output_gradient)
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def ising_E_from_theta_gpu(theta,n,hx,hz,output_gradient=False,saveOutput=True,directory='default'):
# ansatz is ALAy_cx
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
psi = ALAy_state_lc_gpu(theta,n,range(n),output_gradient)
for i in range(n):
ket = P_i(3,psi,i,leave_first_index=output_gradient,gpu=True)
# Z:
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(n),range(1,n+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,range(n),n))
E[ np.insert(thetas_in_lc+1,0,0)] -= hz*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= hz*P
# ZZ:
ket = P_i(3,ket,(i+1)%n,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(n),range(1,n+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,range(n),n))
E[ np.insert(thetas_in_lc+1,0,0)] -= P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= P
# X:
ket = P_i(1,psi,i,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(n),range(1,n+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,range(n),n))
E[ np.insert(thetas_in_lc+1,0,0)] -= hx*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= hx*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory == 'default':
directory = '/your_directory/saved_parameters/ising/ALAy_cx/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def ising_E_from_theta_lc_gpu(theta,n,hx,hz,output_gradient=False,saveOutput=True,directory='default'):
# ansatz is ALAy_cx
l = (len(theta)-n)//n
if 2*l > n and not output_gradient:
# more efficient to use full state vector:
return ising_E_from_theta_gpu(theta,n,hx,hz,output_gradient,saveOutput,directory)
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(n):
qubits_measured = [i,(i+1)%n]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc_gpu(theta,n,qubits_measured,output_gradient)
vq = qubits_in_lc.index(i)
ket = P_i(3,psi,vq,leave_first_index=output_gradient,gpu=True)
# Z:
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= hz*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= hz*P
# ZZ:
vq2 = qubits_in_lc.index( (i+1)%n)
ket = P_i(3,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= P
# X:
vq = qubits_in_lc.index(i)
ket = P_i(1,psi,vq,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= hx*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= hx*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory == 'default':
directory = '/your_directory/saved_parameters/ising/ALAy_cx/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def ising_E_from_theta_lc_symm(theta,n,hx,hz,output_gradient=False,gpu=False,saveOutput=True):
from library import theta_ALAy_to_symm
l = (len(theta)-2)//2
theta_full = [ theta[theta_ALAy_to_symm(which_theta,n)] for which_theta in range(n*(l+1))]
directory='/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)
if gpu:
E = ising_E_from_theta_lc_gpu(theta_full,n,hx,hz,output_gradient=output_gradient,saveOutput=saveOutput,directory=directory)
elif not gpu:
E = ising_E_from_theta_lc(theta_full,n,hx,hz,output_gradient=output_gradient,saveOutput=saveOutput,directory=directory)
if output_gradient:
dE_full = E[1]
dE = np.zeros( 2*(l+1) )
for i in range( n*(l+1)):
dE[ theta_ALAy_to_symm(i,n) ] += dE_full[i]
E = (E[0], dE)
return E
def heisenberg_E_from_theta_lc_symm(theta,n,J,B,output_gradient=False,gpu=True,saveOutput=True):
from library import theta_ALAy_to_symm
l = (len(theta)-2)//2
theta_full = [ theta[theta_ALAy_to_symm(which_theta,n)] for which_theta in range(n*(l+1))]
directory='/your_directory/saved_parameters/Heisenberg/ALAy_symm/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)
if gpu:
E = Heisenberg_E_from_theta_lc_gpu(theta_full,n,J,B,output_gradient=output_gradient,saveOutput=saveOutput,directory=directory)
elif not gpu:
E = Heisenberg_E_from_theta_lc(theta_full,n,J,B,output_gradient=output_gradient,saveOutput=saveOutput,directory=directory)
if output_gradient:
dE_full = E[1]
dE = np.zeros( 2*(l+1) )
for i in range(n*(l+1)):
dE[ theta_ALAy_to_symm(i,n) ] += dE_full[i]
E = (E[0], dE)
return E
def Heisenberg_E_from_theta_lc(theta,n,J,B,output_gradient=False,saveOutput=True,directory='default'):
# ansatz is ALAy_cx.
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(n):
qubits_measured = [i,(i+1)%n]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc(theta,n,qubits_measured,output_gradient)
vq = qubits_in_lc.index(i)
ket = P_i(3,psi,vq,leave_first_index=output_gradient)
# Z:
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += B*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += B*P
# ZZ:
vq2 = qubits_in_lc.index( (i+1)%n)
ket = P_i(3,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += J*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += J*P
# XX:
ket = P_i(1,psi,vq,leave_first_index=output_gradient)
ket = P_i(1,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += J*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += J*P
# YY:
ket = P_i(2,psi,vq,leave_first_index=output_gradient)
ket = P_i(2,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += J*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += J*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory=='default':
directory = '/your_directory/saved_parameters/Heisenberg/ALAy_cx/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def Heisenberg_E_from_theta_lc_gpu(theta,n,J,B,output_gradient=False,saveOutput=True,directory='default'):
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(n):
qubits_measured = [i,(i+1)%n]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc_gpu(theta,n,qubits_measured,output_gradient)
vq = qubits_in_lc.index(i)
ket = P_i(3,psi,vq,leave_first_index=output_gradient,gpu=True)
# Z:
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += B*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E += B*P
# ZZ:
vq2 = qubits_in_lc.index( (i+1)%n)
ket = P_i(3,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += J*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E += J*P
# XX:
ket = P_i(1,psi,vq,leave_first_index=output_gradient,gpu=True)
ket = P_i(1,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += J*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E += J*P
# YY:
ket = P_i(2,psi,vq,leave_first_index=output_gradient,gpu=True)
ket = P_i(2,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += J*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E += J*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory=='default':
directory = '/your_directory/saved_parameters/Heisenberg/ALAy_cx/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def XY_E_from_theta_lc(theta,n,Jz,Jxy,output_gradient=False,saveOutput=True,directory='default'):
# ansatz is ALAy_cx.
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(n):
qubits_measured = [i,(i+1)%n]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc(theta,n,qubits_measured,output_gradient)
vq = qubits_in_lc.index(i)
ket = P_i(3,psi,vq,leave_first_index=output_gradient)
# ZZ:
vq2 = qubits_in_lc.index( (i+1)%n)
ket = P_i(3,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += Jz*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += Jz*P
# XX:
ket = P_i(1,psi,vq,leave_first_index=output_gradient)
ket = P_i(1,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= Jxy*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E += -Jxy*P
# YY:
ket = P_i(2,psi,vq,leave_first_index=output_gradient)
ket = P_i(2,ket,vq2,leave_first_index=output_gradient)
if output_gradient:
P = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) ))
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= Jxy*P
elif not output_gradient:
P = np.vdot(psi,ket).real
E -= Jxy*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory=='default':
directory = '/your_directory/saved_parameters/XY/ALAy_cx/n'+str(n)+'_l'+str(l)+'_Jz'+str(Jz)+'_Jxy'+str(Jxy)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def XY_E_from_theta_lc_gpu(theta,n,Jz,Jxy,output_gradient=False,saveOutput=True,directory='default'):
import cupy as cp
global whichGPU
cp.cuda.Device(whichGPU).use()
l = (len(theta)-n)//n
if output_gradient:
E = np.zeros(len(theta)+1)
elif not output_gradient:
E = 0
for i in range(n):
qubits_measured = [i,(i+1)%n]
lc = light_cone(l,qubits_measured,n)
qubits_in_lc = list(lc[0])
m = len(qubits_in_lc)
psi = ALAy_state_lc_gpu(theta,n,qubits_measured,output_gradient)
vq = qubits_in_lc.index(i)
ket = P_i(3,psi,vq,leave_first_index=output_gradient,gpu=True)
# ZZ:
vq2 = qubits_in_lc.index( (i+1)%n)
ket = P_i(3,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] += Jz*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E += Jz*P
# XX:
ket = P_i(1,psi,vq,leave_first_index=output_gradient,gpu=True)
ket = P_i(1,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= Jxy*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= Jxy*P
# YY:
ket = P_i(2,psi,vq,leave_first_index=output_gradient,gpu=True)
ket = P_i(2,ket,vq2,leave_first_index=output_gradient,gpu=True)
if output_gradient:
P = cp.real(cp.tensordot( cp.conj(psi[0]), ket, axes = (range(m),range(1,m+1)) )).get()
P[1:] = 2*P[1:]
thetas_in_lc = np.array(thetas_in_light_cone_ALAy(l,qubits_measured,n))
E[ np.insert(thetas_in_lc+1,0,0)] -= Jxy*P
elif not output_gradient:
P = cp.real(cp.vdot(psi,ket)).get()
E -= Jxy*P
if output_gradient:
dE = E[1:]
E = E[0]
if saveOutput:
if directory=='default':
directory = '/your_directory/saved_parameters/XY/ALAy_cx/n'+str(n)+'_l'+str(l)+'_Jz'+str(Jz)+'_Jxy'+str(Jxy)
saveParams(theta,E,directory)
print(E)
if output_gradient:
return (E,dE)
else:
return E
def ising_H(hx,hz,psi,hy=0,output_gradient=False,add_stochastic_noise=False,shots=1024):
if not add_stochastic_noise:
ket = np.zeros_like(psi)
if not output_gradient:
n = int(np.log2(np.size(psi)))
elif output_gradient:
n = len(np.shape(psi))-1
for i in range(n):
Zi = P_i(3,psi,i,leave_first_index=output_gradient)
ket -= P_i(3,Zi,(i+1)%n,leave_first_index=output_gradient) + hz*Zi + hx*P_i(1,psi,i,leave_first_index=output_gradient)
if hy != 0:
ket -= hy*P_i(2,psi,i,leave_first_index=output_gradient)
if output_gradient:
E = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(n),range(1,n+1)) ))
E[1:] = 2*E[1:]
return E
elif not output_gradient:
return np.vdot(psi,ket).real
elif add_stochastic_noise:
rng = np.random.default_rng()
E = 0
E_exact = 0
n = int(np.log2(np.size(psi)))
for i in range(n):
Zi_state = P_i(3,psi,i)
Zi = np.vdot(psi,Zi_state).real
result = rng.binomial( 1, (1-Zi)/2, shots)
p1 = np.sum(result)/shots
E -= hz * (1-2*p1)
E_exact -= hz*Zi
ZZi_state = P_i(3,Zi_state,(i+1)%n)
ZZi = np.vdot(psi,ZZi_state).real
result = rng.binomial( 1, (1-ZZi)/2, shots)
p1 = np.sum(result)/shots
E -= (1-2*p1)
E_exact -= ZZi
Xi_state = P_i(1,psi,i)
Xi = np.vdot(psi,Xi_state).real
result = rng.binomial( 1, (1-Xi)/2, shots)
p1 = np.sum(result)/shots
E -= hx * (1-2*p1)
E_exact -= hx*Xi
return [E,E_exact]
def heisenberg_H(J,psi,output_gradient=False,add_stochastic_noise=False,shots=1024):
# normalizes H so that B = 1.
if not add_stochastic_noise:
ket = np.zeros_like(psi)
if not output_gradient:
n = int(np.log2(np.size(psi)))
elif output_gradient:
n = len(np.shape(psi))-1
for i in range(n):
Zi = P_i(3,psi,i,leave_first_index=output_gradient)
ket += J*P_i(3,Zi,(i+1)%n,leave_first_index=output_gradient) + Zi
Xi = P_i(1,psi,i,leave_first_index=output_gradient)
ket += J*P_i(1,Xi,(i+1)%n,leave_first_index=output_gradient)
Yi = P_i(2,psi,i,leave_first_index=output_gradient)
ket += J*P_i(2,Yi,(i+1)%n,leave_first_index=output_gradient)
if output_gradient:
E = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(n),range(1,n+1)) ))
E[1:] = 2*E[1:]
return E
elif not output_gradient:
return np.vdot(psi,ket).real
elif add_stochastic_noise:
rng = np.random.default_rng()
E = 0
E_exact = 0
n = int(np.log2(np.size(psi)))
for i in range(n):
Zi_state = P_i(3,psi,i)
Zi = np.vdot(psi,Zi_state).real
result = rng.binomial( 1, (1-Zi)/2, shots)
p1 = np.sum(result)/shots
E += (1-2*p1)
E_exact += Zi
ZZi_state = P_i(3,Zi_state,(i+1)%n)
ZZi = np.vdot(psi,ZZi_state).real
result = rng.binomial( 1, (1-ZZi)/2, shots)
p1 = np.sum(result)/shots
E += J*(1-2*p1)
E_exact += J*ZZi
Xi_state = P_i(1,psi,i)
XXi_state = P_i(1,Xi_state,(i+1)%n)
XXi = np.vdot(psi,XXi_state).real
result = rng.binomial( 1, (1-XXi)/2, shots)
p1 = np.sum(result)/shots
E += J*(1-2*p1)
E_exact += J*XXi
Yi_state = P_i(2,psi,i)
YYi_state = P_i(2,Yi_state,(i+1)%n)
YYi = np.vdot(psi,YYi_state).real
result = rng.binomial( 1, (1-YYi)/2, shots)
p1 = np.sum(result)/shots
E += J*(1-2*p1)
E_exact += J*YYi
return [E,E_exact]
def XY_H(Jz,Jxy,psi,output_gradient=False):
ket = np.zeros_like(psi)
if not output_gradient:
n = int(np.log2(np.size(psi)))
elif output_gradient:
n = len(np.shape(psi))-1
for i in range(n):
Zi = P_i(3,psi,i,leave_first_index=output_gradient)
ket += Jz*P_i(3,Zi,(i+1)%n,leave_first_index=output_gradient)
Xi = P_i(1,psi,i,leave_first_index=output_gradient)
ket -= Jxy*P_i(1,Xi,(i+1)%n,leave_first_index=output_gradient)
Yi = P_i(2,psi,i,leave_first_index=output_gradient)
ket -= Jxy*P_i(2,Yi,(i+1)%n,leave_first_index=output_gradient)
if output_gradient:
E = np.real(np.tensordot( np.conj(psi[0]), ket, axes = (range(n),range(1,n+1)) ))
E[1:] = 2*E[1:]
return E
elif not output_gradient:
return np.vdot(psi,ket).real
return E
def optimize(n,l,hx=1.5,hz=0.1,method='BFGS',gpu=True,start_from_saved=False,theta0=[],jac=True):
if start_from_saved:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_cx/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)+'/theta.csv',delimiter=',')
elif len(theta0) == 0:
theta0 = np.random.rand(n+l*n)*2*np.pi
if gpu:
return minimize(ising_E_from_theta_lc_gpu,theta0,args=(n,hx,hz,jac),method=method,jac=jac)
elif not gpu:
return minimize(ising_E_from_theta_lc,theta0,args=(n,hx,hz,jac),method=method,jac=jac)
def optimize_symm(n,l,hx,hz,method='BFGS',maxiter=2000,jac=False,start_from_saved=False,gpu=True,theta0=[],start_from_previous_hx=False,start_from_next_hx=False):
if start_from_previous_hx:
if hx == 0.3:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx0.2_hz'+str(hz)+'/theta.csv')
elif hx == 0.4:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx0.3_hz'+str(hz)+'/theta.csv')
elif hx == 0.5:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx0.4_hz'+str(hz)+'/theta.csv')
elif hx == 0.2:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx0.1_hz'+str(hz)+'/theta.csv')
elif start_from_next_hx:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx'+str(hx+0.1)+'_hz'+str(hz)+'/theta.csv')
elif start_from_saved:
theta0 = np.genfromtxt('/your_directory/saved_parameters/ising/ALAy_symm/n'+str(n)+'_l'+str(l)+'_hx'+str(hx)+'_hz'+str(hz)+'/theta.csv')
if len(theta0) > 2*(l+1):
theta0_symm = np.zeros(2+2*l)
from library import theta_ALAy_to_symm
for i in range(len(theta0)):
theta0_symm[theta_ALAy_to_symm(i,n)] = theta0[i]
theta0 = theta0_symm
elif len(theta0) == 0:
theta0 = np.random.rand(2+l*2)*2*np.pi
return minimize(ising_E_from_theta_lc_symm,theta0,args=(n,hx,hz,jac,gpu),method=method,jac=jac,options={'maxiter':maxiter})
def optimize_symm_Heisenberg(n,l,J,B,method='TNC',maxiter=2000,jac=True,start_from_saved=False,gpu=False,start_from_previous_l=False,theta0=[]):
if start_from_saved:
theta0 = np.genfromtxt('/your_directory/saved_parameters/Heisenberg/ALAy_symm/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)+'/theta.csv')
elif start_from_previous_l:
theta0 = np.genfromtxt('/your_directory/saved_parameters/Heisenberg/ALAy_symm/n'+str(n)+'_l'+str(l-1)+'_B'+str(B)+'_J'+str(J)+'/theta.csv')
theta0_symm = np.zeros(2*l)
from library import theta_ALAy_to_symm
for i in range(len(theta0)):
theta0_symm[theta_ALAy_to_symm(i,n)] = theta0[i]
theta0 = theta0_symm
theta0 = np.concatenate(([0,0],theta0))
if len(theta0) > 2*(l+1):
theta0_symm = np.zeros(2+2*l)
from library import theta_ALAy_to_symm
for i in range(len(theta0)):
theta0_symm[theta_ALAy_to_symm(i,n)] = theta0[i]
theta0 = theta0_symm
elif len(theta0) == 0:
theta0 = np.random.rand(2+l*2)*2*np.pi
return minimize(heisenberg_E_from_theta_lc_symm,theta0,args=(n,J,B,jac,gpu),method=method,jac=jac,options={'maxiter':maxiter})
def optimize_Heisenberg(n,l,J,B,method='TNC',start_from_saved=False,start_from_previous_l=False,gpu=False,theta0=[],jac=True):
if start_from_previous_l:
theta0 = np.genfromtxt('/your_directory/saved_parameters/Heisenberg/ALAy_cx/n'+str(n)+'_l'+str(l-1)+'_B'+str(B)+'_J'+str(J)+'/theta.csv')
# cyclically permute thetas
for layer in range(l+1):
theta_l = theta0[n*l:(n*(l+1))]
theta_l = np.roll(theta_l,-1)
theta0[n*l:(n*(l+1))] = theta_l
theta0 = np.concatenate( (np.zeros(n), theta0) )
elif start_from_saved:
theta0 = np.genfromtxt('/your_directory/saved_parameters/Heisenberg/ALAy_cx/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)+'/theta.csv')
#theta0 = np.genfromtxt('/your_directory/saved_parameters/Heisenberg/ALAy_symm/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)+'/theta.csv')
elif len(theta0)==0:
theta0 = np.random.rand(n+l*n)*2*np.pi
if gpu:
return minimize(Heisenberg_E_from_theta_lc_gpu,theta0,args=(n,J,B,jac),method=method,jac=jac)
else:
return minimize(Heisenberg_E_from_theta_lc,theta0,args=(n,J,B,jac),method=method,jac=jac)
def optimize_XY(n,l,Jz,Jxy,method='TNC',start_from_saved=False,start_from_previous_l=False,gpu=False,theta0=[],jac=True):
if start_from_previous_l:
theta0 = np.genfromtxt('/your_directory/saved_parameters/XY/ALAy_cx/n'+str(n)+'_l'+str(l-1)+'_Jz'+str(Jz)+'_Jxy'+str(Jxy)+'/theta.csv')
# cyclically permute thetas
for layer in range(l+1):
theta_l = theta0[n*l:(n*(l+1))]
theta_l = np.roll(theta_l,-1)
theta0[n*l:(n*(l+1))] = theta_l
theta0 = np.concatenate( (np.zeros(n), theta0) )
elif start_from_saved:
theta0 = np.genfromtxt('/your_directory/saved_parameters/XY/ALAy_cx/n'+str(n)+'_l'+str(l)+'_Jz'+str(Jz)+'_Jxy'+str(Jxy)+'/theta.csv')
#theta0 = np.genfromtxt('/your_directory/saved_parameters/Heisenberg/ALAy_symm/n'+str(n)+'_l'+str(l)+'_B'+str(B)+'_J'+str(J)+'/theta.csv')
elif len(theta0)==0:
theta0 = np.random.rand(n+l*n)*2*np.pi
if gpu:
return minimize(XY_E_from_theta_lc_gpu,theta0,args=(n,Jz,Jxy,jac),method=method,jac=jac)
else:
return minimize(XY_E_from_theta_lc,theta0,args=(n,Jz,Jxy,jac),method=method,jac=jac)
def optimize_machine(backend_name,n,l,hx,hz,shots=1024,maxiter = 2000, c0 = 0.6283185307179586, c1 = 0.1, c2 = 0.602, c3 = 0.101, c4 = 0,ansatz='ALAy',symm=True,include_exact=True,gpu=False,readout_mitigate=True):
from energy_evaluation import Ising_E_from_theta_machine
from qiskit.aqua.components.optimizers import SPSA
if symm:
numParams = 2*(l+1)
elif not symm:
numParams = n*(l+1)
def machine_cost_fn(theta):
num_thetas = len(theta)//numParams
theta_reshape = []
for i in range(num_thetas):
theta_reshape.append(theta[i*numParams:(i+1)*numParams])
if symm:
theta_reshape = [[ theta_i[theta_ALAy_to_symm(which_theta,n)] for which_theta in range(n*(l+1))] for theta_i in theta_reshape]
if include_exact and not gpu:
E_exact = [ising_E_from_theta_lc(theta_i,n,hx,hz,False,False) for theta_i in theta_reshape]
elif include_exact and gpu:
E_exact = [ising_E_from_theta_lc_gpu(theta_i,n,hx,hz,False,False) for theta_i in theta_reshape]
else:
E_exact = []
E,dE = Ising_E_from_theta_machine(n,theta_reshape,backend_name,['VQE'],shots,hx,hz,E_exact,[],symm,readout_mitigate=readout_mitigate,input_condensed_theta=False)
return E
theta0 = np.random.rand(numParams)*2*np.pi
optimizer = SPSA(maxiter=maxiter, c0=c0, c1=c1, c2=c2, c3=c3, c4=c4)
optimizer.set_max_evals_grouped(2)
opt = optimizer.optimize(numParams, machine_cost_fn, initial_point=theta0 )
return opt
def saveParams(theta,E,directory):
if not os.path.isdir(directory):
os.mkdir(directory)
print('made directory')
if not os.path.isfile(directory+'/E.csv'):
with open(directory+'/E.csv','w') as fp:
pass
if not os.path.isfile(directory+'/theta.csv'):
with open(directory+'/theta.csv','w') as fp:
pass
if not os.path.isfile(directory+'/E_all.csv'):
with open(directory+'/E_all.csv','w') as fp:
pass
with open(directory+'/E_all.csv', 'a', newline = '') as csvfile:
jobwriter = csv.writer(csvfile, delimiter=',', quotechar='|', quoting=csv.QUOTE_MINIMAL)
jobwriter.writerow([E])
E_previous = np.genfromtxt(directory+'/E.csv')
if E_previous.size == 0 or E < E_previous:
np.savetxt(directory+'/E.csv',[E],fmt='%.18f')
np.savetxt(directory+'/theta.csv',theta,delimiter=',',fmt='%.18f')
| 32.519742
| 276
| 0.680905
| 8,445
| 45,300
| 3.457075
| 0.039195
| 0.110293
| 0.043158
| 0.044597
| 0.885563
| 0.863744
| 0.844973
| 0.821853
| 0.803288
| 0.793252
| 0
| 0.027129
| 0.151302
| 45,300
| 1,392
| 277
| 32.543103
| 0.732248
| 0.051214
| 0
| 0.772358
| 0
| 0
| 0.046332
| 0.0306
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030714
| false
| 0.00271
| 0.023487
| 0
| 0.102078
| 0.009033
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a3a2a824f056a27e0d57907e9e9ad8f94db25dd4
| 131
|
py
|
Python
|
rlgym/utils/reward_functions/common_rewards/__init__.py
|
Rolv-Arild/rocket-league-gym
|
f1200c161fdd4f720c52b0f962907298587102a5
|
[
"Apache-2.0"
] | 63
|
2021-03-07T00:00:09.000Z
|
2022-03-27T16:11:26.000Z
|
rlgym/utils/reward_functions/common_rewards/__init__.py
|
Rolv-Arild/rocket-league-gym
|
f1200c161fdd4f720c52b0f962907298587102a5
|
[
"Apache-2.0"
] | 21
|
2021-03-12T16:02:30.000Z
|
2022-03-29T01:59:32.000Z
|
rlgym/utils/reward_functions/common_rewards/__init__.py
|
Rolv-Arild/rocket-league-gym
|
f1200c161fdd4f720c52b0f962907298587102a5
|
[
"Apache-2.0"
] | 23
|
2021-03-12T16:04:35.000Z
|
2022-03-28T15:49:24.000Z
|
from .ball_goal_rewards import *
from .conditional_rewards import *
from .misc_rewards import *
from .player_ball_rewards import *
| 26.2
| 34
| 0.816794
| 18
| 131
| 5.611111
| 0.444444
| 0.514851
| 0.504951
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122137
| 131
| 4
| 35
| 32.75
| 0.878261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
6ed0d8d43166551421447915edcf0b873ed43a16
| 5,161
|
py
|
Python
|
test.py
|
philbarker/ocxmd
|
c6374a24e9616bed647020bb9cfebfe1794523b9
|
[
"Apache-2.0"
] | 8
|
2019-01-26T17:39:18.000Z
|
2022-01-21T09:34:41.000Z
|
test.py
|
philbarker/ocxmd
|
c6374a24e9616bed647020bb9cfebfe1794523b9
|
[
"Apache-2.0"
] | 4
|
2019-02-01T17:18:32.000Z
|
2019-08-16T14:03:23.000Z
|
test.py
|
philbarker/ocxmd
|
c6374a24e9616bed647020bb9cfebfe1794523b9
|
[
"Apache-2.0"
] | 1
|
2020-02-20T14:11:33.000Z
|
2020-02-20T14:11:33.000Z
|
import markdown, pytest
from ocxmd import OCXMetadata
TESTINPUT_1_1 = """---
"@context": "http://schema.org/"
"@id": "#lesson1"
"@type": "CreativeWork"
---
#YAML to JSON-LD test
I started with some YAML and turned it into JSON-LD
"""
TESTINPUT_1_2 = """---
"@id": "#lesson1"
"@type": "CreativeWork"
---
#YAML to JSON-LD test
I started with some YAML and turned it into JSON-LD
"""
HTMLEXPECTED_1 = """<script type="application/ld+json">{"@context": "http://schema.org/", "@id": "#lesson1", "@type": "CreativeWork"}</script>
<h1>YAML to JSON-LD test</h1>
<p>I started with some YAML and turned it into JSON-LD</p>"""
METADATAEXPECTED_1 = {
1: {"@context": "http://schema.org/", "@id": "#lesson1", "@type": "CreativeWork"}
}
TESTINPUT = """---
"@id": "#lesson1"
name: "Test Lesson 1"
"@type":
- oer:Lesson
- CreativeWork
learningResourceType: LessonPlan
hasPart: {
"@id": "#activity1"
}
author:
"@type": Person
name: Fred Blogs
---
#YAML to JSON-LD test
I started with some YAML and turned it into JSON-LD
Here is some more YAML
---
"@id": "#activity1"
"@type":
- oer:Activity
- CreativeWork
name: "Test Activity 1.1"
learningResourceType: Activity
---
"""
HTMLEXPECTED_3 = """<script type="application/ld+json">{"@context": ["http://schema.org", {"oer": "http://oerschema.org/"}, {"ocx": "https://github.com/K12OCX/k12ocx-specs/"}], "@id": "#lesson1", "name": "Test Lesson 1", "@type": ["oer:Lesson", "CreativeWork"], "learningResourceType": "LessonPlan", "hasPart": {"@id": "#activity1"}, "author": {"@type": "Person", "name": "Fred Blogs"}}</script>
<h1>YAML to JSON-LD test</h1>
<p>I started with some YAML and turned it into JSON-LD</p>
<p>Here is some more YAML</p>
<script type="application/ld+json">{"@context": ["http://schema.org", {"oer": "http://oerschema.org/"}, {"ocx": "https://github.com/K12OCX/k12ocx-specs/"}], "@id": "#activity1", "@type": ["oer:Activity", "CreativeWork"], "name": "Test Activity 1.1", "learningResourceType": "Activity"}</script>"""
HTMLEXPECTED_2 = """<script type="application/ld+json">{"@context": "http://schema.org", "@id": "#lesson1", "name": "Test Lesson 1", "@type": ["oer:Lesson", "CreativeWork"], "learningResourceType": "LessonPlan", "hasPart": {"@id": "#activity1"}, "author": {"@type": "Person", "name": "Fred Blogs"}}</script>
<h1>YAML to JSON-LD test</h1>
<p>I started with some YAML and turned it into JSON-LD</p>
<p>Here is some more YAML</p>
<script type="application/ld+json">{"@context": "http://schema.org", "@id": "#activity1", "@type": ["oer:Activity", "CreativeWork"], "name": "Test Activity 1.1", "learningResourceType": "Activity"}</script>"""
METADATAEXPECTED_2 = {
1: {
"@context": "http://schema.org",
"@id": "#lesson1",
"name": "Test Lesson 1",
"@type": ["oer:Lesson", "CreativeWork"],
"learningResourceType": "LessonPlan",
"hasPart": {"@id": "#activity1"},
"author": {"@type": "Person", "name": "Fred Blogs"},
},
2: {
"@context": "http://schema.org",
"@id": "#activity1",
"@type": ["oer:Activity", "CreativeWork"],
"name": "Test Activity 1.1",
"learningResourceType": "Activity",
},
}
METADATAEXPECTED_3 = {
1: {
"@context": [
"http://schema.org",
{"oer": "http://oerschema.org/"},
{"ocx": "https://github.com/K12OCX/k12ocx-specs/"},
],
"@id": "#lesson1",
"name": "Test Lesson 1",
"@type": ["oer:Lesson", "CreativeWork"],
"learningResourceType": "LessonPlan",
"hasPart": {"@id": "#activity1"},
"author": {"@type": "Person", "name": "Fred Blogs"},
},
2: {
"@context": [
"http://schema.org",
{"oer": "http://oerschema.org/"},
{"ocx": "https://github.com/K12OCX/k12ocx-specs/"},
],
"@id": "#activity1",
"@type": ["oer:Activity", "CreativeWork"],
"name": "Test Activity 1.1",
"learningResourceType": "Activity",
},
}
YAML_CONTEXT = """
"@context":
- "http://schema.org"
- "oer": "http://oerschema.org/"
- "ocx": "https://github.com/K12OCX/k12ocx-specs/"
"""
def test1_1():
md = markdown.Markdown(extensions=["ocxmd"])
html = md.convert(TESTINPUT_1_1)
assert md.meta == METADATAEXPECTED_1
assert html == HTMLEXPECTED_1
def test1_2():
md = markdown.Markdown(
extensions=["ocxmd"],
extension_configs={"ocxmd": {"context": "'@context' : 'http://schema.org'"}},
)
html = md.convert(TESTINPUT_1_1)
assert md.meta == METADATAEXPECTED_1
assert html == HTMLEXPECTED_1
def test2():
md = markdown.Markdown(
extensions=["ocxmd"],
extension_configs={"ocxmd": {"context": "'@context' : 'http://schema.org'"}},
)
html = md.convert(TESTINPUT)
assert md.meta == METADATAEXPECTED_2
assert html == HTMLEXPECTED_2
def test3():
md = markdown.Markdown(
extensions=["ocxmd"], extension_configs={"ocxmd": {"context": YAML_CONTEXT}}
)
html = md.convert(TESTINPUT)
assert md.meta == METADATAEXPECTED_3
assert html == HTMLEXPECTED_3
| 32.055901
| 395
| 0.591165
| 587
| 5,161
| 5.148211
| 0.120954
| 0.05096
| 0.078756
| 0.092654
| 0.915619
| 0.896095
| 0.896095
| 0.895764
| 0.864659
| 0.844474
| 0
| 0.022175
| 0.187367
| 5,161
| 160
| 396
| 32.25625
| 0.698379
| 0
| 0
| 0.613139
| 0
| 0.036496
| 0.64503
| 0.068398
| 0
| 0
| 0
| 0
| 0.058394
| 1
| 0.029197
| false
| 0
| 0.014599
| 0
| 0.043796
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
42fda4f0bc95578e4d9d4e26c33b3502b39da8ff
| 46
|
pyw
|
Python
|
make_gui_exe/text2qti_tk.pyw
|
firasm/text2qti
|
588b54aab40df406a7ba24f93876d5db2c7a4757
|
[
"BSD-3-Clause"
] | 98
|
2020-04-02T18:28:56.000Z
|
2022-03-23T23:23:26.000Z
|
make_gui_exe/text2qti_tk.pyw
|
firasm/text2qti
|
588b54aab40df406a7ba24f93876d5db2c7a4757
|
[
"BSD-3-Clause"
] | 50
|
2020-04-25T02:09:09.000Z
|
2022-03-11T00:29:39.000Z
|
make_gui_exe/text2qti_tk.pyw
|
firasm/text2qti
|
588b54aab40df406a7ba24f93876d5db2c7a4757
|
[
"BSD-3-Clause"
] | 35
|
2020-04-07T06:45:58.000Z
|
2022-01-02T10:45:51.000Z
|
import text2qti.gui.tk
text2qti.gui.tk.main()
| 15.333333
| 22
| 0.782609
| 8
| 46
| 4.5
| 0.625
| 0.611111
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046512
| 0.065217
| 46
| 2
| 23
| 23
| 0.790698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
6e45756a8bd1da17ba6b4f096a69de3075d42b92
| 2,600
|
py
|
Python
|
AdventOfCode2016/Day8/Day8.py
|
MattTitmas/AdventOfCode
|
36be4f6bf973f77ff93b08dc69c977bb11951f27
|
[
"MIT"
] | null | null | null |
AdventOfCode2016/Day8/Day8.py
|
MattTitmas/AdventOfCode
|
36be4f6bf973f77ff93b08dc69c977bb11951f27
|
[
"MIT"
] | null | null | null |
AdventOfCode2016/Day8/Day8.py
|
MattTitmas/AdventOfCode
|
36be4f6bf973f77ff93b08dc69c977bb11951f27
|
[
"MIT"
] | null | null | null |
def part1():
values = [i.split(" ") for i in open("input.txt").read().split("\n")]
lights = [[False]*50 ,[False]*50,[False]*50,[False]*50,[False]*50,[False]*50]
for command in values:
if command[0] == "rect":
length, height = (int(i) for i in command[1].split("x"))
for i in range(length):
for j in range(height):
lights[j][i] = True
pass
elif command[1] == "column":
column, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[-1][column]
for i in range(5,0,-1):
lights[i][column] = lights[i-1][column]
lights[0][column] = stored
else:
row, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[row][-1]
for i in range(49, 0, -1):
lights[row][i] = lights[row][i-1]
lights[row][0] = stored
total = 0
for i in lights:
for j in i:
total += j
return total
def part2():
values = [i.split(" ") for i in open("input.txt").read().split("\n")]
lights = [[False]*50 ,[False]*50,[False]*50,[False]*50,[False]*50,[False]*50]
for command in values:
if command[0] == "rect":
length, height = (int(i) for i in command[1].split("x"))
for i in range(length):
for j in range(height):
lights[j][i] = True
pass
elif command[1] == "column":
column, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[-1][column]
for i in range(5,0,-1):
lights[i][column] = lights[i-1][column]
lights[0][column] = stored
else:
row, rotation = int(command[2].split("=")[1]), int(command[-1])
for _ in range(rotation):
stored = lights[row][-1]
for i in range(49, 0, -1):
lights[row][i] = lights[row][i-1]
lights[row][0] = stored
total = 0
for i in lights:
toPrint = ""
count = 0
for j in i:
toPrint += "#" if j else " "
count = (count+1) % 5
if count == 0:
toPrint += " "
print(toPrint)
return total
print(f"Answer to part 1: {part1()}")
print(f"Answer to part 2: {part2()}")
| 35.616438
| 81
| 0.46
| 333
| 2,600
| 3.57958
| 0.141141
| 0.040268
| 0.060403
| 0.11745
| 0.885906
| 0.855705
| 0.855705
| 0.855705
| 0.855705
| 0.855705
| 0
| 0.04911
| 0.373462
| 2,600
| 73
| 82
| 35.616438
| 0.682627
| 0
| 0
| 0.818182
| 0
| 0
| 0.041138
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030303
| false
| 0.030303
| 0
| 0
| 0.060606
| 0.045455
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2883c403e81d4955bffeb33ffc1e00b4297b627f
| 6,416
|
py
|
Python
|
tests/full_wlm/test_generic_orc_launch_batch.py
|
MattToast/SmartSim
|
4bd5e231445abd9b888561930db859062708678a
|
[
"BSD-2-Clause"
] | null | null | null |
tests/full_wlm/test_generic_orc_launch_batch.py
|
MattToast/SmartSim
|
4bd5e231445abd9b888561930db859062708678a
|
[
"BSD-2-Clause"
] | null | null | null |
tests/full_wlm/test_generic_orc_launch_batch.py
|
MattToast/SmartSim
|
4bd5e231445abd9b888561930db859062708678a
|
[
"BSD-2-Clause"
] | null | null | null |
import os.path as osp
import time
import pytest
from smartsim import Experiment, status
# retrieved from pytest fixtures
if pytest.test_launcher not in pytest.wlm_options:
pytestmark = pytest.mark.skip(reason="Not testing WLM integrations")
def test_launch_orc_auto_batch(fileutils, wlmutils):
"""test single node orchestrator"""
launcher = wlmutils.get_test_launcher()
exp_name = "test-launch-auto-orc-batch"
exp = Experiment(exp_name, launcher=launcher)
test_dir = fileutils.make_test_dir()
# batch = False to launch on existing allocation
network_interface = wlmutils.get_test_interface()
orc = exp.create_database(
6780, batch=True, interface=network_interface, single_cmd=False
)
if wlmutils.get_test_launcher() == "lsf":
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_walltime("00:02")
if wlmutils.get_test_launcher() == "cobalt":
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_queue("debug-flat-quad")
orc.batch_settings.set_walltime("00:02:00")
orc.set_path(test_dir)
exp.start(orc, block=True)
statuses = exp.get_status(orc)
# don't use assert so that we don't leave an orphan process
if status.STATUS_FAILED in statuses:
exp.stop(orc)
assert False
exp.stop(orc)
statuses = exp.get_status(orc)
assert all([stat == status.STATUS_CANCELLED for stat in statuses])
def test_launch_cluster_orc_batch_single(fileutils, wlmutils):
"""test clustered 3-node orchestrator with single command"""
# TODO detect number of nodes in allocation and skip if not sufficent
launcher = wlmutils.get_test_launcher()
exp_name = "test-launch-auto-cluster-orc-batch-single"
exp = Experiment(exp_name, launcher=launcher)
test_dir = fileutils.make_test_dir()
# batch = False to launch on existing allocation
network_interface = wlmutils.get_test_interface()
orc = exp.create_database(
6780, db_nodes=3, batch=True, interface=network_interface, single_cmd=True
)
if wlmutils.get_test_launcher() == "lsf":
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_walltime("00:02")
if wlmutils.get_test_launcher() == "cobalt":
# As Cobalt won't allow us to run two
# jobs in the same debug queue, we need
# to make sure the previous test's one is over
time.sleep(120)
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_queue("debug-flat-quad")
orc.batch_settings.set_walltime("00:02:00")
orc.set_path(test_dir)
exp.start(orc, block=True)
statuses = exp.get_status(orc)
# don't use assert so that orc we don't leave an orphan process
if status.STATUS_FAILED in statuses:
exp.stop(orc)
assert False
exp.stop(orc)
statuses = exp.get_status(orc)
assert all([stat == status.STATUS_CANCELLED for stat in statuses])
def test_launch_cluster_orc_batch_multi(fileutils, wlmutils):
"""test clustered 3-node orchestrator"""
# TODO detect number of nodes in allocation and skip if not sufficent
launcher = wlmutils.get_test_launcher()
exp_name = "test-launch-auto-cluster-orc-batch-multi"
exp = Experiment(exp_name, launcher=launcher)
test_dir = fileutils.make_test_dir()
# batch = False to launch on existing allocation
network_interface = wlmutils.get_test_interface()
orc = exp.create_database(
6780, db_nodes=3, batch=True, interface=network_interface, single_cmd=False
)
if wlmutils.get_test_launcher() == "lsf":
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_walltime("00:03")
if wlmutils.get_test_launcher() == "cobalt":
# As Cobalt won't allow us to run two
# jobs in the same debug queue, we need
# to make sure the previous test's one is over
time.sleep(120)
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_queue("debug-flat-quad")
orc.batch_settings.set_walltime("00:03:00")
orc.set_path(test_dir)
exp.start(orc, block=True)
statuses = exp.get_status(orc)
# don't use assert so that orc we don't leave an orphan process
if status.STATUS_FAILED in statuses:
exp.stop(orc)
assert False
exp.stop(orc)
statuses = exp.get_status(orc)
assert all([stat == status.STATUS_CANCELLED for stat in statuses])
def test_launch_cluster_orc_reconnect(fileutils, wlmutils):
"""test reconnecting to clustered 3-node orchestrator"""
launcher = wlmutils.get_test_launcher()
exp_name = "test-launch-cluster-orc-batch-reconect"
exp = Experiment(exp_name, launcher=launcher)
test_dir = fileutils.make_test_dir()
# batch = False to launch on existing allocation
network_interface = wlmutils.get_test_interface()
orc = exp.create_database(6780, db_nodes=3, batch=True, interface=network_interface)
orc.set_path(test_dir)
if wlmutils.get_test_launcher() == "lsf":
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_walltime("00:03")
if wlmutils.get_test_launcher() == "cobalt":
# As Cobalt won't allow us to run two
# jobs in the same debug queue, we need
# to make sure the previous test's one is over
time.sleep(120)
orc.batch_settings.set_account(wlmutils.get_test_account())
orc.batch_settings.set_queue("debug-flat-quad")
orc.batch_settings.set_walltime("00:03:00")
exp.start(orc, block=True)
statuses = exp.get_status(orc)
# don't use assert so that orc we don't leave an orphan process
if status.STATUS_FAILED in statuses:
exp.stop(orc)
assert False
exp.stop(orc)
exp_name = "test-orc-cluster-orc-batch-reconnect-2nd"
exp_2 = Experiment(exp_name, launcher=launcher)
checkpoint = osp.join(test_dir, "smartsim_db.dat")
reloaded_orc = exp_2.reconnect_orchestrator(checkpoint)
# let statuses update once
time.sleep(5)
statuses = exp_2.get_status(reloaded_orc)
for stat in statuses:
if stat == status.STATUS_FAILED:
exp_2.stop(reloaded_orc)
assert False
exp_2.stop(reloaded_orc)
| 36.248588
| 88
| 0.70293
| 913
| 6,416
| 4.738226
| 0.142388
| 0.049931
| 0.083218
| 0.087841
| 0.860379
| 0.83657
| 0.83657
| 0.814841
| 0.814841
| 0.814841
| 0
| 0.015202
| 0.200281
| 6,416
| 176
| 89
| 36.454545
| 0.827909
| 0.179551
| 0
| 0.75
| 0
| 0
| 0.071989
| 0.03542
| 0
| 0
| 0
| 0.005682
| 0.068966
| 1
| 0.034483
| false
| 0
| 0.034483
| 0
| 0.068966
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
95964216fccf50a510ca018e7e742904c1ef2d4b
| 275,172
|
py
|
Python
|
final_code/cosy_utils.py
|
madokast/cctpy
|
b02c64220ea533a4fc9cad0b882d1be6edadf1c0
|
[
"MIT"
] | 1
|
2021-12-27T13:20:43.000Z
|
2021-12-27T13:20:43.000Z
|
final_code/cosy_utils.py
|
madokast/cctpy
|
b02c64220ea533a4fc9cad0b882d1be6edadf1c0
|
[
"MIT"
] | null | null | null |
final_code/cosy_utils.py
|
madokast/cctpy
|
b02c64220ea533a4fc9cad0b882d1be6edadf1c0
|
[
"MIT"
] | null | null | null |
"""
CCT 建模优化代码
COSY 扩展代码
作者:赵润晓
日期:2021年6月3日
"""
import multiprocessing # 多线程计算
import time # 统计计算时长
from typing import Callable, Dict, Generic, Iterable, List, NoReturn, Optional, Tuple, TypeVar, Union
import matplotlib.pyplot as plt
import math
import random # 随机数
import sys
import os # 查看CPU核心数
import numpy
from scipy.integrate import solve_ivp # since v0.1.1 ODE45
import warnings # 提醒方法过时
from packages.constants import M, MM, LIGHT_SPEED, RAD, MRAD, J, eV, MeV, MeV_PER_C, T
from packages.base_utils import BaseUtils
from packages.point import P2, P3, ValueWithDistance
from packages.local_coordinate_system import LocalCoordinateSystem
from packages.line2s import Line2, StraightLine2, ArcLine2
from packages.line3s import Line3, RightHandSideLine3, FunctionLine3, TwoPointLine3, DiscretePointLine3
from packages.trajectory import Trajectory
from packages.magnets import ApertureObject, Magnet, UniformMagnet, LocalUniformMagnet, CombinedMagnet, QS, Q
from packages.cct import CCT, Wire, AGCCT_CONNECTOR
from packages.particles import Protons, RunningParticle, ParticleRunner, ParticleFactory, PhaseSpaceParticle
from packages.beamline import Beamline
from packages.plot import Plot2, Plot3
from packages.function_part import Function_Part
class CosyMap:
"""
用于分析 cosy 输出的任意阶 map
使用方法可见本文 if __name__ == "__main__": 后代码
"""
# COSY map 输出时每项长度
ITEM_LENGTH = len("-0.0000000E+00")
def __init__(self, map: str):
"""
初始化一个 map
使用方法见 if __name__ == "__main__":
"""
self.map = map
self.contributionLinesString = map.split('\n')
def apply(self, p0: PhaseSpaceParticle, order: int = 1, print_detail: bool = False, file=None) -> PhaseSpaceParticle:
"""
map 作用于相空间粒子 p0,返回作用后的结果
order 表示需要考虑的阶数,注意应不大于构造 CosyMap 时传入的阶数
print_detail 表示打印每个矩阵项的详细贡献,默认不打印
"""
x = 0.0
xp = 0.0
y = 0.0
yp = 0.0
for contributionLineString in self.contributionLinesString:
x_contribution_string = contributionLineString[0:CosyMap.ITEM_LENGTH + 1]
xp_contribution_string = contributionLineString[CosyMap.ITEM_LENGTH +
1: CosyMap.ITEM_LENGTH * 2 + 1]
y_contribution_string = contributionLineString[CosyMap.ITEM_LENGTH *
2 + 1: CosyMap.ITEM_LENGTH * 3 + 1]
yp_contribution_string = contributionLineString[CosyMap.ITEM_LENGTH *
3 + 1: CosyMap.ITEM_LENGTH * 4 + 1]
contribution_describing = contributionLineString[CosyMap.ITEM_LENGTH * 5 + 2:]
this_order = self.__order(contribution_describing)
if this_order > order:
break
contributionBy = self.__contribution_by(
contribution_describing, p0)
xContribution = float(x_contribution_string)
x += xContribution * contributionBy
xpContribution = float(xp_contribution_string)
xp += xpContribution * contributionBy
yContribution = float(y_contribution_string)
y += yContribution * contributionBy
ypContribution = float(yp_contribution_string)
yp += ypContribution * contributionBy
if print_detail:
if file is None:
print(f"{contribution_describing} {xContribution* contributionBy} {xpContribution* contributionBy} {yContribution* contributionBy} {ypContribution* contributionBy}")
else:
print(f"{contribution_describing} {xContribution* contributionBy} {xpContribution* contributionBy} {yContribution* contributionBy} {ypContribution* contributionBy}", file=file)
return PhaseSpaceParticle(x, xp, y, yp, p0.z, p0.delta)
def __order(self, contributionDescribing: str) -> int:
"""
内部方法
由 contribution_describing 查看这行 map 的阶数
"""
order = 0
for i in range(6):
if i == 4:
continue
order += int(contributionDescribing[i])
return order
def __contribution_by(self, contributionDescribing: str, pp: PhaseSpaceParticle) -> float:
"""
内部方法
当前行是如何作用于粒子的
要看懂只需要研究清楚 cosy map 每行的意义和具体映射方法
"""
by = 1.0
x = pp.x
xp = pp.xp
y = pp.y
yp = pp.yp
delta = pp.delta
by_x: int = int(contributionDescribing[0])
by *= x ** by_x
by_xp = int(contributionDescribing[1])
by *= xp ** by_xp
by_y = int(contributionDescribing[2])
by *= y ** by_y
by_yp = int(contributionDescribing[3])
by *= yp ** by_yp
by_delta = int(contributionDescribing[5])
by *= delta ** by_delta
return by
def apply_phase_space_particles(self, ps: List[PhaseSpaceParticle], order: int = 1) -> List[PhaseSpaceParticle]:
"""
作用于多个粒子
"""
return [self.apply(p, order) for p in ps]
def compute_chromatic_dispersion(self, delta_δ: float = 0.01,
order: int = 1,
centerKineticEnergy_MeV: float = 215.0,
p0: Optional[PhaseSpaceParticle] = None
) -> float:
"""
计算色散
非常粗略的方法,不推荐使用
计算方法如下:
1. 生成一个相空间粒子 x=x'=y=y'=0,δ=1%
2. 经 map 作用,得到作用后的粒子 x=x
3. 则色散为 x/1%
返回值即为 x,单位 m
"""
if p0 is None:
p0 = PhaseSpaceParticle(0, 0, 0, 0, 0, delta_δ)
# 转为能量分散,用于 COSY
p0 = PhaseSpaceParticle.convert_delta_from_momentum_dispersion_to_energy_dispersion(
p0, centerKineticEnergy_MeV
)
# 作用
p1 = self.apply(p0, order)
# 转回
p1 = PhaseSpaceParticle.convert_delta_from_energy_dispersion_to_momentum_dispersion(
p1, centerKineticEnergy_MeV
)
return p1.x - p0.x
class SR:
"""
粒子脚本生成
"""
COLOR_BLACK = 1
COLOR_BLUE = 2
COLOR_RED = 3
COLOR_YELLOW = 4
COLOR_GREEN = 5
COLOR_WHITE = 10
@classmethod
def to_cosy_sr(cls, phase_space_particle: Union[PhaseSpaceParticle, List[PhaseSpaceParticle]], color: int = COLOR_BLUE) -> str:
"""
将相空间粒子 PhaseSpaceParticle 转为 COSY 脚本 SR < x > < xp > < y > < yp > <T> <dp> <G> <Z> <color> ;
color 表示
"""
if isinstance(phase_space_particle, PhaseSpaceParticle):
return (
f"SR {phase_space_particle.x} {phase_space_particle.xp} "
+ f"{phase_space_particle.y} {phase_space_particle.yp} 0 "
+ f"{phase_space_particle.delta} 0 0 {color} ;"
)
elif isinstance(phase_space_particle, List):
return '\n'.join([cls.to_cosy_sr(p) for p in phase_space_particle])
else:
print(
f"phase_space_particle = {phase_space_particle}输入不是 PhaseSpaceParticle 对象,或 PhaseSpaceParticle 对象数组")
class MagnetSlicer:
"""
磁场切片
"""
@staticmethod
def slice_trajectory(
magnet: Magnet,
trajectory: Line2,
Bp: float,
aperture: float = 60*MM,
good_field_area_width: float = 60*MM,
min_step_length: float = 1*MM,
tolerance: float = 0.1,
ignore_radisu: float = 50*M,
ignore_gradient: float = 0.1,
ignore_second_gradient: float = 1.0,
) -> List[str]:
"""
将磁铁切片,得到可以导入 cosy 的脚本
magnet 切片的磁铁/磁场,一般是 Beamline
trajectory 设计轨道,切片磁场计算位于轨道上
Bp 磁钢度
aperture 元件孔径
good_field_area_width 好长度总长度
min_step_length 最小切片长度(如果相邻的切片参数几乎一致,代码会自动合并切片)
tolerance 容忍差值,差值范围内的切片会合并,减少总切片数目
ignore_radisu 偏转半径大于此值的偏转磁铁,将视为偏移段
ignore_gradient 梯度小于此值的四极场,将置零
ignore_second_gradient 二阶梯度小于此值的六极场,将置零
返回值为 cosy 切片脚本数组
"""
ret: List[str] = []
multipole_field_along_trajectory: List[ValueWithDistance[List[float]]] = (
magnet.multipole_field_along(
line2=trajectory,
order=2,
good_field_area_width=good_field_area_width,
step=min_step_length,
point_number=10
)
)
size = len(multipole_field_along_trajectory)
# 实际步长
real_step = multipole_field_along_trajectory[1].distance - \
multipole_field_along_trajectory[0].distance
i = 0
total_length = 0.0
while i < size-1:
multipole_field0: List[float] = multipole_field_along_trajectory[i].value
B0 = multipole_field0[0]
if (abs(B0) < 1e-6 or abs(Bp / B0) > ignore_radisu):
B0 = 0
T0 = multipole_field0[1]
if (abs(T0) < ignore_gradient):
T0 = 0
L0 = multipole_field0[2]
if (abs(L0) < ignore_second_gradient):
L0 = 0
Bs = [B0]
Ts = [T0]
Ls = [L0]
j = i+1 # 大漏洞,python 中的 for range 与其他语言的 for(;;) 不是完全相同的
for j in range(i+1, size-1):
multipole_field: List[float] = multipole_field_along_trajectory[j].value
B = multipole_field[0]
if (abs(B) < 1e-6 or abs(Bp / B) > ignore_radisu):
B = 0
T = multipole_field[1]
if (abs(T) < ignore_gradient):
T = 0
L = multipole_field[2]
if (abs(L) < ignore_second_gradient):
L = 0
Bs.append(B)
Ts.append(T)
Ls.append(L)
if (
BaseUtils.Statistic().add_all(Bs).undulate() > tolerance or
BaseUtils.Statistic().add_all(Ts).undulate() > tolerance or
BaseUtils.Statistic().add_all(Ls).undulate() > tolerance):
break
B0 = BaseUtils.Statistic().add_all(Bs).average()
T0 = BaseUtils.Statistic().add_all(Ts).average()
L0 = BaseUtils.Statistic().add_all(Ls).average()
length = real_step * (j-i)
total_length += length
i = j # !!
r = (ignore_radisu + 1) if abs(B0) < 1e-6 else Bp/B0 # 半径,有正负
cosy_script = None
if abs(r) > ignore_radisu:
b2 = T0 * aperture
b3 = L0 * aperture * aperture
cosy_script = f"M5 {length} {b2} {b3} 0 0 0 {aperture} ;"
else:
angle = BaseUtils.radian_to_angle(length/abs(r)) # 偏转角度
n1 = -r / B0 * T0
n2 = -r * r / B0 * L0
change_direct = 'CB ;' if r < 0 else '' # r<0 时改变偏转方向
cosy_script = f"{change_direct} MS {abs(r)} {angle} {aperture} {n1} {n2} 0 0 0 ; {change_direct}"
ret.append(cosy_script)
print(f"切片长度{len(ret)}")
return ret
@staticmethod
def slice_track(
magnet: Magnet,
track: Line3,
Bp: float,
aperture: float = 60*MM,
good_field_area_width: float = 60*MM,
min_step_length: float = 1*MM,
tolerance: float = 0.1,
ignore_radisu: float = 50*M,
ignore_gradient: float = 0.1,
ignore_second_gradient: float = 1.0,
) -> List[str]:
"""
将磁铁切片,得到可以导入 cosy 的脚本
magnet 切片的磁铁(磁场,一般是 Beamline)
track 粒子轨迹,三维曲线,切片磁场计算位于曲线上
Bp 磁钢度
aperture 元件孔径
good_field_area_width 好长度总长度
min_step_length 最小切片长度(如果相邻的切片参数几乎一致,代码会自动合并切片)
tolerance 容忍差值,差值范围内的切片会合并,减少总切片数目
ignore_radisu 偏转半径大于此值的偏转磁铁,将视为偏移段
ignore_gradient 梯度小于此值的四极场,将置零
ignore_second_gradient 二阶梯度小于此值的六极场,将置零
返回值为 cosy 切片脚本数组
"""
ret: List[str] = []
multipole_field_along_trajectory: List[ValueWithDistance[List[float]]] = (
magnet.multipole_field_along_line3(
line3=track,
order=2,
good_field_area_width=good_field_area_width,
step=min_step_length,
point_number=6
)
)
size = len(multipole_field_along_trajectory)
# 实际步长
real_step = multipole_field_along_trajectory[1].distance - \
multipole_field_along_trajectory[0].distance
i = 0
total_length = 0.0
while i < size-1:
multipole_field0: List[float] = multipole_field_along_trajectory[i].value
B0 = multipole_field0[0]
if (abs(Bp / B0) > ignore_radisu):
B0 = 0
T0 = multipole_field0[1]
if (abs(T0) < ignore_gradient):
T0 = 0
L0 = multipole_field0[2]
if (abs(L0) < ignore_second_gradient):
L0 = 0
Bs = [B0]
Ts = [T0]
Ls = [L0]
j = i+1
for j in range(i+1, size-1):
multipole_field: List[float] = multipole_field_along_trajectory[j].value
B = multipole_field[0]
if (abs(Bp / B) > ignore_radisu):
B = 0
T = multipole_field[1]
if (abs(T) < ignore_gradient):
T = 0
L = multipole_field[2]
if (abs(L) < ignore_second_gradient):
L = 0
Bs.append(B)
Ts.append(T)
Ls.append(L)
if (
BaseUtils.Statistic.add_all(Bs).undulate() > tolerance or
BaseUtils.Statistic.add_all(Ts).undulate() > tolerance or
BaseUtils.Statistic.add_all(Ls).undulate() > tolerance):
break
B0 = BaseUtils.Statistic().add_all(Bs).average()
T0 = BaseUtils.Statistic().add_all(Ts).average()
L0 = BaseUtils.Statistic().add_all(Ls).average()
length = real_step * (j-i)
total_length += length
i = j # !!
r = Bp/B0 # 半径,有正负
angle = BaseUtils.radian_to_angle(length/abs(r)) # 偏转角度
change_direct = 'CB ;' if r < 0 else '' # r<0 时改变偏转方向
n1 = -r / B0 * T0
n2 = -r * r / B0 * L0
b2 = T0 * aperture
b3 = L0 * aperture * aperture
cosy_script = None
if abs(r) > ignore_radisu:
cosy_script = f"M5 {length} {b2} {b3} 0 0 0 {aperture} ;"
else:
cosy_script = f"{change_direct} MS {abs(r)} {angle} {aperture} {n1} {n2} 0 0 0 ; {change_direct}"
ret.append(cosy_script)
print(f"切片长度{len(ret)}")
return ret
# 伪二阶指的是,发表的论文说是二阶,但是实际上没有
COSY_MAP_手动优化至伪二阶:str = """ 0.2596224 1.862474 0.0000000E+00 0.0000000E+00-0.2335949E-02 100000
-0.4184481 0.8498938 0.0000000E+00 0.0000000E+00-0.2059863E-02 010000
0.0000000E+00 0.0000000E+00 0.8024085 0.7785208 0.0000000E+00 001000
0.0000000E+00 0.0000000E+00-0.2431872 1.010301 0.0000000E+00 000100
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 1.000000 000010
-0.1512260E-02-0.1851132E-02 0.0000000E+00 0.0000000E+00 2.077882 000001
-36.79762 0.3799853 0.0000000E+00 0.0000000E+00 -3.178747 200000
-32.28684 8.076128 0.0000000E+00 0.0000000E+00 -2.747740 110000
-3.701351 19.78568 0.0000000E+00 0.0000000E+00-0.7074606 020000
0.0000000E+00 0.0000000E+00 64.99447 -80.86915 0.0000000E+00 101000
0.0000000E+00 0.0000000E+00 37.39107 -42.05058 0.0000000E+00 011000
32.32204 9.452636 0.0000000E+00 0.0000000E+00 0.1046102 002000
0.0000000E+00 0.0000000E+00 -30.35946 -86.78008 0.0000000E+00 100100
0.0000000E+00 0.0000000E+00 -2.282607 -36.54885 0.0000000E+00 010100
26.40022 12.21817 0.0000000E+00 0.0000000E+00 2.614883 001100
-3.297481 0.3029017 0.0000000E+00 0.0000000E+00 0.3620541 100001
-1.467918 -0.2241650 0.0000000E+00 0.0000000E+00-0.9810144E-01 010001
0.0000000E+00 0.0000000E+00 2.102548 1.892717 0.0000000E+00 001001
-12.28593 11.57747 0.0000000E+00 0.0000000E+00 1.049889 000200
0.0000000E+00 0.0000000E+00 2.377990 -0.9137184 0.0000000E+00 000101
0.6469745E-01-0.2457832 0.0000000E+00 0.0000000E+00 -2.150774 000002
2208.350 600.9479 0.0000000E+00 0.0000000E+00 0.4800303 300000
3183.246 437.3741 0.0000000E+00 0.0000000E+00-0.6924463 210000
700.2908 -503.9918 0.0000000E+00 0.0000000E+00 -51.67433 120000
-210.0108 -436.3370 0.0000000E+00 0.0000000E+00 -24.47946 030000
0.0000000E+00 0.0000000E+00 6878.961 4720.167 0.0000000E+00 201000
0.0000000E+00 0.0000000E+00 7723.168 4885.033 0.0000000E+00 111000
0.0000000E+00 0.0000000E+00 2788.928 625.5068 0.0000000E+00 021000
441.6392 -96.82496 0.0000000E+00 0.0000000E+00 -386.8777 102000
344.9275 64.93778 0.0000000E+00 0.0000000E+00 -192.5274 012000
0.0000000E+00 0.0000000E+00 -43.26836 131.5762 0.0000000E+00 003000
0.0000000E+00 0.0000000E+00 3702.737 3589.599 0.0000000E+00 200100
0.0000000E+00 0.0000000E+00 5236.387 2701.164 0.0000000E+00 110100
0.0000000E+00 0.0000000E+00 1629.480 -297.3564 0.0000000E+00 020100
4007.330 1089.172 0.0000000E+00 0.0000000E+00 -490.5289 101100
3304.206 1275.168 0.0000000E+00 0.0000000E+00 -221.4078 011100
0.0000000E+00 0.0000000E+00 714.1410 374.3655 0.0000000E+00 002100
-8.830783 44.05022 0.0000000E+00 0.0000000E+00 79.47883 200001
19.81528 55.03577 0.0000000E+00 0.0000000E+00 90.09481 110001
-18.26086 2.425744 0.0000000E+00 0.0000000E+00 28.64342 020001
0.0000000E+00 0.0000000E+00 -356.6401 153.3679 0.0000000E+00 101001
0.0000000E+00 0.0000000E+00 -165.1492 106.0792 0.0000000E+00 011001
-48.46345 17.45766 0.0000000E+00 0.0000000E+00 38.18411 002001
2160.418 972.9864 0.0000000E+00 0.0000000E+00 -184.4764 100200
1832.718 996.0644 0.0000000E+00 0.0000000E+00 -36.27540 010200
0.0000000E+00 0.0000000E+00 2380.284 74.62459 0.0000000E+00 001200
0.0000000E+00 0.0000000E+00 -133.5949 263.0683 0.0000000E+00 100101
0.0000000E+00 0.0000000E+00 5.933520 189.8872 0.0000000E+00 010101
-122.4003 40.11887 0.0000000E+00 0.0000000E+00 66.09130 001101
54.31327 13.69660 0.0000000E+00 0.0000000E+00-0.4620119E-01 100002
29.46330 6.929199 0.0000000E+00 0.0000000E+00 0.4950040 010002
0.0000000E+00 0.0000000E+00 28.51980 1.264422 0.0000000E+00 001002
0.0000000E+00 0.0000000E+00 1337.889 -87.13175 0.0000000E+00 000300
32.90641 54.65387 0.0000000E+00 0.0000000E+00 38.15580 000201
0.0000000E+00 0.0000000E+00 39.79807 10.32462 0.0000000E+00 000102
0.3070271 0.3335386 0.0000000E+00 0.0000000E+00 2.153353 000003
-19725.05 -13704.13 0.0000000E+00 0.0000000E+00 -7494.149 400000
-11539.71 -33135.91 0.0000000E+00 0.0000000E+00 -14625.19 310000
82262.05 -21213.37 0.0000000E+00 0.0000000E+00 -9141.453 220000
85928.22 -10009.62 0.0000000E+00 0.0000000E+00 -1268.951 130000
18091.48 -5194.403 0.0000000E+00 0.0000000E+00 63.83908 040000
0.0000000E+00 0.0000000E+00 -53812.80 -71627.90 0.0000000E+00 301000
0.0000000E+00 0.0000000E+00 -65301.93 -69248.22 0.0000000E+00 211000
0.0000000E+00 0.0000000E+00 81715.20 79583.18 0.0000000E+00 121000
0.0000000E+00 0.0000000E+00 49980.00 57602.41 0.0000000E+00 031000
-223324.4 -72833.16 0.0000000E+00 0.0000000E+00 -5196.396 202000
-244755.0 -81827.96 0.0000000E+00 0.0000000E+00 -9442.200 112000
-58314.27 -22731.84 0.0000000E+00 0.0000000E+00 -6795.256 022000
0.0000000E+00 0.0000000E+00 17596.02 -19374.56 0.0000000E+00 103000
0.0000000E+00 0.0000000E+00 13468.45 -13602.49 0.0000000E+00 013000
8316.783 2838.313 0.0000000E+00 0.0000000E+00 -126.0533 004000
0.0000000E+00 0.0000000E+00 -76273.22 -83100.33 0.0000000E+00 300100
0.0000000E+00 0.0000000E+00 18493.83 -36362.33 0.0000000E+00 210100
0.0000000E+00 0.0000000E+00 167115.5 110551.4 0.0000000E+00 120100
0.0000000E+00 0.0000000E+00 85222.21 56014.52 0.0000000E+00 030100
-359877.2 -117408.5 0.0000000E+00 0.0000000E+00 -18724.09 201100
-383547.1 -136151.3 0.0000000E+00 0.0000000E+00 -37587.87 111100
-59466.55 -30801.03 0.0000000E+00 0.0000000E+00 -18539.85 021100
0.0000000E+00 0.0000000E+00 146843.2 -50799.04 0.0000000E+00 102100
0.0000000E+00 0.0000000E+00 93809.44 -40507.38 0.0000000E+00 012100
57896.25 18213.85 0.0000000E+00 0.0000000E+00 -1271.416 003100
-14074.10 -3911.888 0.0000000E+00 0.0000000E+00 312.6780 300001
-24272.86 -6947.059 0.0000000E+00 0.0000000E+00 788.1283 210001
-12401.95 -2897.293 0.0000000E+00 0.0000000E+00 1798.788 120001
-1206.110 94.16301 0.0000000E+00 0.0000000E+00 768.2169 030001
0.0000000E+00 0.0000000E+00 -44333.29 -14449.08 0.0000000E+00 201001
0.0000000E+00 0.0000000E+00 -51861.27 -17585.70 0.0000000E+00 111001
0.0000000E+00 0.0000000E+00 -18647.55 -3237.079 0.0000000E+00 021001
-13605.76 -5541.075 0.0000000E+00 0.0000000E+00 -2261.311 102001
-6607.284 -2563.208 0.0000000E+00 0.0000000E+00 -1031.950 012001
0.0000000E+00 0.0000000E+00 316.1191 -217.3434 0.0000000E+00 003001
-127051.0 -39120.52 0.0000000E+00 0.0000000E+00 -12469.86 200200
-88951.03 -35695.48 0.0000000E+00 0.0000000E+00 -22697.37 110200
19026.72 52.34360 0.0000000E+00 0.0000000E+00 -9819.129 020200
0.0000000E+00 0.0000000E+00 371668.2 -29020.38 0.0000000E+00 101200
0.0000000E+00 0.0000000E+00 224461.2 -33819.87 0.0000000E+00 011200
170616.9 50440.18 0.0000000E+00 0.0000000E+00 -3636.908 002200
0.0000000E+00 0.0000000E+00 -45194.50 -14718.08 0.0000000E+00 200101
0.0000000E+00 0.0000000E+00 -55314.41 -14286.32 0.0000000E+00 110101
0.0000000E+00 0.0000000E+00 -17979.18 -315.2722 0.0000000E+00 020101
-56302.36 -18979.02 0.0000000E+00 0.0000000E+00 -4291.344 101101
-31386.53 -9991.950 0.0000000E+00 0.0000000E+00 -995.7887 011101
0.0000000E+00 0.0000000E+00 2664.391 -177.0831 0.0000000E+00 002101
-1247.217 -381.9987 0.0000000E+00 0.0000000E+00 -102.4518 200002
-1201.881 -358.5531 0.0000000E+00 0.0000000E+00 -137.8574 110002
191.3956 46.34423 0.0000000E+00 0.0000000E+00 -50.14874 020002
0.0000000E+00 0.0000000E+00 -1133.741 -901.7914 0.0000000E+00 101002
0.0000000E+00 0.0000000E+00 -495.1832 -446.0570 0.0000000E+00 011002
362.8025 122.7835 0.0000000E+00 0.0000000E+00 -23.21718 002002
0.0000000E+00 0.0000000E+00 228093.6 -23738.22 0.0000000E+00 100300
0.0000000E+00 0.0000000E+00 146416.2 -26757.41 0.0000000E+00 010300
224757.2 65387.14 0.0000000E+00 0.0000000E+00 -710.0104 001300
-38261.95 -11829.34 0.0000000E+00 0.0000000E+00 -1111.858 100201
-22541.83 -7135.731 0.0000000E+00 0.0000000E+00 359.7057 010201
0.0000000E+00 0.0000000E+00 2358.063 3564.706 0.0000000E+00 001201
0.0000000E+00 0.0000000E+00 -201.6746 -1261.619 0.0000000E+00 100102
0.0000000E+00 0.0000000E+00 179.5567 -695.6732 0.0000000E+00 010102
1500.669 393.7960 0.0000000E+00 0.0000000E+00 -113.3561 001102
-62.74669 -13.45078 0.0000000E+00 0.0000000E+00 -6.085800 100003
-45.98097 -10.93446 0.0000000E+00 0.0000000E+00 -4.515881 010003
0.0000000E+00 0.0000000E+00 17.07168 20.02339 0.0000000E+00 001003
91586.40 26446.30 0.0000000E+00 0.0000000E+00 2099.470 000400
0.0000000E+00 0.0000000E+00 1621.055 4487.435 0.0000000E+00 000301
918.5760 157.3208 0.0000000E+00 0.0000000E+00 -118.7128 000202
0.0000000E+00 0.0000000E+00 -87.43930 -9.354282 0.0000000E+00 000103
-5.348195 -1.737270 0.0000000E+00 0.0000000E+00 -2.244885 000004
1249811. 280326.4 0.0000000E+00 0.0000000E+00 -3343.434 500000
1653916. -62606.31 0.0000000E+00 0.0000000E+00 -76218.90 410000
-2039473. -2031937. 0.0000000E+00 0.0000000E+00 -386491.8 320000
-4205319. -3063535. 0.0000000E+00 0.0000000E+00 -469596.1 230000
-1646858. -1640022. 0.0000000E+00 0.0000000E+00 -200143.3 140000
-34490.98 -318662.4 0.0000000E+00 0.0000000E+00 -20765.10 050000
0.0000000E+00 0.0000000E+00 2888334. 1443025. 0.0000000E+00 401000
0.0000000E+00 0.0000000E+00 2227890. 376326.2 0.0000000E+00 311000
0.0000000E+00 0.0000000E+00 -5602970. -5168210. 0.0000000E+00 221000
0.0000000E+00 0.0000000E+00 -7167697. -5170500. 0.0000000E+00 131000
0.0000000E+00 0.0000000E+00 -1663390. -993293.2 0.0000000E+00 041000
9206280. 3233900. 0.0000000E+00 0.0000000E+00 1253815. 302000
0.1416927E+08 5043011. 0.0000000E+00 0.0000000E+00 2137608. 212000
3290598. 1313026. 0.0000000E+00 0.0000000E+00 1157147. 122000
-1042595. -294530.7 0.0000000E+00 0.0000000E+00 207083.4 032000
0.0000000E+00 0.0000000E+00 959668.4 1001463. 0.0000000E+00 203000
0.0000000E+00 0.0000000E+00 1953080. 1444336. 0.0000000E+00 113000
0.0000000E+00 0.0000000E+00 868031.1 361795.3 0.0000000E+00 023000
976334.0 280570.6 0.0000000E+00 0.0000000E+00 -36523.01 104000
669390.7 184318.3 0.0000000E+00 0.0000000E+00 -36305.79 014000
0.0000000E+00 0.0000000E+00 -62834.06 13058.40 0.0000000E+00 005000
0.0000000E+00 0.0000000E+00 3482419. 1621207. 0.0000000E+00 400100
0.0000000E+00 0.0000000E+00 6023067. 824406.1 0.0000000E+00 310100
0.0000000E+00 0.0000000E+00 801917.1 -4198829. 0.0000000E+00 220100
0.0000000E+00 0.0000000E+00 -948692.3 -3166720. 0.0000000E+00 130100
0.0000000E+00 0.0000000E+00 168452.4 -101044.9 0.0000000E+00 040100
0.1849996E+08 6332490. 0.0000000E+00 0.0000000E+00 2191689. 301100
0.2322010E+08 7912391. 0.0000000E+00 0.0000000E+00 3425593. 211100
1897256. 511806.8 0.0000000E+00 0.0000000E+00 1434602. 121100
-3222797. -1238509. 0.0000000E+00 0.0000000E+00 25240.07 031100
0.0000000E+00 0.0000000E+00 8014084. 4679466. 0.0000000E+00 202100
0.0000000E+00 0.0000000E+00 0.1337855E+08 6541504. 0.0000000E+00 112100
0.0000000E+00 0.0000000E+00 5951516. 1902507. 0.0000000E+00 022100
2849879. 545628.0 0.0000000E+00 0.0000000E+00 -504649.6 103100
2764921. 612439.8 0.0000000E+00 0.0000000E+00 -368807.2 013100
0.0000000E+00 0.0000000E+00 -511075.9 55486.90 0.0000000E+00 004100
206964.3 38280.76 0.0000000E+00 0.0000000E+00 -6714.624 400001
362118.5 24084.28 0.0000000E+00 0.0000000E+00 -54597.95 310001
-202231.2 -163607.0 0.0000000E+00 0.0000000E+00 -108433.5 220001
-440031.3 -185482.8 0.0000000E+00 0.0000000E+00 -85659.28 130001
-132077.5 -44897.47 0.0000000E+00 0.0000000E+00 -17673.28 040001
0.0000000E+00 0.0000000E+00 361391.7 125120.1 0.0000000E+00 301001
0.0000000E+00 0.0000000E+00 474201.9 152713.7 0.0000000E+00 211001
0.0000000E+00 0.0000000E+00 -604502.8 -311003.0 0.0000000E+00 121001
0.0000000E+00 0.0000000E+00 -399766.5 -234495.0 0.0000000E+00 031001
2729716. 909485.2 0.0000000E+00 0.0000000E+00 217983.1 202001
2866217. 937802.0 0.0000000E+00 0.0000000E+00 221866.2 112001
620306.9 190019.0 0.0000000E+00 0.0000000E+00 45774.68 022001
0.0000000E+00 0.0000000E+00 337086.3 133416.0 0.0000000E+00 103001
0.0000000E+00 0.0000000E+00 162726.5 87395.93 0.0000000E+00 013001
29259.26 15039.97 0.0000000E+00 0.0000000E+00 8777.624 004001
8918500. 2886386. 0.0000000E+00 0.0000000E+00 772213.8 300200
0.1037139E+08 3010675. 0.0000000E+00 0.0000000E+00 991185.9 210200
923879.9 -399781.0 0.0000000E+00 0.0000000E+00 76419.39 120200
-947979.6 -691284.8 0.0000000E+00 0.0000000E+00 -185865.1 030200
0.0000000E+00 0.0000000E+00 0.1723252E+08 7042324. 0.0000000E+00 201200
0.0000000E+00 0.0000000E+00 0.2674486E+08 9759753. 0.0000000E+00 111200
0.0000000E+00 0.0000000E+00 0.1251297E+08 3155781. 0.0000000E+00 021200
1693073. -651996.6 0.0000000E+00 0.0000000E+00 -1693977. 102200
4601015. 663167.0 0.0000000E+00 0.0000000E+00 -1106210. 012200
0.0000000E+00 0.0000000E+00 -1435793. 63409.75 0.0000000E+00 003200
0.0000000E+00 0.0000000E+00 42200.18 73371.80 0.0000000E+00 300101
0.0000000E+00 0.0000000E+00 -735869.6 -142013.4 0.0000000E+00 210101
0.0000000E+00 0.0000000E+00 -1760679. -606425.4 0.0000000E+00 120101
0.0000000E+00 0.0000000E+00 -785432.6 -290188.7 0.0000000E+00 030101
5029318. 1694423. 0.0000000E+00 0.0000000E+00 495312.7 201101
4898925. 1593442. 0.0000000E+00 0.0000000E+00 493492.3 111101
645698.4 184331.0 0.0000000E+00 0.0000000E+00 99403.55 021101
0.0000000E+00 0.0000000E+00 798862.6 444154.9 0.0000000E+00 102101
0.0000000E+00 0.0000000E+00 311149.1 320578.8 0.0000000E+00 012101
157662.5 82459.43 0.0000000E+00 0.0000000E+00 51769.31 003101
7359.172 485.9728 0.0000000E+00 0.0000000E+00 645.7351 300002
-3180.734 -1966.933 0.0000000E+00 0.0000000E+00 -343.3565 210002
-42944.95 -11728.34 0.0000000E+00 0.0000000E+00 -3916.692 120002
-25905.38 -6511.494 0.0000000E+00 0.0000000E+00 -2028.495 030002
0.0000000E+00 0.0000000E+00 95168.54 24515.44 0.0000000E+00 201002
0.0000000E+00 0.0000000E+00 110734.8 27542.19 0.0000000E+00 111002
0.0000000E+00 0.0000000E+00 27141.83 -2276.423 0.0000000E+00 021002
-67035.69 -25691.01 0.0000000E+00 0.0000000E+00 -1983.868 102002
-32769.54 -12509.16 0.0000000E+00 0.0000000E+00 264.8838 012002
0.0000000E+00 0.0000000E+00 1372.790 2212.619 0.0000000E+00 003002
0.0000000E+00 0.0000000E+00 0.1132167E+08 3866598. 0.0000000E+00 200300
0.0000000E+00 0.0000000E+00 0.1826462E+08 5657029. 0.0000000E+00 110300
0.0000000E+00 0.0000000E+00 8657721. 1819410. 0.0000000E+00 020300
1777606. -924282.8 0.0000000E+00 0.0000000E+00 -2094788. 101300
5987360. 920994.8 0.0000000E+00 0.0000000E+00 -1339244. 011300
0.0000000E+00 0.0000000E+00 -1304036. 10731.55 0.0000000E+00 002300
1967773. 691351.6 0.0000000E+00 0.0000000E+00 289616.1 200201
1282230. 427117.3 0.0000000E+00 0.0000000E+00 281571.7 110201
-257011.9 -87344.91 0.0000000E+00 0.0000000E+00 67703.34 020201
0.0000000E+00 0.0000000E+00 -213066.4 339613.3 0.0000000E+00 101201
0.0000000E+00 0.0000000E+00 -279622.3 311950.6 0.0000000E+00 011201
77704.12 101925.2 0.0000000E+00 0.0000000E+00 123359.5 002201
0.0000000E+00 0.0000000E+00 198740.9 53488.18 0.0000000E+00 200102
0.0000000E+00 0.0000000E+00 206211.2 47120.23 0.0000000E+00 110102
0.0000000E+00 0.0000000E+00 52888.01 -4717.907 0.0000000E+00 020102
39631.90 2298.757 0.0000000E+00 0.0000000E+00 7320.461 101102
42385.45 7128.206 0.0000000E+00 0.0000000E+00 4817.412 011102
0.0000000E+00 0.0000000E+00 4904.313 12707.37 0.0000000E+00 002102
4575.121 1091.337 0.0000000E+00 0.0000000E+00 41.31184 200003
5316.669 1270.062 0.0000000E+00 0.0000000E+00 38.11573 110003
500.9166 140.5611 0.0000000E+00 0.0000000E+00 -28.40894 020003
0.0000000E+00 0.0000000E+00 8558.263 3701.586 0.0000000E+00 101003
0.0000000E+00 0.0000000E+00 4890.386 1923.117 0.0000000E+00 011003
903.3033 360.6452 0.0000000E+00 0.0000000E+00 104.6278 002003
2603655. 222489.7 0.0000000E+00 0.0000000E+00 -780911.7 100400
4325550. 978278.2 0.0000000E+00 0.0000000E+00 -487879.0 010400
0.0000000E+00 0.0000000E+00 598680.8 -118472.5 0.0000000E+00 001400
0.0000000E+00 0.0000000E+00 -780266.1 101759.7 0.0000000E+00 100301
0.0000000E+00 0.0000000E+00 -502463.1 154119.8 0.0000000E+00 010301
-537991.4 -83431.04 0.0000000E+00 0.0000000E+00 130703.5 001301
114104.6 29312.38 0.0000000E+00 0.0000000E+00 8185.887 100202
89460.98 24039.50 0.0000000E+00 0.0000000E+00 2869.033 010202
0.0000000E+00 0.0000000E+00 9512.231 11183.71 0.0000000E+00 001202
0.0000000E+00 0.0000000E+00 5077.417 5189.193 0.0000000E+00 100103
0.0000000E+00 0.0000000E+00 3029.896 2945.447 0.0000000E+00 010103
-1668.834 -234.5996 0.0000000E+00 0.0000000E+00 379.6464 001103
272.4345 77.04285 0.0000000E+00 0.0000000E+00 19.71276 100004
157.1311 45.32847 0.0000000E+00 0.0000000E+00 13.17046 010004
0.0000000E+00 0.0000000E+00 -207.4201 -96.62074 0.0000000E+00 001004
0.0000000E+00 0.0000000E+00 983644.7 -237531.5 0.0000000E+00 000500
-470722.4 -114958.3 0.0000000E+00 0.0000000E+00 47802.75 000401
0.0000000E+00 0.0000000E+00 15349.39 -3443.730 0.0000000E+00 000302
-2178.854 -379.9501 0.0000000E+00 0.0000000E+00 385.0596 000203
0.0000000E+00 0.0000000E+00 74.98961 -44.01226 0.0000000E+00 000104
13.69625 3.473879 0.0000000E+00 0.0000000E+00 2.405355 000005
-0.2025881E+08 -5483058. 0.0000000E+00 0.0000000E+00 1297495. 600000
-0.4241779E+08 -8722073. 0.0000000E+00 0.0000000E+00 0.1349578E+08 510000
0.2182584E+08 0.1330007E+08 0.0000000E+00 0.0000000E+00 0.3756501E+08 420000
0.5655836E+08 0.1614471E+08 0.0000000E+00 0.0000000E+00 0.4640508E+08 330000
-0.2828272E+08-0.2189830E+08 0.0000000E+00 0.0000000E+00 0.2597540E+08 240000
-0.6127662E+08-0.3144433E+08 0.0000000E+00 0.0000000E+00 5762368. 150000
-0.1799311E+08 -9304926. 0.0000000E+00 0.0000000E+00 233408.5 060000
0.0000000E+00 0.0000000E+00-0.4347226E+08 -8859020. 0.0000000E+00 501000
0.0000000E+00 0.0000000E+00-0.9464751E+08 0.2803513E+08 0.0000000E+00 411000
0.0000000E+00 0.0000000E+00-0.1141428E+08 0.1486214E+09 0.0000000E+00 321000
0.0000000E+00 0.0000000E+00 -7287487. 0.1348111E+09 0.0000000E+00 231000
0.0000000E+00 0.0000000E+00-0.8600502E+08 4358637. 0.0000000E+00 141000
0.0000000E+00 0.0000000E+00-0.5048889E+08-0.2044831E+08 0.0000000E+00 051000
-0.4050784E+09-0.1411087E+09 0.0000000E+00 0.0000000E+00-0.5909949E+08 402000
-0.7089295E+09-0.2490657E+09 0.0000000E+00 0.0000000E+00-0.1146087E+09 312000
-0.1359344E+09-0.5214432E+08 0.0000000E+00 0.0000000E+00-0.4676907E+08 222000
0.2515267E+09 0.8380703E+08 0.0000000E+00 0.0000000E+00 0.1573350E+08 132000
0.8261090E+08 0.2781640E+08 0.0000000E+00 0.0000000E+00 8845396. 042000
0.0000000E+00 0.0000000E+00-0.9469447E+08-0.5074368E+08 0.0000000E+00 303000
0.0000000E+00 0.0000000E+00-0.1648209E+09-0.8312473E+08 0.0000000E+00 213000
0.0000000E+00 0.0000000E+00-0.8500965E+08-0.2700327E+08 0.0000000E+00 123000
0.0000000E+00 0.0000000E+00 -6523184. 6500987. 0.0000000E+00 033000
-0.1687644E+09-0.5769840E+08 0.0000000E+00 0.0000000E+00 -9375846. 204000
-0.1992935E+09-0.6863463E+08 0.0000000E+00 0.0000000E+00-0.1160711E+08 114000
-0.5006618E+08-0.1778172E+08 0.0000000E+00 0.0000000E+00 -3851542. 024000
0.0000000E+00 0.0000000E+00 465545.2 -3127776. 0.0000000E+00 105000
0.0000000E+00 0.0000000E+00 -270462.8 -2376696. 0.0000000E+00 015000
-500905.1 -188195.6 0.0000000E+00 0.0000000E+00 -191320.2 006000
0.0000000E+00 0.0000000E+00 -8982902. -1868944. 0.0000000E+00 500100
0.0000000E+00 0.0000000E+00 0.1160503E+09 0.8789999E+08 0.0000000E+00 410100
0.0000000E+00 0.0000000E+00 0.3712242E+09 0.2561873E+09 0.0000000E+00 320100
0.0000000E+00 0.0000000E+00 0.3172916E+09 0.1987661E+09 0.0000000E+00 230100
0.0000000E+00 0.0000000E+00 0.4632096E+08 0.1158189E+08 0.0000000E+00 140100
0.0000000E+00 0.0000000E+00-0.1821236E+08-0.1772112E+08 0.0000000E+00 050100
-0.7416488E+09-0.2596785E+09 0.0000000E+00 0.0000000E+00-0.1082986E+09 401100
-0.1157849E+10-0.4150076E+09 0.0000000E+00 0.0000000E+00-0.1811806E+09 311100
-0.2086072E+08-0.3402024E+08 0.0000000E+00 0.0000000E+00-0.3647508E+08 221100
0.4837519E+09 0.1459352E+09 0.0000000E+00 0.0000000E+00 0.5487012E+08 131100
0.1197492E+09 0.3474666E+08 0.0000000E+00 0.0000000E+00 0.2040347E+08 041100
0.0000000E+00 0.0000000E+00-0.2281130E+09-0.1481644E+09 0.0000000E+00 302100
0.0000000E+00 0.0000000E+00-0.4100889E+09-0.2434352E+09 0.0000000E+00 212100
0.0000000E+00 0.0000000E+00-0.1479907E+09-0.5047716E+08 0.0000000E+00 122100
0.0000000E+00 0.0000000E+00 0.2904076E+08 0.3804307E+08 0.0000000E+00 032100
-0.7153428E+09-0.2441657E+09 0.0000000E+00 0.0000000E+00-0.3239425E+08 203100
-0.8339315E+09-0.2900738E+09 0.0000000E+00 0.0000000E+00-0.4602459E+08 113100
-0.2164822E+09-0.8039597E+08 0.0000000E+00 0.0000000E+00-0.2000524E+08 023100
0.0000000E+00 0.0000000E+00 2512282. -0.1935963E+08 0.0000000E+00 104100
0.0000000E+00 0.0000000E+00 -497019.6 -0.1416560E+08 0.0000000E+00 014100
327243.8 110002.5 0.0000000E+00 0.0000000E+00 -1395414. 005100
3927818. 1224015. 0.0000000E+00 0.0000000E+00 -256794.2 500001
0.2459521E+08 6316055. 0.0000000E+00 0.0000000E+00 -1447068. 410001
0.6164011E+08 0.1485329E+08 0.0000000E+00 0.0000000E+00 -3121502. 320001
0.6622423E+08 0.1539939E+08 0.0000000E+00 0.0000000E+00 -3991087. 230001
0.2759921E+08 5989533. 0.0000000E+00 0.0000000E+00 -2840536. 140001
3184159. 540841.4 0.0000000E+00 0.0000000E+00 -870287.2 050001
0.0000000E+00 0.0000000E+00 -4358661. -560031.4 0.0000000E+00 401001
0.0000000E+00 0.0000000E+00 0.1368989E+08 5446848. 0.0000000E+00 311001
0.0000000E+00 0.0000000E+00 0.6134340E+08 0.2255875E+08 0.0000000E+00 221001
0.0000000E+00 0.0000000E+00 0.6004371E+08 0.2225757E+08 0.0000000E+00 131001
0.0000000E+00 0.0000000E+00 0.1334646E+08 4739348. 0.0000000E+00 041001
-0.7737856E+08-0.2453665E+08 0.0000000E+00 0.0000000E+00-0.1063398E+08 302001
-0.1106620E+09-0.3475405E+08 0.0000000E+00 0.0000000E+00-0.1536476E+08 212001
-530665.6 762716.1 0.0000000E+00 0.0000000E+00 -3435990. 122001
0.2072592E+08 6914287. 0.0000000E+00 0.0000000E+00 983964.5 032001
0.0000000E+00 0.0000000E+00-0.1401961E+08 -5458644. 0.0000000E+00 203001
0.0000000E+00 0.0000000E+00-0.1774526E+08 -6960785. 0.0000000E+00 113001
0.0000000E+00 0.0000000E+00 -3160499. -966784.0 0.0000000E+00 023001
-6621480. -2574625. 0.0000000E+00 0.0000000E+00 -1187372. 104001
-3932385. -1488680. 0.0000000E+00 0.0000000E+00 -652166.0 014001
0.0000000E+00 0.0000000E+00 -761031.4 -211867.3 0.0000000E+00 005001
-0.2856527E+09-0.1062055E+09 0.0000000E+00 0.0000000E+00-0.5307499E+08 400200
-0.3261113E+09-0.1412813E+09 0.0000000E+00 0.0000000E+00-0.7983732E+08 310200
0.1728504E+09 0.1205727E+08 0.0000000E+00 0.0000000E+00-0.1164903E+08 220200
0.2372316E+09 0.4417957E+08 0.0000000E+00 0.0000000E+00 0.2270161E+08 130200
0.3675389E+08 459958.4 0.0000000E+00 0.0000000E+00 6500684. 040200
0.0000000E+00 0.0000000E+00-0.2618049E+08-0.1000505E+09 0.0000000E+00 301200
0.0000000E+00 0.0000000E+00-0.1742123E+08-0.1442902E+09 0.0000000E+00 211200
0.0000000E+00 0.0000000E+00 0.2341789E+09 0.6332238E+08 0.0000000E+00 121200
0.0000000E+00 0.0000000E+00 0.1566351E+09 0.8434058E+08 0.0000000E+00 031200
-0.1158542E+10-0.3967370E+09 0.0000000E+00 0.0000000E+00-0.3343772E+08 202200
-0.1354851E+10-0.4853665E+09 0.0000000E+00 0.0000000E+00-0.7418497E+08 112200
-0.3716411E+09-0.1506959E+09 0.0000000E+00 0.0000000E+00-0.4706832E+08 022200
0.0000000E+00 0.0000000E+00 0.3664790E+08-0.3405407E+08 0.0000000E+00 103200
0.0000000E+00 0.0000000E+00 0.2559859E+08-0.2478816E+08 0.0000000E+00 013200
0.1447026E+08 4885093. 0.0000000E+00 0.0000000E+00 -5575406. 004200
0.0000000E+00 0.0000000E+00-0.1597454E+08 -4130207. 0.0000000E+00 400101
0.0000000E+00 0.0000000E+00-0.1557082E+08 -1910613. 0.0000000E+00 310101
0.0000000E+00 0.0000000E+00 0.2051324E+08 0.1341908E+08 0.0000000E+00 220101
0.0000000E+00 0.0000000E+00 0.2120556E+08 0.1111989E+08 0.0000000E+00 130101
0.0000000E+00 0.0000000E+00 294854.3 979.3312 0.0000000E+00 040101
-0.1586711E+09-0.5158345E+08 0.0000000E+00 0.0000000E+00-0.2324161E+08 301101
-0.1596391E+09-0.5184136E+08 0.0000000E+00 0.0000000E+00-0.2855896E+08 211101
0.6584842E+08 0.2149509E+08 0.0000000E+00 0.0000000E+00 -1689063. 121101
0.5880441E+08 0.1882065E+08 0.0000000E+00 0.0000000E+00 3906853. 031101
0.0000000E+00 0.0000000E+00-0.6336662E+08-0.2650832E+08 0.0000000E+00 202101
0.0000000E+00 0.0000000E+00-0.8300488E+08-0.3282680E+08 0.0000000E+00 112101
0.0000000E+00 0.0000000E+00-0.2199404E+08 -6362085. 0.0000000E+00 022101
-0.2828443E+08-0.1214550E+08 0.0000000E+00 0.0000000E+00 -5961842. 103101
-0.1944805E+08 -7533246. 0.0000000E+00 0.0000000E+00 -2868113. 013101
0.0000000E+00 0.0000000E+00 -3816166. -1253398. 0.0000000E+00 004101
-412452.8 -58530.04 0.0000000E+00 0.0000000E+00 -19206.65 400002
-274729.4 141772.7 0.0000000E+00 0.0000000E+00 30568.80 310002
1333528. 691723.8 0.0000000E+00 0.0000000E+00 186006.3 220002
1516078. 665904.4 0.0000000E+00 0.0000000E+00 183512.6 130002
293179.6 146033.0 0.0000000E+00 0.0000000E+00 36059.11 040002
0.0000000E+00 0.0000000E+00 -898162.7 -448772.7 0.0000000E+00 301002
0.0000000E+00 0.0000000E+00 -786970.9 -418221.5 0.0000000E+00 211002
0.0000000E+00 0.0000000E+00 2555040. 840803.7 0.0000000E+00 121002
0.0000000E+00 0.0000000E+00 1627910. 644975.9 0.0000000E+00 031002
-5489785. -1432240. 0.0000000E+00 0.0000000E+00 -511598.0 202002
-7057747. -1982986. 0.0000000E+00 0.0000000E+00 -674789.9 112002
-2600024. -800038.9 0.0000000E+00 0.0000000E+00 -228387.8 022002
0.0000000E+00 0.0000000E+00 -1491685. -478929.3 0.0000000E+00 103002
0.0000000E+00 0.0000000E+00 -946179.0 -302417.8 0.0000000E+00 013002
-7389.771 14910.17 0.0000000E+00 0.0000000E+00 15337.90 004002
0.0000000E+00 0.0000000E+00 0.1202511E+09 -3015112. 0.0000000E+00 300300
0.0000000E+00 0.0000000E+00 0.3064730E+09 0.2862506E+08 0.0000000E+00 210300
0.0000000E+00 0.0000000E+00 0.4023648E+09 0.1189529E+09 0.0000000E+00 120300
0.0000000E+00 0.0000000E+00 0.1717893E+09 0.7311732E+08 0.0000000E+00 030300
-0.8493091E+09-0.2970578E+09 0.0000000E+00 0.0000000E+00-0.1735013E+08 201300
-0.1053415E+10-0.4023104E+09 0.0000000E+00 0.0000000E+00-0.7782236E+08 111300
-0.2863812E+09-0.1353658E+09 0.0000000E+00 0.0000000E+00-0.5854962E+08 021300
0.0000000E+00 0.0000000E+00 0.1776615E+09 0.1034388E+08 0.0000000E+00 102300
0.0000000E+00 0.0000000E+00 0.1302834E+09 1881209. 0.0000000E+00 012300
0.4540382E+08 0.1369067E+08 0.0000000E+00 0.0000000E+00-0.1566106E+08 003300
-0.8437877E+08-0.2819351E+08 0.0000000E+00 0.0000000E+00-0.1186733E+08 300201
-0.6707051E+08-0.2340811E+08 0.0000000E+00 0.0000000E+00-0.1174823E+08 210201
0.3924623E+08 0.1166664E+08 0.0000000E+00 0.0000000E+00 2324516. 120201
0.2391289E+08 7282418. 0.0000000E+00 0.0000000E+00 2755401. 030201
0.0000000E+00 0.0000000E+00-0.1061760E+09-0.4049484E+08 0.0000000E+00 201201
0.0000000E+00 0.0000000E+00-0.1475850E+09-0.4953875E+08 0.0000000E+00 111201
0.0000000E+00 0.0000000E+00-0.5641710E+08-0.1240593E+08 0.0000000E+00 021201
-0.2157818E+08-0.1381971E+08 0.0000000E+00 0.0000000E+00 -9252371. 102201
-0.2621546E+08-0.1078163E+08 0.0000000E+00 0.0000000E+00 -3461733. 012201
0.0000000E+00 0.0000000E+00 -6010082. -2769803. 0.0000000E+00 003201
0.0000000E+00 0.0000000E+00 770404.4 -19912.70 0.0000000E+00 300102
0.0000000E+00 0.0000000E+00 3150543. 635245.3 0.0000000E+00 210102
0.0000000E+00 0.0000000E+00 7242370. 2134325. 0.0000000E+00 120102
0.0000000E+00 0.0000000E+00 3134480. 1017587. 0.0000000E+00 030102
-0.1725318E+08 -5017490. 0.0000000E+00 0.0000000E+00 -1671243. 201102
-0.2224645E+08 -6794638. 0.0000000E+00 0.0000000E+00 -2129217. 111102
-5993958. -1921593. 0.0000000E+00 0.0000000E+00 -588011.8 021102
0.0000000E+00 0.0000000E+00 -7223224. -2229332. 0.0000000E+00 102102
0.0000000E+00 0.0000000E+00 -4188891. -1497218. 0.0000000E+00 012102
-755734.1 -150409.1 0.0000000E+00 0.0000000E+00 61464.64 003102
-90904.24 -23345.92 0.0000000E+00 0.0000000E+00 -1427.843 300003
-102954.5 -24694.60 0.0000000E+00 0.0000000E+00 4113.578 210003
93507.48 24746.27 0.0000000E+00 0.0000000E+00 11499.29 120003
81782.59 19433.07 0.0000000E+00 0.0000000E+00 5397.764 030003
0.0000000E+00 0.0000000E+00 -119168.9 -23057.71 0.0000000E+00 201003
0.0000000E+00 0.0000000E+00 -133041.6 -15556.90 0.0000000E+00 111003
0.0000000E+00 0.0000000E+00 41354.02 40761.98 0.0000000E+00 021003
192537.3 56433.79 0.0000000E+00 0.0000000E+00 8127.075 102003
120863.3 37749.36 0.0000000E+00 0.0000000E+00 3120.381 012003
0.0000000E+00 0.0000000E+00 7036.410 148.7364 0.0000000E+00 003003
-0.2158552E+09-0.8054122E+08 0.0000000E+00 0.0000000E+00 -9194958. 200400
-0.2787625E+09-0.1231350E+09 0.0000000E+00 0.0000000E+00-0.4267547E+08 110400
-0.5012712E+08-0.3867988E+08 0.0000000E+00 0.0000000E+00-0.2920442E+08 020400
0.0000000E+00 0.0000000E+00 0.3128055E+09 0.8148837E+08 0.0000000E+00 101400
0.0000000E+00 0.0000000E+00 0.2210325E+09 0.4519416E+08 0.0000000E+00 011400
0.7728254E+08 0.2000100E+08 0.0000000E+00 0.0000000E+00-0.2761987E+08 002400
0.0000000E+00 0.0000000E+00-0.7533977E+08-0.2435768E+08 0.0000000E+00 200301
0.0000000E+00 0.0000000E+00-0.1121773E+09-0.3075583E+08 0.0000000E+00 110301
0.0000000E+00 0.0000000E+00-0.5016138E+08 -8664423. 0.0000000E+00 020301
-0.1164653E+08 -9970312. 0.0000000E+00 0.0000000E+00 -5127108. 101301
-0.2829575E+08-0.1049934E+08 0.0000000E+00 0.0000000E+00 -449100.4 011301
0.0000000E+00 0.0000000E+00 -3750805. -3833375. 0.0000000E+00 002301
-9569241. -2954674. 0.0000000E+00 0.0000000E+00 -1178747. 200202
-0.1052002E+08 -3405668. 0.0000000E+00 0.0000000E+00 -1428172. 110202
-1444665. -528696.8 0.0000000E+00 0.0000000E+00 -358825.3 020202
0.0000000E+00 0.0000000E+00 -9577326. -2905404. 0.0000000E+00 101202
0.0000000E+00 0.0000000E+00 -5118521. -2043883. 0.0000000E+00 011202
-2553996. -666006.8 0.0000000E+00 0.0000000E+00 79258.84 002202
0.0000000E+00 0.0000000E+00 -453424.0 -109652.9 0.0000000E+00 200103
0.0000000E+00 0.0000000E+00 -390968.9 -69224.84 0.0000000E+00 110103
0.0000000E+00 0.0000000E+00 -31788.66 55294.96 0.0000000E+00 020103
9251.663 9085.986 0.0000000E+00 0.0000000E+00 -33690.93 101103
34515.56 23895.99 0.0000000E+00 0.0000000E+00 -22201.61 011103
0.0000000E+00 0.0000000E+00 58182.97 -21417.99 0.0000000E+00 002103
-8350.602 -1567.254 0.0000000E+00 0.0000000E+00 -341.0741 200004
-8613.015 -1511.994 0.0000000E+00 0.0000000E+00 -251.5983 110004
1038.345 413.0931 0.0000000E+00 0.0000000E+00 162.1206 020004
0.0000000E+00 0.0000000E+00 -27695.69 -7657.138 0.0000000E+00 101004
0.0000000E+00 0.0000000E+00 -15312.74 -3926.694 0.0000000E+00 011004
-5142.012 -1489.057 0.0000000E+00 0.0000000E+00 -49.46200 002004
0.0000000E+00 0.0000000E+00 0.1903918E+09 0.6158715E+08 0.0000000E+00 100500
0.0000000E+00 0.0000000E+00 0.1329867E+09 0.3645538E+08 0.0000000E+00 010500
0.9822697E+08 0.2522042E+08 0.0000000E+00 0.0000000E+00-0.2526981E+08 001500
-0.2195780E+08 -8887835. 0.0000000E+00 0.0000000E+00 -862288.2 100401
-0.2703420E+08 -8624463. 0.0000000E+00 0.0000000E+00 753739.9 010401
0.0000000E+00 0.0000000E+00 -4035917. -3844078. 0.0000000E+00 001401
0.0000000E+00 0.0000000E+00 -2541388. -1007470. 0.0000000E+00 100302
0.0000000E+00 0.0000000E+00 -1385266. -895500.7 0.0000000E+00 010302
-879712.0 -228573.6 0.0000000E+00 0.0000000E+00 32764.56 001302
-397409.6 -118708.4 0.0000000E+00 0.0000000E+00 -56155.65 100203
-264051.1 -69229.21 0.0000000E+00 0.0000000E+00 -28862.91 010203
0.0000000E+00 0.0000000E+00 190224.5 -24751.18 0.0000000E+00 001203
0.0000000E+00 0.0000000E+00 -36203.26 -17025.07 0.0000000E+00 100104
0.0000000E+00 0.0000000E+00 -22652.40 -9982.532 0.0000000E+00 010104
-1754.922 -701.0533 0.0000000E+00 0.0000000E+00 -372.0577 001104
-826.0602 -200.4532 0.0000000E+00 0.0000000E+00 -35.92994 100005
-519.8352 -133.3097 0.0000000E+00 0.0000000E+00 -22.38263 010005
0.0000000E+00 0.0000000E+00 678.4727 209.4940 0.0000000E+00 001005
0.5994900E+08 0.1683846E+08 0.0000000E+00 0.0000000E+00 -8503334. 000600
0.0000000E+00 0.0000000E+00 -4164745. -1212071. 0.0000000E+00 000501
1256964. 378038.5 0.0000000E+00 0.0000000E+00 -5719.956 000402
0.0000000E+00 0.0000000E+00 102407.1 9471.659 0.0000000E+00 000303
5714.605 1499.220 0.0000000E+00 0.0000000E+00 -829.8927 000204
0.0000000E+00 0.0000000E+00 420.7694 228.3262 0.0000000E+00 000105
-36.26936 -8.909312 0.0000000E+00 0.0000000E+00 -2.882661 000006
-0.6362208E+09-0.1724152E+09 0.0000000E+00 0.0000000E+00 0.7037622E+08 700000
-0.4904431E+10-0.1276311E+10 0.0000000E+00 0.0000000E+00 0.4022839E+09 610000
-0.1428572E+11-0.3540353E+10 0.0000000E+00 0.0000000E+00 0.1108644E+10 520000
-0.1985489E+11-0.4447322E+10 0.0000000E+00 0.0000000E+00 0.2022623E+10 430000
-0.1340407E+11-0.2269196E+10 0.0000000E+00 0.0000000E+00 0.2403930E+10 340000
-0.4056746E+10-0.7514507E+08 0.0000000E+00 0.0000000E+00 0.1697418E+10 250000
-0.5483573E+09 0.1994702E+09 0.0000000E+00 0.0000000E+00 0.6141897E+09 160000
-0.1153214E+09 1902597. 0.0000000E+00 0.0000000E+00 0.8514964E+08 070000
0.0000000E+00 0.0000000E+00-0.1360124E+10-0.5347832E+09 0.0000000E+00 601000
0.0000000E+00 0.0000000E+00-0.9317429E+10-0.3596906E+10 0.0000000E+00 511000
0.0000000E+00 0.0000000E+00-0.2407740E+11-0.8550858E+10 0.0000000E+00 421000
0.0000000E+00 0.0000000E+00-0.2951847E+11-0.8358778E+10 0.0000000E+00 331000
0.0000000E+00 0.0000000E+00-0.1750555E+11-0.2266289E+10 0.0000000E+00 241000
0.0000000E+00 0.0000000E+00-0.4996713E+10 0.8364677E+09 0.0000000E+00 151000
0.0000000E+00 0.0000000E+00-0.6413609E+09 0.3181136E+09 0.0000000E+00 061000
0.9981430E+10 0.3369750E+10 0.0000000E+00 0.0000000E+00 0.1636771E+10 502000
0.1711215E+11 0.5598614E+10 0.0000000E+00 0.0000000E+00 0.2830230E+10 412000
-0.9043093E+10-0.3669004E+10 0.0000000E+00 0.0000000E+00-0.1212169E+10 322000
-0.2761536E+11-0.1005400E+11 0.0000000E+00 0.0000000E+00-0.4362965E+10 232000
-0.1273574E+11-0.4649918E+10 0.0000000E+00 0.0000000E+00-0.2251974E+10 142000
-0.9311657E+09-0.3718314E+09 0.0000000E+00 0.0000000E+00-0.2777973E+09 052000
0.0000000E+00 0.0000000E+00 0.6893636E+10 0.2743867E+10 0.0000000E+00 403000
0.0000000E+00 0.0000000E+00 0.1424318E+11 0.5435816E+10 0.0000000E+00 313000
0.0000000E+00 0.0000000E+00 0.7655425E+10 0.2253712E+10 0.0000000E+00 223000
0.0000000E+00 0.0000000E+00-0.4437507E+09-0.8723676E+09 0.0000000E+00 133000
0.0000000E+00 0.0000000E+00-0.8785075E+09-0.4741276E+09 0.0000000E+00 043000
0.8631717E+10 0.2963400E+10 0.0000000E+00 0.0000000E+00 0.8524174E+09 304000
0.1343702E+11 0.4635433E+10 0.0000000E+00 0.0000000E+00 0.1486362E+10 214000
0.4266008E+10 0.1500997E+10 0.0000000E+00 0.0000000E+00 0.7294604E+09 124000
-0.4943751E+09-0.1564956E+09 0.0000000E+00 0.0000000E+00 0.8648379E+08 034000
0.0000000E+00 0.0000000E+00 0.2747295E+09 0.2428001E+09 0.0000000E+00 205000
0.0000000E+00 0.0000000E+00 0.3761693E+09 0.3173267E+09 0.0000000E+00 115000
0.0000000E+00 0.0000000E+00 0.1392679E+09 0.8995566E+08 0.0000000E+00 025000
0.5302375E+09 0.1875160E+09 0.0000000E+00 0.0000000E+00 0.3374849E+08 106000
0.3298457E+09 0.1145949E+09 0.0000000E+00 0.0000000E+00 0.1504347E+08 016000
0.0000000E+00 0.0000000E+00 1149048. 1959013. 0.0000000E+00 007000
0.0000000E+00 0.0000000E+00-0.3555284E+09-0.2196684E+09 0.0000000E+00 600100
0.0000000E+00 0.0000000E+00-0.4881823E+10-0.2270695E+10 0.0000000E+00 510100
0.0000000E+00 0.0000000E+00-0.1487344E+11-0.5575371E+10 0.0000000E+00 420100
0.0000000E+00 0.0000000E+00-0.1702326E+11-0.3533564E+10 0.0000000E+00 330100
0.0000000E+00 0.0000000E+00-0.7840874E+10 0.2007957E+10 0.0000000E+00 240100
0.0000000E+00 0.0000000E+00-0.1439915E+10 0.2413085E+10 0.0000000E+00 150100
0.0000000E+00 0.0000000E+00-0.3187192E+09 0.4183613E+09 0.0000000E+00 060100
0.1836514E+11 0.6244075E+10 0.0000000E+00 0.0000000E+00 0.3217221E+10 501100
0.2096355E+11 0.6796553E+10 0.0000000E+00 0.0000000E+00 0.4676462E+10 411100
-0.3838219E+11-0.1413323E+11 0.0000000E+00 0.0000000E+00-0.3581651E+10 321100
-0.6293801E+11-0.2271725E+11 0.0000000E+00 0.0000000E+00-0.8112643E+10 231100
-0.2339094E+11-0.8695117E+10 0.0000000E+00 0.0000000E+00-0.3384835E+10 141100
-0.1146240E+10-0.5586561E+09 0.0000000E+00 0.0000000E+00-0.2403828E+09 051100
0.0000000E+00 0.0000000E+00 0.2097208E+11 0.8588593E+10 0.0000000E+00 402100
0.0000000E+00 0.0000000E+00 0.3883801E+11 0.1546007E+11 0.0000000E+00 312100
0.0000000E+00 0.0000000E+00 0.1420921E+11 0.3879953E+10 0.0000000E+00 222100
0.0000000E+00 0.0000000E+00-0.8637263E+10-0.5148586E+10 0.0000000E+00 132100
0.0000000E+00 0.0000000E+00-0.4567825E+10-0.2006296E+10 0.0000000E+00 042100
0.3234633E+11 0.1119447E+11 0.0000000E+00 0.0000000E+00 0.3741800E+10 303100
0.4629253E+11 0.1616360E+11 0.0000000E+00 0.0000000E+00 0.6563969E+10 213100
0.1037849E+11 0.3839696E+10 0.0000000E+00 0.0000000E+00 0.3426149E+10 123100
-0.3595944E+10-0.1164044E+10 0.0000000E+00 0.0000000E+00 0.4848271E+09 033100
0.0000000E+00 0.0000000E+00 0.8840765E+08 0.1028134E+10 0.0000000E+00 204100
0.0000000E+00 0.0000000E+00 0.9720855E+09 0.1537537E+10 0.0000000E+00 114100
0.0000000E+00 0.0000000E+00 0.5828366E+09 0.4813143E+09 0.0000000E+00 024100
0.3377304E+10 0.1199735E+10 0.0000000E+00 0.0000000E+00 0.2038403E+09 105100
0.2091070E+10 0.7175004E+09 0.0000000E+00 0.0000000E+00 0.5646783E+08 015100
0.0000000E+00 0.0000000E+00 -7392524. 0.1229593E+08 0.0000000E+00 006100
-0.1968716E+08-0.1018870E+08 0.0000000E+00 0.0000000E+00 4434707. 600001
-0.1136261E+09-0.5020451E+08 0.0000000E+00 0.0000000E+00 -2764181. 510001
-0.1372897E+09-0.6820868E+08 0.0000000E+00 0.0000000E+00-0.5976348E+08 420001
0.4040739E+09 0.7387134E+08 0.0000000E+00 0.0000000E+00-0.1282578E+09 330001
0.1146546E+10 0.2855704E+09 0.0000000E+00 0.0000000E+00-0.1173749E+09 240001
0.9231027E+09 0.2432670E+09 0.0000000E+00 0.0000000E+00-0.5482115E+08 150001
0.2254952E+09 0.6164135E+08 0.0000000E+00 0.0000000E+00-0.1126710E+08 060001
0.0000000E+00 0.0000000E+00-0.2790787E+08 1783037. 0.0000000E+00 501001
0.0000000E+00 0.0000000E+00-0.1733072E+09-0.4674338E+08 0.0000000E+00 411001
0.0000000E+00 0.0000000E+00-0.4865997E+09-0.2453897E+09 0.0000000E+00 321001
0.0000000E+00 0.0000000E+00 -3875706. -0.1823517E+09 0.0000000E+00 231001
0.0000000E+00 0.0000000E+00 0.7230623E+09 0.1455805E+09 0.0000000E+00 141001
0.0000000E+00 0.0000000E+00 0.4204473E+09 0.1281887E+09 0.0000000E+00 051001
0.2170529E+10 0.6353608E+09 0.0000000E+00 0.0000000E+00 0.3526441E+09 402001
0.3019323E+10 0.8188985E+09 0.0000000E+00 0.0000000E+00 0.6090887E+09 312001
-0.1977010E+10-0.7850029E+09 0.0000000E+00 0.0000000E+00 9212959. 222001
-0.3759688E+10-0.1278888E+10 0.0000000E+00 0.0000000E+00-0.3154324E+09 132001
-0.9394223E+09-0.3135545E+09 0.0000000E+00 0.0000000E+00-0.9086520E+08 042001
0.0000000E+00 0.0000000E+00 0.1326755E+10 0.5198793E+09 0.0000000E+00 303001
0.0000000E+00 0.0000000E+00 0.2008947E+10 0.8051772E+09 0.0000000E+00 213001
0.0000000E+00 0.0000000E+00 0.7231913E+09 0.2900579E+09 0.0000000E+00 123001
0.0000000E+00 0.0000000E+00-0.4484441E+08-0.2224912E+08 0.0000000E+00 033001
0.7768368E+09 0.2424102E+09 0.0000000E+00 0.0000000E+00 0.9386454E+08 204001
0.1133859E+10 0.3550548E+09 0.0000000E+00 0.0000000E+00 0.1155085E+09 114001
0.3219246E+09 0.9789824E+08 0.0000000E+00 0.0000000E+00 0.2761150E+08 024001
0.0000000E+00 0.0000000E+00 0.1142309E+09 0.3896087E+08 0.0000000E+00 105001
0.0000000E+00 0.0000000E+00 0.6810832E+08 0.2613266E+08 0.0000000E+00 015001
4339398. 1813124. 0.0000000E+00 0.0000000E+00 675375.0 006001
0.8538028E+10 0.2914262E+10 0.0000000E+00 0.0000000E+00 0.1539032E+10 500200
0.6356834E+10 0.1991777E+10 0.0000000E+00 0.0000000E+00 0.2012229E+10 410200
-0.2221669E+11-0.8303222E+10 0.0000000E+00 0.0000000E+00-0.1717318E+10 320200
-0.2813528E+11-0.1068531E+11 0.0000000E+00 0.0000000E+00-0.3087901E+10 230200
-0.8653570E+10-0.3727086E+10 0.0000000E+00 0.0000000E+00-0.9223280E+09 140200
-0.2570413E+09-0.3081629E+09 0.0000000E+00 0.0000000E+00 0.4347342E+08 050200
0.0000000E+00 0.0000000E+00 0.2270974E+11 0.9431819E+10 0.0000000E+00 401200
0.0000000E+00 0.0000000E+00 0.3851838E+11 0.1609204E+11 0.0000000E+00 311200
0.0000000E+00 0.0000000E+00 0.1010417E+11 0.3067417E+10 0.0000000E+00 221200
0.0000000E+00 0.0000000E+00-0.1316117E+11-0.6362449E+10 0.0000000E+00 131200
0.0000000E+00 0.0000000E+00-0.5582093E+10-0.2173515E+10 0.0000000E+00 041200
0.4246978E+11 0.1484441E+11 0.0000000E+00 0.0000000E+00 0.5852816E+10 302200
0.5370156E+11 0.1905847E+11 0.0000000E+00 0.0000000E+00 0.1058275E+11 212200
0.2262172E+10 0.1271233E+10 0.0000000E+00 0.0000000E+00 0.6061273E+10 122200
-0.8823820E+10-0.2992452E+10 0.0000000E+00 0.0000000E+00 0.9758508E+09 032200
0.0000000E+00 0.0000000E+00-0.3934720E+10 0.1233837E+10 0.0000000E+00 203200
0.0000000E+00 0.0000000E+00-0.4632759E+09 0.2775598E+10 0.0000000E+00 113200
0.0000000E+00 0.0000000E+00 0.1204756E+10 0.1177415E+10 0.0000000E+00 023200
0.7953735E+10 0.2836086E+10 0.0000000E+00 0.0000000E+00 0.3956336E+09 104200
0.4980478E+10 0.1651073E+10 0.0000000E+00 0.0000000E+00-0.8227438E+08 014200
0.0000000E+00 0.0000000E+00-0.1539367E+09 0.1021440E+08 0.0000000E+00 005200
0.0000000E+00 0.0000000E+00-0.6934909E+08-0.2210335E+08 0.0000000E+00 500101
0.0000000E+00 0.0000000E+00-0.3463476E+09-0.1445240E+09 0.0000000E+00 410101
0.0000000E+00 0.0000000E+00-0.8309436E+09-0.4270963E+09 0.0000000E+00 320101
0.0000000E+00 0.0000000E+00-0.9333918E+08-0.2236347E+09 0.0000000E+00 230101
0.0000000E+00 0.0000000E+00 0.8202543E+09 0.2124615E+09 0.0000000E+00 140101
0.0000000E+00 0.0000000E+00 0.3977924E+09 0.1287079E+09 0.0000000E+00 050101
0.5063795E+10 0.1514842E+10 0.0000000E+00 0.0000000E+00 0.7344323E+09 401101
0.6525440E+10 0.1782189E+10 0.0000000E+00 0.0000000E+00 0.9891360E+09 311101
-0.3913961E+10-0.1640568E+10 0.0000000E+00 0.0000000E+00-0.4626502E+09 221101
-0.6091157E+10-0.2166825E+10 0.0000000E+00 0.0000000E+00-0.8532691E+09 131101
-0.1101615E+10-0.3920105E+09 0.0000000E+00 0.0000000E+00-0.1958393E+09 041101
0.0000000E+00 0.0000000E+00 0.4632601E+10 0.1811458E+10 0.0000000E+00 302101
0.0000000E+00 0.0000000E+00 0.6715588E+10 0.2685285E+10 0.0000000E+00 212101
0.0000000E+00 0.0000000E+00 0.2003337E+10 0.7638867E+09 0.0000000E+00 122101
0.0000000E+00 0.0000000E+00-0.3732123E+09-0.1737392E+09 0.0000000E+00 032101
0.4953251E+10 0.1595706E+10 0.0000000E+00 0.0000000E+00 0.5146136E+09 203101
0.6855137E+10 0.2185659E+10 0.0000000E+00 0.0000000E+00 0.6135616E+09 113101
0.1997732E+10 0.6119027E+09 0.0000000E+00 0.0000000E+00 0.1475614E+09 023101
0.0000000E+00 0.0000000E+00 0.8076824E+09 0.2818877E+09 0.0000000E+00 104101
0.0000000E+00 0.0000000E+00 0.4478491E+09 0.1845167E+09 0.0000000E+00 014101
0.3690587E+08 0.1581389E+08 0.0000000E+00 0.0000000E+00 3993128. 005101
0.1752386E+08 5975533. 0.0000000E+00 0.0000000E+00 598529.7 500002
0.3479130E+08 0.1561741E+08 0.0000000E+00 0.0000000E+00 125232.9 410002
-0.1482213E+08 0.1146089E+08 0.0000000E+00 0.0000000E+00 -1292394. 320002
-0.5401919E+08 5649829. 0.0000000E+00 0.0000000E+00 1671590. 230002
-0.1718897E+08 8401202. 0.0000000E+00 0.0000000E+00 4770543. 140002
3671226. 4448889. 0.0000000E+00 0.0000000E+00 2297993. 050002
0.0000000E+00 0.0000000E+00 4740364. -168103.2 0.0000000E+00 401002
0.0000000E+00 0.0000000E+00-0.2515252E+08-0.1349198E+08 0.0000000E+00 311002
0.0000000E+00 0.0000000E+00-0.1301522E+09-0.5168296E+08 0.0000000E+00 221002
0.0000000E+00 0.0000000E+00-0.1328651E+09-0.4906645E+08 0.0000000E+00 131002
0.0000000E+00 0.0000000E+00-0.2470811E+08 -9156032. 0.0000000E+00 041002
0.8336091E+08 0.1312130E+08 0.0000000E+00 0.0000000E+00 0.3332563E+08 302002
0.1918800E+09 0.4228550E+08 0.0000000E+00 0.0000000E+00 0.5753424E+08 212002
-9719878. -6753908. 0.0000000E+00 0.0000000E+00 0.1936509E+08 122002
-0.5253094E+08-0.1538460E+08 0.0000000E+00 0.0000000E+00 -1927366. 032002
0.0000000E+00 0.0000000E+00 0.1554641E+08 6963859. 0.0000000E+00 203002
0.0000000E+00 0.0000000E+00 0.2265426E+08 8158909. 0.0000000E+00 113002
0.0000000E+00 0.0000000E+00 -5455209. -3108497. 0.0000000E+00 023002
0.1274042E+08 2509430. 0.0000000E+00 0.0000000E+00 1692959. 104002
2917959. 325841.6 0.0000000E+00 0.0000000E+00 1509435. 014002
0.0000000E+00 0.0000000E+00 350547.0 274625.1 0.0000000E+00 005002
0.0000000E+00 0.0000000E+00 0.9786110E+10 0.3845277E+10 0.0000000E+00 400300
0.0000000E+00 0.0000000E+00 0.1850032E+11 0.7140871E+10 0.0000000E+00 310300
0.0000000E+00 0.0000000E+00 0.9140502E+10 0.2561440E+10 0.0000000E+00 220300
0.0000000E+00 0.0000000E+00-0.1895395E+10-0.1698532E+10 0.0000000E+00 130300
0.0000000E+00 0.0000000E+00-0.1237949E+10-0.5710587E+09 0.0000000E+00 040300
0.2772704E+11 0.9738485E+10 0.0000000E+00 0.0000000E+00 0.4403832E+10 301300
0.2938513E+11 0.1044733E+11 0.0000000E+00 0.0000000E+00 0.8406808E+10 211300
-0.7527227E+10-0.2576029E+10 0.0000000E+00 0.0000000E+00 0.5091525E+10 121300
-0.9751469E+10-0.3602457E+10 0.0000000E+00 0.0000000E+00 0.7211758E+09 031300
0.0000000E+00 0.0000000E+00-0.6731462E+10 0.8850044E+09 0.0000000E+00 202300
0.0000000E+00 0.0000000E+00 0.1095386E+10 0.3813601E+10 0.0000000E+00 112300
0.0000000E+00 0.0000000E+00 0.3641974E+10 0.2416092E+10 0.0000000E+00 022300
0.7248412E+10 0.2549525E+10 0.0000000E+00 0.0000000E+00 0.3525650E+08 103300
0.5101516E+10 0.1458511E+10 0.0000000E+00 0.0000000E+00-0.7979636E+09 013300
0.0000000E+00 0.0000000E+00-0.7868586E+09-0.7160334E+08 0.0000000E+00 004300
0.2746461E+10 0.8373127E+09 0.0000000E+00 0.0000000E+00 0.3851110E+09 400201
0.3225805E+10 0.8595483E+09 0.0000000E+00 0.0000000E+00 0.3737528E+09 310201
-0.1590077E+10-0.7809075E+09 0.0000000E+00 0.0000000E+00-0.4410043E+09 220201
-0.1861315E+10-0.7611035E+09 0.0000000E+00 0.0000000E+00-0.4866605E+09 130201
-0.5359466E+08-0.4661586E+08 0.0000000E+00 0.0000000E+00-0.8815543E+08 040201
0.0000000E+00 0.0000000E+00 0.4808494E+10 0.1962144E+10 0.0000000E+00 301201
0.0000000E+00 0.0000000E+00 0.6067173E+10 0.2567000E+10 0.0000000E+00 211201
0.0000000E+00 0.0000000E+00 0.4702537E+09 0.2474032E+09 0.0000000E+00 121201
0.0000000E+00 0.0000000E+00-0.1046904E+10-0.4047689E+09 0.0000000E+00 031201
0.1110206E+11 0.3625956E+10 0.0000000E+00 0.0000000E+00 0.9502748E+09 202201
0.1463416E+11 0.4682835E+10 0.0000000E+00 0.0000000E+00 0.1123803E+10 112201
0.4451534E+10 0.1360429E+10 0.0000000E+00 0.0000000E+00 0.2991066E+09 022201
0.0000000E+00 0.0000000E+00 0.2241797E+10 0.7837671E+09 0.0000000E+00 103201
0.0000000E+00 0.0000000E+00 0.1103437E+10 0.4900940E+09 0.0000000E+00 013201
0.1115931E+09 0.4800242E+08 0.0000000E+00 0.0000000E+00 4335916. 004201
0.0000000E+00 0.0000000E+00 0.1422048E+08 2125145. 0.0000000E+00 400102
0.0000000E+00 0.0000000E+00-0.6190533E+08-0.2754251E+08 0.0000000E+00 310102
0.0000000E+00 0.0000000E+00-0.1821321E+09-0.7218963E+08 0.0000000E+00 220102
0.0000000E+00 0.0000000E+00-0.1320533E+09-0.5004861E+08 0.0000000E+00 130102
0.0000000E+00 0.0000000E+00 -4077977. -2519275. 0.0000000E+00 040102
0.2548764E+09 0.5523642E+08 0.0000000E+00 0.0000000E+00 0.8870264E+08 301102
0.3035589E+09 0.6651979E+08 0.0000000E+00 0.0000000E+00 0.1279909E+09 211102
-0.3276623E+09-0.1056991E+09 0.0000000E+00 0.0000000E+00 0.1697613E+08 121102
-0.2630844E+09-0.8007151E+08 0.0000000E+00 0.0000000E+00-0.1779525E+08 031102
0.0000000E+00 0.0000000E+00 0.1038076E+09 0.5530298E+08 0.0000000E+00 202102
0.0000000E+00 0.0000000E+00 0.1345651E+09 0.6175754E+08 0.0000000E+00 112102
0.0000000E+00 0.0000000E+00-0.1707363E+08 -5265200. 0.0000000E+00 022102
0.5559380E+08 0.1164232E+08 0.0000000E+00 0.0000000E+00 0.1061529E+08 103102
0.1798742E+08 3750414. 0.0000000E+00 0.0000000E+00 9286494. 013102
0.0000000E+00 0.0000000E+00 2534230. 2319210. 0.0000000E+00 004102
-217820.5 -122211.9 0.0000000E+00 0.0000000E+00 301606.7 400003
-4929106. -1353385. 0.0000000E+00 0.0000000E+00 796926.2 310003
-0.1330366E+08 -3446349. 0.0000000E+00 0.0000000E+00 732756.0 220003
-0.1076893E+08 -2785685. 0.0000000E+00 0.0000000E+00 378499.1 130003
-2096411. -548260.5 0.0000000E+00 0.0000000E+00 132702.7 040003
0.0000000E+00 0.0000000E+00 2674786. 861691.6 0.0000000E+00 301003
0.0000000E+00 0.0000000E+00 269294.1 30032.92 0.0000000E+00 211003
0.0000000E+00 0.0000000E+00 -8020897. -2571499. 0.0000000E+00 121003
0.0000000E+00 0.0000000E+00 -5185851. -1691845. 0.0000000E+00 031003
0.2331669E+08 6855815. 0.0000000E+00 0.0000000E+00 2306135. 202003
0.2378823E+08 6789011. 0.0000000E+00 0.0000000E+00 2400138. 112003
8226121. 2385736. 0.0000000E+00 0.0000000E+00 726426.8 022003
0.0000000E+00 0.0000000E+00 2408270. 455878.4 0.0000000E+00 103003
0.0000000E+00 0.0000000E+00 2171092. 369329.7 0.0000000E+00 013003
-176838.9 -48816.68 0.0000000E+00 0.0000000E+00 -19107.83 004003
0.9937781E+10 0.3365216E+10 0.0000000E+00 0.0000000E+00 0.1296993E+10 300400
0.9717105E+10 0.3095709E+10 0.0000000E+00 0.0000000E+00 0.2505178E+10 210400
-0.3594879E+10-0.1702681E+10 0.0000000E+00 0.0000000E+00 0.1310040E+10 120400
-0.4025317E+10-0.1705809E+10 0.0000000E+00 0.0000000E+00-0.1615691E+08 030400
0.0000000E+00 0.0000000E+00 0.6296256E+08 0.1647892E+10 0.0000000E+00 201400
0.0000000E+00 0.0000000E+00 0.9951448E+10 0.5164005E+10 0.0000000E+00 111400
0.0000000E+00 0.0000000E+00 0.7414713E+10 0.3544284E+10 0.0000000E+00 021400
-0.2259765E+10-0.9989260E+09 0.0000000E+00 0.0000000E+00-0.1003933E+10 102400
0.3345159E+09-0.5395210E+09 0.0000000E+00 0.0000000E+00-0.1804238E+10 012400
0.0000000E+00 0.0000000E+00-0.1881120E+10-0.1131220E+09 0.0000000E+00 003400
0.0000000E+00 0.0000000E+00 0.1146895E+10 0.5761725E+09 0.0000000E+00 300301
0.0000000E+00 0.0000000E+00 0.5367666E+09 0.4733975E+09 0.0000000E+00 210301
0.0000000E+00 0.0000000E+00-0.1835765E+10-0.5289399E+09 0.0000000E+00 120301
0.0000000E+00 0.0000000E+00-0.1174663E+10-0.4030918E+09 0.0000000E+00 030301
0.1115345E+11 0.3656051E+10 0.0000000E+00 0.0000000E+00 0.7949242E+09 201301
0.1459562E+11 0.4659637E+10 0.0000000E+00 0.0000000E+00 0.9949378E+09 111301
0.4413764E+10 0.1348671E+10 0.0000000E+00 0.0000000E+00 0.3230346E+09 021301
0.0000000E+00 0.0000000E+00 0.2837919E+10 0.9850787E+09 0.0000000E+00 102301
0.0000000E+00 0.0000000E+00 0.1072337E+10 0.5867213E+09 0.0000000E+00 012301
0.2792893E+09 0.1062281E+09 0.0000000E+00 0.0000000E+00 -6824455. 003301
0.2010433E+09 0.5326376E+08 0.0000000E+00 0.0000000E+00 0.5417479E+08 300202
0.1301185E+09 0.3185835E+08 0.0000000E+00 0.0000000E+00 0.6038376E+08 210202
-0.2773834E+09-0.8597787E+08 0.0000000E+00 0.0000000E+00-0.1187110E+08 120202
-0.1657962E+09-0.5051984E+08 0.0000000E+00 0.0000000E+00-0.1764495E+08 030202
0.0000000E+00 0.0000000E+00 0.1398549E+09 0.7688729E+08 0.0000000E+00 201202
0.0000000E+00 0.0000000E+00 0.2021603E+09 0.8446181E+08 0.0000000E+00 111202
0.0000000E+00 0.0000000E+00 -829791.3 -4648031. 0.0000000E+00 021202
-0.1206902E+09-0.4601588E+08 0.0000000E+00 0.0000000E+00 0.1233336E+08 102202
-0.6473666E+08-0.2247205E+08 0.0000000E+00 0.0000000E+00 0.1380750E+08 012202
0.0000000E+00 0.0000000E+00 -8304302. 2931836. 0.0000000E+00 003202
0.0000000E+00 0.0000000E+00 2219800. 1239676. 0.0000000E+00 300103
0.0000000E+00 0.0000000E+00 -572043.6 349167.6 0.0000000E+00 210103
0.0000000E+00 0.0000000E+00-0.1476718E+08 -4438188. 0.0000000E+00 120103
0.0000000E+00 0.0000000E+00 -7218157. -2449947. 0.0000000E+00 030103
0.8360994E+08 0.2523247E+08 0.0000000E+00 0.0000000E+00 8230262. 201103
0.9685654E+08 0.2914382E+08 0.0000000E+00 0.0000000E+00 9227953. 111103
0.2728290E+08 8365120. 0.0000000E+00 0.0000000E+00 2338263. 021103
0.0000000E+00 0.0000000E+00 0.2003854E+08 4953618. 0.0000000E+00 102103
0.0000000E+00 0.0000000E+00 0.1528733E+08 3935164. 0.0000000E+00 012103
1651584. 479639.9 0.0000000E+00 0.0000000E+00 -36700.04 003103
231946.5 47152.77 0.0000000E+00 0.0000000E+00 14637.13 300004
284416.3 44805.51 0.0000000E+00 0.0000000E+00 5894.313 210004
-200997.3 -65212.58 0.0000000E+00 0.0000000E+00 -21931.93 120004
-186618.7 -47120.59 0.0000000E+00 0.0000000E+00 -13180.15 030004
0.0000000E+00 0.0000000E+00 -153026.7 -45907.21 0.0000000E+00 201004
0.0000000E+00 0.0000000E+00 -168538.2 -71126.33 0.0000000E+00 111004
0.0000000E+00 0.0000000E+00 -389763.7 -136458.9 0.0000000E+00 021004
-883486.6 -272346.4 0.0000000E+00 0.0000000E+00 -74704.06 102004
-466453.2 -140576.7 0.0000000E+00 0.0000000E+00 -37592.99 012004
0.0000000E+00 0.0000000E+00 36003.33 7473.475 0.0000000E+00 003004
0.0000000E+00 0.0000000E+00 0.3401349E+10 0.1202015E+10 0.0000000E+00 200500
0.0000000E+00 0.0000000E+00 0.8487357E+10 0.2999641E+10 0.0000000E+00 110500
0.0000000E+00 0.0000000E+00 0.4973495E+10 0.2061458E+10 0.0000000E+00 020500
-0.8419414E+10-0.3333235E+10 0.0000000E+00 0.0000000E+00-0.1545576E+10 101500
-0.3394056E+10-0.1885291E+10 0.0000000E+00 0.0000000E+00-0.1893922E+10 011500
0.0000000E+00 0.0000000E+00-0.2246885E+10 0.2282267E+09 0.0000000E+00 002500
0.3948881E+10 0.1296699E+10 0.0000000E+00 0.0000000E+00 0.2894606E+09 200401
0.5088685E+10 0.1619784E+10 0.0000000E+00 0.0000000E+00 0.3995805E+09 110401
0.1273257E+10 0.3874027E+09 0.0000000E+00 0.0000000E+00 0.1499869E+09 020401
0.0000000E+00 0.0000000E+00 0.1331292E+10 0.4856548E+09 0.0000000E+00 101401
0.0000000E+00 0.0000000E+00 0.3989400E+08 0.2765795E+09 0.0000000E+00 011401
0.5829218E+09 0.2031062E+09 0.0000000E+00 0.0000000E+00 -2964176. 002401
0.0000000E+00 0.0000000E+00 0.1248501E+09 0.4499776E+08 0.0000000E+00 200302
0.0000000E+00 0.0000000E+00 0.1792722E+09 0.4601455E+08 0.0000000E+00 110302
0.0000000E+00 0.0000000E+00 0.5416893E+08 761123.8 0.0000000E+00 020302
-0.3837699E+09-0.1287064E+09 0.0000000E+00 0.0000000E+00 -5170232. 101302
-0.1873061E+09-0.6222686E+08 0.0000000E+00 0.0000000E+00 3064131. 011302
0.0000000E+00 0.0000000E+00-0.5567557E+08 -3313831. 0.0000000E+00 002302
0.5279715E+08 0.1621289E+08 0.0000000E+00 0.0000000E+00 5976889. 200203
0.6013825E+08 0.1879073E+08 0.0000000E+00 0.0000000E+00 6572688. 110203
0.1239868E+08 4044204. 0.0000000E+00 0.0000000E+00 1328699. 020203
0.0000000E+00 0.0000000E+00 0.4440244E+08 0.1135745E+08 0.0000000E+00 101203
0.0000000E+00 0.0000000E+00 0.2937297E+08 8521687. 0.0000000E+00 011203
0.1298490E+08 3954940. 0.0000000E+00 0.0000000E+00 -13580.93 002203
0.0000000E+00 0.0000000E+00 222249.9 3933.063 0.0000000E+00 200104
0.0000000E+00 0.0000000E+00 -75917.90 -113856.6 0.0000000E+00 110104
0.0000000E+00 0.0000000E+00 -489871.1 -273965.6 0.0000000E+00 020104
-1493777. -519109.8 0.0000000E+00 0.0000000E+00 -20525.72 101104
-947988.2 -326888.3 0.0000000E+00 0.0000000E+00 9097.968 011104
0.0000000E+00 0.0000000E+00 118757.4 91968.55 0.0000000E+00 002104
24254.80 5439.169 0.0000000E+00 0.0000000E+00 1311.744 200005
23328.90 5055.641 0.0000000E+00 0.0000000E+00 1302.854 110005
-3905.565 -1001.003 0.0000000E+00 0.0000000E+00 -200.9389 020005
0.0000000E+00 0.0000000E+00 62867.68 10873.84 0.0000000E+00 101005
0.0000000E+00 0.0000000E+00 30254.90 4044.343 0.0000000E+00 011005
20267.10 5501.414 0.0000000E+00 0.0000000E+00 -186.9831 002005
-0.3699542E+10-0.1516515E+10 0.0000000E+00 0.0000000E+00-0.7713627E+09 100600
-0.1569619E+10-0.8600310E+09 0.0000000E+00 0.0000000E+00-0.8024237E+09 010600
0.0000000E+00 0.0000000E+00-0.1169523E+10 0.6452813E+09 0.0000000E+00 001600
0.0000000E+00 0.0000000E+00-0.1534725E+09-0.1935379E+08 0.0000000E+00 100501
0.0000000E+00 0.0000000E+00-0.4478034E+09-0.1763579E+08 0.0000000E+00 010501
0.4556388E+09 0.1658176E+09 0.0000000E+00 0.0000000E+00 0.2339054E+08 001501
-0.1457095E+09-0.5080045E+08 0.0000000E+00 0.0000000E+00 -7310179. 100402
-0.4761719E+08-0.1830207E+08 0.0000000E+00 0.0000000E+00 -2337224. 010402
0.0000000E+00 0.0000000E+00-0.8474024E+08 -4698123. 0.0000000E+00 001402
0.0000000E+00 0.0000000E+00 0.2437653E+08 6554845. 0.0000000E+00 100303
0.0000000E+00 0.0000000E+00 0.1614093E+08 5151183. 0.0000000E+00 010303
0.1612128E+08 5187028. 0.0000000E+00 0.0000000E+00 -230593.9 001303
545605.2 122262.2 0.0000000E+00 0.0000000E+00 149262.1 100204
313832.7 52989.45 0.0000000E+00 0.0000000E+00 96544.62 010204
0.0000000E+00 0.0000000E+00 -350435.5 136291.7 0.0000000E+00 001204
0.0000000E+00 0.0000000E+00 141882.8 47498.86 0.0000000E+00 100105
0.0000000E+00 0.0000000E+00 82728.51 26100.60 0.0000000E+00 010105
33377.86 10156.19 0.0000000E+00 0.0000000E+00 -592.1389 001105
1993.637 428.3709 0.0000000E+00 0.0000000E+00 110.2606 100006
1306.351 293.6170 0.0000000E+00 0.0000000E+00 58.59527 010006
0.0000000E+00 0.0000000E+00 -1523.415 -353.3578 0.0000000E+00 001006
0.0000000E+00 0.0000000E+00-0.1073474E+09 0.4141696E+09 0.0000000E+00 000700
-1042524. 0.1248082E+08 0.0000000E+00 0.0000000E+00 0.1850928E+08 000601
0.0000000E+00 0.0000000E+00-0.3706018E+08 -723932.2 0.0000000E+00 000502
2035165. 863027.3 0.0000000E+00 0.0000000E+00 -247675.9 000403
0.0000000E+00 0.0000000E+00 -514223.3 -11895.02 0.0000000E+00 000304
-2022.265 211.0716 0.0000000E+00 0.0000000E+00 1578.421 000205
0.0000000E+00 0.0000000E+00 -2125.842 -673.4955 0.0000000E+00 000106
90.11078 20.93524 0.0000000E+00 0.0000000E+00 3.921578 000007
-0.1241625E+10-0.1326080E+09 0.0000000E+00 0.0000000E+00 0.8894077E+08 800000
-0.5904261E+10 0.8109356E+09 0.0000000E+00 0.0000000E+00 0.3140676E+10 710000
-0.6549261E+11-0.8342304E+10 0.0000000E+00 0.0000000E+00 0.1386882E+11 620000
-0.3065535E+12-0.6196940E+11 0.0000000E+00 0.0000000E+00 0.2744726E+11 530000
-0.6449958E+12-0.1416417E+12 0.0000000E+00 0.0000000E+00 0.3248935E+11 440000
-0.6892184E+12-0.1484102E+12 0.0000000E+00 0.0000000E+00 0.2928483E+11 350000
-0.3758958E+12-0.7192821E+11 0.0000000E+00 0.0000000E+00 0.2106340E+11 260000
-0.9482983E+11-0.1244040E+11 0.0000000E+00 0.0000000E+00 0.9619017E+10 170000
-0.7934949E+10 0.2641410E+09 0.0000000E+00 0.0000000E+00 0.1820693E+10 080000
0.0000000E+00 0.0000000E+00 0.5223071E+10 0.1289293E+10 0.0000000E+00 701000
0.0000000E+00 0.0000000E+00 0.6035408E+10-0.2723166E+10 0.0000000E+00 611000
0.0000000E+00 0.0000000E+00-0.1162013E+12-0.6710796E+11 0.0000000E+00 521000
0.0000000E+00 0.0000000E+00-0.4991306E+12-0.2465264E+12 0.0000000E+00 431000
0.0000000E+00 0.0000000E+00-0.8578111E+12-0.3941308E+12 0.0000000E+00 341000
0.0000000E+00 0.0000000E+00-0.7221457E+12-0.3044731E+12 0.0000000E+00 251000
0.0000000E+00 0.0000000E+00-0.2864122E+12-0.1036987E+12 0.0000000E+00 161000
0.0000000E+00 0.0000000E+00-0.4293655E+11-0.1091104E+11 0.0000000E+00 071000
-0.1337299E+12-0.4238826E+11 0.0000000E+00 0.0000000E+00-0.3324307E+11 602000
0.8734934E+11 0.4260018E+11 0.0000000E+00 0.0000000E+00-0.3153807E+11 512000
0.1450203E+13 0.5146624E+12 0.0000000E+00 0.0000000E+00 0.1563847E+12 422000
0.2287491E+13 0.7930609E+12 0.0000000E+00 0.0000000E+00 0.2950036E+12 332000
0.1224482E+13 0.4171409E+12 0.0000000E+00 0.0000000E+00 0.1595034E+12 242000
0.1439244E+12 0.4488026E+11 0.0000000E+00 0.0000000E+00 0.1350689E+11 152000
-0.3083812E+11-0.1180318E+11 0.0000000E+00 0.0000000E+00-0.5960107E+10 062000
0.0000000E+00 0.0000000E+00-0.3010681E+12-0.1157698E+12 0.0000000E+00 503000
0.0000000E+00 0.0000000E+00-0.6870045E+12-0.2539329E+12 0.0000000E+00 413000
0.0000000E+00 0.0000000E+00-0.3426010E+12-0.9579518E+11 0.0000000E+00 323000
0.0000000E+00 0.0000000E+00 0.1809767E+12 0.1120276E+12 0.0000000E+00 233000
0.0000000E+00 0.0000000E+00 0.1587809E+12 0.7929063E+11 0.0000000E+00 143000
0.0000000E+00 0.0000000E+00 0.2095080E+11 0.9863961E+10 0.0000000E+00 053000
-0.3559892E+12-0.1215620E+12 0.0000000E+00 0.0000000E+00-0.4719576E+11 404000
-0.6651718E+12-0.2273892E+12 0.0000000E+00 0.0000000E+00-0.9872797E+11 314000
-0.1976025E+12-0.6737101E+11 0.0000000E+00 0.0000000E+00-0.5357852E+11 224000
0.1705784E+12 0.5900071E+11 0.0000000E+00 0.0000000E+00 0.2717292E+10 134000
0.6741602E+11 0.2342878E+11 0.0000000E+00 0.0000000E+00 0.5268764E+10 044000
0.0000000E+00 0.0000000E+00-0.8552882E+11-0.3573061E+11 0.0000000E+00 305000
0.0000000E+00 0.0000000E+00-0.1559323E+12-0.6366039E+11 0.0000000E+00 215000
0.0000000E+00 0.0000000E+00-0.9032252E+11-0.3371385E+11 0.0000000E+00 125000
0.0000000E+00 0.0000000E+00-0.1658228E+11-0.4618579E+10 0.0000000E+00 035000
-0.6226716E+11-0.2128656E+11 0.0000000E+00 0.0000000E+00-0.3708963E+10 206000
-0.7525640E+11-0.2556401E+11 0.0000000E+00 0.0000000E+00-0.4290717E+10 116000
-0.1899486E+11-0.6372782E+10 0.0000000E+00 0.0000000E+00-0.1051603E+10 026000
0.0000000E+00 0.0000000E+00-0.8598102E+09-0.7509532E+09 0.0000000E+00 107000
0.0000000E+00 0.0000000E+00-0.4726686E+09-0.5100896E+09 0.0000000E+00 017000
-0.3435761E+09-0.1432140E+09 0.0000000E+00 0.0000000E+00-0.6904768E+08 008000
0.0000000E+00 0.0000000E+00 0.7774829E+10 0.3933874E+10 0.0000000E+00 700100
0.0000000E+00 0.0000000E+00-0.1175537E+10 0.6723510E+10 0.0000000E+00 610100
0.0000000E+00 0.0000000E+00-0.2047701E+12-0.6497474E+11 0.0000000E+00 520100
0.0000000E+00 0.0000000E+00-0.7521483E+12-0.2844906E+12 0.0000000E+00 430100
0.0000000E+00 0.0000000E+00-0.1192580E+13-0.4553381E+12 0.0000000E+00 340100
0.0000000E+00 0.0000000E+00-0.9320339E+12-0.3270137E+12 0.0000000E+00 250100
0.0000000E+00 0.0000000E+00-0.3459819E+12-0.9506359E+11 0.0000000E+00 160100
0.0000000E+00 0.0000000E+00-0.4823245E+11-0.6170177E+10 0.0000000E+00 070100
-0.3250394E+12-0.1046372E+12 0.0000000E+00 0.0000000E+00-0.6675746E+11 601100
0.1721912E+11 0.3401888E+11 0.0000000E+00 0.0000000E+00-0.3696886E+11 511100
0.2407619E+13 0.8732868E+12 0.0000000E+00 0.0000000E+00 0.3536614E+12 421100
0.3399929E+13 0.1204381E+13 0.0000000E+00 0.0000000E+00 0.5568786E+12 331100
0.1254848E+13 0.4427031E+12 0.0000000E+00 0.0000000E+00 0.2422336E+12 241100
-0.1896815E+12-0.6594242E+11 0.0000000E+00 0.0000000E+00-0.4397519E+10 151100
-0.1130942E+12-0.3988727E+11 0.0000000E+00 0.0000000E+00-0.1353075E+11 061100
0.0000000E+00 0.0000000E+00-0.8869260E+12-0.3364140E+12 0.0000000E+00 502100
0.0000000E+00 0.0000000E+00-0.1922910E+13-0.6729494E+12 0.0000000E+00 412100
0.0000000E+00 0.0000000E+00-0.8799367E+12-0.1357550E+12 0.0000000E+00 322100
0.0000000E+00 0.0000000E+00 0.4170506E+12 0.3994957E+12 0.0000000E+00 232100
0.0000000E+00 0.0000000E+00 0.2553724E+12 0.2128354E+12 0.0000000E+00 142100
0.0000000E+00 0.0000000E+00-0.1685595E+11 0.1148143E+11 0.0000000E+00 052100
-0.1509139E+13-0.5176500E+12 0.0000000E+00 0.0000000E+00-0.2094323E+12 403100
-0.2682093E+13-0.9222414E+12 0.0000000E+00 0.0000000E+00-0.4310835E+12 313100
-0.7283723E+12-0.2505869E+12 0.0000000E+00 0.0000000E+00-0.2275374E+12 223100
0.6624696E+12 0.2307514E+12 0.0000000E+00 0.0000000E+00 0.1744583E+11 133100
0.2403215E+12 0.8474707E+11 0.0000000E+00 0.0000000E+00 0.2549258E+11 043100
0.0000000E+00 0.0000000E+00-0.4513837E+12-0.1895617E+12 0.0000000E+00 304100
0.0000000E+00 0.0000000E+00-0.8480173E+12-0.3432619E+12 0.0000000E+00 214100
0.0000000E+00 0.0000000E+00-0.5342248E+12-0.1916479E+12 0.0000000E+00 124100
0.0000000E+00 0.0000000E+00-0.1094299E+12-0.2847785E+11 0.0000000E+00 034100
-0.4418481E+12-0.1510934E+12 0.0000000E+00 0.0000000E+00-0.2585794E+11 205100
-0.5239538E+12-0.1773682E+12 0.0000000E+00 0.0000000E+00-0.2831419E+11 115100
-0.1314634E+12-0.4375892E+11 0.0000000E+00 0.0000000E+00-0.6795256E+10 025100
0.0000000E+00 0.0000000E+00-0.3743490E+10-0.6069405E+10 0.0000000E+00 106100
0.0000000E+00 0.0000000E+00-0.2433207E+10-0.4298640E+10 0.0000000E+00 016100
-0.2419969E+10-0.1104548E+10 0.0000000E+00 0.0000000E+00-0.7088195E+09 007100
-0.2743503E+10-0.1012495E+10 0.0000000E+00 0.0000000E+00-0.1622548E+09 700001
-0.1368367E+11-0.5328839E+10 0.0000000E+00 0.0000000E+00-0.5118857E+09 610001
-0.3088530E+11-0.1258194E+11 0.0000000E+00 0.0000000E+00-0.5474067E+09 520001
-0.4726325E+11-0.1895652E+11 0.0000000E+00 0.0000000E+00-0.9764708E+09 430001
-0.5308440E+11-0.1983403E+11 0.0000000E+00 0.0000000E+00-0.2472261E+10 340001
-0.3542008E+11-0.1259283E+11 0.0000000E+00 0.0000000E+00-0.2912956E+10 250001
-0.9412104E+10-0.3451173E+10 0.0000000E+00 0.0000000E+00-0.1457324E+10 160001
0.1688103E+09-0.5125585E+08 0.0000000E+00 0.0000000E+00-0.2682741E+09 070001
0.0000000E+00 0.0000000E+00 0.3470756E+10 0.5344406E+09 0.0000000E+00 601001
0.0000000E+00 0.0000000E+00 0.2024478E+11 0.3948060E+10 0.0000000E+00 511001
0.0000000E+00 0.0000000E+00 0.5037730E+11 0.1182211E+11 0.0000000E+00 421001
0.0000000E+00 0.0000000E+00 0.6037993E+11 0.1330512E+11 0.0000000E+00 331001
0.0000000E+00 0.0000000E+00 0.3100973E+11 0.1783668E+10 0.0000000E+00 241001
0.0000000E+00 0.0000000E+00 0.6409988E+10-0.4075055E+10 0.0000000E+00 151001
0.0000000E+00 0.0000000E+00 0.1069830E+10-0.1209340E+10 0.0000000E+00 061001
-0.3036607E+11-0.7746158E+10 0.0000000E+00 0.0000000E+00-0.8406950E+10 502001
-0.2244031E+11-0.3110575E+10 0.0000000E+00 0.0000000E+00-0.1319760E+11 412001
0.1562941E+12 0.5121297E+11 0.0000000E+00 0.0000000E+00 0.1508000E+11 322001
0.2279005E+12 0.7037403E+11 0.0000000E+00 0.0000000E+00 0.3385100E+11 232001
0.7782208E+11 0.2257073E+11 0.0000000E+00 0.0000000E+00 0.1507371E+11 142001
-0.3470953E+10-0.1723793E+10 0.0000000E+00 0.0000000E+00 0.1114305E+10 052001
0.0000000E+00 0.0000000E+00-0.5645283E+11-0.2216314E+11 0.0000000E+00 403001
0.0000000E+00 0.0000000E+00-0.1114781E+12-0.4318102E+11 0.0000000E+00 313001
0.0000000E+00 0.0000000E+00-0.4232566E+11-0.1482634E+11 0.0000000E+00 223001
0.0000000E+00 0.0000000E+00 0.1824427E+11 0.8957391E+10 0.0000000E+00 133001
0.0000000E+00 0.0000000E+00 0.8883829E+10 0.3927110E+10 0.0000000E+00 043001
-0.2563407E+11-0.7474078E+10 0.0000000E+00 0.0000000E+00-0.6336011E+10 304001
-0.5115833E+11-0.1527683E+11 0.0000000E+00 0.0000000E+00-0.1118625E+11 214001
-0.1620528E+11-0.4601697E+10 0.0000000E+00 0.0000000E+00-0.4661023E+10 124001
0.5514548E+10 0.1905428E+10 0.0000000E+00 0.0000000E+00-0.1290861E+08 034001
0.0000000E+00 0.0000000E+00-0.1028734E+11-0.3925635E+10 0.0000000E+00 205001
0.0000000E+00 0.0000000E+00-0.1110308E+11-0.4405503E+10 0.0000000E+00 115001
0.0000000E+00 0.0000000E+00-0.2400925E+10-0.9464882E+09 0.0000000E+00 025001
-0.5963793E+09-0.1252587E+09 0.0000000E+00 0.0000000E+00-0.1719446E+09 106001
-0.6895882E+09-0.2027095E+09 0.0000000E+00 0.0000000E+00-0.1526123E+09 016001
0.0000000E+00 0.0000000E+00-0.1625344E+09-0.4433455E+08 0.0000000E+00 007001
-0.2011766E+12-0.6436301E+11 0.0000000E+00 0.0000000E+00-0.3056494E+11 600200
-0.1732477E+12-0.3292637E+11 0.0000000E+00 0.0000000E+00 0.1073802E+11 510200
0.6159862E+12 0.2719994E+12 0.0000000E+00 0.0000000E+00 0.2299299E+12 420200
0.6820468E+12 0.3048567E+12 0.0000000E+00 0.0000000E+00 0.3084246E+12 330200
-0.1755150E+12-0.1656795E+11 0.0000000E+00 0.0000000E+00 0.1299139E+12 240200
-0.3481081E+12-0.1066575E+12 0.0000000E+00 0.0000000E+00 0.7418414E+10 150200
-0.7831850E+11-0.2583110E+11 0.0000000E+00 0.0000000E+00-0.2582837E+10 060200
0.0000000E+00 0.0000000E+00-0.9080992E+12-0.3366030E+12 0.0000000E+00 501200
0.0000000E+00 0.0000000E+00-0.2015334E+13-0.6461733E+12 0.0000000E+00 411200
0.0000000E+00 0.0000000E+00-0.1254011E+13-0.1159865E+12 0.0000000E+00 321200
0.0000000E+00 0.0000000E+00-0.2934965E+12 0.3263204E+12 0.0000000E+00 231200
0.0000000E+00 0.0000000E+00-0.2899169E+12 0.1169902E+12 0.0000000E+00 141200
0.0000000E+00 0.0000000E+00-0.1727912E+12-0.2255565E+11 0.0000000E+00 051200
-0.2410715E+13-0.8310011E+12 0.0000000E+00 0.0000000E+00-0.3335611E+12 402200
-0.4210400E+13-0.1455202E+13 0.0000000E+00 0.0000000E+00-0.6735590E+12 312200
-0.1314695E+13-0.4529539E+12 0.0000000E+00 0.0000000E+00-0.3388226E+12 222200
0.7666786E+12 0.2724038E+12 0.0000000E+00 0.0000000E+00 0.4864052E+11 132200
0.2742750E+12 0.9953838E+11 0.0000000E+00 0.0000000E+00 0.4978807E+11 042200
0.0000000E+00 0.0000000E+00-0.9312931E+12-0.3937498E+12 0.0000000E+00 303200
0.0000000E+00 0.0000000E+00-0.1872227E+13-0.7451769E+12 0.0000000E+00 213200
0.0000000E+00 0.0000000E+00-0.1344068E+13-0.4610524E+12 0.0000000E+00 123200
0.0000000E+00 0.0000000E+00-0.3139888E+12-0.7934902E+11 0.0000000E+00 033200
-0.1330315E+13-0.4539010E+12 0.0000000E+00 0.0000000E+00-0.6676000E+11 204200
-0.1559715E+13-0.5247670E+12 0.0000000E+00 0.0000000E+00-0.6745694E+11 114200
-0.3997129E+12-0.1320667E+12 0.0000000E+00 0.0000000E+00-0.1645115E+11 024200
0.0000000E+00 0.0000000E+00-0.6860425E+10-0.2413711E+11 0.0000000E+00 105200
0.0000000E+00 0.0000000E+00-0.7356145E+10-0.1694814E+11 0.0000000E+00 015200
-0.4297991E+10-0.2739284E+10 0.0000000E+00 0.0000000E+00-0.3091560E+10 006200
0.0000000E+00 0.0000000E+00 0.7418492E+10 0.1748017E+10 0.0000000E+00 600101
0.0000000E+00 0.0000000E+00 0.4562376E+11 0.1174406E+11 0.0000000E+00 510101
0.0000000E+00 0.0000000E+00 0.1100164E+12 0.2870851E+11 0.0000000E+00 420101
0.0000000E+00 0.0000000E+00 0.1311419E+12 0.2979041E+11 0.0000000E+00 330101
0.0000000E+00 0.0000000E+00 0.7965284E+11 0.9753647E+10 0.0000000E+00 240101
0.0000000E+00 0.0000000E+00 0.2953815E+11-0.4129663E+09 0.0000000E+00 150101
0.0000000E+00 0.0000000E+00 0.7347802E+10 0.2615790E+09 0.0000000E+00 060101
-0.6958240E+11-0.1846244E+11 0.0000000E+00 0.0000000E+00-0.1773254E+11 501101
0.2556497E+10 0.8420115E+10 0.0000000E+00 0.0000000E+00-0.1860811E+11 411101
0.4427699E+12 0.1435214E+12 0.0000000E+00 0.0000000E+00 0.4771285E+11 321101
0.5187661E+12 0.1598883E+12 0.0000000E+00 0.0000000E+00 0.7177525E+11 231101
0.1384399E+12 0.3837063E+11 0.0000000E+00 0.0000000E+00 0.2298776E+11 141101
-0.1199156E+11-0.5445387E+10 0.0000000E+00 0.0000000E+00-0.4819579E+09 051101
0.0000000E+00 0.0000000E+00-0.1782306E+12-0.6904144E+11 0.0000000E+00 402101
0.0000000E+00 0.0000000E+00-0.3001039E+12-0.1124716E+12 0.0000000E+00 312101
0.0000000E+00 0.0000000E+00-0.2714534E+11-0.1135613E+10 0.0000000E+00 222101
0.0000000E+00 0.0000000E+00 0.1286883E+12 0.5746204E+11 0.0000000E+00 132101
0.0000000E+00 0.0000000E+00 0.4320433E+11 0.1784377E+11 0.0000000E+00 042101
-0.1597588E+12-0.4988138E+11 0.0000000E+00 0.0000000E+00-0.3527654E+11 303101
-0.2790726E+12-0.8774750E+11 0.0000000E+00 0.0000000E+00-0.6027667E+11 213101
-0.6127880E+11-0.1813100E+11 0.0000000E+00 0.0000000E+00-0.2404116E+11 123101
0.3922962E+11 0.1323382E+11 0.0000000E+00 0.0000000E+00 0.2190893E+09 033101
0.0000000E+00 0.0000000E+00-0.5648841E+11-0.2173180E+11 0.0000000E+00 204101
0.0000000E+00 0.0000000E+00-0.5887709E+11-0.2415418E+11 0.0000000E+00 114101
0.0000000E+00 0.0000000E+00-0.1149291E+11-0.4687194E+10 0.0000000E+00 024101
-0.7109056E+10-0.2033371E+10 0.0000000E+00 0.0000000E+00-0.1471081E+10 105101
-0.6476990E+10-0.2099300E+10 0.0000000E+00 0.0000000E+00-0.1232128E+10 015101
0.0000000E+00 0.0000000E+00-0.1633316E+10-0.4051488E+09 0.0000000E+00 006101
0.2273540E+09 0.5410096E+08 0.0000000E+00 0.0000000E+00-0.8059845E+08 600002
0.2020279E+10 0.5101836E+09 0.0000000E+00 0.0000000E+00-0.2888763E+09 510002
0.5701943E+10 0.1496838E+10 0.0000000E+00 0.0000000E+00-0.4047197E+09 420002
0.6391888E+10 0.1775347E+10 0.0000000E+00 0.0000000E+00-0.3211343E+09 330002
0.2062790E+10 0.7367156E+09 0.0000000E+00 0.0000000E+00-0.1702606E+09 240002
-0.7828056E+09-0.4837404E+08 0.0000000E+00 0.0000000E+00-0.3853108E+08 150002
-0.3858054E+09-0.5740726E+08 0.0000000E+00 0.0000000E+00 6730562. 060002
0.0000000E+00 0.0000000E+00 0.6909420E+09 0.2505958E+09 0.0000000E+00 501002
0.0000000E+00 0.0000000E+00 0.3407814E+10 0.1292786E+10 0.0000000E+00 411002
0.0000000E+00 0.0000000E+00 0.6710046E+10 0.2550048E+10 0.0000000E+00 321002
0.0000000E+00 0.0000000E+00 0.5323603E+10 0.2084385E+10 0.0000000E+00 231002
0.0000000E+00 0.0000000E+00 0.4950657E+09 0.2874470E+09 0.0000000E+00 141002
0.0000000E+00 0.0000000E+00-0.7647848E+09-0.2316729E+09 0.0000000E+00 051002
-0.5478245E+10-0.1432912E+10 0.0000000E+00 0.0000000E+00-0.1382881E+10 402002
-0.1070843E+11-0.2976963E+10 0.0000000E+00 0.0000000E+00-0.2782193E+10 312002
0.2521854E+09-0.1499806E+09 0.0000000E+00 0.0000000E+00-0.6653378E+09 222002
0.8911703E+10 0.2411183E+10 0.0000000E+00 0.0000000E+00 0.1038937E+10 132002
0.2716921E+10 0.7645757E+09 0.0000000E+00 0.0000000E+00 0.3623624E+09 042002
0.0000000E+00 0.0000000E+00-0.5333971E+10-0.1972285E+10 0.0000000E+00 303002
0.0000000E+00 0.0000000E+00-0.8734935E+10-0.3229759E+10 0.0000000E+00 213002
0.0000000E+00 0.0000000E+00-0.3727470E+10-0.1402423E+10 0.0000000E+00 123002
0.0000000E+00 0.0000000E+00-0.3935331E+08-0.4382341E+08 0.0000000E+00 033002
-0.2102628E+10-0.5537179E+09 0.0000000E+00 0.0000000E+00-0.3432127E+09 204002
-0.2937782E+10-0.7914207E+09 0.0000000E+00 0.0000000E+00-0.4433008E+09 114002
-0.7782001E+09-0.2130763E+09 0.0000000E+00 0.0000000E+00-0.1170993E+09 024002
0.0000000E+00 0.0000000E+00-0.7820732E+08-0.4135021E+08 0.0000000E+00 105002
0.0000000E+00 0.0000000E+00-0.1555265E+09-0.4983439E+08 0.0000000E+00 015002
-0.2342871E+08 -6247334. 0.0000000E+00 0.0000000E+00 -679529.0 006002
0.0000000E+00 0.0000000E+00-0.2916324E+12-0.1048053E+12 0.0000000E+00 500300
0.0000000E+00 0.0000000E+00-0.6576551E+12-0.1824142E+12 0.0000000E+00 410300
0.0000000E+00 0.0000000E+00-0.5116836E+12 0.3634790E+10 0.0000000E+00 320300
0.0000000E+00 0.0000000E+00-0.3390454E+12 0.1178852E+12 0.0000000E+00 230300
0.0000000E+00 0.0000000E+00-0.3029633E+12 0.1983892E+11 0.0000000E+00 140300
0.0000000E+00 0.0000000E+00-0.1221442E+12-0.1920344E+11 0.0000000E+00 050300
-0.1830147E+13-0.6322847E+12 0.0000000E+00 0.0000000E+00-0.2413182E+12 401300
-0.3382250E+13-0.1169245E+13 0.0000000E+00 0.0000000E+00-0.4814296E+12 311300
-0.1461293E+13-0.4996229E+12 0.0000000E+00 0.0000000E+00-0.2165499E+12 221300
0.2023100E+12 0.7937348E+11 0.0000000E+00 0.0000000E+00 0.7499081E+11 131300
0.1044943E+12 0.4018616E+11 0.0000000E+00 0.0000000E+00 0.5209402E+11 041300
0.0000000E+00 0.0000000E+00-0.9462662E+12-0.4070889E+12 0.0000000E+00 302300
0.0000000E+00 0.0000000E+00-0.2166611E+13-0.8473788E+12 0.0000000E+00 212300
0.0000000E+00 0.0000000E+00-0.1793568E+13-0.5985293E+12 0.0000000E+00 122300
0.0000000E+00 0.0000000E+00-0.4608255E+12-0.1174332E+12 0.0000000E+00 032300
-0.2285677E+13-0.7759749E+12 0.0000000E+00 0.0000000E+00-0.7945933E+11 203300
-0.2700800E+13-0.9028137E+12 0.0000000E+00 0.0000000E+00-0.7161704E+11 113300
-0.7470137E+12-0.2473794E+12 0.0000000E+00 0.0000000E+00-0.2193525E+11 023300
0.0000000E+00 0.0000000E+00-0.3123316E+11-0.6683701E+11 0.0000000E+00 104300
0.0000000E+00 0.0000000E+00-0.2951289E+11-0.4261212E+11 0.0000000E+00 014300
0.7504344E+10-0.6321866E+09 0.0000000E+00 0.0000000E+00-0.7561002E+10 005300
-0.3948493E+11-0.1096359E+11 0.0000000E+00 0.0000000E+00-0.9297878E+10 500201
0.2835341E+11 0.1227054E+11 0.0000000E+00 0.0000000E+00-0.5874859E+10 410201
0.2881230E+12 0.9262626E+11 0.0000000E+00 0.0000000E+00 0.2906337E+11 320201
0.2952131E+12 0.9056456E+11 0.0000000E+00 0.0000000E+00 0.3222806E+11 230201
0.7813987E+11 0.2116306E+11 0.0000000E+00 0.0000000E+00 0.5171495E+10 140201
-0.1420091E+09-0.1065993E+10 0.0000000E+00 0.0000000E+00-0.1863800E+10 050201
0.0000000E+00 0.0000000E+00-0.1866573E+12-0.7131851E+11 0.0000000E+00 401201
0.0000000E+00 0.0000000E+00-0.2543154E+12-0.9257226E+11 0.0000000E+00 311201
0.0000000E+00 0.0000000E+00 0.8734266E+11 0.4473116E+11 0.0000000E+00 221201
0.0000000E+00 0.0000000E+00 0.2058203E+12 0.8562295E+11 0.0000000E+00 131201
0.0000000E+00 0.0000000E+00 0.5768858E+11 0.2165556E+11 0.0000000E+00 041201
-0.2801210E+12-0.9021128E+11 0.0000000E+00 0.0000000E+00-0.6467584E+11 302201
-0.4111136E+12-0.1327082E+12 0.0000000E+00 0.0000000E+00-0.1062674E+12 212201
0.2818308E+11 0.1077081E+11 0.0000000E+00 0.0000000E+00-0.3906638E+11 122201
0.1159369E+12 0.3841105E+11 0.0000000E+00 0.0000000E+00 0.1832658E+10 032201
0.0000000E+00 0.0000000E+00-0.1023629E+12-0.4101161E+11 0.0000000E+00 203201
0.0000000E+00 0.0000000E+00-0.1026605E+12-0.4561413E+11 0.0000000E+00 113201
0.0000000E+00 0.0000000E+00-0.1653582E+11-0.7131816E+10 0.0000000E+00 023201
-0.1793022E+11-0.5836054E+10 0.0000000E+00 0.0000000E+00-0.4542359E+10 104201
-0.1520698E+11-0.5458473E+10 0.0000000E+00 0.0000000E+00-0.3597551E+10 014201
0.0000000E+00 0.0000000E+00-0.6719835E+10-0.1308408E+10 0.0000000E+00 005201
0.0000000E+00 0.0000000E+00-0.1131317E+09-0.1598830E+08 0.0000000E+00 500102
0.0000000E+00 0.0000000E+00-0.9048058E+09-0.3052439E+08 0.0000000E+00 410102
0.0000000E+00 0.0000000E+00-0.1849665E+10 0.3396087E+08 0.0000000E+00 320102
0.0000000E+00 0.0000000E+00-0.4644617E+10-0.8328552E+09 0.0000000E+00 230102
0.0000000E+00 0.0000000E+00-0.5238528E+10-0.1381545E+10 0.0000000E+00 140102
0.0000000E+00 0.0000000E+00-0.1956293E+10-0.5458159E+09 0.0000000E+00 050102
-0.1482656E+11-0.4057395E+10 0.0000000E+00 0.0000000E+00-0.3343806E+10 401102
-0.2547539E+11-0.7322840E+10 0.0000000E+00 0.0000000E+00-0.5648232E+10 311102
0.4506936E+10 0.9929053E+09 0.0000000E+00 0.0000000E+00 0.3830604E+09 221102
0.1971576E+11 0.5694713E+10 0.0000000E+00 0.0000000E+00 0.3334948E+10 131102
0.4560100E+10 0.1382394E+10 0.0000000E+00 0.0000000E+00 0.8697120E+09 041102
0.0000000E+00 0.0000000E+00-0.2262448E+11-0.8346485E+10 0.0000000E+00 302102
0.0000000E+00 0.0000000E+00-0.3559737E+11-0.1334828E+11 0.0000000E+00 212102
0.0000000E+00 0.0000000E+00-0.1336171E+11-0.5161520E+10 0.0000000E+00 122102
0.0000000E+00 0.0000000E+00 0.8121239E+09 0.9609183E+08 0.0000000E+00 032102
-0.1306332E+11-0.3593854E+10 0.0000000E+00 0.0000000E+00-0.2101345E+10 203102
-0.2021330E+11-0.5779691E+10 0.0000000E+00 0.0000000E+00-0.2760126E+10 113102
-0.6367539E+10-0.1862148E+10 0.0000000E+00 0.0000000E+00-0.7529510E+09 023102
0.0000000E+00 0.0000000E+00-0.1427109E+10-0.6795780E+09 0.0000000E+00 104102
0.0000000E+00 0.0000000E+00-0.1705494E+10-0.6167056E+09 0.0000000E+00 014102
-0.1767808E+09-0.4785608E+08 0.0000000E+00 0.0000000E+00 -2420080. 005102
-0.2035211E+08 -3153644. 0.0000000E+00 0.0000000E+00 -5667141. 500003
-0.3251517E+08 -1443753. 0.0000000E+00 0.0000000E+00 -4181435. 410003
0.1615218E+08 7204753. 0.0000000E+00 0.0000000E+00 0.2432190E+08 320003
-0.4312876E+08-0.1988185E+08 0.0000000E+00 0.0000000E+00 0.3933966E+08 230003
-0.1483427E+09-0.4974095E+08 0.0000000E+00 0.0000000E+00 0.1796871E+08 140003
-0.7266476E+08-0.2312427E+08 0.0000000E+00 0.0000000E+00 1908338. 050003
0.0000000E+00 0.0000000E+00 0.6692367E+08 0.2329038E+08 0.0000000E+00 401003
0.0000000E+00 0.0000000E+00 0.1586328E+09 0.5409994E+08 0.0000000E+00 311003
0.0000000E+00 0.0000000E+00 0.2692108E+09 0.9119516E+08 0.0000000E+00 221003
0.0000000E+00 0.0000000E+00 0.1555805E+09 0.5281535E+08 0.0000000E+00 131003
0.0000000E+00 0.0000000E+00 -7484174. -1472375. 0.0000000E+00 041003
-0.3612748E+09-0.9088126E+08 0.0000000E+00 0.0000000E+00-0.1452915E+09 302003
-0.4342022E+09-0.8524670E+08 0.0000000E+00 0.0000000E+00-0.2289628E+09 212003
0.3518391E+09 0.1346838E+09 0.0000000E+00 0.0000000E+00-0.6914645E+08 122003
0.2287090E+09 0.7217972E+08 0.0000000E+00 0.0000000E+00 5738480. 032003
0.0000000E+00 0.0000000E+00 0.9775704E+08 0.5536849E+08 0.0000000E+00 203003
0.0000000E+00 0.0000000E+00 0.1325131E+09 0.6461554E+08 0.0000000E+00 113003
0.0000000E+00 0.0000000E+00 0.7649973E+08 0.3069385E+08 0.0000000E+00 023003
-0.6274211E+08-0.1804863E+08 0.0000000E+00 0.0000000E+00 -4895387. 104003
-0.1370642E+08 -3312554. 0.0000000E+00 0.0000000E+00 -2718308. 014003
0.0000000E+00 0.0000000E+00 -3417948. -376913.7 0.0000000E+00 005003
-0.5538092E+12-0.1914478E+12 0.0000000E+00 0.0000000E+00-0.7011504E+11 400400
-0.1095665E+13-0.3781759E+12 0.0000000E+00 0.0000000E+00-0.1322292E+12 310400
-0.5511173E+12-0.1899223E+12 0.0000000E+00 0.0000000E+00-0.3836083E+11 220400
-0.2157183E+11-0.7636107E+10 0.0000000E+00 0.0000000E+00 0.4673084E+11 130400
0.6118620E+09-0.3376300E+09 0.0000000E+00 0.0000000E+00 0.2251001E+11 040400
0.0000000E+00 0.0000000E+00-0.4031471E+12-0.1932750E+12 0.0000000E+00 301400
0.0000000E+00 0.0000000E+00-0.1178739E+13-0.4727077E+12 0.0000000E+00 211400
0.0000000E+00 0.0000000E+00-0.1115251E+13-0.3803292E+12 0.0000000E+00 121400
0.0000000E+00 0.0000000E+00-0.2967172E+12-0.7756682E+11 0.0000000E+00 031400
-0.2402605E+13-0.8111943E+12 0.0000000E+00 0.0000000E+00-0.3785797E+11 202400
-0.2926736E+13-0.9774096E+12 0.0000000E+00 0.0000000E+00-0.3044112E+11 112400
-0.9251933E+12-0.3125400E+12 0.0000000E+00 0.0000000E+00-0.2454649E+11 022400
0.0000000E+00 0.0000000E+00-0.1153409E+12-0.1275608E+12 0.0000000E+00 103400
0.0000000E+00 0.0000000E+00-0.8156688E+11-0.6936577E+11 0.0000000E+00 013400
0.3430628E+11 0.6868097E+10 0.0000000E+00 0.0000000E+00-0.1184786E+11 004400
0.0000000E+00 0.0000000E+00-0.6993600E+11-0.2603546E+11 0.0000000E+00 400301
0.0000000E+00 0.0000000E+00-0.7613429E+11-0.2601210E+11 0.0000000E+00 310301
0.0000000E+00 0.0000000E+00 0.5983397E+11 0.2855075E+11 0.0000000E+00 220301
0.0000000E+00 0.0000000E+00 0.8997344E+11 0.3667932E+11 0.0000000E+00 130301
0.0000000E+00 0.0000000E+00 0.2138135E+11 0.7302179E+10 0.0000000E+00 040301
-0.1951360E+12-0.6440674E+11 0.0000000E+00 0.0000000E+00-0.5321973E+11 301301
-0.1837403E+12-0.6136628E+11 0.0000000E+00 0.0000000E+00-0.8444405E+11 211301
0.2130643E+12 0.6956890E+11 0.0000000E+00 0.0000000E+00-0.2781816E+11 121301
0.1620446E+12 0.5306530E+11 0.0000000E+00 0.0000000E+00 0.3481956E+10 031301
0.0000000E+00 0.0000000E+00-0.7386287E+11-0.3480554E+11 0.0000000E+00 202301
0.0000000E+00 0.0000000E+00-0.7829275E+11-0.4177130E+11 0.0000000E+00 112301
0.0000000E+00 0.0000000E+00-0.1338520E+11-0.5885404E+10 0.0000000E+00 022301
0.7395437E+10 0.5527328E+09 0.0000000E+00 0.0000000E+00-0.6329507E+10 103301
0.8462841E+09-0.1622857E+10 0.0000000E+00 0.0000000E+00-0.4498978E+10 013301
0.0000000E+00 0.0000000E+00-0.1444359E+11-0.1295441E+10 0.0000000E+00 004301
-0.9086964E+10-0.2522242E+10 0.0000000E+00 0.0000000E+00-0.1892720E+10 400202
-0.1454803E+11-0.4146672E+10 0.0000000E+00 0.0000000E+00-0.2543373E+10 310202
0.2362568E+10 0.8954929E+09 0.0000000E+00 0.0000000E+00 0.1270977E+10 220202
0.7312506E+10 0.2467452E+10 0.0000000E+00 0.0000000E+00 0.2136115E+10 130202
0.5087651E+09 0.2690137E+09 0.0000000E+00 0.0000000E+00 0.4008488E+09 040202
0.0000000E+00 0.0000000E+00-0.3033951E+11-0.1127664E+11 0.0000000E+00 301202
0.0000000E+00 0.0000000E+00-0.4322270E+11-0.1660037E+11 0.0000000E+00 211202
0.0000000E+00 0.0000000E+00-0.1273289E+11-0.5494726E+10 0.0000000E+00 121202
0.0000000E+00 0.0000000E+00 0.2877767E+10 0.4387728E+09 0.0000000E+00 031202
-0.3235682E+11-0.9399743E+10 0.0000000E+00 0.0000000E+00-0.4445599E+10 202202
-0.5039830E+11-0.1503796E+11 0.0000000E+00 0.0000000E+00-0.5939102E+10 112202
-0.1893764E+11-0.5746953E+10 0.0000000E+00 0.0000000E+00-0.1783177E+10 022202
0.0000000E+00 0.0000000E+00-0.6233688E+10-0.2768654E+10 0.0000000E+00 103202
0.0000000E+00 0.0000000E+00-0.6239289E+10-0.2271408E+10 0.0000000E+00 013202
-0.4432504E+09-0.1121469E+09 0.0000000E+00 0.0000000E+00 0.3430632E+08 004202
0.0000000E+00 0.0000000E+00 0.1346628E+09 0.5412107E+08 0.0000000E+00 400103
0.0000000E+00 0.0000000E+00 0.5467214E+09 0.1918835E+09 0.0000000E+00 310103
0.0000000E+00 0.0000000E+00 0.8701423E+09 0.2971484E+09 0.0000000E+00 220103
0.0000000E+00 0.0000000E+00 0.5298537E+09 0.1784427E+09 0.0000000E+00 130103
0.0000000E+00 0.0000000E+00 0.2351552E+08 0.1292954E+08 0.0000000E+00 040103
-0.1010567E+10-0.2502247E+09 0.0000000E+00 0.0000000E+00-0.4014102E+09 301103
-0.7208630E+09-0.9907411E+08 0.0000000E+00 0.0000000E+00-0.5557519E+09 211103
0.1941752E+10 0.6663394E+09 0.0000000E+00 0.0000000E+00-0.5443425E+08 121103
0.1189697E+10 0.3751853E+09 0.0000000E+00 0.0000000E+00 0.7891120E+08 031103
0.0000000E+00 0.0000000E+00-0.1695326E+09-0.5396125E+08 0.0000000E+00 202103
0.0000000E+00 0.0000000E+00-0.5248543E+08-0.3971071E+08 0.0000000E+00 112103
0.0000000E+00 0.0000000E+00 0.2382990E+09 0.6430141E+08 0.0000000E+00 022103
-0.5580479E+09-0.1698146E+09 0.0000000E+00 0.0000000E+00-0.4362870E+08 103103
-0.1879216E+09-0.5518184E+08 0.0000000E+00 0.0000000E+00-0.2916238E+08 013103
0.0000000E+00 0.0000000E+00-0.3911071E+08 -8144663. 0.0000000E+00 004103
-4021888. -1391730. 0.0000000E+00 0.0000000E+00 -962581.3 400004
-328120.4 -1755744. 0.0000000E+00 0.0000000E+00 -2275489. 310004
0.2177686E+08 2499231. 0.0000000E+00 0.0000000E+00 -1800221. 220004
0.2289329E+08 3396754. 0.0000000E+00 0.0000000E+00 -1020114. 130004
4558505. 498618.6 0.0000000E+00 0.0000000E+00 -425900.1 040004
0.0000000E+00 0.0000000E+00 -8653279. -2523530. 0.0000000E+00 301004
0.0000000E+00 0.0000000E+00 -4379052. -1254598. 0.0000000E+00 211004
0.0000000E+00 0.0000000E+00 9143820. 2724968. 0.0000000E+00 121004
0.0000000E+00 0.0000000E+00 9326570. 2428047. 0.0000000E+00 031004
-0.4115267E+08 -9670475. 0.0000000E+00 0.0000000E+00 -5507782. 202004
-0.4336506E+08-0.1006773E+08 0.0000000E+00 0.0000000E+00 -5682411. 112004
-0.2166146E+08 -5848712. 0.0000000E+00 0.0000000E+00 -2107566. 022004
0.0000000E+00 0.0000000E+00 -989751.6 -531936.6 0.0000000E+00 103004
0.0000000E+00 0.0000000E+00 -1775087. 135783.5 0.0000000E+00 013004
1651962. 544530.6 0.0000000E+00 0.0000000E+00 106335.2 004004
0.0000000E+00 0.0000000E+00 0.5844779E+10-0.1886092E+11 0.0000000E+00 300500
0.0000000E+00 0.0000000E+00-0.1240708E+12-0.7344744E+11 0.0000000E+00 210500
0.0000000E+00 0.0000000E+00-0.1679827E+12-0.7341438E+11 0.0000000E+00 120500
0.0000000E+00 0.0000000E+00-0.4350601E+11-0.1354149E+11 0.0000000E+00 030500
-0.1408030E+13-0.4742848E+12 0.0000000E+00 0.0000000E+00 0.6720209E+10 201500
-0.1836420E+13-0.6196066E+12 0.0000000E+00 0.0000000E+00 0.7423205E+09 111500
-0.6879115E+12-0.2407348E+12 0.0000000E+00 0.0000000E+00-0.2487826E+11 021500
0.0000000E+00 0.0000000E+00-0.1733683E+12-0.1425947E+12 0.0000000E+00 102500
0.0000000E+00 0.0000000E+00-0.1013743E+12-0.6166835E+11 0.0000000E+00 012500
0.2217485E+11 0.2712306E+10 0.0000000E+00 0.0000000E+00-0.1385843E+11 003500
-0.5591749E+11-0.1873028E+11 0.0000000E+00 0.0000000E+00-0.1733096E+11 300401
0.6739242E+09-0.6624509E+09 0.0000000E+00 0.0000000E+00-0.2593851E+11 210401
0.1506243E+12 0.4892790E+11 0.0000000E+00 0.0000000E+00-0.5758498E+10 120401
0.8312606E+11 0.2716866E+11 0.0000000E+00 0.0000000E+00 0.2948700E+10 030401
0.0000000E+00 0.0000000E+00-0.2724260E+11-0.1770571E+11 0.0000000E+00 201401
0.0000000E+00 0.0000000E+00-0.5592886E+11-0.3033154E+11 0.0000000E+00 111401
0.0000000E+00 0.0000000E+00-0.2588990E+11-0.9381016E+10 0.0000000E+00 021401
0.9516908E+11 0.2687402E+11 0.0000000E+00 0.0000000E+00-0.3116805E+10 102401
0.5150972E+11 0.1377385E+11 0.0000000E+00 0.0000000E+00-0.1162847E+10 012401
0.0000000E+00 0.0000000E+00-0.1721119E+11 0.2015499E+10 0.0000000E+00 003401
0.0000000E+00 0.0000000E+00-0.1213113E+11-0.4736935E+10 0.0000000E+00 300302
0.0000000E+00 0.0000000E+00-0.1486086E+11-0.6252810E+10 0.0000000E+00 210302
0.0000000E+00 0.0000000E+00-0.4407202E+09-0.1137060E+10 0.0000000E+00 120302
0.0000000E+00 0.0000000E+00 0.3235886E+10 0.5961096E+09 0.0000000E+00 030302
-0.3974349E+11-0.1202591E+11 0.0000000E+00 0.0000000E+00-0.4058318E+10 201302
-0.6171980E+11-0.1891321E+11 0.0000000E+00 0.0000000E+00-0.5791291E+10 111302
-0.2523441E+11-0.7811755E+10 0.0000000E+00 0.0000000E+00-0.2051076E+10 021302
0.0000000E+00 0.0000000E+00-0.1179510E+11-0.4786401E+10 0.0000000E+00 102302
0.0000000E+00 0.0000000E+00-0.1044825E+11-0.3732178E+10 0.0000000E+00 012302
-0.1123895E+10-0.2738341E+09 0.0000000E+00 0.0000000E+00 0.1868224E+09 003302
-0.7166372E+09-0.1828788E+09 0.0000000E+00 0.0000000E+00-0.2570232E+09 300203
0.2647345E+08 0.9213337E+08 0.0000000E+00 0.0000000E+00-0.2717082E+09 210203
0.1866744E+10 0.6347951E+09 0.0000000E+00 0.0000000E+00 0.8453657E+08 120203
0.9649809E+09 0.3130760E+09 0.0000000E+00 0.0000000E+00 0.9376106E+08 030203
0.0000000E+00 0.0000000E+00-0.3945289E+09-0.2236945E+09 0.0000000E+00 201203
0.0000000E+00 0.0000000E+00-0.2452822E+09-0.2039382E+09 0.0000000E+00 111203
0.0000000E+00 0.0000000E+00 0.4410532E+09 0.8750845E+08 0.0000000E+00 021203
-0.5835245E+09-0.1898118E+09 0.0000000E+00 0.0000000E+00-0.6178069E+08 102203
-0.1479547E+09-0.4732265E+08 0.0000000E+00 0.0000000E+00-0.5467797E+08 012203
0.0000000E+00 0.0000000E+00-0.1137731E+09-0.2096118E+08 0.0000000E+00 003203
0.0000000E+00 0.0000000E+00-0.1658569E+08 -6511956. 0.0000000E+00 300104
0.0000000E+00 0.0000000E+00-0.1619624E+08 -6312130. 0.0000000E+00 210104
0.0000000E+00 0.0000000E+00 0.1438527E+08 4188023. 0.0000000E+00 120104
0.0000000E+00 0.0000000E+00 0.1062003E+08 3847809. 0.0000000E+00 030104
-0.2434961E+09-0.6782268E+08 0.0000000E+00 0.0000000E+00-0.2800749E+08 201104
-0.2884911E+09-0.8055491E+08 0.0000000E+00 0.0000000E+00-0.3165247E+08 111104
-0.9726815E+08-0.2844734E+08 0.0000000E+00 0.0000000E+00 -8842059. 021104
0.0000000E+00 0.0000000E+00-0.1431335E+08 -2992918. 0.0000000E+00 102104
0.0000000E+00 0.0000000E+00-0.2159690E+08 -2740321. 0.0000000E+00 012104
6047375. 2297095. 0.0000000E+00 0.0000000E+00 63642.55 003104
-433045.5 -78139.93 0.0000000E+00 0.0000000E+00 -99830.28 300005
-258204.9 -6963.864 0.0000000E+00 0.0000000E+00 -150071.3 210005
932631.4 252438.4 0.0000000E+00 0.0000000E+00 -41604.31 120005
572208.1 139320.7 0.0000000E+00 0.0000000E+00 9618.409 030005
0.0000000E+00 0.0000000E+00 1069523. 249798.6 0.0000000E+00 201005
0.0000000E+00 0.0000000E+00 1310979. 366316.6 0.0000000E+00 111005
0.0000000E+00 0.0000000E+00 1360677. 323298.8 0.0000000E+00 021005
2130718. 594867.6 0.0000000E+00 0.0000000E+00 284457.2 102005
1030645. 279390.5 0.0000000E+00 0.0000000E+00 162570.4 012005
0.0000000E+00 0.0000000E+00 -144632.8 402.0765 0.0000000E+00 003005
-0.3368248E+12-0.1146664E+12 0.0000000E+00 0.0000000E+00 0.7657224E+10 200600
-0.5081769E+12-0.1765555E+12 0.0000000E+00 0.0000000E+00-0.9635114E+09 110600
-0.2288437E+12-0.8384577E+11 0.0000000E+00 0.0000000E+00-0.1363384E+11 020600
0.0000000E+00 0.0000000E+00-0.9783734E+11-0.7802681E+11 0.0000000E+00 101600
0.0000000E+00 0.0000000E+00-0.4210927E+11-0.1980049E+11 0.0000000E+00 011600
-0.6136732E+11-0.2484061E+11 0.0000000E+00 0.0000000E+00-0.1422966E+11 002600
0.0000000E+00 0.0000000E+00-0.1317150E+11-0.6684816E+10 0.0000000E+00 200501
0.0000000E+00 0.0000000E+00-0.3914004E+11-0.1586611E+11 0.0000000E+00 110501
0.0000000E+00 0.0000000E+00-0.2481132E+11-0.8360313E+10 0.0000000E+00 020501
0.1419356E+12 0.4257996E+11 0.0000000E+00 0.0000000E+00 0.2019861E+10 101501
0.7633211E+11 0.2266065E+11 0.0000000E+00 0.0000000E+00 0.2861882E+10 011501
0.0000000E+00 0.0000000E+00-0.1154974E+11 0.5765642E+10 0.0000000E+00 002501
-0.1809560E+11-0.5602657E+10 0.0000000E+00 0.0000000E+00-0.1516484E+10 200402
-0.2848094E+11-0.8874784E+10 0.0000000E+00 0.0000000E+00-0.2396815E+10 110402
-0.1107491E+11-0.3484768E+10 0.0000000E+00 0.0000000E+00-0.9677177E+09 020402
0.0000000E+00 0.0000000E+00-0.1123067E+11-0.4174161E+10 0.0000000E+00 101402
0.0000000E+00 0.0000000E+00-0.8376580E+10-0.3132043E+10 0.0000000E+00 011402
-0.4081773E+10-0.1145153E+10 0.0000000E+00 0.0000000E+00 0.3235563E+09 002402
0.0000000E+00 0.0000000E+00-0.1526199E+09-0.9380045E+08 0.0000000E+00 200303
0.0000000E+00 0.0000000E+00-0.2489594E+08-0.4426529E+08 0.0000000E+00 110303
0.0000000E+00 0.0000000E+00 0.2732984E+09 0.8049655E+08 0.0000000E+00 020303
0.1052568E+10 0.3196603E+09 0.0000000E+00 0.0000000E+00 0.2508135E+08 101303
0.7050269E+09 0.2192591E+09 0.0000000E+00 0.0000000E+00-0.1481134E+08 011303
0.0000000E+00 0.0000000E+00-0.6371331E+08 6152012. 0.0000000E+00 002303
-0.2020987E+09-0.5905280E+08 0.0000000E+00 0.0000000E+00-0.2402733E+08 200204
-0.2470431E+09-0.7324912E+08 0.0000000E+00 0.0000000E+00-0.2644767E+08 110204
-0.6563519E+08-0.2026683E+08 0.0000000E+00 0.0000000E+00 -5568992. 020204
0.0000000E+00 0.0000000E+00-0.7618228E+08-0.1643882E+08 0.0000000E+00 101204
0.0000000E+00 0.0000000E+00-0.6583044E+08-0.1478463E+08 0.0000000E+00 011204
-0.2309118E+08 -5752673. 0.0000000E+00 0.0000000E+00 -1146100. 002204
0.0000000E+00 0.0000000E+00 1287493. 427635.5 0.0000000E+00 200105
0.0000000E+00 0.0000000E+00 2136266. 728006.1 0.0000000E+00 110105
0.0000000E+00 0.0000000E+00 2454905. 876864.1 0.0000000E+00 020105
6500722. 2066683. 0.0000000E+00 0.0000000E+00 384868.3 101105
3910756. 1214993. 0.0000000E+00 0.0000000E+00 194123.6 011105
0.0000000E+00 0.0000000E+00 -1308001. -291897.2 0.0000000E+00 002105
-68573.56 -15670.06 0.0000000E+00 0.0000000E+00 -5975.401 200006
-70895.10 -16220.30 0.0000000E+00 0.0000000E+00 -6330.535 110006
4325.851 591.1550 0.0000000E+00 0.0000000E+00 -269.1406 020006
0.0000000E+00 0.0000000E+00 -81032.50 3442.553 0.0000000E+00 101006
0.0000000E+00 0.0000000E+00 -27165.24 6544.920 0.0000000E+00 011006
-55130.12 -13564.37 0.0000000E+00 0.0000000E+00 739.1821 002006
0.0000000E+00 0.0000000E+00-0.1255041E+11-0.1553706E+11 0.0000000E+00 100700
0.0000000E+00 0.0000000E+00 0.1720425E+10 0.1860944E+10 0.0000000E+00 010700
-0.1072923E+12-0.3941402E+11 0.0000000E+00 0.0000000E+00-0.1157819E+11 001700
0.6253754E+11 0.1924998E+11 0.0000000E+00 0.0000000E+00 0.2327151E+10 100601
0.3240680E+11 0.1000075E+11 0.0000000E+00 0.0000000E+00 0.2229289E+10 010601
0.0000000E+00 0.0000000E+00-0.4786455E+10 0.4282327E+10 0.0000000E+00 001601
0.0000000E+00 0.0000000E+00-0.3903854E+10-0.1425801E+10 0.0000000E+00 100502
0.0000000E+00 0.0000000E+00-0.2314700E+10-0.1077187E+10 0.0000000E+00 010502
-0.6089196E+10-0.1824231E+10 0.0000000E+00 0.0000000E+00 0.2204282E+09 001502
0.9207816E+09 0.2951955E+09 0.0000000E+00 0.0000000E+00 0.4106190E+08 100403
0.5213970E+09 0.1712754E+09 0.0000000E+00 0.0000000E+00 6631668. 010403
0.0000000E+00 0.0000000E+00 0.1633523E+09 0.5106185E+08 0.0000000E+00 001403
0.0000000E+00 0.0000000E+00-0.7351915E+08-0.1786218E+08 0.0000000E+00 100304
0.0000000E+00 0.0000000E+00-0.5421674E+08-0.1484240E+08 0.0000000E+00 010304
-0.6594104E+08-0.1961274E+08 0.0000000E+00 0.0000000E+00 -876841.2 001304
957272.8 483993.8 0.0000000E+00 0.0000000E+00 -278491.8 100205
842758.4 377279.0 0.0000000E+00 0.0000000E+00 -204014.5 010205
0.0000000E+00 0.0000000E+00 -1470356. -769785.5 0.0000000E+00 001205
0.0000000E+00 0.0000000E+00 -347866.2 -91446.44 0.0000000E+00 100106
0.0000000E+00 0.0000000E+00 -187173.1 -46705.02 0.0000000E+00 010106
-147678.0 -41063.65 0.0000000E+00 0.0000000E+00 5969.722 001106
-4728.298 -992.3116 0.0000000E+00 0.0000000E+00 -350.1544 100007
-3167.542 -686.2533 0.0000000E+00 0.0000000E+00 -194.6483 010007
0.0000000E+00 0.0000000E+00 2186.371 288.8825 0.0000000E+00 001007
-0.4819532E+11-0.1761934E+11 0.0000000E+00 0.0000000E+00-0.4699643E+10 000800
0.0000000E+00 0.0000000E+00-0.1659937E+10 0.6058646E+09 0.0000000E+00 000701
-0.2439093E+10-0.7640902E+09 0.0000000E+00 0.0000000E+00 0.4981126E+08 000602
0.0000000E+00 0.0000000E+00 0.1615679E+09 0.3158149E+08 0.0000000E+00 000503
-0.2706562E+08 -8781685. 0.0000000E+00 0.0000000E+00 672354.8 000404
0.0000000E+00 0.0000000E+00 474475.8 -255561.9 0.0000000E+00 000305
-53236.08 -17873.02 0.0000000E+00 0.0000000E+00 -395.6845 000206
0.0000000E+00 0.0000000E+00 5025.881 1131.072 0.0000000E+00 000107
-209.8264 -45.87516 0.0000000E+00 0.0000000E+00 -8.315602 000008"""
COSY_MAP_廖益诚五阶光学优化:str = """ 0.9204298 2.342948 0.0000000E+00 0.0000000E+00 0.2875828E-01 100000
-0.1511535 0.7016887 0.0000000E+00 0.0000000E+00-0.5728590E-02 010000
0.0000000E+00 0.0000000E+00 0.7342880 0.8951463 0.0000000E+00 001000
0.0000000E+00 0.0000000E+00-0.3362275 0.9519796 0.0000000E+00 000100
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 1.000000 000010
-0.9258508E-03-0.3360115E-01 0.0000000E+00 0.0000000E+00 2.053380 000001
4.885144 28.34025 0.0000000E+00 0.0000000E+00-0.3071154 200000
15.06786 21.59868 0.0000000E+00 0.0000000E+00 0.8201890 110000
-0.3743387 -8.469834 0.0000000E+00 0.0000000E+00 0.2712384E-01 020000
0.0000000E+00 0.0000000E+00 47.42200 -18.29999 0.0000000E+00 101000
0.0000000E+00 0.0000000E+00 20.27668 -8.717686 0.0000000E+00 011000
15.52291 9.154235 0.0000000E+00 0.0000000E+00 -1.067533 002000
0.0000000E+00 0.0000000E+00 18.80651 -30.17513 0.0000000E+00 100100
0.0000000E+00 0.0000000E+00 0.4577091 -21.73826 0.0000000E+00 010100
20.96289 10.99831 0.0000000E+00 0.0000000E+00 0.7893651E-02 001100
0.1727875 1.406819 0.0000000E+00 0.0000000E+00-0.7117329E-01 100001
0.1091187 -0.8499203E-01 0.0000000E+00 0.0000000E+00-0.2705320E-02 010001
0.0000000E+00 0.0000000E+00 -1.566856 2.395144 0.0000000E+00 001001
-2.576880 -10.77361 0.0000000E+00 0.0000000E+00-0.3607443 000200
0.0000000E+00 0.0000000E+00-0.6480240 0.1446635 0.0000000E+00 000101
-0.8688021E-02 0.1899410E-01 0.0000000E+00 0.0000000E+00 -1.892372 000002
-751.5361 -54.09062 0.0000000E+00 0.0000000E+00 -44.47829 300000
-1100.468 -357.1691 0.0000000E+00 0.0000000E+00 -41.05410 210000
-634.0193 -649.4427 0.0000000E+00 0.0000000E+00 -11.40334 120000
-198.2379 -221.3674 0.0000000E+00 0.0000000E+00 -6.510183 030000
0.0000000E+00 0.0000000E+00 2910.656 655.2888 0.0000000E+00 201000
0.0000000E+00 0.0000000E+00 2016.476 572.9640 0.0000000E+00 111000
0.0000000E+00 0.0000000E+00 102.5180 232.2938 0.0000000E+00 021000
676.5579 272.9760 0.0000000E+00 0.0000000E+00 -67.39234 102000
234.7832 83.04571 0.0000000E+00 0.0000000E+00 -23.62024 012000
0.0000000E+00 0.0000000E+00 102.7956 -42.51581 0.0000000E+00 003000
0.0000000E+00 0.0000000E+00 2556.246 522.6957 0.0000000E+00 200100
0.0000000E+00 0.0000000E+00 1245.858 644.6136 0.0000000E+00 110100
0.0000000E+00 0.0000000E+00 -19.90547 331.3041 0.0000000E+00 020100
1844.377 550.1717 0.0000000E+00 0.0000000E+00 -38.88005 101100
362.0099 49.35226 0.0000000E+00 0.0000000E+00 2.797210 011100
0.0000000E+00 0.0000000E+00 198.8522 -41.32451 0.0000000E+00 002100
3.875346 68.39856 0.0000000E+00 0.0000000E+00 20.29021 200001
15.74213 38.29531 0.0000000E+00 0.0000000E+00 16.47867 110001
2.466275 0.1267577 0.0000000E+00 0.0000000E+00 3.895916 020001
0.0000000E+00 0.0000000E+00 -73.32873 -15.41079 0.0000000E+00 101001
0.0000000E+00 0.0000000E+00 -44.19852 -9.491166 0.0000000E+00 011001
2.447199 11.62207 0.0000000E+00 0.0000000E+00 12.46950 002001
1129.736 -3.391685 0.0000000E+00 0.0000000E+00 59.59497 100200
112.3725 -145.4954 0.0000000E+00 0.0000000E+00 11.75505 010200
0.0000000E+00 0.0000000E+00 89.11027 261.0074 0.0000000E+00 001200
0.0000000E+00 0.0000000E+00 -9.325749 94.51866 0.0000000E+00 100101
0.0000000E+00 0.0000000E+00 -1.776634 18.28775 0.0000000E+00 010101
-57.68150 -29.94966 0.0000000E+00 0.0000000E+00 21.34169 001101
11.02948 5.367229 0.0000000E+00 0.0000000E+00 0.6879711E-01 100002
4.628219 2.674120 0.0000000E+00 0.0000000E+00 0.3292724E-01 010002
0.0000000E+00 0.0000000E+00 12.83309 -2.259718 0.0000000E+00 001002
0.0000000E+00 0.0000000E+00 269.9984 430.1148 0.0000000E+00 000300
-4.959560 -17.83708 0.0000000E+00 0.0000000E+00 16.43582 000201
0.0000000E+00 0.0000000E+00 16.26735 2.422964 0.0000000E+00 000102
-0.4942598E-01-0.2954404E-01 0.0000000E+00 0.0000000E+00 1.764757 000003
-10128.51 -6882.101 0.0000000E+00 0.0000000E+00 -1733.562 400000
-14501.48 -15233.01 0.0000000E+00 0.0000000E+00 -2718.366 310000
4200.860 -11813.82 0.0000000E+00 0.0000000E+00 -1030.591 220000
9573.095 -1054.922 0.0000000E+00 0.0000000E+00 -154.8778 130000
3074.121 2487.932 0.0000000E+00 0.0000000E+00 -72.39238 040000
0.0000000E+00 0.0000000E+00 72332.56 22125.21 0.0000000E+00 301000
0.0000000E+00 0.0000000E+00 61655.33 23277.75 0.0000000E+00 211000
0.0000000E+00 0.0000000E+00 -16659.99 1332.440 0.0000000E+00 121000
0.0000000E+00 0.0000000E+00 -11639.21 -2136.958 0.0000000E+00 031000
-11504.25 -4058.841 0.0000000E+00 0.0000000E+00 -6942.310 202000
-16704.77 -7083.668 0.0000000E+00 0.0000000E+00 -4966.235 112000
-9080.320 -6121.165 0.0000000E+00 0.0000000E+00 -442.5223 022000
0.0000000E+00 0.0000000E+00 14410.32 1972.961 0.0000000E+00 103000
0.0000000E+00 0.0000000E+00 5539.239 1062.762 0.0000000E+00 013000
1945.989 890.8557 0.0000000E+00 0.0000000E+00 -269.0154 004000
0.0000000E+00 0.0000000E+00 76115.14 27812.66 0.0000000E+00 300100
0.0000000E+00 0.0000000E+00 42775.69 28209.00 0.0000000E+00 210100
0.0000000E+00 0.0000000E+00 -27098.85 4678.201 0.0000000E+00 120100
0.0000000E+00 0.0000000E+00 -10296.54 -2216.355 0.0000000E+00 030100
-10798.17 -5317.675 0.0000000E+00 0.0000000E+00 -14463.63 201100
-37638.08 -16309.58 0.0000000E+00 0.0000000E+00 -9209.289 111100
-25191.74 -15673.80 0.0000000E+00 0.0000000E+00 -931.4209 021100
0.0000000E+00 0.0000000E+00 28240.85 833.6086 0.0000000E+00 102100
0.0000000E+00 0.0000000E+00 9822.939 1449.074 0.0000000E+00 012100
9468.738 4785.957 0.0000000E+00 0.0000000E+00 -779.7895 003100
-3816.752 -704.9623 0.0000000E+00 0.0000000E+00 77.33579 300001
-4630.142 -1931.511 0.0000000E+00 0.0000000E+00 -84.07735 210001
-2002.052 -2074.119 0.0000000E+00 0.0000000E+00 -320.9107 120001
-547.8424 -955.4662 0.0000000E+00 0.0000000E+00 -91.43704 030001
0.0000000E+00 0.0000000E+00 -5361.356 -1998.433 0.0000000E+00 201001
0.0000000E+00 0.0000000E+00 -5854.618 -1760.359 0.0000000E+00 111001
0.0000000E+00 0.0000000E+00 -598.9825 -248.5713 0.0000000E+00 021001
993.1874 698.4769 0.0000000E+00 0.0000000E+00 111.0650 102001
344.2125 776.1696 0.0000000E+00 0.0000000E+00 12.93733 012001
0.0000000E+00 0.0000000E+00 -502.8705 40.00509 0.0000000E+00 003001
19368.85 6888.843 0.0000000E+00 0.0000000E+00 -5868.323 200200
-7034.784 -553.2738 0.0000000E+00 0.0000000E+00 -3429.026 110200
-11651.28 -5269.160 0.0000000E+00 0.0000000E+00 -702.7318 020200
0.0000000E+00 0.0000000E+00 -7126.538 -11397.64 0.0000000E+00 101200
0.0000000E+00 0.0000000E+00 -4000.989 -5420.249 0.0000000E+00 011200
15550.94 9172.181 0.0000000E+00 0.0000000E+00 -585.6962 002200
0.0000000E+00 0.0000000E+00 -7508.717 -2265.926 0.0000000E+00 200101
0.0000000E+00 0.0000000E+00 -5169.939 -1245.713 0.0000000E+00 110101
0.0000000E+00 0.0000000E+00 -161.8404 -688.3924 0.0000000E+00 020101
-2441.004 -399.5675 0.0000000E+00 0.0000000E+00 41.26114 101101
-998.4166 1155.030 0.0000000E+00 0.0000000E+00 -379.6569 011101
0.0000000E+00 0.0000000E+00 -1423.746 1195.868 0.0000000E+00 002101
-171.3801 -96.47230 0.0000000E+00 0.0000000E+00 -47.05019 200002
-208.6432 -118.6365 0.0000000E+00 0.0000000E+00 -50.90882 110002
-79.22398 26.07429 0.0000000E+00 0.0000000E+00 -17.71257 020002
0.0000000E+00 0.0000000E+00 415.0045 230.0035 0.0000000E+00 101002
0.0000000E+00 0.0000000E+00 128.4404 54.00768 0.0000000E+00 011002
23.96056 -27.52170 0.0000000E+00 0.0000000E+00 3.838347 002002
0.0000000E+00 0.0000000E+00 -13503.89 -14601.50 0.0000000E+00 100300
0.0000000E+00 0.0000000E+00 -3940.617 -9079.921 0.0000000E+00 010300
11558.56 9075.666 0.0000000E+00 0.0000000E+00 -179.5769 001300
-3787.659 -498.3720 0.0000000E+00 0.0000000E+00 -440.9624 100201
-666.3428 1087.509 0.0000000E+00 0.0000000E+00 -420.8389 010201
0.0000000E+00 0.0000000E+00 227.6613 3041.432 0.0000000E+00 001201
0.0000000E+00 0.0000000E+00 478.4667 46.83745 0.0000000E+00 100102
0.0000000E+00 0.0000000E+00 40.30990 26.67427 0.0000000E+00 010102
424.6671 49.75804 0.0000000E+00 0.0000000E+00 4.342524 001102
-14.14168 -4.439463 0.0000000E+00 0.0000000E+00 1.807706 100003
-12.44761 -11.94868 0.0000000E+00 0.0000000E+00 0.8633134 010003
0.0000000E+00 0.0000000E+00 4.824232 15.24525 0.0000000E+00 001003
2140.961 3661.622 0.0000000E+00 0.0000000E+00 -75.66233 000400
0.0000000E+00 0.0000000E+00 31.18157 987.0883 0.0000000E+00 000301
214.0472 74.76341 0.0000000E+00 0.0000000E+00 -20.84452 000202
0.0000000E+00 0.0000000E+00 -26.54261 12.10561 0.0000000E+00 000103
0.4511485 0.3378208 0.0000000E+00 0.0000000E+00 -1.787320 000004
244501.4 -6419.457 0.0000000E+00 0.0000000E+00 -9020.129 500000
762489.8 102060.8 0.0000000E+00 0.0000000E+00 14372.13 410000
1157718. 385230.8 0.0000000E+00 0.0000000E+00 80141.05 320000
823756.3 459495.8 0.0000000E+00 0.0000000E+00 76498.74 230000
216387.4 244788.9 0.0000000E+00 0.0000000E+00 24924.13 140000
13335.43 45881.62 0.0000000E+00 0.0000000E+00 3015.658 050000
0.0000000E+00 0.0000000E+00 1301482. 411324.5 0.0000000E+00 401000
0.0000000E+00 0.0000000E+00 975072.3 318398.0 0.0000000E+00 311000
0.0000000E+00 0.0000000E+00 -1334454. -406462.5 0.0000000E+00 221000
0.0000000E+00 0.0000000E+00 -1027818. -361623.4 0.0000000E+00 131000
0.0000000E+00 0.0000000E+00 -82782.34 -64167.83 0.0000000E+00 041000
-255233.2 -124129.7 0.0000000E+00 0.0000000E+00 -87611.92 302000
-288470.5 -197880.3 0.0000000E+00 0.0000000E+00 -37058.39 212000
-12439.81 -148195.4 0.0000000E+00 0.0000000E+00 84657.02 122000
18903.96 -46671.85 0.0000000E+00 0.0000000E+00 32975.96 032000
0.0000000E+00 0.0000000E+00 828882.3 219040.8 0.0000000E+00 203000
0.0000000E+00 0.0000000E+00 521644.2 173880.3 0.0000000E+00 113000
0.0000000E+00 0.0000000E+00 -43364.44 47161.46 0.0000000E+00 023000
21017.75 11527.24 0.0000000E+00 0.0000000E+00 -30643.43 104000
-768.5951 3777.948 0.0000000E+00 0.0000000E+00 -11010.40 014000
0.0000000E+00 0.0000000E+00 24891.37 -2192.297 0.0000000E+00 005000
0.0000000E+00 0.0000000E+00 1633254. 170661.7 0.0000000E+00 400100
0.0000000E+00 0.0000000E+00 901695.6 -469364.2 0.0000000E+00 310100
0.0000000E+00 0.0000000E+00 -1664202. -1230281. 0.0000000E+00 220100
0.0000000E+00 0.0000000E+00 -936311.3 -697654.4 0.0000000E+00 130100
0.0000000E+00 0.0000000E+00 -38617.86 -125382.8 0.0000000E+00 040100
-93450.31 -94256.35 0.0000000E+00 0.0000000E+00 -190110.9 301100
28663.38 -201042.1 0.0000000E+00 0.0000000E+00 26933.67 211100
153315.9 -323524.9 0.0000000E+00 0.0000000E+00 251811.9 121100
66891.11 -141100.6 0.0000000E+00 0.0000000E+00 73118.16 031100
0.0000000E+00 0.0000000E+00 2323540. 581962.8 0.0000000E+00 202100
0.0000000E+00 0.0000000E+00 1264225. 496978.9 0.0000000E+00 112100
0.0000000E+00 0.0000000E+00 -144539.9 205383.4 0.0000000E+00 022100
314255.1 143050.9 0.0000000E+00 0.0000000E+00 -98603.99 103100
43575.40 46762.03 0.0000000E+00 0.0000000E+00 -26849.17 013100
0.0000000E+00 0.0000000E+00 100429.1 -32210.48 0.0000000E+00 004100
-41010.94 -14671.19 0.0000000E+00 0.0000000E+00 2587.602 400001
-9857.438 -16778.42 0.0000000E+00 0.0000000E+00 3543.918 310001
85483.31 615.7292 0.0000000E+00 0.0000000E+00 -157.7030 220001
57980.17 769.3736 0.0000000E+00 0.0000000E+00 571.2146 130001
6044.518 -2147.427 0.0000000E+00 0.0000000E+00 1034.318 040001
0.0000000E+00 0.0000000E+00 -29067.53 8977.653 0.0000000E+00 301001
0.0000000E+00 0.0000000E+00 -84890.56 3776.886 0.0000000E+00 211001
0.0000000E+00 0.0000000E+00 34732.17 26510.52 0.0000000E+00 121001
0.0000000E+00 0.0000000E+00 30163.96 15938.81 0.0000000E+00 031001
67821.03 21866.38 0.0000000E+00 0.0000000E+00 -3825.652 202001
50722.81 29507.52 0.0000000E+00 0.0000000E+00 1118.527 112001
17710.10 11786.25 0.0000000E+00 0.0000000E+00 10.56806 022001
0.0000000E+00 0.0000000E+00 -19766.28 -16303.38 0.0000000E+00 103001
0.0000000E+00 0.0000000E+00 2179.031 -11685.86 0.0000000E+00 013001
3603.668 2484.123 0.0000000E+00 0.0000000E+00 67.62791 004001
-24571.78 12901.81 0.0000000E+00 0.0000000E+00 -97146.94 300200
-168514.5 -133432.3 0.0000000E+00 0.0000000E+00 69658.88 210200
-292489.7 -368671.7 0.0000000E+00 0.0000000E+00 142259.2 120200
-66553.04 -168044.5 0.0000000E+00 0.0000000E+00 30765.93 030200
0.0000000E+00 0.0000000E+00 1521122. 159366.2 0.0000000E+00 201200
0.0000000E+00 0.0000000E+00 749906.6 299033.2 0.0000000E+00 111200
0.0000000E+00 0.0000000E+00 -13571.71 296073.2 0.0000000E+00 021200
1055209. 462133.9 0.0000000E+00 0.0000000E+00 -54449.77 102200
200877.8 141950.6 0.0000000E+00 0.0000000E+00 4056.463 012200
0.0000000E+00 0.0000000E+00 111545.1 -123573.5 0.0000000E+00 003200
0.0000000E+00 0.0000000E+00 -39025.82 -62623.16 0.0000000E+00 300101
0.0000000E+00 0.0000000E+00 21817.83 -86942.78 0.0000000E+00 210101
0.0000000E+00 0.0000000E+00 159830.5 -11313.61 0.0000000E+00 120101
0.0000000E+00 0.0000000E+00 56149.54 8036.086 0.0000000E+00 030101
297116.4 109798.1 0.0000000E+00 0.0000000E+00 16949.81 201101
277543.7 148019.0 0.0000000E+00 0.0000000E+00 20312.00 111101
117653.9 73727.99 0.0000000E+00 0.0000000E+00 4329.686 021101
0.0000000E+00 0.0000000E+00 -112441.8 -71510.84 0.0000000E+00 102101
0.0000000E+00 0.0000000E+00 3493.770 -54741.43 0.0000000E+00 012101
901.1472 7633.207 0.0000000E+00 0.0000000E+00 1905.522 003101
-925.8677 -2473.934 0.0000000E+00 0.0000000E+00 -397.4862 300002
1496.931 -1965.648 0.0000000E+00 0.0000000E+00 -435.4223 210002
3854.513 3286.872 0.0000000E+00 0.0000000E+00 488.4447 120002
2578.830 2920.779 0.0000000E+00 0.0000000E+00 269.4000 030002
0.0000000E+00 0.0000000E+00 1038.194 1666.302 0.0000000E+00 201002
0.0000000E+00 0.0000000E+00 5312.493 3773.707 0.0000000E+00 111002
0.0000000E+00 0.0000000E+00 336.1232 -382.5991 0.0000000E+00 021002
-17255.03 -5717.972 0.0000000E+00 0.0000000E+00 -1504.800 102002
-8369.778 -3230.803 0.0000000E+00 0.0000000E+00 -811.5109 012002
0.0000000E+00 0.0000000E+00 -947.0040 777.2462 0.0000000E+00 003002
0.0000000E+00 0.0000000E+00 152312.1 -54538.61 0.0000000E+00 200300
0.0000000E+00 0.0000000E+00 250130.9 122414.9 0.0000000E+00 110300
0.0000000E+00 0.0000000E+00 111873.7 190623.7 0.0000000E+00 020300
1172606. 483051.7 0.0000000E+00 0.0000000E+00 56183.26 101300
247721.9 118650.3 0.0000000E+00 0.0000000E+00 38282.63 011300
0.0000000E+00 0.0000000E+00 51016.52 -180336.5 0.0000000E+00 002300
198408.9 69829.11 0.0000000E+00 0.0000000E+00 17331.12 200201
225085.3 109962.4 0.0000000E+00 0.0000000E+00 18763.10 110201
108045.2 61396.63 0.0000000E+00 0.0000000E+00 8925.452 020201
0.0000000E+00 0.0000000E+00 -4400.758 -95722.10 0.0000000E+00 101201
0.0000000E+00 0.0000000E+00 69516.33 -84065.76 0.0000000E+00 011201
2523.444 20475.79 0.0000000E+00 0.0000000E+00 5005.645 002201
0.0000000E+00 0.0000000E+00 26321.43 9012.662 0.0000000E+00 200102
0.0000000E+00 0.0000000E+00 20196.11 7192.880 0.0000000E+00 110102
0.0000000E+00 0.0000000E+00 38.41005 950.4877 0.0000000E+00 020102
-17848.55 -4885.302 0.0000000E+00 0.0000000E+00 -3260.159 101102
-8170.813 -4636.657 0.0000000E+00 0.0000000E+00 -1114.184 011102
0.0000000E+00 0.0000000E+00 1136.759 2936.637 0.0000000E+00 002102
-260.0742 -181.0075 0.0000000E+00 0.0000000E+00 82.01684 200003
-117.6082 -276.8156 0.0000000E+00 0.0000000E+00 73.89446 110003
-35.08724 -254.7004 0.0000000E+00 0.0000000E+00 19.76529 020003
0.0000000E+00 0.0000000E+00 -626.6381 -592.7507 0.0000000E+00 101003
0.0000000E+00 0.0000000E+00 -438.5358 -187.9330 0.0000000E+00 011003
619.5096 253.9364 0.0000000E+00 0.0000000E+00 5.659792 002003
424862.9 121803.9 0.0000000E+00 0.0000000E+00 40490.13 100400
60405.85 -23444.04 0.0000000E+00 0.0000000E+00 17587.38 010400
0.0000000E+00 0.0000000E+00 61886.75 -62290.20 0.0000000E+00 001400
0.0000000E+00 0.0000000E+00 78716.33 -16778.87 0.0000000E+00 100301
0.0000000E+00 0.0000000E+00 48070.49 -37135.63 0.0000000E+00 010301
10223.54 25112.81 0.0000000E+00 0.0000000E+00 8445.283 001301
7381.962 2820.614 0.0000000E+00 0.0000000E+00 111.6885 100202
-1164.130 -2126.301 0.0000000E+00 0.0000000E+00 531.3026 010202
0.0000000E+00 0.0000000E+00 -1729.515 -1842.547 0.0000000E+00 001202
0.0000000E+00 0.0000000E+00 -1213.520 -273.8779 0.0000000E+00 100103
0.0000000E+00 0.0000000E+00 -465.7522 -43.15574 0.0000000E+00 010103
-345.3453 313.2402 0.0000000E+00 0.0000000E+00 -20.48865 001103
10.44507 -9.691994 0.0000000E+00 0.0000000E+00 -7.831953 100004
18.15587 16.17431 0.0000000E+00 0.0000000E+00 -4.861970 010004
0.0000000E+00 0.0000000E+00 -43.09492 -22.59598 0.0000000E+00 001004
0.0000000E+00 0.0000000E+00 33271.29 53605.63 0.0000000E+00 000500
9043.538 7540.605 0.0000000E+00 0.0000000E+00 6235.660 000401
0.0000000E+00 0.0000000E+00 -1401.860 -1947.900 0.0000000E+00 000302
-842.3618 -16.95985 0.0000000E+00 0.0000000E+00 38.43036 000203
0.0000000E+00 0.0000000E+00 56.55723 -32.39425 0.0000000E+00 000104
-1.418380 -1.156574 0.0000000E+00 0.0000000E+00 1.978399 000005
6805933. 1386717. 0.0000000E+00 0.0000000E+00 -23357.08 600000
0.1501745E+08 4822788. 0.0000000E+00 0.0000000E+00 505204.9 510000
6405499. 6827683. 0.0000000E+00 0.0000000E+00 1290099. 420000
-0.1110351E+08 3071309. 0.0000000E+00 0.0000000E+00 558256.8 330000
-0.1646039E+08 -2088021. 0.0000000E+00 0.0000000E+00 -655422.9 240000
-7890004. -2416169. 0.0000000E+00 0.0000000E+00 -525360.6 150000
-1174274. -693826.8 0.0000000E+00 0.0000000E+00 -91348.44 060000
0.0000000E+00 0.0000000E+00 0.1378430E+08 6123731. 0.0000000E+00 501000
0.0000000E+00 0.0000000E+00 -2379539. 3934592. 0.0000000E+00 411000
0.0000000E+00 0.0000000E+00-0.5416534E+08-0.1206722E+08 0.0000000E+00 321000
0.0000000E+00 0.0000000E+00-0.3822907E+08 -9508492. 0.0000000E+00 231000
0.0000000E+00 0.0000000E+00 1567167. 1034001. 0.0000000E+00 141000
0.0000000E+00 0.0000000E+00 3216563. 1070950. 0.0000000E+00 051000
-7177630. -2967199. 0.0000000E+00 0.0000000E+00 -447086.6 402000
-5452559. -3269715. 0.0000000E+00 0.0000000E+00 1560291. 312000
7163870. 622790.6 0.0000000E+00 0.0000000E+00 3969633. 222000
6355372. 1506060. 0.0000000E+00 0.0000000E+00 1811895. 132000
886727.5 669077.7 0.0000000E+00 0.0000000E+00 553.2955 042000
0.0000000E+00 0.0000000E+00 0.1536554E+08 3782797. 0.0000000E+00 303000
0.0000000E+00 0.0000000E+00 4090700. 1189163. 0.0000000E+00 213000
0.0000000E+00 0.0000000E+00-0.1915493E+08 -4491536. 0.0000000E+00 123000
0.0000000E+00 0.0000000E+00 -6903961. -1560407. 0.0000000E+00 033000
-2753536. -899365.6 0.0000000E+00 0.0000000E+00 -1023514. 204000
-3092588. -972772.1 0.0000000E+00 0.0000000E+00 -506132.4 114000
-1397559. -532732.7 0.0000000E+00 0.0000000E+00 175329.5 024000
0.0000000E+00 0.0000000E+00 3285846. 747656.0 0.0000000E+00 105000
0.0000000E+00 0.0000000E+00 1150921. 258169.0 0.0000000E+00 015000
162477.3 48432.11 0.0000000E+00 0.0000000E+00 -46619.90 006000
0.0000000E+00 0.0000000E+00 0.3266673E+08 0.1465415E+08 0.0000000E+00 500100
0.0000000E+00 0.0000000E+00 0.2505412E+08 0.2313191E+08 0.0000000E+00 410100
0.0000000E+00 0.0000000E+00-0.4197526E+08 0.1359172E+08 0.0000000E+00 320100
0.0000000E+00 0.0000000E+00-0.2823545E+08 0.1483979E+08 0.0000000E+00 230100
0.0000000E+00 0.0000000E+00 6985360. 0.1265165E+08 0.0000000E+00 140100
0.0000000E+00 0.0000000E+00 3234243. 3073831. 0.0000000E+00 050100
-5810383. -2810573. 0.0000000E+00 0.0000000E+00 -1437335. 401100
7576439. -861242.1 0.0000000E+00 0.0000000E+00 3783052. 311100
0.2259299E+08 1524135. 0.0000000E+00 0.0000000E+00 8901551. 221100
0.1122844E+08 533370.2 0.0000000E+00 0.0000000E+00 2711677. 131100
1128099. 979433.0 0.0000000E+00 0.0000000E+00 -459271.1 041100
0.0000000E+00 0.0000000E+00 0.4364058E+08 9490873. 0.0000000E+00 302100
0.0000000E+00 0.0000000E+00 -8692093. -2499358. 0.0000000E+00 212100
0.0000000E+00 0.0000000E+00-0.7356939E+08-0.1705454E+08 0.0000000E+00 122100
0.0000000E+00 0.0000000E+00-0.2226236E+08 -5143087. 0.0000000E+00 032100
-8240503. -2613588. 0.0000000E+00 0.0000000E+00 -4809022. 203100
-0.1442990E+08 -4177024. 0.0000000E+00 0.0000000E+00 -2054753. 113100
-8733558. -3024537. 0.0000000E+00 0.0000000E+00 613533.6 023100
0.0000000E+00 0.0000000E+00 0.1626792E+08 3194872. 0.0000000E+00 104100
0.0000000E+00 0.0000000E+00 5244119. 1101489. 0.0000000E+00 014100
1623229. 498035.4 0.0000000E+00 0.0000000E+00 -259460.1 005100
295238.2 -17301.12 0.0000000E+00 0.0000000E+00 68847.82 500001
1708608. 311415.4 0.0000000E+00 0.0000000E+00 141204.8 410001
3212984. 710459.6 0.0000000E+00 0.0000000E+00 48109.65 320001
1983526. 375272.3 0.0000000E+00 0.0000000E+00 7512.733 230001
158018.8 -8362.913 0.0000000E+00 0.0000000E+00 31224.61 140001
-88423.59 10341.44 0.0000000E+00 0.0000000E+00 6084.796 050001
0.0000000E+00 0.0000000E+00 876986.8 183729.9 0.0000000E+00 401001
0.0000000E+00 0.0000000E+00 -620981.1 -611001.3 0.0000000E+00 311001
0.0000000E+00 0.0000000E+00 174893.2 -664717.6 0.0000000E+00 221001
0.0000000E+00 0.0000000E+00 336505.6 -324310.3 0.0000000E+00 131001
0.0000000E+00 0.0000000E+00 -270588.0 -138694.7 0.0000000E+00 041001
1725851. 498913.9 0.0000000E+00 0.0000000E+00 -200544.9 302001
993899.0 337025.6 0.0000000E+00 0.0000000E+00 -106076.7 212001
-951611.3 -421361.1 0.0000000E+00 0.0000000E+00 -92283.73 122001
-513096.9 -343752.2 0.0000000E+00 0.0000000E+00 -54979.24 032001
0.0000000E+00 0.0000000E+00 1744699. 413138.1 0.0000000E+00 203001
0.0000000E+00 0.0000000E+00 2456351. 643703.1 0.0000000E+00 113001
0.0000000E+00 0.0000000E+00 985582.4 263104.5 0.0000000E+00 023001
1116752. 371544.5 0.0000000E+00 0.0000000E+00 9026.387 104001
570325.4 219094.8 0.0000000E+00 0.0000000E+00 5703.406 014001
0.0000000E+00 0.0000000E+00 -15445.00 -32170.11 0.0000000E+00 005001
1986137. 2033639. 0.0000000E+00 0.0000000E+00 -349693.3 400200
0.1233151E+08 4408344. 0.0000000E+00 0.0000000E+00 3370923. 310200
0.1526889E+08 696077.5 0.0000000E+00 0.0000000E+00 4974904. 220200
7552096. -830975.5 0.0000000E+00 0.0000000E+00 542068.6 130200
1646164. 684457.6 0.0000000E+00 0.0000000E+00 -471617.2 040200
0.0000000E+00 0.0000000E+00 0.3270874E+08 9248721. 0.0000000E+00 301200
0.0000000E+00 0.0000000E+00-0.3088584E+08 -301791.9 0.0000000E+00 211200
0.0000000E+00 0.0000000E+00-0.7686630E+08 -9818007. 0.0000000E+00 121200
0.0000000E+00 0.0000000E+00-0.1918597E+08 -2669957. 0.0000000E+00 031200
-8501078. -2268877. 0.0000000E+00 0.0000000E+00 -8823608. 202200
-0.3231572E+08 -8500785. 0.0000000E+00 0.0000000E+00 -4470885. 112200
-0.2196293E+08 -6611618. 0.0000000E+00 0.0000000E+00 -152634.9 022200
0.0000000E+00 0.0000000E+00 0.2688604E+08 3174724. 0.0000000E+00 103200
0.0000000E+00 0.0000000E+00 7633720. 1199221. 0.0000000E+00 013200
6013996. 1842798. 0.0000000E+00 0.0000000E+00 -531771.4 004200
0.0000000E+00 0.0000000E+00 2426349. 1590030. 0.0000000E+00 400101
0.0000000E+00 0.0000000E+00 4328782. 3411070. 0.0000000E+00 310101
0.0000000E+00 0.0000000E+00 5280432. 4383311. 0.0000000E+00 220101
0.0000000E+00 0.0000000E+00 1419701. 2270422. 0.0000000E+00 130101
0.0000000E+00 0.0000000E+00 -327187.4 325907.6 0.0000000E+00 040101
4084464. 1365832. 0.0000000E+00 0.0000000E+00 -634958.8 301101
12627.94 521315.6 0.0000000E+00 0.0000000E+00 -713947.3 211101
-5440255. -1682546. 0.0000000E+00 0.0000000E+00 -838082.0 121101
-2296158. -1081605. 0.0000000E+00 0.0000000E+00 -290605.8 031101
0.0000000E+00 0.0000000E+00 1619859. -834544.4 0.0000000E+00 202101
0.0000000E+00 0.0000000E+00 6552483. 675114.7 0.0000000E+00 112101
0.0000000E+00 0.0000000E+00 3355414. 461339.1 0.0000000E+00 022101
5037739. 1746710. 0.0000000E+00 0.0000000E+00 313437.3 103101
2687705. 957691.9 0.0000000E+00 0.0000000E+00 115342.9 013101
0.0000000E+00 0.0000000E+00 -302956.2 -185975.4 0.0000000E+00 004101
113462.7 3629.333 0.0000000E+00 0.0000000E+00 -714.5979 400002
271566.0 55063.52 0.0000000E+00 0.0000000E+00 2164.298 310002
115196.1 90041.97 0.0000000E+00 0.0000000E+00 5210.541 220002
-37958.82 33406.94 0.0000000E+00 0.0000000E+00 -4253.319 130002
-16871.98 -8677.593 0.0000000E+00 0.0000000E+00 -4268.028 040002
0.0000000E+00 0.0000000E+00 -335690.5 -200764.5 0.0000000E+00 301002
0.0000000E+00 0.0000000E+00 -254310.6 -285942.3 0.0000000E+00 211002
0.0000000E+00 0.0000000E+00 71159.34 -139010.7 0.0000000E+00 121002
0.0000000E+00 0.0000000E+00 39986.02 -36748.85 0.0000000E+00 031002
-40876.88 -12368.06 0.0000000E+00 0.0000000E+00 14241.23 202002
42348.26 48872.69 0.0000000E+00 0.0000000E+00 30438.96 112002
128353.9 71795.73 0.0000000E+00 0.0000000E+00 19146.81 022002
0.0000000E+00 0.0000000E+00 -64281.68 -14435.16 0.0000000E+00 103002
0.0000000E+00 0.0000000E+00 -37582.03 -2621.236 0.0000000E+00 013002
-56409.31 -17255.79 0.0000000E+00 0.0000000E+00 -752.2723 004002
0.0000000E+00 0.0000000E+00 -414057.6 5291550. 0.0000000E+00 300300
0.0000000E+00 0.0000000E+00-0.1890740E+08 0.1128837E+08 0.0000000E+00 210300
0.0000000E+00 0.0000000E+00-0.2300839E+08 7211153. 0.0000000E+00 120300
0.0000000E+00 0.0000000E+00 -4757316. 1609349. 0.0000000E+00 030300
-0.1017776E+08 -2685787. 0.0000000E+00 0.0000000E+00 -8114833. 201300
-0.4385585E+08-0.1128250E+08 0.0000000E+00 0.0000000E+00 -6325037. 111300
-0.2541271E+08 -6088159. 0.0000000E+00 0.0000000E+00 -1868878. 021300
0.0000000E+00 0.0000000E+00 0.1740520E+08 -701074.2 0.0000000E+00 102300
0.0000000E+00 0.0000000E+00 3722173. 142934.5 0.0000000E+00 012300
0.1081507E+08 3250358. 0.0000000E+00 0.0000000E+00 -630351.1 003300
4049104. 1389510. 0.0000000E+00 0.0000000E+00 -312759.9 300201
767996.1 867176.5 0.0000000E+00 0.0000000E+00 -589873.8 210201
-3632193. -660091.6 0.0000000E+00 0.0000000E+00 -711539.4 120201
-1655494. -500983.2 0.0000000E+00 0.0000000E+00 -211587.0 030201
0.0000000E+00 0.0000000E+00 992363.5 -794511.0 0.0000000E+00 201201
0.0000000E+00 0.0000000E+00 8119993. 1082860. 0.0000000E+00 111201
0.0000000E+00 0.0000000E+00 2652069. 155379.0 0.0000000E+00 021201
6932254. 2314348. 0.0000000E+00 0.0000000E+00 626641.1 102201
4353908. 1100170. 0.0000000E+00 0.0000000E+00 142909.8 012201
0.0000000E+00 0.0000000E+00 -584017.9 -220095.7 0.0000000E+00 003201
0.0000000E+00 0.0000000E+00 -88104.38 -71502.58 0.0000000E+00 300102
0.0000000E+00 0.0000000E+00 -129918.1 -137030.1 0.0000000E+00 210102
0.0000000E+00 0.0000000E+00 -352256.5 -196788.9 0.0000000E+00 120102
0.0000000E+00 0.0000000E+00 -158708.5 -77915.15 0.0000000E+00 030102
-619355.2 -177936.7 0.0000000E+00 0.0000000E+00 -48232.01 201102
-189824.2 -6023.641 0.0000000E+00 0.0000000E+00 32511.02 111102
99178.91 53003.32 0.0000000E+00 0.0000000E+00 41752.47 021102
0.0000000E+00 0.0000000E+00 315817.6 25654.19 0.0000000E+00 102102
0.0000000E+00 0.0000000E+00 102757.8 72878.58 0.0000000E+00 012102
-104941.7 -18638.58 0.0000000E+00 0.0000000E+00 5685.227 003102
-1044.772 -665.9725 0.0000000E+00 0.0000000E+00 1099.835 300003
10397.85 5156.012 0.0000000E+00 0.0000000E+00 2540.553 210003
10027.23 5913.756 0.0000000E+00 0.0000000E+00 1685.509 120003
-1793.994 -443.5157 0.0000000E+00 0.0000000E+00 315.6471 030003
0.0000000E+00 0.0000000E+00 14611.75 7794.193 0.0000000E+00 201003
0.0000000E+00 0.0000000E+00 -12850.92 -2362.657 0.0000000E+00 111003
0.0000000E+00 0.0000000E+00 -8898.870 27.57019 0.0000000E+00 021003
36826.93 9593.878 0.0000000E+00 0.0000000E+00 1254.421 102003
21826.43 4814.305 0.0000000E+00 0.0000000E+00 1140.711 012003
0.0000000E+00 0.0000000E+00 3323.770 -1402.167 0.0000000E+00 003003
-6665776. -2394480. 0.0000000E+00 0.0000000E+00 -3398195. 200400
-0.2070758E+08 -5167370. 0.0000000E+00 0.0000000E+00 -3546065. 110400
-0.1007785E+08 -1291064. 0.0000000E+00 0.0000000E+00 -1283725. 020400
0.0000000E+00 0.0000000E+00 1797833. -1842892. 0.0000000E+00 101400
0.0000000E+00 0.0000000E+00 -1337458. -315160.4 0.0000000E+00 011400
0.1009057E+08 3145539. 0.0000000E+00 0.0000000E+00 -656436.0 002400
0.0000000E+00 0.0000000E+00 289275.9 410323.8 0.0000000E+00 200301
0.0000000E+00 0.0000000E+00 1804865. 1095739. 0.0000000E+00 110301
0.0000000E+00 0.0000000E+00 -552599.7 -223439.2 0.0000000E+00 020301
2583902. 444658.6 0.0000000E+00 0.0000000E+00 125997.1 101301
2125040. -307814.3 0.0000000E+00 0.0000000E+00 -140341.8 011301
0.0000000E+00 0.0000000E+00 -354636.5 483647.3 0.0000000E+00 002301
-672095.9 -159947.0 0.0000000E+00 0.0000000E+00 -75119.09 200202
-499344.4 -128802.4 0.0000000E+00 0.0000000E+00 -10990.42 110202
-207902.3 -91245.03 0.0000000E+00 0.0000000E+00 2731.205 020202
0.0000000E+00 0.0000000E+00 435508.6 172367.3 0.0000000E+00 101202
0.0000000E+00 0.0000000E+00 77330.37 217917.5 0.0000000E+00 011202
48989.08 53125.54 0.0000000E+00 0.0000000E+00 47064.27 002202
0.0000000E+00 0.0000000E+00 -54563.91 -26230.62 0.0000000E+00 200103
0.0000000E+00 0.0000000E+00 -60928.01 -29056.44 0.0000000E+00 110103
0.0000000E+00 0.0000000E+00 -4225.136 -3503.058 0.0000000E+00 020103
105341.6 29903.46 0.0000000E+00 0.0000000E+00 12148.37 101103
41541.72 13876.68 0.0000000E+00 0.0000000E+00 5974.424 011103
0.0000000E+00 0.0000000E+00 -692.5185 -14848.69 0.0000000E+00 002103
321.1899 -198.9007 0.0000000E+00 0.0000000E+00 -230.9683 200004
432.0686 -7.041990 0.0000000E+00 0.0000000E+00 -293.0969 110004
599.9945 579.8807 0.0000000E+00 0.0000000E+00 -61.72006 020004
0.0000000E+00 0.0000000E+00 392.5355 1471.277 0.0000000E+00 101004
0.0000000E+00 0.0000000E+00 874.7651 843.7166 0.0000000E+00 011004
-2884.143 -667.3562 0.0000000E+00 0.0000000E+00 -30.79611 002004
0.0000000E+00 0.0000000E+00 -3247699. -2139801. 0.0000000E+00 100500
0.0000000E+00 0.0000000E+00 -1933490. -777791.1 0.0000000E+00 010500
4936417. 2191882. 0.0000000E+00 0.0000000E+00 -515385.8 001500
-968973.3 -533518.0 0.0000000E+00 0.0000000E+00 -235568.0 100401
-158543.1 -585380.3 0.0000000E+00 0.0000000E+00 -207121.2 010401
0.0000000E+00 0.0000000E+00 -541960.3 1178759. 0.0000000E+00 001401
0.0000000E+00 0.0000000E+00 -200599.3 33736.48 0.0000000E+00 100302
0.0000000E+00 0.0000000E+00 -103432.1 155777.7 0.0000000E+00 010302
174810.8 62311.09 0.0000000E+00 0.0000000E+00 61124.49 001302
24809.68 7662.369 0.0000000E+00 0.0000000E+00 4198.707 100203
16818.66 7958.239 0.0000000E+00 0.0000000E+00 1410.058 010203
0.0000000E+00 0.0000000E+00 9836.318 -13090.19 0.0000000E+00 001203
0.0000000E+00 0.0000000E+00 4661.658 1323.401 0.0000000E+00 100104
0.0000000E+00 0.0000000E+00 2556.739 267.6631 0.0000000E+00 010104
-2520.965 -1152.881 0.0000000E+00 0.0000000E+00 182.5096 001104
-30.03138 15.09024 0.0000000E+00 0.0000000E+00 22.99947 100005
-69.14617 -41.70705 0.0000000E+00 0.0000000E+00 14.89669 010005
0.0000000E+00 0.0000000E+00 172.3299 16.18849 0.0000000E+00 001005
1043927. 1081846. 0.0000000E+00 0.0000000E+00 -181612.5 000600
0.0000000E+00 0.0000000E+00 -438363.4 464352.4 0.0000000E+00 000501
63262.95 9524.971 0.0000000E+00 0.0000000E+00 7442.653 000402
0.0000000E+00 0.0000000E+00 10279.68 -1238.470 0.0000000E+00 000303
2247.679 114.5041 0.0000000E+00 0.0000000E+00 24.14899 000204
0.0000000E+00 0.0000000E+00 -19.32715 81.33294 0.0000000E+00 000105
3.695500 2.337325 0.0000000E+00 0.0000000E+00 -2.543477 000006
0.5909996E+08 0.2069877E+08 0.0000000E+00 0.0000000E+00 -4570951. 700000
-0.2756579E+08 0.3375480E+08 0.0000000E+00 0.0000000E+00-0.1017360E+08 610000
-0.5504217E+09-0.5477530E+08 0.0000000E+00 0.0000000E+00-0.1565015E+08 520000
-0.9125295E+09-0.1937379E+09 0.0000000E+00 0.0000000E+00-0.3548926E+08 430000
-0.6123345E+09-0.2159940E+09 0.0000000E+00 0.0000000E+00-0.4618366E+08 340000
-0.1443080E+09-0.1065980E+09 0.0000000E+00 0.0000000E+00-0.2361785E+08 250000
0.3273786E+08-0.1706287E+08 0.0000000E+00 0.0000000E+00 -2397168. 160000
0.1573483E+08 1304261. 0.0000000E+00 0.0000000E+00 640037.9 070000
0.0000000E+00 0.0000000E+00-0.4339835E+08 7809003. 0.0000000E+00 601000
0.0000000E+00 0.0000000E+00-0.6294880E+09-0.1809163E+09 0.0000000E+00 511000
0.0000000E+00 0.0000000E+00-0.1409434E+10-0.5217755E+09 0.0000000E+00 421000
0.0000000E+00 0.0000000E+00-0.6481306E+09-0.3515627E+09 0.0000000E+00 331000
0.0000000E+00 0.0000000E+00 0.5003940E+09 0.5291742E+08 0.0000000E+00 241000
0.0000000E+00 0.0000000E+00 0.3610500E+09 0.7981511E+08 0.0000000E+00 151000
0.0000000E+00 0.0000000E+00 0.3246492E+08 5775719. 0.0000000E+00 061000
-0.2461499E+09-0.8411031E+08 0.0000000E+00 0.0000000E+00 -6798098. 502000
-0.3270214E+09-0.9625951E+08 0.0000000E+00 0.0000000E+00 0.1781059E+08 412000
0.7424051E+08 0.7547479E+08 0.0000000E+00 0.0000000E+00 0.5144487E+08 322000
0.1761952E+09 0.1206068E+09 0.0000000E+00 0.0000000E+00 9158870. 232000
-9413026. 0.3704740E+08 0.0000000E+00 0.0000000E+00-0.2546922E+08 142000
-0.2318154E+08 1905631. 0.0000000E+00 0.0000000E+00 -8095994. 052000
0.0000000E+00 0.0000000E+00 0.1982006E+09 0.5809273E+08 0.0000000E+00 403000
0.0000000E+00 0.0000000E+00-0.2049489E+09-0.3804155E+08 0.0000000E+00 313000
0.0000000E+00 0.0000000E+00-0.9328279E+09-0.2357210E+09 0.0000000E+00 223000
0.0000000E+00 0.0000000E+00-0.4800012E+09-0.1284729E+09 0.0000000E+00 133000
0.0000000E+00 0.0000000E+00 -1911680. -3339191. 0.0000000E+00 043000
-0.1460576E+09-0.4722756E+08 0.0000000E+00 0.0000000E+00-0.1090590E+08 304000
-0.1419189E+09-0.4481377E+08 0.0000000E+00 0.0000000E+00 0.1196532E+08 214000
0.1599414E+08 5389648. 0.0000000E+00 0.0000000E+00 0.3999327E+08 124000
0.2468944E+08 7625865. 0.0000000E+00 0.0000000E+00 0.1258848E+08 034000
0.0000000E+00 0.0000000E+00 0.1102365E+09 0.2715449E+08 0.0000000E+00 205000
0.0000000E+00 0.0000000E+00 0.5097392E+08 0.1412909E+08 0.0000000E+00 115000
0.0000000E+00 0.0000000E+00-0.2862665E+08 -4909063. 0.0000000E+00 025000
-0.1209683E+08 -4406492. 0.0000000E+00 0.0000000E+00 -5341515. 106000
-6695654. -2416237. 0.0000000E+00 0.0000000E+00 -1864425. 016000
0.0000000E+00 0.0000000E+00 4167098. 768255.1 0.0000000E+00 007000
0.0000000E+00 0.0000000E+00 0.2050922E+09 0.1057370E+09 0.0000000E+00 600100
0.0000000E+00 0.0000000E+00-0.4058909E+09-0.6340836E+08 0.0000000E+00 510100
0.0000000E+00 0.0000000E+00-0.1949073E+10-0.7037129E+09 0.0000000E+00 420100
0.0000000E+00 0.0000000E+00-0.1341571E+10-0.7316522E+09 0.0000000E+00 330100
0.0000000E+00 0.0000000E+00 0.1968190E+09-0.2757590E+09 0.0000000E+00 240100
0.0000000E+00 0.0000000E+00 0.2296274E+09-0.9268749E+08 0.0000000E+00 150100
0.0000000E+00 0.0000000E+00 2202542. -0.3022313E+08 0.0000000E+00 060100
-0.8933962E+09-0.2971687E+09 0.0000000E+00 0.0000000E+00-0.9015414E+08 501100
-0.1605032E+10-0.5148600E+09 0.0000000E+00 0.0000000E+00-0.1376070E+09 411100
-0.9828548E+09-0.2381389E+09 0.0000000E+00 0.0000000E+00-0.5828150E+08 321100
-0.3971690E+09 7288161. 0.0000000E+00 0.0000000E+00-0.8090613E+08 231100
-0.2354506E+09 0.3576069E+08 0.0000000E+00 0.0000000E+00-0.8538465E+08 141100
-0.6100237E+08 0.1225885E+08 0.0000000E+00 0.0000000E+00-0.1748519E+08 051100
0.0000000E+00 0.0000000E+00 0.7013590E+09 0.1825315E+09 0.0000000E+00 402100
0.0000000E+00 0.0000000E+00-0.8460605E+09-0.2100552E+09 0.0000000E+00 312100
0.0000000E+00 0.0000000E+00-0.3197821E+10-0.8544860E+09 0.0000000E+00 222100
0.0000000E+00 0.0000000E+00-0.1397295E+10-0.4218101E+09 0.0000000E+00 132100
0.0000000E+00 0.0000000E+00 0.6567880E+08-0.1252815E+08 0.0000000E+00 042100
-0.4858813E+09-0.1644170E+09 0.0000000E+00 0.0000000E+00-0.6250865E+08 303100
-0.4336559E+09-0.1434248E+09 0.0000000E+00 0.0000000E+00 0.6696066E+08 213100
0.1110161E+09 0.3198250E+08 0.0000000E+00 0.0000000E+00 0.1989409E+09 123100
0.1268804E+09 0.3580229E+08 0.0000000E+00 0.0000000E+00 0.5737639E+08 033100
0.0000000E+00 0.0000000E+00 0.6700986E+09 0.1776944E+09 0.0000000E+00 204100
0.0000000E+00 0.0000000E+00 0.2889675E+09 0.1016543E+09 0.0000000E+00 114100
0.0000000E+00 0.0000000E+00-0.1405179E+09-0.1086453E+08 0.0000000E+00 024100
-0.4923610E+08-0.2074622E+08 0.0000000E+00 0.0000000E+00-0.3824295E+08 105100
-0.4233887E+08-0.1557452E+08 0.0000000E+00 0.0000000E+00-0.1223933E+08 015100
0.0000000E+00 0.0000000E+00 0.2916942E+08 3724937. 0.0000000E+00 006100
0.1308065E+08 3961703. 0.0000000E+00 0.0000000E+00 973305.2 600001
0.2188501E+08 0.1011102E+08 0.0000000E+00 0.0000000E+00 1429078. 510001
5484153. 0.1083720E+08 0.0000000E+00 0.0000000E+00 -1292291. 420001
-0.2348249E+08 5613490. 0.0000000E+00 0.0000000E+00 -1238737. 330001
-0.3247572E+08 2348977. 0.0000000E+00 0.0000000E+00 1426916. 240001
-0.1525893E+08 2381430. 0.0000000E+00 0.0000000E+00 913489.6 150001
-1965452. 1001770. 0.0000000E+00 0.0000000E+00 23394.24 060001
0.0000000E+00 0.0000000E+00 0.5258940E+08 0.2567196E+08 0.0000000E+00 501001
0.0000000E+00 0.0000000E+00 0.4698364E+08 0.3052508E+08 0.0000000E+00 411001
0.0000000E+00 0.0000000E+00 3754391. 0.1276428E+08 0.0000000E+00 321001
0.0000000E+00 0.0000000E+00-0.1722080E+08 3287008. 0.0000000E+00 231001
0.0000000E+00 0.0000000E+00-0.3001612E+08 -3801376. 0.0000000E+00 141001
0.0000000E+00 0.0000000E+00 -7290924. -1099858. 0.0000000E+00 051001
0.3729332E+08 0.1116740E+08 0.0000000E+00 0.0000000E+00 3277816. 402001
0.4264330E+08 7418546. 0.0000000E+00 0.0000000E+00 7959814. 312001
-9534638. -0.1421124E+08 0.0000000E+00 0.0000000E+00 6124143. 222001
-4897504. -9632122. 0.0000000E+00 0.0000000E+00 2692008. 132001
4453892. -148958.2 0.0000000E+00 0.0000000E+00 937397.4 042001
0.0000000E+00 0.0000000E+00 0.8142232E+08 0.2945636E+08 0.0000000E+00 303001
0.0000000E+00 0.0000000E+00 0.1187808E+09 0.4664874E+08 0.0000000E+00 213001
0.0000000E+00 0.0000000E+00 0.6437837E+08 0.2809050E+08 0.0000000E+00 123001
0.0000000E+00 0.0000000E+00 6527674. 5071690. 0.0000000E+00 033001
0.1567528E+08 4533499. 0.0000000E+00 0.0000000E+00 -5156942. 204001
-5528864. -1913329. 0.0000000E+00 0.0000000E+00 -6801026. 114001
-0.1105971E+08 -3711930. 0.0000000E+00 0.0000000E+00 -2312518. 024001
0.0000000E+00 0.0000000E+00 5521375. 240280.0 0.0000000E+00 105001
0.0000000E+00 0.0000000E+00 4693010. 272118.2 0.0000000E+00 015001
2336613. 759136.9 0.0000000E+00 0.0000000E+00 -22420.94 006001
-0.8154508E+09-0.2604004E+09 0.0000000E+00 0.0000000E+00-0.9861617E+08 500200
-0.1695615E+10-0.5762028E+09 0.0000000E+00 0.0000000E+00-0.1964527E+09 410200
-0.1467252E+10-0.5338140E+09 0.0000000E+00 0.0000000E+00-0.1691370E+09 320200
-0.7111339E+09-0.2273913E+09 0.0000000E+00 0.0000000E+00-0.1312999E+09 230200
-0.2084674E+09 -5195134. 0.0000000E+00 0.0000000E+00-0.6542390E+08 140200
-0.3041225E+08 0.1586459E+08 0.0000000E+00 0.0000000E+00 -8001904. 050200
0.0000000E+00 0.0000000E+00 0.4557589E+09 7473355. 0.0000000E+00 401200
0.0000000E+00 0.0000000E+00-0.1556638E+10-0.6764706E+09 0.0000000E+00 311200
0.0000000E+00 0.0000000E+00-0.3586311E+10-0.1342811E+10 0.0000000E+00 221200
0.0000000E+00 0.0000000E+00-0.1230223E+10-0.6781561E+09 0.0000000E+00 131200
0.0000000E+00 0.0000000E+00 0.1310576E+09-0.9058641E+08 0.0000000E+00 041200
-0.6503979E+09-0.2380759E+09 0.0000000E+00 0.0000000E+00-0.1573356E+09 302200
-0.6892146E+09-0.2409978E+09 0.0000000E+00 0.0000000E+00 0.9940054E+08 212200
0.7883732E+08 5622421. 0.0000000E+00 0.0000000E+00 0.3460089E+09 122200
0.2460809E+09 0.6067752E+08 0.0000000E+00 0.0000000E+00 0.9727184E+08 032200
0.0000000E+00 0.0000000E+00 0.1628284E+10 0.4573559E+09 0.0000000E+00 203200
0.0000000E+00 0.0000000E+00 0.7689899E+09 0.3297614E+09 0.0000000E+00 113200
0.0000000E+00 0.0000000E+00-0.1671342E+09 0.5221452E+08 0.0000000E+00 023200
-0.1032698E+08-0.1862618E+08 0.0000000E+00 0.0000000E+00-0.1082246E+09 104200
-0.1119537E+09-0.4153490E+08 0.0000000E+00 0.0000000E+00-0.3164376E+08 014200
0.0000000E+00 0.0000000E+00 0.7479718E+08 -136338.8 0.0000000E+00 005200
0.0000000E+00 0.0000000E+00 0.2076573E+08 0.2091248E+08 0.0000000E+00 500101
0.0000000E+00 0.0000000E+00-0.4558741E+08 9973851. 0.0000000E+00 410101
0.0000000E+00 0.0000000E+00-0.1234782E+09-0.4583370E+08 0.0000000E+00 320101
0.0000000E+00 0.0000000E+00-0.1434737E+09-0.8211800E+08 0.0000000E+00 230101
0.0000000E+00 0.0000000E+00-0.8456123E+08-0.5743240E+08 0.0000000E+00 140101
0.0000000E+00 0.0000000E+00-0.1148013E+08-0.1271609E+08 0.0000000E+00 050101
6308928. -440865.1 0.0000000E+00 0.0000000E+00-0.1584782E+08 401101
-0.1636635E+09-0.7278214E+08 0.0000000E+00 0.0000000E+00-0.3248393E+08 311101
-0.2759784E+09-0.1259772E+09 0.0000000E+00 0.0000000E+00-0.2645795E+08 221101
-0.9033813E+08-0.5571254E+08 0.0000000E+00 0.0000000E+00 -5539154. 131101
8510458. -3472566. 0.0000000E+00 0.0000000E+00 2322240. 041101
0.0000000E+00 0.0000000E+00 0.2699874E+09 0.1090297E+09 0.0000000E+00 302101
0.0000000E+00 0.0000000E+00 0.4906557E+09 0.2105040E+09 0.0000000E+00 212101
0.0000000E+00 0.0000000E+00 0.3600295E+09 0.1668296E+09 0.0000000E+00 122101
0.0000000E+00 0.0000000E+00 0.5975769E+08 0.3843192E+08 0.0000000E+00 032101
0.7486253E+08 0.2223181E+08 0.0000000E+00 0.0000000E+00-0.2225703E+08 203101
-0.4390755E+08-0.1390231E+08 0.0000000E+00 0.0000000E+00-0.3454065E+08 113101
-0.5302554E+08-0.1641045E+08 0.0000000E+00 0.0000000E+00-0.1317366E+08 023101
0.0000000E+00 0.0000000E+00-0.1080966E+08-0.1338535E+08 0.0000000E+00 104101
0.0000000E+00 0.0000000E+00 7659987. -5071938. 0.0000000E+00 014101
0.1244178E+08 4147108. 0.0000000E+00 0.0000000E+00 39209.87 005101
2633578. 525436.9 0.0000000E+00 0.0000000E+00 -31250.44 500002
4472550. 1041002. 0.0000000E+00 0.0000000E+00 -209724.8 410002
-1548236. -536153.1 0.0000000E+00 0.0000000E+00 -560083.2 320002
-4666017. -1952216. 0.0000000E+00 0.0000000E+00 -707080.5 230002
-1244552. -1251054. 0.0000000E+00 0.0000000E+00 -363516.6 140002
118116.8 -271836.2 0.0000000E+00 0.0000000E+00 -24274.26 050002
0.0000000E+00 0.0000000E+00 -5738783. 120572.4 0.0000000E+00 401002
0.0000000E+00 0.0000000E+00 -252993.1 4302069. 0.0000000E+00 311002
0.0000000E+00 0.0000000E+00 0.1791441E+08 0.1101885E+08 0.0000000E+00 221002
0.0000000E+00 0.0000000E+00 0.1461468E+08 8265098. 0.0000000E+00 131002
0.0000000E+00 0.0000000E+00 2924912. 2036343. 0.0000000E+00 041002
2145522. 650345.0 0.0000000E+00 0.0000000E+00 489920.9 302002
1377726. 1125325. 0.0000000E+00 0.0000000E+00 1053450. 212002
1658486. 1266036. 0.0000000E+00 0.0000000E+00 168275.4 122002
716014.5 460844.7 0.0000000E+00 0.0000000E+00 -89622.60 032002
0.0000000E+00 0.0000000E+00 -9069318. -4006862. 0.0000000E+00 203002
0.0000000E+00 0.0000000E+00-0.1234885E+08 -5109735. 0.0000000E+00 113002
0.0000000E+00 0.0000000E+00 -3916601. -2020276. 0.0000000E+00 023002
38015.13 73852.90 0.0000000E+00 0.0000000E+00 267743.0 104002
-88479.74 -25158.83 0.0000000E+00 0.0000000E+00 138312.9 014002
0.0000000E+00 0.0000000E+00 -238538.0 39963.39 0.0000000E+00 005002
0.0000000E+00 0.0000000E+00-0.4280078E+09-0.2710024E+09 0.0000000E+00 400300
0.0000000E+00 0.0000000E+00-0.1607997E+10-0.8867070E+09 0.0000000E+00 310300
0.0000000E+00 0.0000000E+00-0.1768491E+10-0.1141247E+10 0.0000000E+00 220300
0.0000000E+00 0.0000000E+00-0.4846204E+09-0.6503543E+09 0.0000000E+00 130300
0.0000000E+00 0.0000000E+00 0.4276955E+08-0.1419997E+09 0.0000000E+00 040300
-0.4729311E+09-0.1966623E+09 0.0000000E+00 0.0000000E+00-0.1509005E+09 301300
-0.7669882E+09-0.2778103E+09 0.0000000E+00 0.0000000E+00 0.8330977E+08 211300
-0.1122658E+09-0.6720362E+08 0.0000000E+00 0.0000000E+00 0.2857524E+09 121300
0.2484302E+09 0.5336783E+08 0.0000000E+00 0.0000000E+00 0.8567100E+08 031300
0.0000000E+00 0.0000000E+00 0.2025198E+10 0.5679064E+09 0.0000000E+00 202300
0.0000000E+00 0.0000000E+00 0.1228110E+10 0.5510868E+09 0.0000000E+00 112300
0.0000000E+00 0.0000000E+00 0.1000232E+09 0.1824942E+09 0.0000000E+00 022300
0.2366011E+09 0.5884041E+08 0.0000000E+00 0.0000000E+00-0.1492451E+09 103300
-0.1508236E+09-0.5636546E+08 0.0000000E+00 0.0000000E+00-0.3777725E+08 013300
0.0000000E+00 0.0000000E+00 0.8473854E+08-0.3348216E+08 0.0000000E+00 004300
-0.8022417E+08-0.2653814E+08 0.0000000E+00 0.0000000E+00-0.2722628E+08 400201
-0.3315457E+09-0.1197179E+09 0.0000000E+00 0.0000000E+00-0.5565847E+08 310201
-0.3976846E+09-0.1537342E+09 0.0000000E+00 0.0000000E+00-0.4482705E+08 220201
-0.1463875E+09-0.6695148E+08 0.0000000E+00 0.0000000E+00-0.1180937E+08 130201
-6186375. -7875026. 0.0000000E+00 0.0000000E+00 1022237. 040201
0.0000000E+00 0.0000000E+00 0.2567277E+09 0.1178610E+09 0.0000000E+00 301201
0.0000000E+00 0.0000000E+00 0.6200874E+09 0.2944950E+09 0.0000000E+00 211201
0.0000000E+00 0.0000000E+00 0.4809963E+09 0.2407780E+09 0.0000000E+00 121201
0.0000000E+00 0.0000000E+00 0.7459918E+08 0.5521660E+08 0.0000000E+00 031201
0.7170682E+08 0.1998796E+08 0.0000000E+00 0.0000000E+00-0.3842520E+08 202201
-0.1197861E+09-0.3721671E+08 0.0000000E+00 0.0000000E+00-0.6683420E+08 112201
-0.7924029E+08-0.2090941E+08 0.0000000E+00 0.0000000E+00-0.2364538E+08 022201
0.0000000E+00 0.0000000E+00-0.8401114E+08-0.4850293E+08 0.0000000E+00 103201
0.0000000E+00 0.0000000E+00-0.1184916E+08-0.2154536E+08 0.0000000E+00 013201
0.2183635E+08 8131984. 0.0000000E+00 0.0000000E+00 -882442.6 004201
0.0000000E+00 0.0000000E+00-0.1416869E+08 -1393901. 0.0000000E+00 400102
0.0000000E+00 0.0000000E+00-0.2036601E+08 793628.0 0.0000000E+00 310102
0.0000000E+00 0.0000000E+00 -6029703. 4912957. 0.0000000E+00 220102
0.0000000E+00 0.0000000E+00 2605109. 4020793. 0.0000000E+00 130102
0.0000000E+00 0.0000000E+00 1422907. 1307833. 0.0000000E+00 040102
-947535.8 -197137.9 0.0000000E+00 0.0000000E+00 1172467. 301102
1418621. 2149498. 0.0000000E+00 0.0000000E+00 2534000. 211102
0.1258059E+08 5356979. 0.0000000E+00 0.0000000E+00 1871577. 121102
4400435. 2172937. 0.0000000E+00 0.0000000E+00 238241.4 031102
0.0000000E+00 0.0000000E+00-0.1618380E+08 -5075451. 0.0000000E+00 202102
0.0000000E+00 0.0000000E+00-0.3750713E+08-0.1207889E+08 0.0000000E+00 112102
0.0000000E+00 0.0000000E+00-0.1866511E+08 -6698234. 0.0000000E+00 022102
-8819880. -2781023. 0.0000000E+00 0.0000000E+00 -256878.1 103102
-3973860. -1871010. 0.0000000E+00 0.0000000E+00 -165486.0 013102
0.0000000E+00 0.0000000E+00 -271079.2 638705.9 0.0000000E+00 004102
135473.7 9528.260 0.0000000E+00 0.0000000E+00 20874.38 400003
145556.0 89431.26 0.0000000E+00 0.0000000E+00 48520.14 310003
-126323.0 49730.44 0.0000000E+00 0.0000000E+00 41522.72 220003
-153961.2 -321.8057 0.0000000E+00 0.0000000E+00 31758.34 130003
-36340.56 12919.68 0.0000000E+00 0.0000000E+00 7123.382 040003
0.0000000E+00 0.0000000E+00 244559.4 256610.3 0.0000000E+00 301003
0.0000000E+00 0.0000000E+00 -257666.9 298702.8 0.0000000E+00 211003
0.0000000E+00 0.0000000E+00 -1284596. -131844.8 0.0000000E+00 121003
0.0000000E+00 0.0000000E+00 -506407.2 -118645.0 0.0000000E+00 031003
-575174.6 -227093.6 0.0000000E+00 0.0000000E+00 -142127.8 202003
-481828.3 -251733.8 0.0000000E+00 0.0000000E+00 -96727.44 112003
-449789.5 -222578.8 0.0000000E+00 0.0000000E+00 -34581.43 022003
0.0000000E+00 0.0000000E+00 781792.1 181334.3 0.0000000E+00 103003
0.0000000E+00 0.0000000E+00 458975.1 176699.4 0.0000000E+00 013003
185249.3 57524.33 0.0000000E+00 0.0000000E+00 6183.486 004003
-0.1179744E+09-0.7489085E+08 0.0000000E+00 0.0000000E+00-0.4688089E+08 300400
-0.2797100E+09-0.1229926E+09 0.0000000E+00 0.0000000E+00 0.3934779E+08 210400
-0.3307736E+08-0.2924798E+08 0.0000000E+00 0.0000000E+00 0.1057783E+09 120400
0.1069062E+09 0.1981625E+08 0.0000000E+00 0.0000000E+00 0.3501348E+08 030400
0.0000000E+00 0.0000000E+00 0.1314975E+10 0.2936030E+09 0.0000000E+00 201400
0.0000000E+00 0.0000000E+00 0.1025379E+10 0.3666857E+09 0.0000000E+00 111400
0.0000000E+00 0.0000000E+00 0.2614406E+09 0.1583118E+09 0.0000000E+00 021400
0.5321413E+09 0.1718494E+09 0.0000000E+00 0.0000000E+00-0.8683219E+08 102400
-0.6400225E+08-0.3018937E+08 0.0000000E+00 0.0000000E+00 -8123091. 012400
0.0000000E+00 0.0000000E+00 0.3026962E+08-0.9258360E+08 0.0000000E+00 003400
0.0000000E+00 0.0000000E+00 0.4803410E+08 0.1410021E+08 0.0000000E+00 300301
0.0000000E+00 0.0000000E+00 0.1681706E+09 0.5857838E+08 0.0000000E+00 210301
0.0000000E+00 0.0000000E+00 0.1320548E+09 0.5201646E+08 0.0000000E+00 120301
0.0000000E+00 0.0000000E+00 0.1616832E+08 0.1059093E+08 0.0000000E+00 030301
0.1780417E+08 -601359.2 0.0000000E+00 0.0000000E+00-0.2370572E+08 201301
-0.5224321E+08-0.1801739E+08 0.0000000E+00 0.0000000E+00-0.4508160E+08 111301
-0.1784202E+08 555760.4 0.0000000E+00 0.0000000E+00-0.1113864E+08 021301
0.0000000E+00 0.0000000E+00-0.1321031E+09-0.6537796E+08 0.0000000E+00 102301
0.0000000E+00 0.0000000E+00-0.3873532E+08-0.3512242E+08 0.0000000E+00 012301
8860162. 8301008. 0.0000000E+00 0.0000000E+00 -4367182. 003301
-0.1153538E+08 -2092675. 0.0000000E+00 0.0000000E+00 406942.7 300202
-7854245. -337462.3 0.0000000E+00 0.0000000E+00 1627762. 210202
9314447. 3196416. 0.0000000E+00 0.0000000E+00 2044532. 120202
4304282. 1560290. 0.0000000E+00 0.0000000E+00 401961.1 030202
0.0000000E+00 0.0000000E+00 -8679450. 1470414. 0.0000000E+00 201202
0.0000000E+00 0.0000000E+00-0.4959554E+08 -9487679. 0.0000000E+00 111202
0.0000000E+00 0.0000000E+00-0.2590917E+08 -6889094. 0.0000000E+00 021202
-0.2884146E+08 -9770634. 0.0000000E+00 0.0000000E+00 -3190621. 102202
-0.1677172E+08 -7026509. 0.0000000E+00 0.0000000E+00 -1904568. 012202
0.0000000E+00 0.0000000E+00 -1019710. 2545722. 0.0000000E+00 003202
0.0000000E+00 0.0000000E+00 -184162.1 459425.1 0.0000000E+00 300103
0.0000000E+00 0.0000000E+00 -948245.1 642728.2 0.0000000E+00 210103
0.0000000E+00 0.0000000E+00 -514359.5 589359.6 0.0000000E+00 120103
0.0000000E+00 0.0000000E+00 45412.09 228085.5 0.0000000E+00 030103
263265.3 38727.02 0.0000000E+00 0.0000000E+00 -169720.3 201103
-626843.2 -387152.4 0.0000000E+00 0.0000000E+00 -189791.3 111103
-1208991. -583775.9 0.0000000E+00 0.0000000E+00 -152841.2 021103
0.0000000E+00 0.0000000E+00 782714.5 414806.2 0.0000000E+00 102103
0.0000000E+00 0.0000000E+00 726573.1 446091.5 0.0000000E+00 012103
944019.5 304444.4 0.0000000E+00 0.0000000E+00 76857.29 003103
32605.33 -1364.932 0.0000000E+00 0.0000000E+00 -3162.865 300004
48812.65 -2585.163 0.0000000E+00 0.0000000E+00 -7633.179 210004
3570.482 -13698.20 0.0000000E+00 0.0000000E+00 -8410.619 120004
1926.645 -4957.765 0.0000000E+00 0.0000000E+00 -2504.761 030004
0.0000000E+00 0.0000000E+00 -146185.9 -68156.75 0.0000000E+00 201004
0.0000000E+00 0.0000000E+00 -20187.86 -35440.59 0.0000000E+00 111004
0.0000000E+00 0.0000000E+00 51092.83 3699.401 0.0000000E+00 021004
-40979.88 -8171.366 0.0000000E+00 0.0000000E+00 4405.401 102004
-32681.27 -1147.213 0.0000000E+00 0.0000000E+00 1274.107 012004
0.0000000E+00 0.0000000E+00 -18373.34 -6231.904 0.0000000E+00 003004
0.0000000E+00 0.0000000E+00 0.4253781E+09 0.2921400E+08 0.0000000E+00 200500
0.0000000E+00 0.0000000E+00 0.3946940E+09 0.2832790E+08 0.0000000E+00 110500
0.0000000E+00 0.0000000E+00 0.1333108E+09 0.2936685E+08 0.0000000E+00 020500
0.5447973E+09 0.1899765E+09 0.0000000E+00 0.0000000E+00 9188214. 101500
0.7688505E+08 0.1007319E+08 0.0000000E+00 0.0000000E+00 0.2505043E+08 011500
0.0000000E+00 0.0000000E+00-0.2145531E+08-0.1276367E+09 0.0000000E+00 002500
0.2671217E+08 2984444. 0.0000000E+00 0.0000000E+00 350400.1 200401
0.4689831E+08 0.1061499E+08 0.0000000E+00 0.0000000E+00 -3165803. 110401
0.2831511E+08 9301819. 0.0000000E+00 0.0000000E+00 2710574. 020401
0.0000000E+00 0.0000000E+00-0.9566084E+08-0.6050116E+08 0.0000000E+00 101401
0.0000000E+00 0.0000000E+00-0.3052001E+08-0.3695359E+08 0.0000000E+00 011401
-0.1186231E+08 0.1059305E+08 0.0000000E+00 0.0000000E+00 -5589469. 002401
0.0000000E+00 0.0000000E+00 -3671875. 95999.89 0.0000000E+00 200302
0.0000000E+00 0.0000000E+00-0.2185368E+08 -5478919. 0.0000000E+00 110302
0.0000000E+00 0.0000000E+00 -6618961. -1893733. 0.0000000E+00 020302
-0.3253361E+08-0.1060760E+08 0.0000000E+00 0.0000000E+00 -3687855. 101302
-0.2224034E+08 -7521964. 0.0000000E+00 0.0000000E+00 -2695121. 011302
0.0000000E+00 0.0000000E+00 -5914398. 3728401. 0.0000000E+00 002302
2014258. 642781.9 0.0000000E+00 0.0000000E+00 128273.6 200203
844748.3 181756.9 0.0000000E+00 0.0000000E+00 -67816.19 110203
-70123.19 -113310.0 0.0000000E+00 0.0000000E+00 -91957.24 020203
0.0000000E+00 0.0000000E+00 -1070341. -50458.09 0.0000000E+00 101203
0.0000000E+00 0.0000000E+00 228080.3 206602.2 0.0000000E+00 011203
1416022. 383548.7 0.0000000E+00 0.0000000E+00 76945.42 002203
0.0000000E+00 0.0000000E+00 42240.28 35879.50 0.0000000E+00 200104
0.0000000E+00 0.0000000E+00 167973.3 65135.45 0.0000000E+00 110104
0.0000000E+00 0.0000000E+00 48493.21 9609.003 0.0000000E+00 020104
-344608.0 -84695.47 0.0000000E+00 0.0000000E+00 -32146.25 101104
-116884.9 -20265.55 0.0000000E+00 0.0000000E+00 -14383.09 011104
0.0000000E+00 0.0000000E+00 -13486.58 12669.27 0.0000000E+00 002104
-1055.850 -2.523629 0.0000000E+00 0.0000000E+00 468.7470 200005
42.21209 1155.700 0.0000000E+00 0.0000000E+00 1012.937 110005
-1243.842 -436.8571 0.0000000E+00 0.0000000E+00 339.3875 020005
0.0000000E+00 0.0000000E+00 1445.445 -2723.132 0.0000000E+00 101005
0.0000000E+00 0.0000000E+00 -2504.795 -3032.390 0.0000000E+00 011005
7519.064 1326.322 0.0000000E+00 0.0000000E+00 246.0985 002005
0.2192791E+09 0.7781167E+08 0.0000000E+00 0.0000000E+00 0.2433836E+08 100600
0.5709238E+08 6777073. 0.0000000E+00 0.0000000E+00 0.1749451E+08 010600
0.0000000E+00 0.0000000E+00-0.1562003E+08-0.9247758E+08 0.0000000E+00 001600
0.0000000E+00 0.0000000E+00-0.1063683E+08-0.2078049E+08 0.0000000E+00 100501
0.0000000E+00 0.0000000E+00 3434080. -0.1616260E+08 0.0000000E+00 010501
-8148717. 0.1456862E+08 0.0000000E+00 0.0000000E+00 -1249983. 001501
-7920367. -2672440. 0.0000000E+00 0.0000000E+00 -443491.9 100402
-7776713. -1844165. 0.0000000E+00 0.0000000E+00 -805423.1 010402
0.0000000E+00 0.0000000E+00 -6167361. 846608.1 0.0000000E+00 001402
0.0000000E+00 0.0000000E+00 185540.7 42769.09 0.0000000E+00 100303
0.0000000E+00 0.0000000E+00 272347.9 -66994.84 0.0000000E+00 010303
605040.1 92693.63 0.0000000E+00 0.0000000E+00 -107841.2 001303
-163981.6 -30881.86 0.0000000E+00 0.0000000E+00 -20626.33 100204
-46710.72 -5913.229 0.0000000E+00 0.0000000E+00 -8238.618 010204
0.0000000E+00 0.0000000E+00 -26234.45 29524.79 0.0000000E+00 001204
0.0000000E+00 0.0000000E+00 -13529.12 -4401.124 0.0000000E+00 100105
0.0000000E+00 0.0000000E+00 -9789.284 -1698.464 0.0000000E+00 010105
17092.71 4622.368 0.0000000E+00 0.0000000E+00 -212.9958 001105
7.202123 -83.51396 0.0000000E+00 0.0000000E+00 -67.06723 100006
175.6104 65.82919 0.0000000E+00 0.0000000E+00 -47.00768 010006
0.0000000E+00 0.0000000E+00 -399.7055 76.68286 0.0000000E+00 001006
0.0000000E+00 0.0000000E+00 1605319. -0.2304168E+08 0.0000000E+00 000700
2526536. 7091634. 0.0000000E+00 0.0000000E+00 1341005. 000601
0.0000000E+00 0.0000000E+00 -478431.6 -406675.5 0.0000000E+00 000502
-16108.46 -32899.71 0.0000000E+00 0.0000000E+00 -46808.98 000403
0.0000000E+00 0.0000000E+00 -34100.75 1378.072 0.0000000E+00 000304
-974.3418 751.2218 0.0000000E+00 0.0000000E+00 -74.26151 000205
0.0000000E+00 0.0000000E+00 -81.72716 -151.1630 0.0000000E+00 000106
-10.18018 -4.772149 0.0000000E+00 0.0000000E+00 3.999821 000007
-0.3210754E+09 1397423. 0.0000000E+00 0.0000000E+00-0.1190613E+09 800000
-0.4264737E+10-0.8012810E+09 0.0000000E+00 0.0000000E+00-0.2976950E+09 710000
-0.1205201E+11-0.3255459E+10 0.0000000E+00 0.0000000E+00-0.2423134E+09 620000
-0.9509720E+10-0.4547880E+10 0.0000000E+00 0.0000000E+00-0.1471727E+09 530000
0.5858026E+10-0.2073960E+10 0.0000000E+00 0.0000000E+00-0.3485295E+08 440000
0.1343736E+11 0.1134470E+10 0.0000000E+00 0.0000000E+00 0.3059811E+09 350000
0.8176748E+10 0.1734348E+10 0.0000000E+00 0.0000000E+00 0.4150664E+09 260000
0.2084329E+10 0.7028622E+09 0.0000000E+00 0.0000000E+00 0.1741158E+09 170000
0.1442436E+09 0.9061286E+08 0.0000000E+00 0.0000000E+00 0.1960043E+08 080000
0.0000000E+00 0.0000000E+00-0.5317713E+10-0.1607481E+10 0.0000000E+00 701000
0.0000000E+00 0.0000000E+00-0.1820714E+11-0.6396840E+10 0.0000000E+00 611000
0.0000000E+00 0.0000000E+00-0.1926651E+11-0.8821503E+10 0.0000000E+00 521000
0.0000000E+00 0.0000000E+00 0.9120586E+10-0.4414546E+09 0.0000000E+00 431000
0.0000000E+00 0.0000000E+00 0.3108547E+11 0.8555447E+10 0.0000000E+00 341000
0.0000000E+00 0.0000000E+00 0.1677070E+11 0.5608990E+10 0.0000000E+00 251000
0.0000000E+00 0.0000000E+00 0.6597785E+09 0.5383023E+09 0.0000000E+00 161000
0.0000000E+00 0.0000000E+00-0.7307963E+09-0.1705921E+09 0.0000000E+00 071000
-0.3353979E+10-0.1201753E+10 0.0000000E+00 0.0000000E+00-0.2042487E+09 602000
-0.1562918E+10-0.1852283E+09 0.0000000E+00 0.0000000E+00 0.5722307E+08 512000
0.1035281E+11 0.4867705E+10 0.0000000E+00 0.0000000E+00 0.6020364E+09 422000
0.1110953E+11 0.4971477E+10 0.0000000E+00 0.0000000E+00-0.1554394E+09 332000
0.1111263E+10 0.4341215E+09 0.0000000E+00 0.0000000E+00-0.8731827E+09 242000
-0.1680631E+10-0.9263454E+09 0.0000000E+00 0.0000000E+00-0.3625735E+09 152000
-0.2480495E+09-0.2494403E+09 0.0000000E+00 0.0000000E+00 5634042. 062000
0.0000000E+00 0.0000000E+00 0.3973310E+09 2439393. 0.0000000E+00 503000
0.0000000E+00 0.0000000E+00-0.1130512E+11-0.3193556E+10 0.0000000E+00 413000
0.0000000E+00 0.0000000E+00-0.2802475E+11-0.7980616E+10 0.0000000E+00 323000
0.0000000E+00 0.0000000E+00-0.1388181E+11-0.4207158E+10 0.0000000E+00 233000
0.0000000E+00 0.0000000E+00 0.4101950E+10 0.9890518E+09 0.0000000E+00 143000
0.0000000E+00 0.0000000E+00 0.2230706E+10 0.6161578E+09 0.0000000E+00 053000
-0.5104714E+10-0.1648460E+10 0.0000000E+00 0.0000000E+00-0.2593820E+09 404000
-0.5302163E+10-0.1631052E+10 0.0000000E+00 0.0000000E+00 0.2236632E+09 314000
0.1684130E+10 0.7745371E+09 0.0000000E+00 0.0000000E+00 0.9562389E+09 224000
0.2389045E+10 0.9736472E+09 0.0000000E+00 0.0000000E+00 0.3777144E+09 134000
0.2341858E+09 0.1722662E+09 0.0000000E+00 0.0000000E+00-0.8654330E+08 044000
0.0000000E+00 0.0000000E+00 0.2106368E+10 0.4228345E+09 0.0000000E+00 305000
0.0000000E+00 0.0000000E+00-0.1666892E+09-0.1421578E+09 0.0000000E+00 215000
0.0000000E+00 0.0000000E+00-0.4049870E+10-0.1080047E+10 0.0000000E+00 125000
0.0000000E+00 0.0000000E+00-0.1340527E+10-0.3609383E+09 0.0000000E+00 035000
-0.8279544E+09-0.2762463E+09 0.0000000E+00 0.0000000E+00-0.1101195E+09 206000
-0.6013654E+09-0.2031062E+09 0.0000000E+00 0.0000000E+00-0.1986727E+08 116000
-0.3579679E+08-0.1840169E+08 0.0000000E+00 0.0000000E+00 0.6505628E+08 026000
0.0000000E+00 0.0000000E+00 0.4011644E+09 0.1020104E+09 0.0000000E+00 107000
0.0000000E+00 0.0000000E+00 0.1338054E+09 0.3865757E+08 0.0000000E+00 017000
-9390809. -3646766. 0.0000000E+00 0.0000000E+00 -7331112. 008000
0.0000000E+00 0.0000000E+00-0.2546659E+10-0.6852495E+09 0.0000000E+00 700100
0.0000000E+00 0.0000000E+00-0.1721253E+11-0.6896203E+10 0.0000000E+00 610100
0.0000000E+00 0.0000000E+00-0.3281865E+11-0.1661790E+11 0.0000000E+00 520100
0.0000000E+00 0.0000000E+00-0.5511384E+10-0.1079504E+11 0.0000000E+00 430100
0.0000000E+00 0.0000000E+00 0.3092490E+11 0.3799651E+10 0.0000000E+00 340100
0.0000000E+00 0.0000000E+00 0.1978255E+11 0.4928922E+10 0.0000000E+00 250100
0.0000000E+00 0.0000000E+00 0.1325445E+10 0.8643849E+09 0.0000000E+00 160100
0.0000000E+00 0.0000000E+00-0.5435560E+09 0.2463449E+08 0.0000000E+00 070100
-0.9344614E+10-0.3272657E+10 0.0000000E+00 0.0000000E+00 0.2914456E+09 601100
0.2271017E+10 0.1430621E+10 0.0000000E+00 0.0000000E+00 0.3690164E+10 511100
0.4828988E+11 0.1940849E+11 0.0000000E+00 0.0000000E+00 0.9094690E+10 421100
0.5707453E+11 0.2269249E+11 0.0000000E+00 0.0000000E+00 0.7989512E+10 331100
0.2449653E+11 0.9060461E+10 0.0000000E+00 0.0000000E+00 0.2820403E+10 241100
0.4204093E+10 0.6992780E+09 0.0000000E+00 0.0000000E+00 0.7143170E+09 151100
0.4964049E+09-0.2821027E+09 0.0000000E+00 0.0000000E+00 0.2186282E+09 061100
0.0000000E+00 0.0000000E+00 0.1253637E+11 0.3663827E+10 0.0000000E+00 502100
0.0000000E+00 0.0000000E+00-0.1780692E+11-0.1922039E+10 0.0000000E+00 412100
0.0000000E+00 0.0000000E+00-0.7958645E+11-0.1628108E+11 0.0000000E+00 322100
0.0000000E+00 0.0000000E+00-0.3549681E+11-0.5356378E+10 0.0000000E+00 232100
0.0000000E+00 0.0000000E+00 0.1897861E+11 0.7230108E+10 0.0000000E+00 142100
0.0000000E+00 0.0000000E+00 0.7696267E+10 0.2627564E+10 0.0000000E+00 052100
-0.1802224E+11-0.5946525E+10 0.0000000E+00 0.0000000E+00-0.1356202E+10 403100
-0.1461570E+11-0.4672345E+10 0.0000000E+00 0.0000000E+00 0.1238519E+10 313100
0.9369497E+10 0.3865392E+10 0.0000000E+00 0.0000000E+00 0.4723280E+10 223100
0.8449187E+10 0.3640616E+10 0.0000000E+00 0.0000000E+00 0.1364723E+10 133100
0.4916005E+09 0.6579136E+09 0.0000000E+00 0.0000000E+00-0.5878696E+09 043100
0.0000000E+00 0.0000000E+00 0.1438141E+11 0.3110751E+10 0.0000000E+00 304100
0.0000000E+00 0.0000000E+00-0.7002330E+09-0.6470665E+09 0.0000000E+00 214100
0.0000000E+00 0.0000000E+00-0.2377629E+11-0.6458860E+10 0.0000000E+00 124100
0.0000000E+00 0.0000000E+00-0.7353909E+10-0.2123902E+10 0.0000000E+00 034100
-0.4307489E+10-0.1533033E+10 0.0000000E+00 0.0000000E+00-0.9333733E+09 205100
-0.3307703E+10-0.1194258E+10 0.0000000E+00 0.0000000E+00-0.1340637E+09 115100
-0.4585780E+09-0.2231881E+09 0.0000000E+00 0.0000000E+00 0.4494824E+09 025100
0.0000000E+00 0.0000000E+00 0.3505130E+10 0.9124164E+09 0.0000000E+00 106100
0.0000000E+00 0.0000000E+00 0.1113441E+10 0.3573293E+09 0.0000000E+00 016100
9070662. -3523331. 0.0000000E+00 0.0000000E+00-0.6496208E+08 007100
0.1863768E+09 0.1300768E+09 0.0000000E+00 0.0000000E+00 37216.35 700001
-0.6860412E+08 0.2589471E+09 0.0000000E+00 0.0000000E+00-0.2315222E+08 610001
-0.1131360E+10 0.9481526E+08 0.0000000E+00 0.0000000E+00-0.8619234E+08 520001
-0.1751198E+10-0.1360369E+09 0.0000000E+00 0.0000000E+00-0.7151931E+08 430001
-0.1361430E+10-0.1979280E+09 0.0000000E+00 0.0000000E+00 0.1006087E+08 340001
-0.6041931E+09-0.1644857E+09 0.0000000E+00 0.0000000E+00 3378587. 250001
-0.1220482E+09-0.8816603E+08 0.0000000E+00 0.0000000E+00-0.1941374E+08 160001
-2982925. -0.2443917E+08 0.0000000E+00 0.0000000E+00 -5841306. 070001
0.0000000E+00 0.0000000E+00 0.7913950E+09 0.2977300E+09 0.0000000E+00 601001
0.0000000E+00 0.0000000E+00 0.2645179E+09 0.2031099E+08 0.0000000E+00 511001
0.0000000E+00 0.0000000E+00-0.2315354E+10-0.1053654E+10 0.0000000E+00 421001
0.0000000E+00 0.0000000E+00-0.3178219E+10-0.1273330E+10 0.0000000E+00 331001
0.0000000E+00 0.0000000E+00-0.1993215E+10-0.6891732E+09 0.0000000E+00 241001
0.0000000E+00 0.0000000E+00-0.3911787E+09-0.1330633E+09 0.0000000E+00 151001
0.0000000E+00 0.0000000E+00 0.9279233E+08 0.2083597E+08 0.0000000E+00 061001
-0.2846459E+09-0.7006843E+08 0.0000000E+00 0.0000000E+00 0.7032410E+08 502001
-0.4508589E+09-0.1950843E+09 0.0000000E+00 0.0000000E+00 0.1275229E+09 412001
-0.9164303E+09-0.3819441E+09 0.0000000E+00 0.0000000E+00 -2675448. 322001
-0.4106254E+09-0.5720749E+08 0.0000000E+00 0.0000000E+00-0.6234136E+08 232001
0.2357831E+09 0.2273076E+09 0.0000000E+00 0.0000000E+00 -7100516. 142001
0.7538767E+08 0.9771421E+08 0.0000000E+00 0.0000000E+00 -1909100. 052001
0.0000000E+00 0.0000000E+00 0.1613446E+10 0.5930274E+09 0.0000000E+00 403001
0.0000000E+00 0.0000000E+00 0.2174198E+10 0.7703371E+09 0.0000000E+00 313001
0.0000000E+00 0.0000000E+00 0.1679369E+09-0.1144492E+09 0.0000000E+00 223001
0.0000000E+00 0.0000000E+00-0.1014767E+10-0.5331685E+09 0.0000000E+00 133001
0.0000000E+00 0.0000000E+00-0.4613343E+09-0.2077605E+09 0.0000000E+00 043001
0.3104110E+08 -2021230. 0.0000000E+00 0.0000000E+00-0.8881124E+08 304001
-0.4528714E+09-0.1831911E+09 0.0000000E+00 0.0000000E+00-0.8240967E+08 214001
-0.7140331E+09-0.2670284E+09 0.0000000E+00 0.0000000E+00 0.1697310E+08 124001
-0.1400200E+09-0.8027534E+08 0.0000000E+00 0.0000000E+00 0.2873635E+08 034001
0.0000000E+00 0.0000000E+00 0.7463927E+09 0.2546348E+09 0.0000000E+00 205001
0.0000000E+00 0.0000000E+00 0.9066986E+09 0.3164838E+09 0.0000000E+00 115001
0.0000000E+00 0.0000000E+00 0.2665171E+09 0.1075878E+09 0.0000000E+00 025001
0.9993527E+08 0.2699949E+08 0.0000000E+00 0.0000000E+00-0.2255031E+08 106001
0.2071613E+08 6608068. 0.0000000E+00 0.0000000E+00-0.1438919E+08 016001
0.0000000E+00 0.0000000E+00 6491182. -2461580. 0.0000000E+00 007001
-0.5282122E+10-0.2082526E+10 0.0000000E+00 0.0000000E+00 0.6692758E+09 600200
0.1342101E+11 0.3773819E+10 0.0000000E+00 0.0000000E+00 0.4949071E+10 510200
0.6246587E+11 0.2130416E+11 0.0000000E+00 0.0000000E+00 0.1151788E+11 420200
0.7314916E+11 0.2664588E+11 0.0000000E+00 0.0000000E+00 0.1140741E+11 330200
0.3836212E+11 0.1462305E+11 0.0000000E+00 0.0000000E+00 0.5683457E+10 240200
0.9422672E+10 0.3366334E+10 0.0000000E+00 0.0000000E+00 0.1714911E+10 150200
0.8915259E+09 0.6610172E+08 0.0000000E+00 0.0000000E+00 0.2700144E+09 060200
0.0000000E+00 0.0000000E+00 0.2866930E+11 0.8660608E+10 0.0000000E+00 501200
0.0000000E+00 0.0000000E+00 0.1465612E+11 0.1299085E+11 0.0000000E+00 411200
0.0000000E+00 0.0000000E+00-0.4709687E+11 0.7672928E+10 0.0000000E+00 321200
0.0000000E+00 0.0000000E+00-0.7708097E+10 0.1793498E+11 0.0000000E+00 231200
0.0000000E+00 0.0000000E+00 0.3139100E+11 0.1865672E+11 0.0000000E+00 141200
0.0000000E+00 0.0000000E+00 0.8853913E+10 0.4783950E+10 0.0000000E+00 051200
-0.1378866E+11-0.4915384E+10 0.0000000E+00 0.0000000E+00-0.1170945E+10 402200
0.4623173E+10 0.1058770E+10 0.0000000E+00 0.0000000E+00 0.5837084E+10 312200
0.2981432E+11 0.1049159E+11 0.0000000E+00 0.0000000E+00 0.1148017E+11 222200
0.1617629E+11 0.6469038E+10 0.0000000E+00 0.0000000E+00 0.2597473E+10 132200
0.1217151E+10 0.1295602E+10 0.0000000E+00 0.0000000E+00-0.1191510E+10 042200
0.0000000E+00 0.0000000E+00 0.3881511E+11 0.8796956E+10 0.0000000E+00 303200
0.0000000E+00 0.0000000E+00-0.2348232E+09-0.1097811E+10 0.0000000E+00 213200
0.0000000E+00 0.0000000E+00-0.5310484E+11-0.1451728E+11 0.0000000E+00 123200
0.0000000E+00 0.0000000E+00-0.1554177E+11-0.4838501E+10 0.0000000E+00 033200
-0.8292284E+10-0.3318218E+10 0.0000000E+00 0.0000000E+00-0.3364079E+10 204200
-0.8717269E+10-0.3321525E+10 0.0000000E+00 0.0000000E+00-0.5785658E+09 114200
-0.2857466E+10-0.1232966E+10 0.0000000E+00 0.0000000E+00 0.1119397E+10 024200
0.0000000E+00 0.0000000E+00 0.1242356E+11 0.3130065E+10 0.0000000E+00 105200
0.0000000E+00 0.0000000E+00 0.3785223E+10 0.1337598E+10 0.0000000E+00 015200
0.5111336E+09 0.1377834E+09 0.0000000E+00 0.0000000E+00-0.2288377E+09 006200
0.0000000E+00 0.0000000E+00 0.1048650E+10 0.4020684E+09 0.0000000E+00 600101
0.0000000E+00 0.0000000E+00 0.4365789E+09-0.5577211E+08 0.0000000E+00 510101
0.0000000E+00 0.0000000E+00-0.1493044E+10-0.1210685E+10 0.0000000E+00 420101
0.0000000E+00 0.0000000E+00-0.1562272E+10-0.9214439E+09 0.0000000E+00 330101
0.0000000E+00 0.0000000E+00-0.1972066E+09 0.2335594E+09 0.0000000E+00 240101
0.0000000E+00 0.0000000E+00 0.8360509E+09 0.6182251E+09 0.0000000E+00 150101
0.0000000E+00 0.0000000E+00 0.3494157E+09 0.2144248E+09 0.0000000E+00 060101
0.1038909E+10 0.1931983E+09 0.0000000E+00 0.0000000E+00 0.3520471E+09 501101
0.3704146E+10 0.4314762E+09 0.0000000E+00 0.0000000E+00 0.1043065E+10 411101
0.5875349E+10 0.9288209E+09 0.0000000E+00 0.0000000E+00 0.1488302E+10 321101
0.7141138E+10 0.2100670E+10 0.0000000E+00 0.0000000E+00 0.1275115E+10 231101
0.4318687E+10 0.1707281E+10 0.0000000E+00 0.0000000E+00 0.5843038E+09 141101
0.7698280E+09 0.4389655E+09 0.0000000E+00 0.0000000E+00 0.8555880E+08 051101
0.0000000E+00 0.0000000E+00 0.6171086E+10 0.1811459E+10 0.0000000E+00 402101
0.0000000E+00 0.0000000E+00 0.1072447E+11 0.2406379E+10 0.0000000E+00 312101
0.0000000E+00 0.0000000E+00 0.4692056E+10-0.4291162E+09 0.0000000E+00 222101
0.0000000E+00 0.0000000E+00-0.2485772E+10-0.2215437E+10 0.0000000E+00 132101
0.0000000E+00 0.0000000E+00-0.1864146E+10-0.9887585E+09 0.0000000E+00 042101
0.3260667E+08-0.1343487E+09 0.0000000E+00 0.0000000E+00-0.7500552E+09 303101
-0.3142415E+10-0.1267654E+10 0.0000000E+00 0.0000000E+00-0.8778102E+09 213101
-0.4279254E+10-0.1610654E+10 0.0000000E+00 0.0000000E+00-0.2306408E+09 123101
-0.7963093E+09-0.4525621E+09 0.0000000E+00 0.0000000E+00 0.8289057E+08 033101
0.0000000E+00 0.0000000E+00 0.3682836E+10 0.1166260E+10 0.0000000E+00 204101
0.0000000E+00 0.0000000E+00 0.4953804E+10 0.1690509E+10 0.0000000E+00 114101
0.0000000E+00 0.0000000E+00 0.1783082E+10 0.7078963E+09 0.0000000E+00 024101
0.1027017E+10 0.3029763E+09 0.0000000E+00 0.0000000E+00-0.9444879E+08 105101
0.2514799E+09 0.8640305E+08 0.0000000E+00 0.0000000E+00-0.6575090E+08 015101
0.0000000E+00 0.0000000E+00-0.1409130E+08-0.4641350E+08 0.0000000E+00 006101
2076830. 0.1214134E+08 0.0000000E+00 0.0000000E+00 -3520452. 600002
-0.5277609E+08 0.1892948E+08 0.0000000E+00 0.0000000E+00-0.1427052E+08 510002
-0.1304519E+09 -1758638. 0.0000000E+00 0.0000000E+00-0.2183075E+08 420002
-0.6546057E+08 -9028788. 0.0000000E+00 0.0000000E+00-0.1759089E+08 330002
0.5854659E+08 0.1030452E+08 0.0000000E+00 0.0000000E+00 -4991349. 240002
0.4852330E+08 0.1264641E+08 0.0000000E+00 0.0000000E+00 2729727. 150002
6627134. 4716030. 0.0000000E+00 0.0000000E+00 1351566. 060002
0.0000000E+00 0.0000000E+00-0.1807945E+09-0.7095089E+08 0.0000000E+00 501002
0.0000000E+00 0.0000000E+00-0.2012016E+09-0.1234027E+09 0.0000000E+00 411002
0.0000000E+00 0.0000000E+00 0.2954336E+09 -5813598. 0.0000000E+00 321002
0.0000000E+00 0.0000000E+00 0.3388953E+09 0.1314570E+08 0.0000000E+00 231002
0.0000000E+00 0.0000000E+00 0.1813942E+08-0.4661836E+08 0.0000000E+00 141002
0.0000000E+00 0.0000000E+00-0.4056130E+08-0.2334720E+08 0.0000000E+00 051002
-0.8503188E+08-0.1292730E+08 0.0000000E+00 0.0000000E+00-0.1938000E+08 402002
-0.3615745E+09-0.8269316E+08 0.0000000E+00 0.0000000E+00-0.5226756E+08 312002
-0.4044583E+09-0.1002084E+09 0.0000000E+00 0.0000000E+00-0.6482412E+08 222002
-0.1854400E+09-0.5611997E+08 0.0000000E+00 0.0000000E+00-0.3754484E+08 132002
-0.4138917E+08-0.2312244E+08 0.0000000E+00 0.0000000E+00 -6372022. 042002
0.0000000E+00 0.0000000E+00-0.1363765E+09-0.3203115E+08 0.0000000E+00 303002
0.0000000E+00 0.0000000E+00-0.2117623E+09-0.3362121E+08 0.0000000E+00 213002
0.0000000E+00 0.0000000E+00 0.4433870E+08 0.4599822E+08 0.0000000E+00 123002
0.0000000E+00 0.0000000E+00 0.7725966E+08 0.3095451E+08 0.0000000E+00 033002
0.6990408E+08 0.2348576E+08 0.0000000E+00 0.0000000E+00 7157225. 204002
0.8285377E+08 0.2747129E+08 0.0000000E+00 0.0000000E+00 8916078. 114002
0.4764566E+08 0.1977727E+08 0.0000000E+00 0.0000000E+00 2703809. 024002
0.0000000E+00 0.0000000E+00-0.6020490E+08-0.2175524E+08 0.0000000E+00 105002
0.0000000E+00 0.0000000E+00-0.3649231E+08-0.1348693E+08 0.0000000E+00 015002
-4302962. -1214922. 0.0000000E+00 0.0000000E+00 125813.6 006002
0.0000000E+00 0.0000000E+00 0.1045062E+11 0.1894551E+10 0.0000000E+00 500300
0.0000000E+00 0.0000000E+00 0.1432990E+11 0.7364133E+10 0.0000000E+00 410300
0.0000000E+00 0.0000000E+00 0.1286089E+11 0.1854661E+11 0.0000000E+00 320300
0.0000000E+00 0.0000000E+00 0.2848062E+11 0.2681422E+11 0.0000000E+00 230300
0.0000000E+00 0.0000000E+00 0.2357216E+11 0.1760252E+11 0.0000000E+00 140300
0.0000000E+00 0.0000000E+00 0.4703265E+10 0.4082931E+10 0.0000000E+00 050300
0.1311476E+11 0.3931614E+10 0.0000000E+00 0.0000000E+00 0.2174578E+10 401300
0.4916186E+11 0.1615784E+11 0.0000000E+00 0.0000000E+00 0.1294694E+11 311300
0.5580685E+11 0.1897822E+11 0.0000000E+00 0.0000000E+00 0.1584185E+11 221300
0.2485240E+11 0.8673040E+10 0.0000000E+00 0.0000000E+00 0.3472978E+10 131300
0.3024473E+10 0.1597725E+10 0.0000000E+00 0.0000000E+00-0.9302139E+09 041300
0.0000000E+00 0.0000000E+00 0.4917531E+11 0.1195403E+11 0.0000000E+00 302300
0.0000000E+00 0.0000000E+00-0.2212215E+10-0.1763499E+09 0.0000000E+00 212300
0.0000000E+00 0.0000000E+00-0.5964762E+11-0.1440669E+11 0.0000000E+00 122300
0.0000000E+00 0.0000000E+00-0.1718180E+11-0.5052714E+10 0.0000000E+00 032300
-0.6959414E+10-0.3413360E+10 0.0000000E+00 0.0000000E+00-0.6125418E+10 203300
-0.1613323E+11-0.5974497E+10 0.0000000E+00 0.0000000E+00-0.1356271E+10 113300
-0.8387722E+10-0.3262746E+10 0.0000000E+00 0.0000000E+00 0.1149767E+10 023300
0.0000000E+00 0.0000000E+00 0.2286248E+11 0.5140490E+10 0.0000000E+00 104300
0.0000000E+00 0.0000000E+00 0.6751122E+10 0.2623332E+10 0.0000000E+00 014300
0.2422909E+10 0.7047148E+09 0.0000000E+00 0.0000000E+00-0.4036578E+09 005300
0.2740176E+10 0.5904055E+09 0.0000000E+00 0.0000000E+00 0.4492583E+09 500201
0.9218189E+10 0.1982986E+10 0.0000000E+00 0.0000000E+00 0.1629243E+10 410201
0.1495635E+11 0.3714505E+10 0.0000000E+00 0.0000000E+00 0.2652061E+10 320201
0.1422993E+11 0.4201271E+10 0.0000000E+00 0.0000000E+00 0.2188863E+10 230201
0.6785080E+10 0.2314940E+10 0.0000000E+00 0.0000000E+00 0.8812469E+09 140201
0.1138166E+10 0.4827208E+09 0.0000000E+00 0.0000000E+00 0.1272946E+09 050201
0.0000000E+00 0.0000000E+00 0.7666494E+10 0.1762864E+10 0.0000000E+00 401201
0.0000000E+00 0.0000000E+00 0.1621419E+11 0.2361775E+10 0.0000000E+00 311201
0.0000000E+00 0.0000000E+00 0.1004768E+11-0.5866806E+09 0.0000000E+00 221201
0.0000000E+00 0.0000000E+00-0.2335768E+10-0.3036528E+10 0.0000000E+00 131201
0.0000000E+00 0.0000000E+00-0.2418150E+10-0.1371881E+10 0.0000000E+00 041201
0.5618336E+09-0.2190262E+09 0.0000000E+00 0.0000000E+00-0.1428842E+10 302201
-0.5474292E+10-0.2221159E+10 0.0000000E+00 0.0000000E+00-0.1707482E+10 212201
-0.7072946E+10-0.2641087E+10 0.0000000E+00 0.0000000E+00-0.4857990E+09 122201
-0.1361363E+10-0.7964554E+09 0.0000000E+00 0.0000000E+00 0.1639958E+09 032201
0.0000000E+00 0.0000000E+00 0.6980260E+10 0.1759155E+10 0.0000000E+00 203201
0.0000000E+00 0.0000000E+00 0.1066569E+11 0.3246965E+10 0.0000000E+00 113201
0.0000000E+00 0.0000000E+00 0.4109291E+10 0.1582006E+10 0.0000000E+00 023201
0.3783266E+10 0.1175823E+10 0.0000000E+00 0.0000000E+00-0.7147442E+08 104201
0.1228877E+10 0.4202561E+09 0.0000000E+00 0.0000000E+00-0.6575317E+08 014201
0.0000000E+00 0.0000000E+00-0.1492218E+09-0.2340462E+09 0.0000000E+00 005201
0.0000000E+00 0.0000000E+00-0.1672530E+09-0.6993693E+08 0.0000000E+00 500102
0.0000000E+00 0.0000000E+00-0.1825141E+08-0.1175211E+09 0.0000000E+00 410102
0.0000000E+00 0.0000000E+00 0.7465999E+09 360480.4 0.0000000E+00 320102
0.0000000E+00 0.0000000E+00 0.7513016E+09 0.4574542E+08 0.0000000E+00 230102
0.0000000E+00 0.0000000E+00 0.1829372E+09 -1112012. 0.0000000E+00 140102
0.0000000E+00 0.0000000E+00-0.1691726E+08 -8460887. 0.0000000E+00 050102
-0.3408801E+09-0.1097973E+09 0.0000000E+00 0.0000000E+00-0.4680385E+08 401102
-0.8680199E+09-0.2527271E+09 0.0000000E+00 0.0000000E+00-0.8550953E+08 311102
-0.6386375E+09-0.1459196E+09 0.0000000E+00 0.0000000E+00-0.8878406E+08 221102
-0.2997558E+09-0.7939739E+08 0.0000000E+00 0.0000000E+00-0.5478383E+08 131102
-0.1210825E+09-0.5795831E+08 0.0000000E+00 0.0000000E+00-0.1485659E+08 041102
0.0000000E+00 0.0000000E+00-0.6619679E+09-0.2359935E+09 0.0000000E+00 302102
0.0000000E+00 0.0000000E+00-0.1161200E+10-0.3793204E+09 0.0000000E+00 212102
0.0000000E+00 0.0000000E+00-0.4893818E+09-0.1614970E+09 0.0000000E+00 122102
0.0000000E+00 0.0000000E+00 0.7474955E+08 0.1190055E+08 0.0000000E+00 032102
0.8642216E+08 0.2393537E+08 0.0000000E+00 0.0000000E+00 0.2308136E+08 203102
0.3917243E+09 0.1237815E+09 0.0000000E+00 0.0000000E+00 0.5437849E+08 113102
0.3012425E+09 0.1158480E+09 0.0000000E+00 0.0000000E+00 0.3129570E+08 023102
0.0000000E+00 0.0000000E+00-0.2024053E+09-0.7554806E+08 0.0000000E+00 104102
0.0000000E+00 0.0000000E+00-0.1424251E+09-0.5538134E+08 0.0000000E+00 014102
-0.5457583E+08-0.1534437E+08 0.0000000E+00 0.0000000E+00 -3778377. 005102
1194534. 1050643. 0.0000000E+00 0.0000000E+00 83979.42 500003
-0.1035504E+08 1268209. 0.0000000E+00 0.0000000E+00 69521.27 410003
-0.2425513E+08 1364701. 0.0000000E+00 0.0000000E+00 549516.0 320003
-0.1753173E+08 2569608. 0.0000000E+00 0.0000000E+00 1073437. 230003
-4065259. 1973689. 0.0000000E+00 0.0000000E+00 530147.3 140003
-165556.5 -4739.315 0.0000000E+00 0.0000000E+00 -62441.60 050003
0.0000000E+00 0.0000000E+00 -7726742. -5851879. 0.0000000E+00 401003
0.0000000E+00 0.0000000E+00-0.3198343E+08-0.1950426E+08 0.0000000E+00 311003
0.0000000E+00 0.0000000E+00-0.6221132E+08-0.3055800E+08 0.0000000E+00 221003
0.0000000E+00 0.0000000E+00-0.4027379E+08-0.1999780E+08 0.0000000E+00 131003
0.0000000E+00 0.0000000E+00 -4655868. -4600870. 0.0000000E+00 041003
1580337. -309702.3 0.0000000E+00 0.0000000E+00 1382232. 302003
7274508. 454005.4 0.0000000E+00 0.0000000E+00 1366698. 212003
0.1117354E+08 2794318. 0.0000000E+00 0.0000000E+00 2216332. 122003
4223923. 2829933. 0.0000000E+00 0.0000000E+00 923700.0 032003
0.0000000E+00 0.0000000E+00 0.3323713E+08 0.1427792E+08 0.0000000E+00 203003
0.0000000E+00 0.0000000E+00 0.2443986E+08 0.1254691E+08 0.0000000E+00 113003
0.0000000E+00 0.0000000E+00 -144613.8 3165238. 0.0000000E+00 023003
-8759342. -3044700. 0.0000000E+00 0.0000000E+00 -1968667. 104003
-7296806. -2928194. 0.0000000E+00 0.0000000E+00 -1259553. 014003
0.0000000E+00 0.0000000E+00 1429889. 384998.5 0.0000000E+00 005003
0.1488386E+11 0.5108443E+10 0.0000000E+00 0.0000000E+00 0.2436148E+10 400400
0.3685164E+11 0.1341358E+11 0.0000000E+00 0.0000000E+00 0.8409722E+10 310400
0.3454743E+11 0.1283209E+11 0.0000000E+00 0.0000000E+00 0.8275729E+10 220400
0.1446539E+11 0.5199180E+10 0.0000000E+00 0.0000000E+00 0.1860867E+10 130400
0.1758292E+10 0.7125412E+09 0.0000000E+00 0.0000000E+00-0.2762668E+09 040400
0.0000000E+00 0.0000000E+00 0.3138775E+11 0.9480013E+10 0.0000000E+00 301400
0.0000000E+00 0.0000000E+00-0.2441233E+10 0.5066160E+10 0.0000000E+00 211400
0.0000000E+00 0.0000000E+00-0.3410492E+11-0.2291498E+10 0.0000000E+00 121400
0.0000000E+00 0.0000000E+00-0.1053646E+11-0.1001758E+10 0.0000000E+00 031400
-0.8670320E+09-0.1099093E+10 0.0000000E+00 0.0000000E+00-0.5848513E+10 202400
-0.2024430E+11-0.6820980E+10 0.0000000E+00 0.0000000E+00-0.1859445E+10 112400
-0.1245510E+11-0.4345678E+10 0.0000000E+00 0.0000000E+00 0.8496851E+08 022400
0.0000000E+00 0.0000000E+00 0.2246178E+11 0.3845089E+10 0.0000000E+00 103400
0.0000000E+00 0.0000000E+00 0.6236114E+10 0.2884541E+10 0.0000000E+00 013400
0.5414897E+10 0.1534601E+10 0.0000000E+00 0.0000000E+00-0.3573192E+09 004400
0.0000000E+00 0.0000000E+00 0.4869500E+10 0.8171084E+09 0.0000000E+00 400301
0.0000000E+00 0.0000000E+00 0.1206225E+11 0.1784613E+10 0.0000000E+00 310301
0.0000000E+00 0.0000000E+00 0.9520480E+10 0.1342183E+10 0.0000000E+00 220301
0.0000000E+00 0.0000000E+00 0.1146855E+10 -7495118. 0.0000000E+00 130301
0.0000000E+00 0.0000000E+00-0.6504433E+09-0.2231481E+09 0.0000000E+00 040301
0.3088313E+10 0.6544816E+09 0.0000000E+00 0.0000000E+00-0.6038775E+09 301301
0.1057464E+10 0.2422496E+09 0.0000000E+00 0.0000000E+00-0.4934395E+09 211301
-0.1923690E+10-0.5484955E+09 0.0000000E+00 0.0000000E+00 0.1006682E+09 121301
-0.8130842E+09-0.4387586E+09 0.0000000E+00 0.0000000E+00 0.2117357E+09 031301
0.0000000E+00 0.0000000E+00 0.5838273E+10 0.4608172E+09 0.0000000E+00 202301
0.0000000E+00 0.0000000E+00 0.9983369E+10 0.1951396E+10 0.0000000E+00 112301
0.0000000E+00 0.0000000E+00 0.3579747E+10 0.1191272E+10 0.0000000E+00 022301
0.7547168E+10 0.2426871E+10 0.0000000E+00 0.0000000E+00 0.3239916E+09 103301
0.3298785E+10 0.1058072E+10 0.0000000E+00 0.0000000E+00 0.1904777E+09 013301
0.0000000E+00 0.0000000E+00-0.2421758E+09-0.5760904E+09 0.0000000E+00 004301
0.5789383E+08 -9389735. 0.0000000E+00 0.0000000E+00 0.3365665E+08 400202
0.4139112E+09 0.9837192E+08 0.0000000E+00 0.0000000E+00 0.1065122E+09 310202
0.7534318E+09 0.2387339E+09 0.0000000E+00 0.0000000E+00 0.1032467E+09 220202
0.3009566E+09 0.1037875E+09 0.0000000E+00 0.0000000E+00 0.3166845E+08 130202
-0.2577008E+08-0.1352065E+08 0.0000000E+00 0.0000000E+00 -2812715. 040202
0.0000000E+00 0.0000000E+00-0.8829081E+09-0.4459148E+09 0.0000000E+00 301202
0.0000000E+00 0.0000000E+00-0.2077743E+10-0.1054564E+10 0.0000000E+00 211202
0.0000000E+00 0.0000000E+00-0.1410925E+10-0.8029247E+09 0.0000000E+00 121202
0.0000000E+00 0.0000000E+00-0.9274372E+08-0.1371127E+09 0.0000000E+00 031202
0.3874223E+08-0.2521807E+08 0.0000000E+00 0.0000000E+00 0.4999566E+08 202202
0.1076740E+10 0.3117703E+09 0.0000000E+00 0.0000000E+00 0.1722571E+09 112202
0.7158418E+09 0.2523378E+09 0.0000000E+00 0.0000000E+00 0.9909344E+08 022202
0.0000000E+00 0.0000000E+00-0.1098552E+09-0.5970012E+08 0.0000000E+00 103202
0.0000000E+00 0.0000000E+00-0.1093179E+09-0.7258821E+08 0.0000000E+00 013202
-0.2059226E+09-0.5149449E+08 0.0000000E+00 0.0000000E+00-0.1739133E+08 004202
0.0000000E+00 0.0000000E+00 940032.7 -4002249. 0.0000000E+00 400103
0.0000000E+00 0.0000000E+00-0.1641994E+08-0.2051081E+08 0.0000000E+00 310103
0.0000000E+00 0.0000000E+00-0.3515334E+08-0.4141455E+08 0.0000000E+00 220103
0.0000000E+00 0.0000000E+00-0.1806826E+08-0.2907708E+08 0.0000000E+00 130103
0.0000000E+00 0.0000000E+00 -604406.6 -7331562. 0.0000000E+00 040103
-0.4547828E+08-0.1609131E+08 0.0000000E+00 0.0000000E+00 -7475975. 301103
-0.7084932E+08-0.3141806E+08 0.0000000E+00 0.0000000E+00-0.1209602E+08 211103
-0.4298755E+08-0.1923826E+08 0.0000000E+00 0.0000000E+00 -4892466. 121103
-5249387. 36720.44 0.0000000E+00 0.0000000E+00 131569.0 031103
0.0000000E+00 0.0000000E+00 0.1045090E+09 0.4647828E+08 0.0000000E+00 202103
0.0000000E+00 0.0000000E+00 0.1004992E+09 0.5009787E+08 0.0000000E+00 112103
0.0000000E+00 0.0000000E+00 0.2887830E+08 0.1904232E+08 0.0000000E+00 022103
-0.2992100E+08-0.1104759E+08 0.0000000E+00 0.0000000E+00 -8067143. 103103
-0.3162365E+08-0.1112737E+08 0.0000000E+00 0.0000000E+00 -5407745. 013103
0.0000000E+00 0.0000000E+00 -358641.6 406436.4 0.0000000E+00 004103
713531.1 179389.8 0.0000000E+00 0.0000000E+00 -62405.71 400004
1112009. 159036.6 0.0000000E+00 0.0000000E+00 -207981.4 310004
578426.2 -115482.3 0.0000000E+00 0.0000000E+00 -222682.3 220004
48219.02 -100398.9 0.0000000E+00 0.0000000E+00 -131148.5 130004
19642.43 57928.38 0.0000000E+00 0.0000000E+00 -8331.757 040004
0.0000000E+00 0.0000000E+00 -1293086. -206506.1 0.0000000E+00 301004
0.0000000E+00 0.0000000E+00 896768.7 309088.9 0.0000000E+00 211004
0.0000000E+00 0.0000000E+00 5021586. 1591663. 0.0000000E+00 121004
0.0000000E+00 0.0000000E+00 1981754. 893290.7 0.0000000E+00 031004
3290568. 1028660. 0.0000000E+00 0.0000000E+00 525520.6 202004
2975431. 974953.4 0.0000000E+00 0.0000000E+00 459608.4 112004
1044300. 259505.7 0.0000000E+00 0.0000000E+00 40825.41 022004
0.0000000E+00 0.0000000E+00 -2807009. -676757.2 0.0000000E+00 103004
0.0000000E+00 0.0000000E+00 -1430553. -552426.0 0.0000000E+00 013004
18276.15 32160.15 0.0000000E+00 0.0000000E+00 38846.58 004004
0.0000000E+00 0.0000000E+00 0.1299332E+11 0.5947923E+10 0.0000000E+00 300500
0.0000000E+00 0.0000000E+00 0.7042055E+10 0.9301196E+10 0.0000000E+00 210500
0.0000000E+00 0.0000000E+00-0.4479727E+10 0.6169562E+10 0.0000000E+00 120500
0.0000000E+00 0.0000000E+00-0.2452960E+10 0.1895696E+10 0.0000000E+00 030500
0.1345411E+10 0.4779333E+09 0.0000000E+00 0.0000000E+00-0.3315919E+10 201500
-0.1570234E+11-0.4684593E+10 0.0000000E+00 0.0000000E+00-0.2104532E+10 111500
-0.9841883E+10-0.2990021E+10 0.0000000E+00 0.0000000E+00-0.9180582E+09 021500
0.0000000E+00 0.0000000E+00 0.1002704E+11 0.7584895E+09 0.0000000E+00 102500
0.0000000E+00 0.0000000E+00 0.2044930E+10 0.2031629E+10 0.0000000E+00 012500
0.6718499E+10 0.1683863E+10 0.0000000E+00 0.0000000E+00-0.1519960E+09 003500
0.2485591E+10 0.7837518E+09 0.0000000E+00 0.0000000E+00 0.1487606E+09 300401
0.3781743E+10 0.1476716E+10 0.0000000E+00 0.0000000E+00 0.3841600E+09 210401
0.1289032E+10 0.7703360E+09 0.0000000E+00 0.0000000E+00 0.2844557E+09 120401
-0.1682594E+09 0.1489259E+08 0.0000000E+00 0.0000000E+00 0.8340974E+08 030401
0.0000000E+00 0.0000000E+00 0.2046962E+10-0.9072286E+09 0.0000000E+00 201401
0.0000000E+00 0.0000000E+00 0.3712237E+10-0.5738279E+09 0.0000000E+00 111401
0.0000000E+00 0.0000000E+00 0.9453457E+09 0.1068255E+08 0.0000000E+00 021401
0.9071448E+10 0.2969655E+10 0.0000000E+00 0.0000000E+00 0.8167818E+09 102401
0.4849043E+10 0.1398577E+10 0.0000000E+00 0.0000000E+00 0.5102964E+09 012401
0.0000000E+00 0.0000000E+00-0.5820691E+08-0.8464063E+09 0.0000000E+00 003401
0.0000000E+00 0.0000000E+00-0.1298927E+09-0.1843577E+09 0.0000000E+00 300302
0.0000000E+00 0.0000000E+00-0.6092632E+09-0.5534038E+09 0.0000000E+00 210302
0.0000000E+00 0.0000000E+00-0.4533004E+09-0.4501662E+09 0.0000000E+00 120302
0.0000000E+00 0.0000000E+00 0.1646754E+08-0.7282518E+08 0.0000000E+00 030302
0.3820650E+09 0.5682497E+08 0.0000000E+00 0.0000000E+00 0.6946284E+08 201302
0.1457537E+10 0.3929471E+09 0.0000000E+00 0.0000000E+00 0.2171059E+09 111302
0.7490123E+09 0.2322070E+09 0.0000000E+00 0.0000000E+00 0.1023540E+09 021302
0.0000000E+00 0.0000000E+00 0.2238885E+09-0.2910359E+08 0.0000000E+00 102302
0.0000000E+00 0.0000000E+00 0.2301729E+09-0.3853463E+08 0.0000000E+00 012302
-0.3280664E+09-0.5716535E+08 0.0000000E+00 0.0000000E+00-0.1502191E+08 003302
-0.2577683E+08-0.1148675E+08 0.0000000E+00 0.0000000E+00 -8772632. 300203
-0.5371913E+08-0.2779805E+08 0.0000000E+00 0.0000000E+00-0.1332739E+08 210203
-0.5847018E+08-0.2575472E+08 0.0000000E+00 0.0000000E+00 -9674663. 120203
-0.1253777E+08 -4365291. 0.0000000E+00 0.0000000E+00 -1422041. 030203
0.0000000E+00 0.0000000E+00 0.8132402E+08 0.2999288E+08 0.0000000E+00 201203
0.0000000E+00 0.0000000E+00 0.1576902E+09 0.5204837E+08 0.0000000E+00 111203
0.0000000E+00 0.0000000E+00 0.8178260E+08 0.2705027E+08 0.0000000E+00 021203
-0.3631702E+08-0.1229501E+08 0.0000000E+00 0.0000000E+00 -6553387. 102203
-0.4287269E+08-0.1099033E+08 0.0000000E+00 0.0000000E+00 -5851020. 012203
0.0000000E+00 0.0000000E+00-0.1823001E+08 -4466327. 0.0000000E+00 003203
0.0000000E+00 0.0000000E+00 -3366776. -1325629. 0.0000000E+00 300104
0.0000000E+00 0.0000000E+00 -208984.2 -401505.8 0.0000000E+00 210104
0.0000000E+00 0.0000000E+00 3676602. 464260.1 0.0000000E+00 120104
0.0000000E+00 0.0000000E+00 855796.7 5710.437 0.0000000E+00 030104
2909334. 1027833. 0.0000000E+00 0.0000000E+00 982755.8 201104
3162898. 1147379. 0.0000000E+00 0.0000000E+00 685050.0 111104
4039660. 1277469. 0.0000000E+00 0.0000000E+00 280149.0 021104
0.0000000E+00 0.0000000E+00 -6993937. -2101584. 0.0000000E+00 102104
0.0000000E+00 0.0000000E+00 -4015763. -1900429. 0.0000000E+00 012104
-1483221. -481448.6 0.0000000E+00 0.0000000E+00 -137848.6 003104
-15302.04 10471.93 0.0000000E+00 0.0000000E+00 7722.509 300005
-93115.33 18885.71 0.0000000E+00 0.0000000E+00 18673.19 210005
-37004.50 30580.81 0.0000000E+00 0.0000000E+00 25467.55 120005
-9111.565 6111.843 0.0000000E+00 0.0000000E+00 8003.504 030005
0.0000000E+00 0.0000000E+00 443553.4 228111.2 0.0000000E+00 201005
0.0000000E+00 0.0000000E+00 216707.2 183786.9 0.0000000E+00 111005
0.0000000E+00 0.0000000E+00 -142534.0 -14267.47 0.0000000E+00 021005
-192137.9 -59462.74 0.0000000E+00 0.0000000E+00 -43063.65 102005
-19808.95 -18268.21 0.0000000E+00 0.0000000E+00 -13147.77 012005
0.0000000E+00 0.0000000E+00 60987.50 28410.69 0.0000000E+00 003005
-0.5675337E+09 0.1281725E+09 0.0000000E+00 0.0000000E+00-0.1105898E+10 200600
-0.6453712E+10-0.1684714E+10 0.0000000E+00 0.0000000E+00-0.1204293E+10 110600
-0.3676116E+10-0.9506473E+09 0.0000000E+00 0.0000000E+00-0.6162662E+09 020600
0.0000000E+00 0.0000000E+00-0.7412654E+08 0.3747136E+08 0.0000000E+00 101600
0.0000000E+00 0.0000000E+00-0.8792441E+09 0.1482478E+10 0.0000000E+00 011600
0.4480340E+10 0.7700793E+09 0.0000000E+00 0.0000000E+00-0.1301091E+09 002600
0.0000000E+00 0.0000000E+00 0.4368765E+08-0.3074018E+09 0.0000000E+00 200501
0.0000000E+00 0.0000000E+00 0.3822246E+09-0.1381141E+09 0.0000000E+00 110501
0.0000000E+00 0.0000000E+00-0.1147851E+09-0.7802192E+08 0.0000000E+00 020501
0.5432664E+10 0.1806272E+10 0.0000000E+00 0.0000000E+00 0.6121318E+09 101501
0.3220281E+10 0.7888907E+09 0.0000000E+00 0.0000000E+00 0.3633330E+09 011501
0.0000000E+00 0.0000000E+00 0.1957207E+09-0.7067682E+09 0.0000000E+00 002501
0.1945119E+09 0.3241826E+08 0.0000000E+00 0.0000000E+00 0.1073870E+08 200402
0.5611263E+09 0.1402046E+09 0.0000000E+00 0.0000000E+00 0.6843256E+08 110402
0.2302367E+09 0.6407263E+08 0.0000000E+00 0.0000000E+00 0.2367543E+08 020402
0.0000000E+00 0.0000000E+00 0.4491086E+09 0.2264566E+08 0.0000000E+00 101402
0.0000000E+00 0.0000000E+00 0.4666697E+09 0.3375097E+08 0.0000000E+00 011402
-0.1728882E+09 0.1646860E+08 0.0000000E+00 0.0000000E+00 0.2394441E+08 002402
0.0000000E+00 0.0000000E+00 0.2333809E+08 582929.7 0.0000000E+00 200303
0.0000000E+00 0.0000000E+00 0.9137795E+08 0.1836529E+08 0.0000000E+00 110303
0.0000000E+00 0.0000000E+00 0.3973188E+08 8669036. 0.0000000E+00 020303
0.1875842E+08 5186835. 0.0000000E+00 0.0000000E+00 5296326. 101303
1897393. 4733309. 0.0000000E+00 0.0000000E+00 2182347. 011303
0.0000000E+00 0.0000000E+00-0.2022397E+08-0.1451065E+08 0.0000000E+00 002303
-6845934. -1795095. 0.0000000E+00 0.0000000E+00 -188810.9 200204
-3336245. -638581.8 0.0000000E+00 0.0000000E+00 239224.9 110204
1335417. 586100.3 0.0000000E+00 0.0000000E+00 304151.2 020204
0.0000000E+00 0.0000000E+00 -302028.6 -549958.5 0.0000000E+00 101204
0.0000000E+00 0.0000000E+00 -2816717. -1481553. 0.0000000E+00 011204
-4784316. -1507153. 0.0000000E+00 0.0000000E+00 -607603.0 002204
0.0000000E+00 0.0000000E+00 -64841.17 11718.54 0.0000000E+00 200105
0.0000000E+00 0.0000000E+00 -573518.9 -93797.17 0.0000000E+00 110105
0.0000000E+00 0.0000000E+00 -274265.5 -22064.53 0.0000000E+00 020105
626328.5 160205.5 0.0000000E+00 0.0000000E+00 38919.65 101105
262609.3 41302.31 0.0000000E+00 0.0000000E+00 24560.38 011105
0.0000000E+00 0.0000000E+00 41066.16 20503.81 0.0000000E+00 002105
6528.673 481.0695 0.0000000E+00 0.0000000E+00 -1019.149 200006
3445.502 -2573.057 0.0000000E+00 0.0000000E+00 -2964.564 110006
3056.328 -15.76825 0.0000000E+00 0.0000000E+00 -1319.926 020006
0.0000000E+00 0.0000000E+00 -16035.74 1392.702 0.0000000E+00 101006
0.0000000E+00 0.0000000E+00 4495.543 7717.005 0.0000000E+00 011006
-10701.06 -829.6607 0.0000000E+00 0.0000000E+00 -920.2937 002006
0.0000000E+00 0.0000000E+00-0.1731119E+10 0.2435154E+09 0.0000000E+00 100700
0.0000000E+00 0.0000000E+00-0.9663546E+09 0.7847217E+09 0.0000000E+00 010700
0.1187259E+10-0.9642975E+08 0.0000000E+00 0.0000000E+00-0.2107895E+09 001700
0.8545484E+09 0.3202553E+09 0.0000000E+00 0.0000000E+00 0.7825468E+08 100601
0.6092570E+09 0.1029855E+09 0.0000000E+00 0.0000000E+00 0.3966600E+08 010601
0.0000000E+00 0.0000000E+00 0.1384048E+09-0.2130620E+09 0.0000000E+00 001601
0.0000000E+00 0.0000000E+00 0.1789093E+09 0.3400073E+08 0.0000000E+00 100502
0.0000000E+00 0.0000000E+00 0.1871927E+09 0.5219385E+08 0.0000000E+00 010502
0.6608415E+08 0.5915588E+08 0.0000000E+00 0.0000000E+00 0.4238260E+08 001502
0.1777050E+08 5131276. 0.0000000E+00 0.0000000E+00 2438343. 100403
0.1583259E+08 5318579. 0.0000000E+00 0.0000000E+00 3049198. 010403
0.0000000E+00 0.0000000E+00 5151381. -0.1161472E+08 0.0000000E+00 001403
0.0000000E+00 0.0000000E+00 341912.6 -97452.53 0.0000000E+00 100304
0.0000000E+00 0.0000000E+00 -1208412. -477674.1 0.0000000E+00 010304
-4155129. -1174300. 0.0000000E+00 0.0000000E+00 -128840.0 001304
550691.3 129300.5 0.0000000E+00 0.0000000E+00 70628.25 100205
77627.57 -6890.438 0.0000000E+00 0.0000000E+00 28134.26 010205
0.0000000E+00 0.0000000E+00 -563.7504 -70006.73 0.0000000E+00 001205
0.0000000E+00 0.0000000E+00 27195.37 11614.71 0.0000000E+00 100106
0.0000000E+00 0.0000000E+00 29653.08 6621.764 0.0000000E+00 010106
-57925.53 -12519.73 0.0000000E+00 0.0000000E+00 -678.3993 001106
66.64663 212.5528 0.0000000E+00 0.0000000E+00 167.9920 100007
-354.1376 -53.05576 0.0000000E+00 0.0000000E+00 141.2516 010007
0.0000000E+00 0.0000000E+00 638.6060 -436.3437 0.0000000E+00 001007
-0.3631168E+08-0.1334586E+09 0.0000000E+00 0.0000000E+00-0.1147979E+09 000800
0.0000000E+00 0.0000000E+00-0.4786177E+08 3426400. 0.0000000E+00 000701
0.5109921E+08 0.1990119E+08 0.0000000E+00 0.0000000E+00 0.1273367E+08 000602
0.0000000E+00 0.0000000E+00 3881994. -2703929. 0.0000000E+00 000503
-569252.4 -116573.2 0.0000000E+00 0.0000000E+00 107541.6 000404
0.0000000E+00 0.0000000E+00 55381.34 -6659.197 0.0000000E+00 000305
-11850.38 -3628.099 0.0000000E+00 0.0000000E+00 -122.9923 000206
0.0000000E+00 0.0000000E+00 31.75024 174.8526 0.0000000E+00 000107
23.24638 7.333653 0.0000000E+00 0.0000000E+00 -7.969209 000008
-0.2156265E+11-0.7391924E+10 0.0000000E+00 0.0000000E+00-0.5884523E+09 900000
-0.8596207E+11-0.3303496E+11 0.0000000E+00 0.0000000E+00 0.2344005E+10 810000
-0.8415313E+11-0.5632536E+11 0.0000000E+00 0.0000000E+00 0.1587452E+11 720000
0.1808206E+12-0.1531077E+11 0.0000000E+00 0.0000000E+00 0.2859026E+11 630000
0.5191641E+12 0.8244498E+11 0.0000000E+00 0.0000000E+00 0.2692774E+11 540000
0.4634047E+12 0.1223995E+12 0.0000000E+00 0.0000000E+00 0.1928518E+11 450000
0.1332200E+12 0.7199899E+11 0.0000000E+00 0.0000000E+00 0.1104958E+11 360000
-0.3760800E+11 0.1511540E+11 0.0000000E+00 0.0000000E+00 0.2652303E+10 270000
-0.3079581E+11-0.2381298E+10 0.0000000E+00 0.0000000E+00-0.6870931E+09 180000
-0.5143654E+10-0.1061141E+10 0.0000000E+00 0.0000000E+00-0.2935088E+09 090000
0.0000000E+00 0.0000000E+00-0.1260201E+12-0.4333339E+11 0.0000000E+00 801000
0.0000000E+00 0.0000000E+00-0.2787780E+12-0.1090939E+12 0.0000000E+00 711000
0.0000000E+00 0.0000000E+00 0.1091519E+12-0.5404443E+10 0.0000000E+00 621000
0.0000000E+00 0.0000000E+00 0.9154642E+12 0.2835069E+12 0.0000000E+00 531000
0.0000000E+00 0.0000000E+00 0.1063362E+13 0.4025322E+12 0.0000000E+00 441000
0.0000000E+00 0.0000000E+00 0.3543293E+12 0.1958255E+12 0.0000000E+00 351000
0.0000000E+00 0.0000000E+00-0.1446089E+12-0.2341007E+10 0.0000000E+00 261000
0.0000000E+00 0.0000000E+00-0.1007023E+12-0.2144066E+11 0.0000000E+00 171000
0.0000000E+00 0.0000000E+00-0.9915921E+10-0.2118504E+10 0.0000000E+00 081000
-0.1756135E+11-0.1027443E+11 0.0000000E+00 0.0000000E+00-0.1092317E+11 702000
0.5974853E+11 0.1758278E+11 0.0000000E+00 0.0000000E+00-0.2325271E+11 612000
0.2216719E+12 0.8768517E+11 0.0000000E+00 0.0000000E+00-0.2131662E+11 522000
0.9749511E+11 0.3440779E+11 0.0000000E+00 0.0000000E+00-0.2957972E+11 432000
-0.1654298E+12-0.8709129E+11 0.0000000E+00 0.0000000E+00-0.3372861E+11 342000
-0.1471398E+12-0.7922389E+11 0.0000000E+00 0.0000000E+00-0.1218619E+11 252000
-0.2275448E+11-0.1708574E+11 0.0000000E+00 0.0000000E+00 0.2034394E+10 162000
0.3828507E+10 0.4132102E+09 0.0000000E+00 0.0000000E+00 0.1094205E+10 072000
0.0000000E+00 0.0000000E+00-0.8510732E+11-0.3385259E+11 0.0000000E+00 603000
0.0000000E+00 0.0000000E+00-0.4060686E+12-0.1464698E+12 0.0000000E+00 513000
0.0000000E+00 0.0000000E+00-0.6354113E+12-0.2387123E+12 0.0000000E+00 423000
0.0000000E+00 0.0000000E+00-0.1502525E+12-0.1078980E+12 0.0000000E+00 333000
0.0000000E+00 0.0000000E+00 0.3536251E+12 0.6304266E+11 0.0000000E+00 243000
0.0000000E+00 0.0000000E+00 0.1974726E+12 0.4582274E+11 0.0000000E+00 153000
0.0000000E+00 0.0000000E+00 0.1168797E+11 0.1936138E+10 0.0000000E+00 063000
-0.1079807E+12-0.3654612E+11 0.0000000E+00 0.0000000E+00-0.5777220E+10 504000
-0.7119175E+11-0.2409379E+11 0.0000000E+00 0.0000000E+00 0.1956420E+10 414000
0.1916940E+12 0.6608913E+11 0.0000000E+00 0.0000000E+00 0.1669851E+11 324000
0.1824610E+12 0.6423614E+11 0.0000000E+00 0.0000000E+00 0.1661904E+10 234000
0.2239681E+11 0.9840166E+10 0.0000000E+00 0.0000000E+00-0.1031371E+11 144000
-0.7626103E+10-0.1830237E+10 0.0000000E+00 0.0000000E+00-0.3179309E+10 054000
0.0000000E+00 0.0000000E+00 0.1686051E+11-0.1797682E+10 0.0000000E+00 405000
0.0000000E+00 0.0000000E+00-0.6294099E+11-0.2104008E+11 0.0000000E+00 315000
0.0000000E+00 0.0000000E+00-0.1716173E+12-0.4154994E+11 0.0000000E+00 225000
0.0000000E+00 0.0000000E+00-0.7002562E+11-0.1545439E+11 0.0000000E+00 135000
0.0000000E+00 0.0000000E+00 0.1114840E+11 0.3539295E+10 0.0000000E+00 045000
-0.3860433E+11-0.1198871E+11 0.0000000E+00 0.0000000E+00-0.1958401E+10 306000
-0.3100571E+11-0.9298921E+10 0.0000000E+00 0.0000000E+00 0.1416429E+10 216000
0.8687717E+10 0.3114529E+10 0.0000000E+00 0.0000000E+00 0.5118306E+10 126000
0.6086069E+10 0.1941159E+10 0.0000000E+00 0.0000000E+00 0.1447685E+10 036000
0.0000000E+00 0.0000000E+00 0.1058763E+11 0.1692741E+10 0.0000000E+00 207000
0.0000000E+00 0.0000000E+00 0.2280720E+10-0.7354132E+08 0.0000000E+00 117000
0.0000000E+00 0.0000000E+00-0.6097344E+10-0.1677455E+10 0.0000000E+00 027000
-0.2370313E+10-0.7826963E+09 0.0000000E+00 0.0000000E+00-0.4432075E+09 108000
-0.9531592E+09-0.3034972E+09 0.0000000E+00 0.0000000E+00-0.1185959E+09 018000
0.0000000E+00 0.0000000E+00 0.5077409E+09 0.1299948E+09 0.0000000E+00 009000
0.0000000E+00 0.0000000E+00-0.1376625E+12-0.4876333E+11 0.0000000E+00 800100
0.0000000E+00 0.0000000E+00-0.3961883E+12-0.1650133E+12 0.0000000E+00 710100
0.0000000E+00 0.0000000E+00-0.2200716E+12-0.1562862E+12 0.0000000E+00 620100
0.0000000E+00 0.0000000E+00 0.7110613E+12 0.1898162E+12 0.0000000E+00 530100
0.0000000E+00 0.0000000E+00 0.1300483E+13 0.5210364E+12 0.0000000E+00 440100
0.0000000E+00 0.0000000E+00 0.6428902E+12 0.3761550E+12 0.0000000E+00 350100
0.0000000E+00 0.0000000E+00-0.6377561E+11 0.9135160E+11 0.0000000E+00 260100
0.0000000E+00 0.0000000E+00-0.9166693E+11 0.5698820E+10 0.0000000E+00 170100
0.0000000E+00 0.0000000E+00-0.7901009E+10 0.1579203E+10 0.0000000E+00 080100
-0.1328814E+12-0.4767000E+11 0.0000000E+00 0.0000000E+00-0.1035883E+11 701100
-0.8113118E+10 0.1934074E+11 0.0000000E+00 0.0000000E+00-0.5375144E+09 611100
0.4056887E+12 0.2197857E+12 0.0000000E+00 0.0000000E+00 0.2119265E+10 521100
-0.8136746E+11 0.3765419E+11 0.0000000E+00 0.0000000E+00-0.1002429E+12 431100
-0.8802048E+12-0.3333825E+12 0.0000000E+00 0.0000000E+00-0.1850659E+12 341100
-0.6949834E+12-0.2987954E+12 0.0000000E+00 0.0000000E+00-0.1160150E+12 251100
-0.1817972E+12-0.8682104E+11 0.0000000E+00 0.0000000E+00-0.2714396E+11 161100
-0.1155219E+11-0.6802536E+10 0.0000000E+00 0.0000000E+00-0.2262483E+10 071100
0.0000000E+00 0.0000000E+00-0.2186133E+12-0.1063810E+12 0.0000000E+00 602100
0.0000000E+00 0.0000000E+00-0.1612887E+13-0.6058654E+12 0.0000000E+00 512100
0.0000000E+00 0.0000000E+00-0.3220301E+13-0.1224865E+13 0.0000000E+00 422100
0.0000000E+00 0.0000000E+00-0.1656015E+13-0.8732436E+12 0.0000000E+00 332100
0.0000000E+00 0.0000000E+00 0.6706280E+12-0.1016120E+12 0.0000000E+00 242100
0.0000000E+00 0.0000000E+00 0.5128928E+12 0.3594857E+11 0.0000000E+00 152100
0.0000000E+00 0.0000000E+00 0.1228070E+11-0.1476645E+11 0.0000000E+00 062100
-0.4722169E+12-0.1536373E+12 0.0000000E+00 0.0000000E+00-0.2656146E+11 503100
-0.3194315E+12-0.9693602E+11 0.0000000E+00 0.0000000E+00 0.1568891E+11 413100
0.6161776E+12 0.2293419E+12 0.0000000E+00 0.0000000E+00 0.8148965E+11 323100
0.4722916E+12 0.1882417E+12 0.0000000E+00 0.0000000E+00-0.7343598E+10 233100
-0.3444435E+11 0.9036775E+10 0.0000000E+00 0.0000000E+00-0.6077920E+11 143100
-0.4514718E+11-0.8999701E+10 0.0000000E+00 0.0000000E+00-0.1568437E+11 053100
0.0000000E+00 0.0000000E+00 0.1986606E+12 0.3087100E+11 0.0000000E+00 404100
0.0000000E+00 0.0000000E+00-0.2572749E+12-0.6233769E+11 0.0000000E+00 314100
0.0000000E+00 0.0000000E+00-0.9433501E+12-0.2021151E+12 0.0000000E+00 224100
0.0000000E+00 0.0000000E+00-0.3335244E+12-0.6255471E+11 0.0000000E+00 134100
0.0000000E+00 0.0000000E+00 0.8928221E+11 0.2790677E+11 0.0000000E+00 044100
-0.2067309E+12-0.6397147E+11 0.0000000E+00 0.0000000E+00-0.1202593E+11 305100
-0.1314165E+12-0.3758334E+11 0.0000000E+00 0.0000000E+00 0.1913270E+11 215100
0.7877417E+11 0.2786178E+11 0.0000000E+00 0.0000000E+00 0.4381183E+11 125100
0.4184392E+11 0.1298541E+11 0.0000000E+00 0.0000000E+00 0.1068224E+11 035100
0.0000000E+00 0.0000000E+00 0.1016507E+12 0.2060412E+11 0.0000000E+00 206100
0.0000000E+00 0.0000000E+00 0.1788496E+11 0.2088340E+10 0.0000000E+00 116100
0.0000000E+00 0.0000000E+00-0.5190436E+11-0.1351149E+11 0.0000000E+00 026100
-0.1882300E+11-0.6497218E+10 0.0000000E+00 0.0000000E+00-0.5041517E+10 107100
-0.8423693E+10-0.2694396E+10 0.0000000E+00 0.0000000E+00-0.1236078E+10 017100
0.0000000E+00 0.0000000E+00 0.5548785E+10 0.1389829E+10 0.0000000E+00 008100
0.1309138E+10 0.1457809E+10 0.0000000E+00 0.0000000E+00-0.1945959E+09 800001
-0.5526115E+10 0.5092712E+09 0.0000000E+00 0.0000000E+00-0.3256113E+09 710001
-0.2372400E+11-0.9505798E+10 0.0000000E+00 0.0000000E+00 0.1716424E+09 620001
-0.2604647E+11-0.1829476E+11 0.0000000E+00 0.0000000E+00 0.1866184E+10 530001
-0.7360320E+10-0.1563585E+11 0.0000000E+00 0.0000000E+00 0.3141744E+10 440001
0.8862177E+10-0.8088659E+10 0.0000000E+00 0.0000000E+00 0.1616237E+10 350001
0.1112964E+11-0.2400380E+10 0.0000000E+00 0.0000000E+00-0.1231846E+09 260001
0.5454639E+10 -3060045. 0.0000000E+00 0.0000000E+00-0.1198923E+09 170001
0.9900922E+09 0.1313706E+09 0.0000000E+00 0.0000000E+00 0.3371180E+08 080001
0.0000000E+00 0.0000000E+00 0.2274732E+10 0.9349295E+09 0.0000000E+00 701001
0.0000000E+00 0.0000000E+00-0.2370280E+11-0.1127298E+11 0.0000000E+00 611001
0.0000000E+00 0.0000000E+00-0.8748554E+11-0.3960674E+11 0.0000000E+00 521001
0.0000000E+00 0.0000000E+00-0.8987492E+11-0.4151303E+11 0.0000000E+00 431001
0.0000000E+00 0.0000000E+00-0.2038190E+11-0.1491942E+11 0.0000000E+00 341001
0.0000000E+00 0.0000000E+00 0.2698164E+11 0.3542070E+10 0.0000000E+00 251001
0.0000000E+00 0.0000000E+00 0.2072932E+11 0.4282195E+10 0.0000000E+00 161001
0.0000000E+00 0.0000000E+00 0.3403595E+10 0.6176765E+09 0.0000000E+00 071001
-0.9698841E+10-0.3457942E+10 0.0000000E+00 0.0000000E+00 0.2458166E+10 602001
-0.3190062E+10-0.2453305E+10 0.0000000E+00 0.0000000E+00 0.4491249E+10 512001
0.1120722E+11 0.2834211E+10 0.0000000E+00 0.0000000E+00 0.1866212E+09 422001
0.1075775E+11 0.7568456E+10 0.0000000E+00 0.0000000E+00-0.3009268E+10 332001
0.7657243E+10 0.8365267E+10 0.0000000E+00 0.0000000E+00-0.1489981E+10 242001
-0.5813513E+09 0.2636383E+10 0.0000000E+00 0.0000000E+00-0.5989332E+09 152001
-0.1757897E+10-0.9220062E+08 0.0000000E+00 0.0000000E+00-0.2592924E+09 062001
0.0000000E+00 0.0000000E+00 0.3560198E+11 0.1566039E+11 0.0000000E+00 503001
0.0000000E+00 0.0000000E+00 0.4068517E+11 0.2368527E+11 0.0000000E+00 413001
0.0000000E+00 0.0000000E+00-0.2840261E+11 0.4917570E+09 0.0000000E+00 323001
0.0000000E+00 0.0000000E+00-0.5549595E+11-0.1186779E+11 0.0000000E+00 233001
0.0000000E+00 0.0000000E+00-0.2279977E+11-0.3481317E+10 0.0000000E+00 143001
0.0000000E+00 0.0000000E+00 0.7717608E+08 0.1108024E+10 0.0000000E+00 053001
-0.2684317E+10-0.7895723E+09 0.0000000E+00 0.0000000E+00 0.1482682E+10 404001
-0.8311238E+10-0.2866353E+10 0.0000000E+00 0.0000000E+00 0.5620543E+10 314001
-0.1341857E+11-0.4576216E+10 0.0000000E+00 0.0000000E+00 0.7654199E+10 224001
-0.1027134E+08-0.4384342E+09 0.0000000E+00 0.0000000E+00 0.4166247E+10 134001
0.3575348E+10 0.8902809E+09 0.0000000E+00 0.0000000E+00 0.7953203E+09 044001
0.0000000E+00 0.0000000E+00 0.2103808E+11 0.6922265E+10 0.0000000E+00 305001
0.0000000E+00 0.0000000E+00 0.2204718E+11 0.7103593E+10 0.0000000E+00 215001
0.0000000E+00 0.0000000E+00-0.3720178E+10-0.1243804E+10 0.0000000E+00 125001
0.0000000E+00 0.0000000E+00-0.7195846E+10-0.2184876E+10 0.0000000E+00 035001
0.1857555E+09-0.1866701E+09 0.0000000E+00 0.0000000E+00-0.1156557E+10 206001
-0.2900230E+10-0.1095419E+10 0.0000000E+00 0.0000000E+00-0.1107516E+10 116001
-0.2793181E+10-0.8782709E+09 0.0000000E+00 0.0000000E+00-0.2026579E+09 026001
0.0000000E+00 0.0000000E+00 0.2758538E+10 0.8080417E+09 0.0000000E+00 107001
0.0000000E+00 0.0000000E+00 0.1809405E+10 0.5359737E+09 0.0000000E+00 017001
0.2839649E+09 0.8248808E+08 0.0000000E+00 0.0000000E+00-0.2279805E+08 008001
-0.7501365E+11-0.2823203E+11 0.0000000E+00 0.0000000E+00 0.3258347E+10 700200
0.9704725E+11 0.4576939E+11 0.0000000E+00 0.0000000E+00 0.2228571E+11 610200
0.3144907E+12 0.1815975E+12 0.0000000E+00 0.0000000E+00-0.3512077E+10 520200
-0.4528016E+12-0.4463990E+11 0.0000000E+00 0.0000000E+00-0.1430012E+12 430200
-0.1294872E+13-0.3903501E+12 0.0000000E+00 0.0000000E+00-0.2391618E+12 340200
-0.9795619E+12-0.3449867E+12 0.0000000E+00 0.0000000E+00-0.1593369E+12 250200
-0.3050307E+12-0.1193822E+12 0.0000000E+00 0.0000000E+00-0.4790925E+11 160200
-0.3297635E+11-0.1421091E+11 0.0000000E+00 0.0000000E+00-0.6045085E+10 070200
0.0000000E+00 0.0000000E+00-0.8403093E+11-0.7224705E+11 0.0000000E+00 601200
0.0000000E+00 0.0000000E+00-0.2068998E+13-0.7443911E+12 0.0000000E+00 511200
0.0000000E+00 0.0000000E+00-0.5190982E+13-0.1877517E+13 0.0000000E+00 421200
0.0000000E+00 0.0000000E+00-0.3814950E+13-0.1734386E+13 0.0000000E+00 331200
0.0000000E+00 0.0000000E+00-0.3973204E+12-0.6889427E+12 0.0000000E+00 241200
0.0000000E+00 0.0000000E+00 0.1808022E+12-0.2093017E+12 0.0000000E+00 151200
0.0000000E+00 0.0000000E+00-0.4422794E+11-0.6172280E+11 0.0000000E+00 061200
-0.7514995E+12-0.2346589E+12 0.0000000E+00 0.0000000E+00-0.6184774E+11 502200
-0.8281100E+12-0.2490951E+12 0.0000000E+00 0.0000000E+00-0.3286985E+11 412200
-0.1804636E+12-0.1523859E+11 0.0000000E+00 0.0000000E+00 0.6046450E+10 322200
-0.4932523E+12-0.1026906E+12 0.0000000E+00 0.0000000E+00-0.1715120E+12 232200
-0.5540857E+12-0.1335042E+12 0.0000000E+00 0.0000000E+00-0.1819448E+12 142200
-0.1361086E+12-0.2736270E+11 0.0000000E+00 0.0000000E+00-0.3601995E+11 052200
0.0000000E+00 0.0000000E+00 0.5779618E+12 0.1173162E+12 0.0000000E+00 403200
0.0000000E+00 0.0000000E+00-0.5736315E+12-0.1248842E+12 0.0000000E+00 313200
0.0000000E+00 0.0000000E+00-0.2152831E+13-0.4707677E+12 0.0000000E+00 223200
0.0000000E+00 0.0000000E+00-0.5943872E+12-0.1149804E+12 0.0000000E+00 133200
0.0000000E+00 0.0000000E+00 0.2547440E+12 0.6960933E+11 0.0000000E+00 043200
-0.4218481E+12-0.1293428E+12 0.0000000E+00 0.0000000E+00-0.2990877E+11 304200
-0.1762194E+12-0.4026663E+11 0.0000000E+00 0.0000000E+00 0.9039540E+11 214200
0.2637722E+12 0.9347348E+11 0.0000000E+00 0.0000000E+00 0.1573792E+12 124200
0.1306765E+12 0.3856220E+11 0.0000000E+00 0.0000000E+00 0.3450445E+11 034200
0.0000000E+00 0.0000000E+00 0.4059570E+12 0.9641620E+11 0.0000000E+00 205200
0.0000000E+00 0.0000000E+00 0.5531986E+11 0.1740697E+11 0.0000000E+00 115200
0.0000000E+00 0.0000000E+00-0.1792740E+12-0.4241882E+11 0.0000000E+00 025200
-0.6140974E+11-0.2264951E+11 0.0000000E+00 0.0000000E+00-0.2466005E+11 106200
-0.3640340E+11-0.1151967E+11 0.0000000E+00 0.0000000E+00-0.5763294E+10 016200
0.0000000E+00 0.0000000E+00 0.2509975E+11 0.5886111E+10 0.0000000E+00 007200
0.0000000E+00 0.0000000E+00 0.5643731E+10-0.2653566E+09 0.0000000E+00 700101
0.0000000E+00 0.0000000E+00-0.3658820E+11-0.2702469E+11 0.0000000E+00 610101
0.0000000E+00 0.0000000E+00-0.1288097E+12-0.7432696E+11 0.0000000E+00 520101
0.0000000E+00 0.0000000E+00-0.1355181E+12-0.7471107E+11 0.0000000E+00 430101
0.0000000E+00 0.0000000E+00-0.4794855E+11-0.3251271E+11 0.0000000E+00 340101
0.0000000E+00 0.0000000E+00 0.2206690E+11-0.4408300E+10 0.0000000E+00 250101
0.0000000E+00 0.0000000E+00 0.1858320E+11-0.9718757E+09 0.0000000E+00 160101
0.0000000E+00 0.0000000E+00 0.1378027E+10-0.1208243E+10 0.0000000E+00 070101
-0.6147395E+10-0.1818218E+10 0.0000000E+00 0.0000000E+00 0.7183136E+10 601101
0.3327024E+11 0.1053456E+11 0.0000000E+00 0.0000000E+00 0.1352604E+11 511101
0.1924672E+11 0.1463123E+11 0.0000000E+00 0.0000000E+00-0.2363178E+10 421101
-0.6332209E+11 0.6920774E+10 0.0000000E+00 0.0000000E+00-0.2130069E+11 331101
-0.9855533E+11-0.3224934E+10 0.0000000E+00 0.0000000E+00-0.2236145E+11 241101
-0.6850403E+11-0.9290900E+10 0.0000000E+00 0.0000000E+00-0.1191183E+11 151101
-0.1764618E+11-0.3428171E+10 0.0000000E+00 0.0000000E+00-0.2582047E+10 061101
0.0000000E+00 0.0000000E+00 0.1301487E+12 0.5305488E+11 0.0000000E+00 502101
0.0000000E+00 0.0000000E+00 0.1710257E+12 0.8935756E+11 0.0000000E+00 412101
0.0000000E+00 0.0000000E+00-0.7553410E+11 0.1991745E+11 0.0000000E+00 322101
0.0000000E+00 0.0000000E+00-0.2302167E+12-0.3054713E+11 0.0000000E+00 232101
0.0000000E+00 0.0000000E+00-0.1219437E+12-0.1322029E+11 0.0000000E+00 142101
0.0000000E+00 0.0000000E+00-0.8627258E+10 0.3324442E+10 0.0000000E+00 052101
0.3505568E+11 0.1045665E+11 0.0000000E+00 0.0000000E+00 0.8475060E+10 403101
0.3197676E+11 0.8302099E+10 0.0000000E+00 0.0000000E+00 0.3313606E+11 313101
-0.7725116E+10-0.4654361E+10 0.0000000E+00 0.0000000E+00 0.4864141E+11 223101
0.3456536E+11 0.6525890E+10 0.0000000E+00 0.0000000E+00 0.2795360E+11 133101
0.2665476E+11 0.5956529E+10 0.0000000E+00 0.0000000E+00 0.5794925E+10 043101
0.0000000E+00 0.0000000E+00 0.1270978E+12 0.4145426E+11 0.0000000E+00 304101
0.0000000E+00 0.0000000E+00 0.1356387E+12 0.4285656E+11 0.0000000E+00 214101
0.0000000E+00 0.0000000E+00-0.3137978E+10 0.1771243E+10 0.0000000E+00 124101
0.0000000E+00 0.0000000E+00-0.3638881E+11-0.9439819E+10 0.0000000E+00 034101
0.1181717E+11 0.1803538E+10 0.0000000E+00 0.0000000E+00-0.9261223E+10 205101
-0.1863777E+11-0.7012720E+10 0.0000000E+00 0.0000000E+00-0.9113311E+10 115101
-0.2249736E+11-0.6911222E+10 0.0000000E+00 0.0000000E+00-0.2345187E+10 025101
0.0000000E+00 0.0000000E+00 0.1705708E+11 0.4185397E+10 0.0000000E+00 106101
0.0000000E+00 0.0000000E+00 0.1196521E+11 0.3353520E+10 0.0000000E+00 016101
0.3395035E+10 0.1010802E+10 0.0000000E+00 0.0000000E+00-0.7025984E+08 007101
-0.6128558E+09 0.9058550E+08 0.0000000E+00 0.0000000E+00-0.2071302E+08 700002
-0.2111011E+10-0.2359785E+09 0.0000000E+00 0.0000000E+00-0.5507442E+08 610002
-0.7645546E+09-0.8875394E+09 0.0000000E+00 0.0000000E+00 0.8803286E+08 520002
0.3849502E+10-0.7152739E+09 0.0000000E+00 0.0000000E+00 0.3752114E+09 430002
0.5105560E+10 -4486664. 0.0000000E+00 0.0000000E+00 0.4751843E+09 340002
0.1895602E+10 0.2054597E+09 0.0000000E+00 0.0000000E+00 0.3471763E+09 250002
-0.2829594E+09 0.7977772E+08 0.0000000E+00 0.0000000E+00 0.1200387E+09 160002
-0.1826190E+09 0.2673301E+08 0.0000000E+00 0.0000000E+00 7079626. 070002
0.0000000E+00 0.0000000E+00-0.1855462E+10-0.5612679E+09 0.0000000E+00 601002
0.0000000E+00 0.0000000E+00-0.1365048E+10-0.4592951E+09 0.0000000E+00 511002
0.0000000E+00 0.0000000E+00 0.9178816E+10 0.3377685E+10 0.0000000E+00 421002
0.0000000E+00 0.0000000E+00 0.9897927E+10 0.4501674E+10 0.0000000E+00 331002
0.0000000E+00 0.0000000E+00-0.1275599E+10 0.8478352E+09 0.0000000E+00 241002
0.0000000E+00 0.0000000E+00-0.3645518E+10-0.5453782E+09 0.0000000E+00 151002
0.0000000E+00 0.0000000E+00-0.7117383E+09-0.6141672E+08 0.0000000E+00 061002
0.2262618E+10 0.1083440E+10 0.0000000E+00 0.0000000E+00 0.5563070E+09 502002
0.4968504E+10 0.2029248E+10 0.0000000E+00 0.0000000E+00 0.1298185E+10 412002
0.6779968E+10 0.1963331E+10 0.0000000E+00 0.0000000E+00 0.1744982E+10 322002
0.7529017E+10 0.1549031E+10 0.0000000E+00 0.0000000E+00 0.1646094E+10 232002
0.4613205E+10 0.6712537E+09 0.0000000E+00 0.0000000E+00 0.9406344E+09 142002
0.1066715E+10 0.7447048E+08 0.0000000E+00 0.0000000E+00 0.2347310E+09 052002
0.0000000E+00 0.0000000E+00-0.1288109E+10-0.4507044E+09 0.0000000E+00 403002
0.0000000E+00 0.0000000E+00 0.1026365E+10-0.1121079E+08 0.0000000E+00 313002
0.0000000E+00 0.0000000E+00 0.8840664E+10 0.2509259E+10 0.0000000E+00 223002
0.0000000E+00 0.0000000E+00 0.7091551E+10 0.2109826E+10 0.0000000E+00 133002
0.0000000E+00 0.0000000E+00 0.8187979E+09 0.2611117E+09 0.0000000E+00 043002
0.4398000E+09 0.1458567E+09 0.0000000E+00 0.0000000E+00-0.4747664E+09 304002
0.8176685E+09 0.2391058E+09 0.0000000E+00 0.0000000E+00-0.7338601E+09 214002
-0.1851326E+09-0.1861409E+08 0.0000000E+00 0.0000000E+00-0.5963063E+09 124002
-0.3475956E+09-0.5700691E+08 0.0000000E+00 0.0000000E+00-0.1890075E+09 034002
0.0000000E+00 0.0000000E+00-0.1168065E+10-0.5031695E+09 0.0000000E+00 205002
0.0000000E+00 0.0000000E+00-0.5952034E+09-0.2926547E+09 0.0000000E+00 115002
0.0000000E+00 0.0000000E+00 0.5764912E+09 0.1166324E+09 0.0000000E+00 025002
0.6207092E+09 0.2082350E+09 0.0000000E+00 0.0000000E+00 0.8052730E+08 106002
0.4105263E+09 0.1296028E+09 0.0000000E+00 0.0000000E+00 0.5022665E+08 016002
0.0000000E+00 0.0000000E+00-0.8715739E+08-0.3192648E+08 0.0000000E+00 007002
0.0000000E+00 0.0000000E+00 0.2503782E+11 0.2264601E+11 0.0000000E+00 600300
0.0000000E+00 0.0000000E+00-0.8414139E+12-0.1535402E+12 0.0000000E+00 510300
0.0000000E+00 0.0000000E+00-0.2349744E+13-0.5836518E+12 0.0000000E+00 420300
0.0000000E+00 0.0000000E+00-0.2053796E+13-0.6784632E+12 0.0000000E+00 330300
0.0000000E+00 0.0000000E+00-0.7114251E+12-0.4293333E+12 0.0000000E+00 240300
0.0000000E+00 0.0000000E+00-0.2013986E+12-0.2094376E+12 0.0000000E+00 150300
0.0000000E+00 0.0000000E+00-0.6349514E+11-0.5432855E+11 0.0000000E+00 060300
-0.5204401E+12-0.1581520E+12 0.0000000E+00 0.0000000E+00-0.9695845E+11 501300
-0.1321825E+13-0.4299383E+12 0.0000000E+00 0.0000000E+00-0.2303770E+12 411300
-0.2241822E+13-0.7582544E+12 0.0000000E+00 0.0000000E+00-0.3869702E+12 321300
-0.2416753E+13-0.8049500E+12 0.0000000E+00 0.0000000E+00-0.5111883E+12 231300
-0.1242421E+13-0.3800122E+12 0.0000000E+00 0.0000000E+00-0.3011412E+12 141300
-0.2254036E+12-0.5469153E+11 0.0000000E+00 0.0000000E+00-0.4862851E+11 051300
0.0000000E+00 0.0000000E+00 0.4710160E+12 0.6141166E+11 0.0000000E+00 402300
0.0000000E+00 0.0000000E+00-0.1342742E+13-0.4497543E+12 0.0000000E+00 312300
0.0000000E+00 0.0000000E+00-0.2847949E+13-0.8531182E+12 0.0000000E+00 222300
0.0000000E+00 0.0000000E+00-0.5668434E+12-0.2556206E+12 0.0000000E+00 132300
0.0000000E+00 0.0000000E+00 0.3266438E+12 0.4403369E+11 0.0000000E+00 042300
-0.4817937E+12-0.1452465E+12 0.0000000E+00 0.0000000E+00-0.4847640E+11 303300
-0.1572799E+12-0.1352650E+11 0.0000000E+00 0.0000000E+00 0.1961587E+12 213300
0.4167738E+12 0.1505235E+12 0.0000000E+00 0.0000000E+00 0.2960991E+12 123300
0.2519322E+12 0.7088285E+11 0.0000000E+00 0.0000000E+00 0.6304876E+11 033300
0.0000000E+00 0.0000000E+00 0.8525575E+12 0.2261932E+12 0.0000000E+00 204300
0.0000000E+00 0.0000000E+00 0.8072369E+11 0.5763461E+11 0.0000000E+00 114300
0.0000000E+00 0.0000000E+00-0.3216726E+12-0.6416742E+11 0.0000000E+00 024300
-0.1088164E+12-0.4400643E+11 0.0000000E+00 0.0000000E+00-0.6715588E+11 105300
-0.1039557E+12-0.3209363E+11 0.0000000E+00 0.0000000E+00-0.1570722E+11 015300
0.0000000E+00 0.0000000E+00 0.6105274E+11 0.1252432E+11 0.0000000E+00 006300
-0.9714356E+09-0.2203499E+10 0.0000000E+00 0.0000000E+00 -9336224. 600201
-0.1074135E+11-0.6328490E+10 0.0000000E+00 0.0000000E+00-0.9424816E+10 510201
-0.1377627E+12-0.3469954E+11 0.0000000E+00 0.0000000E+00-0.3754946E+11 420201
-0.2897487E+12-0.6757104E+11 0.0000000E+00 0.0000000E+00-0.6017024E+11 330201
-0.2783826E+12-0.6635134E+11 0.0000000E+00 0.0000000E+00-0.5076814E+11 240201
-0.1375821E+12-0.3395241E+11 0.0000000E+00 0.0000000E+00-0.2202986E+11 150201
-0.2699801E+11-0.6627907E+10 0.0000000E+00 0.0000000E+00-0.3734894E+10 060201
0.0000000E+00 0.0000000E+00 0.8069776E+11 0.2890635E+11 0.0000000E+00 501201
0.0000000E+00 0.0000000E+00 0.4296498E+11 0.3860859E+11 0.0000000E+00 411201
0.0000000E+00 0.0000000E+00-0.2725828E+12-0.4125327E+11 0.0000000E+00 321201
0.0000000E+00 0.0000000E+00-0.4513560E+12-0.8718365E+11 0.0000000E+00 231201
0.0000000E+00 0.0000000E+00-0.2376246E+12-0.4222443E+11 0.0000000E+00 141201
0.0000000E+00 0.0000000E+00-0.2456224E+11-0.1372768E+10 0.0000000E+00 051201
0.1194262E+12 0.3793231E+11 0.0000000E+00 0.0000000E+00 0.1302072E+11 402201
0.1333918E+12 0.4903695E+11 0.0000000E+00 0.0000000E+00 0.6512749E+11 312201
0.4709831E+11 0.1980450E+11 0.0000000E+00 0.0000000E+00 0.9922367E+11 222201
0.1012575E+12 0.2059622E+11 0.0000000E+00 0.0000000E+00 0.5794580E+11 132201
0.5462192E+11 0.8905175E+10 0.0000000E+00 0.0000000E+00 0.1202183E+11 042201
0.0000000E+00 0.0000000E+00 0.2709360E+12 0.9121646E+11 0.0000000E+00 303201
0.0000000E+00 0.0000000E+00 0.2842120E+12 0.1035102E+12 0.0000000E+00 213201
0.0000000E+00 0.0000000E+00 0.1403760E+10 0.2846817E+11 0.0000000E+00 123201
0.0000000E+00 0.0000000E+00-0.8182120E+11-0.1144731E+11 0.0000000E+00 033201
0.5949196E+11 0.1382386E+11 0.0000000E+00 0.0000000E+00-0.2710613E+11 204201
-0.5936105E+11-0.2013477E+11 0.0000000E+00 0.0000000E+00-0.2935861E+11 114201
-0.7341602E+11-0.2126607E+11 0.0000000E+00 0.0000000E+00-0.9287367E+10 024201
0.0000000E+00 0.0000000E+00 0.3890061E+11 0.5611956E+10 0.0000000E+00 105201
0.0000000E+00 0.0000000E+00 0.3098390E+11 0.7560777E+10 0.0000000E+00 015201
0.1583143E+11 0.4683964E+10 0.0000000E+00 0.0000000E+00 0.1214655E+09 006201
0.0000000E+00 0.0000000E+00-0.3329536E+10-0.1852093E+10 0.0000000E+00 600102
0.0000000E+00 0.0000000E+00-0.1662684E+10-0.3336872E+10 0.0000000E+00 510102
0.0000000E+00 0.0000000E+00 0.1329386E+11 0.1309019E+10 0.0000000E+00 420102
0.0000000E+00 0.0000000E+00 0.9848207E+10 0.2492219E+10 0.0000000E+00 330102
0.0000000E+00 0.0000000E+00-0.8150570E+10-0.1537823E+10 0.0000000E+00 240102
0.0000000E+00 0.0000000E+00-0.8509449E+10-0.2131525E+10 0.0000000E+00 150102
0.0000000E+00 0.0000000E+00-0.1600540E+10-0.4898879E+09 0.0000000E+00 060102
0.8848278E+10 0.3401531E+10 0.0000000E+00 0.0000000E+00 0.1343980E+10 501102
0.2420778E+11 0.9316876E+10 0.0000000E+00 0.0000000E+00 0.3942904E+10 411102
0.3343106E+11 0.1261437E+11 0.0000000E+00 0.0000000E+00 0.5319765E+10 321102
0.2547951E+11 0.8036024E+10 0.0000000E+00 0.0000000E+00 0.3951775E+10 231102
0.9976092E+10 0.1426775E+10 0.0000000E+00 0.0000000E+00 0.1725338E+10 141102
0.2004327E+10-0.1921108E+09 0.0000000E+00 0.0000000E+00 0.3933139E+09 051102
0.0000000E+00 0.0000000E+00 0.1646418E+10 0.4795316E+09 0.0000000E+00 402102
0.0000000E+00 0.0000000E+00 0.1495323E+11 0.6472161E+10 0.0000000E+00 312102
0.0000000E+00 0.0000000E+00 0.3754680E+11 0.1608307E+11 0.0000000E+00 222102
0.0000000E+00 0.0000000E+00 0.2782539E+11 0.1264234E+11 0.0000000E+00 132102
0.0000000E+00 0.0000000E+00 0.5253898E+10 0.2959823E+10 0.0000000E+00 042102
0.8889796E+10 0.2537159E+10 0.0000000E+00 0.0000000E+00-0.5748524E+09 303102
0.1798745E+11 0.5508979E+10 0.0000000E+00 0.0000000E+00-0.1073726E+10 213102
0.1146540E+11 0.4299372E+10 0.0000000E+00 0.0000000E+00-0.1147035E+10 123102
0.1033681E+09 0.6342597E+09 0.0000000E+00 0.0000000E+00-0.5920701E+09 033102
0.0000000E+00 0.0000000E+00-0.6800402E+10-0.3536862E+10 0.0000000E+00 204102
0.0000000E+00 0.0000000E+00-0.5575638E+10-0.3536024E+10 0.0000000E+00 114102
0.0000000E+00 0.0000000E+00 0.7329546E+09-0.5229548E+09 0.0000000E+00 024102
0.3493045E+10 0.1163854E+10 0.0000000E+00 0.0000000E+00 0.5459631E+09 105102
0.3085324E+10 0.9255866E+09 0.0000000E+00 0.0000000E+00 0.4031013E+09 015102
0.0000000E+00 0.0000000E+00-0.2981255E+09-0.1635050E+09 0.0000000E+00 006102
-0.2548819E+08 0.1222289E+08 0.0000000E+00 0.0000000E+00 -1267149. 600003
-0.2755967E+09-0.3207437E+08 0.0000000E+00 0.0000000E+00 6597031. 510003
-0.5361745E+09-0.1264154E+09 0.0000000E+00 0.0000000E+00 0.3217439E+08 420003
-0.3279866E+09-0.1448874E+09 0.0000000E+00 0.0000000E+00 0.4645664E+08 330003
0.1690689E+08-0.1083849E+09 0.0000000E+00 0.0000000E+00 0.1780463E+08 240003
0.1078834E+09-0.6222848E+08 0.0000000E+00 0.0000000E+00 -4898564. 150003
0.2981511E+08-0.2141141E+08 0.0000000E+00 0.0000000E+00 -1781023. 060003
0.0000000E+00 0.0000000E+00 0.2597991E+09 0.4865426E+08 0.0000000E+00 501003
0.0000000E+00 0.0000000E+00 0.7015041E+09 0.1985097E+09 0.0000000E+00 411003
0.0000000E+00 0.0000000E+00 0.5302533E+09 0.2577911E+09 0.0000000E+00 321003
0.0000000E+00 0.0000000E+00 0.4589667E+09 0.3529377E+09 0.0000000E+00 231003
0.0000000E+00 0.0000000E+00 0.6139477E+09 0.3530404E+09 0.0000000E+00 141003
0.0000000E+00 0.0000000E+00 0.2171424E+09 0.1043867E+09 0.0000000E+00 051003
0.1646971E+09 0.4323754E+08 0.0000000E+00 0.0000000E+00 0.8750722E+08 402003
0.8403338E+09 0.2274737E+09 0.0000000E+00 0.0000000E+00 0.1888968E+09 312003
0.1229166E+10 0.3879761E+09 0.0000000E+00 0.0000000E+00 0.1538246E+09 222003
0.5088645E+09 0.2186501E+09 0.0000000E+00 0.0000000E+00 0.5855934E+08 132003
0.5184568E+08 0.5833537E+08 0.0000000E+00 0.0000000E+00 413465.3 042003
0.0000000E+00 0.0000000E+00-0.1722497E+09-0.1377023E+09 0.0000000E+00 303003
0.0000000E+00 0.0000000E+00-0.8541639E+09-0.4849050E+09 0.0000000E+00 213003
0.0000000E+00 0.0000000E+00-0.1189212E+10-0.5847090E+09 0.0000000E+00 123003
0.0000000E+00 0.0000000E+00-0.3396299E+09-0.1824334E+09 0.0000000E+00 033003
-0.3264800E+09-0.1091653E+09 0.0000000E+00 0.0000000E+00-0.1815153E+08 204003
-0.2996227E+09-0.1061077E+09 0.0000000E+00 0.0000000E+00 2287979. 114003
-0.8798296E+08-0.3724522E+08 0.0000000E+00 0.0000000E+00 0.1353860E+08 024003
0.0000000E+00 0.0000000E+00 0.2130140E+09 0.6968923E+08 0.0000000E+00 105003
0.0000000E+00 0.0000000E+00 0.8933831E+08 0.3614333E+08 0.0000000E+00 015003
-0.2204435E+08 -6696962. 0.0000000E+00 0.0000000E+00 -4523470. 006003
-0.2180380E+12-0.6518954E+11 0.0000000E+00 0.0000000E+00-0.6300163E+11 500400
-0.1044801E+13-0.3526156E+12 0.0000000E+00 0.0000000E+00-0.2167441E+12 410400
-0.2068102E+13-0.7403481E+12 0.0000000E+00 0.0000000E+00-0.3888019E+12 320400
-0.1929962E+13-0.7037706E+12 0.0000000E+00 0.0000000E+00-0.3959174E+12 230400
-0.8408431E+12-0.2936557E+12 0.0000000E+00 0.0000000E+00-0.1856440E+12 140400
-0.1371879E+12-0.4029562E+11 0.0000000E+00 0.0000000E+00-0.2698902E+11 050400
0.0000000E+00 0.0000000E+00-0.1343455E+12-0.1129685E+12 0.0000000E+00 401400
0.0000000E+00 0.0000000E+00-0.1822462E+13-0.7613068E+12 0.0000000E+00 311400
0.0000000E+00 0.0000000E+00-0.2319785E+13-0.1067439E+13 0.0000000E+00 221400
0.0000000E+00 0.0000000E+00-0.4406308E+12-0.4841005E+12 0.0000000E+00 131400
0.0000000E+00 0.0000000E+00 0.1696536E+12-0.6654346E+11 0.0000000E+00 041400
-0.5241146E+12-0.1609737E+12 0.0000000E+00 0.0000000E+00-0.8263441E+11 302400
-0.4594815E+12-0.1048091E+12 0.0000000E+00 0.0000000E+00 0.1723257E+12 212400
0.2373538E+12 0.9094084E+11 0.0000000E+00 0.0000000E+00 0.2839049E+12 122400
0.2925339E+12 0.8075399E+11 0.0000000E+00 0.0000000E+00 0.6628582E+11 032400
0.0000000E+00 0.0000000E+00 0.1021860E+13 0.2920895E+12 0.0000000E+00 203400
0.0000000E+00 0.0000000E+00 0.8276057E+11 0.1110419E+12 0.0000000E+00 113400
0.0000000E+00 0.0000000E+00-0.3027305E+12-0.4389299E+11 0.0000000E+00 023400
-0.1116417E+12-0.5183791E+11 0.0000000E+00 0.0000000E+00-0.1112518E+12 104400
-0.2035151E+12-0.6131524E+11 0.0000000E+00 0.0000000E+00-0.2699305E+11 014400
0.0000000E+00 0.0000000E+00 0.8549311E+11 0.1312448E+11 0.0000000E+00 005400
0.0000000E+00 0.0000000E+00 0.6335993E+10 0.1053558E+11 0.0000000E+00 500301
0.0000000E+00 0.0000000E+00-0.5599248E+11 0.2006725E+11 0.0000000E+00 410301
0.0000000E+00 0.0000000E+00-0.2630064E+12-0.2913191E+11 0.0000000E+00 320301
0.0000000E+00 0.0000000E+00-0.3685894E+12-0.7911275E+11 0.0000000E+00 230301
0.0000000E+00 0.0000000E+00-0.1954770E+12-0.5326989E+11 0.0000000E+00 140301
0.0000000E+00 0.0000000E+00-0.2845925E+11-0.1071178E+11 0.0000000E+00 050301
0.5642911E+11 0.2413175E+11 0.0000000E+00 0.0000000E+00-0.6928458E+10 401301
-0.4895458E+11 0.1264723E+11 0.0000000E+00 0.0000000E+00 0.1366180E+11 311301
-0.1607747E+12-0.2897718E+11 0.0000000E+00 0.0000000E+00 0.3911619E+11 221301
-0.3460671E+11-0.2268039E+11 0.0000000E+00 0.0000000E+00 0.2683447E+11 131301
0.1746497E+11-0.6193110E+10 0.0000000E+00 0.0000000E+00 0.5814212E+10 041301
0.0000000E+00 0.0000000E+00 0.2377271E+12 0.9292159E+11 0.0000000E+00 302301
0.0000000E+00 0.0000000E+00 0.2155560E+12 0.1319603E+12 0.0000000E+00 212301
0.0000000E+00 0.0000000E+00-0.3890445E+11 0.7370992E+11 0.0000000E+00 122301
0.0000000E+00 0.0000000E+00-0.9822823E+11 0.6958976E+10 0.0000000E+00 032301
0.1191426E+12 0.3366408E+11 0.0000000E+00 0.0000000E+00-0.3825344E+11 203301
-0.1174186E+12-0.3385537E+11 0.0000000E+00 0.0000000E+00-0.4967233E+11 113301
-0.1319603E+12-0.3501482E+11 0.0000000E+00 0.0000000E+00-0.1860004E+11 023301
0.0000000E+00 0.0000000E+00 0.2871182E+11-0.6439595E+10 0.0000000E+00 104301
0.0000000E+00 0.0000000E+00 0.3407688E+11 0.6198796E+10 0.0000000E+00 014301
0.3855452E+11 0.1093030E+11 0.0000000E+00 0.0000000E+00 0.5967000E+09 005301
-0.1875568E+10-0.2904304E+09 0.0000000E+00 0.0000000E+00-0.1012965E+10 500202
-0.6516198E+10 0.8903088E+08 0.0000000E+00 0.0000000E+00-0.2688859E+10 410202
-0.1419672E+11-0.2562118E+09 0.0000000E+00 0.0000000E+00-0.3992052E+10 320202
-0.2072200E+11-0.4149593E+10 0.0000000E+00 0.0000000E+00-0.3566235E+10 230202
-0.1300098E+11-0.4566844E+10 0.0000000E+00 0.0000000E+00-0.1580936E+10 140202
-0.2304724E+10-0.1314875E+10 0.0000000E+00 0.0000000E+00-0.2384461E+09 050202
0.0000000E+00 0.0000000E+00 0.8357407E+10 0.1457568E+10 0.0000000E+00 401202
0.0000000E+00 0.0000000E+00 0.2515686E+11 0.1366141E+11 0.0000000E+00 311202
0.0000000E+00 0.0000000E+00 0.4537264E+11 0.2880490E+11 0.0000000E+00 221202
0.0000000E+00 0.0000000E+00 0.3787886E+11 0.2459633E+11 0.0000000E+00 131202
0.0000000E+00 0.0000000E+00 0.9907755E+10 0.7413673E+10 0.0000000E+00 041202
0.3353066E+11 0.1021379E+11 0.0000000E+00 0.0000000E+00 0.3029485E+10 302202
0.7122416E+11 0.2314000E+11 0.0000000E+00 0.0000000E+00 0.4467064E+10 212202
0.4669564E+11 0.1774613E+11 0.0000000E+00 0.0000000E+00 0.1769799E+10 122202
0.3178784E+10 0.3106502E+10 0.0000000E+00 0.0000000E+00-0.6474319E+09 032202
0.0000000E+00 0.0000000E+00-0.1433736E+11-0.8462768E+10 0.0000000E+00 203202
0.0000000E+00 0.0000000E+00-0.1884006E+11-0.1180400E+11 0.0000000E+00 113202
0.0000000E+00 0.0000000E+00-0.4377127E+10-0.4245268E+10 0.0000000E+00 023202
0.9398228E+10 0.2992212E+10 0.0000000E+00 0.0000000E+00 0.1548772E+10 104202
0.1033982E+11 0.2864935E+10 0.0000000E+00 0.0000000E+00 0.1313203E+10 014202
0.0000000E+00 0.0000000E+00 0.2327357E+09-0.2106778E+09 0.0000000E+00 005202
0.0000000E+00 0.0000000E+00 0.1749878E+09-0.8076663E+08 0.0000000E+00 500103
0.0000000E+00 0.0000000E+00 0.5728690E+08-0.2800666E+09 0.0000000E+00 410103
0.0000000E+00 0.0000000E+00-0.4907689E+09-0.1272489E+09 0.0000000E+00 320103
0.0000000E+00 0.0000000E+00-0.3134483E+08 0.3561518E+09 0.0000000E+00 230103
0.0000000E+00 0.0000000E+00 0.5428582E+09 0.5008250E+09 0.0000000E+00 140103
0.0000000E+00 0.0000000E+00 0.2277720E+09 0.1680053E+09 0.0000000E+00 050103
0.2191249E+10 0.5772467E+09 0.0000000E+00 0.0000000E+00 0.4911369E+09 401103
0.6337993E+10 0.1724397E+10 0.0000000E+00 0.0000000E+00 0.1044676E+10 311103
0.7106433E+10 0.2062473E+10 0.0000000E+00 0.0000000E+00 0.9568112E+09 221103
0.3405861E+10 0.1195910E+10 0.0000000E+00 0.0000000E+00 0.4417119E+09 131103
0.6408709E+09 0.3283331E+09 0.0000000E+00 0.0000000E+00 0.6614605E+08 041103
0.0000000E+00 0.0000000E+00 0.1130318E+10 0.5577390E+08 0.0000000E+00 302103
0.0000000E+00 0.0000000E+00-0.7447474E+09-0.1114449E+10 0.0000000E+00 212103
0.0000000E+00 0.0000000E+00-0.2467259E+10-0.1758666E+10 0.0000000E+00 122103
0.0000000E+00 0.0000000E+00-0.8278104E+09-0.5925508E+09 0.0000000E+00 032103
-0.1142251E+10-0.4503932E+09 0.0000000E+00 0.0000000E+00-0.1489562E+09 203103
-0.1442199E+10-0.5677683E+09 0.0000000E+00 0.0000000E+00-0.7480535E+08 113103
-0.6198329E+09-0.2714365E+09 0.0000000E+00 0.0000000E+00 9076922. 023103
0.0000000E+00 0.0000000E+00 0.1257296E+10 0.4328628E+09 0.0000000E+00 104103
0.0000000E+00 0.0000000E+00 0.7015227E+09 0.2495722E+09 0.0000000E+00 014103
-0.1031406E+09-0.2638315E+08 0.0000000E+00 0.0000000E+00-0.1508448E+08 005103
-2519729. 1346041. 0.0000000E+00 0.0000000E+00 -1545977. 500004
-1744801. 2494791. 0.0000000E+00 0.0000000E+00 -3780470. 410004
0.1413079E+08 3233.944 0.0000000E+00 0.0000000E+00 -3785917. 320004
0.1952158E+08 -2566807. 0.0000000E+00 0.0000000E+00 -1917058. 230004
871579.4 -1544886. 0.0000000E+00 0.0000000E+00 -482470.5 140004
-1943909. 1213483. 0.0000000E+00 0.0000000E+00 63804.13 050004
0.0000000E+00 0.0000000E+00 0.1451441E+08 -303588.7 0.0000000E+00 401004
0.0000000E+00 0.0000000E+00 0.8382086E+08 0.2122209E+08 0.0000000E+00 311004
0.0000000E+00 0.0000000E+00 0.1399635E+09 0.3235342E+08 0.0000000E+00 221004
0.0000000E+00 0.0000000E+00 0.6178735E+08 8336495. 0.0000000E+00 131004
0.0000000E+00 0.0000000E+00 -1734436. -641980.9 0.0000000E+00 041004
-0.4098284E+08 -7996834. 0.0000000E+00 0.0000000E+00-0.1043120E+08 302004
-0.1263267E+09-0.3410415E+08 0.0000000E+00 0.0000000E+00-0.1806170E+08 212004
-0.1216740E+09-0.3799965E+08 0.0000000E+00 0.0000000E+00-0.1634965E+08 122004
-0.3740373E+08-0.1665942E+08 0.0000000E+00 0.0000000E+00 -4834706. 032004
0.0000000E+00 0.0000000E+00-0.4432469E+08-0.1444764E+08 0.0000000E+00 203004
0.0000000E+00 0.0000000E+00-0.1702311E+08 -5943197. 0.0000000E+00 113004
0.0000000E+00 0.0000000E+00 0.2099073E+08 4143972. 0.0000000E+00 023004
0.3199113E+08 0.1004632E+08 0.0000000E+00 0.0000000E+00 4438328. 104004
0.2476158E+08 9414304. 0.0000000E+00 0.0000000E+00 2982333. 014004
0.0000000E+00 0.0000000E+00 -8409987. -2539675. 0.0000000E+00 005004
0.0000000E+00 0.0000000E+00-0.1831589E+12-0.8494443E+11 0.0000000E+00 400500
0.0000000E+00 0.0000000E+00-0.8634098E+12-0.4167980E+12 0.0000000E+00 310500
0.0000000E+00 0.0000000E+00-0.9707719E+12-0.6126298E+12 0.0000000E+00 220500
0.0000000E+00 0.0000000E+00-0.3168730E+12-0.3813870E+12 0.0000000E+00 130500
0.0000000E+00 0.0000000E+00-0.8323499E+10-0.8974130E+11 0.0000000E+00 040500
-0.5590830E+12-0.1869582E+12 0.0000000E+00 0.0000000E+00-0.1051130E+12 301500
-0.8296592E+12-0.2631568E+12 0.0000000E+00 0.0000000E+00 0.2193323E+10 211500
-0.1408879E+12-0.5055438E+11 0.0000000E+00 0.0000000E+00 0.1104550E+12 121500
0.1689275E+12 0.4612615E+11 0.0000000E+00 0.0000000E+00 0.3749203E+11 031500
0.0000000E+00 0.0000000E+00 0.7693519E+12 0.2180021E+12 0.0000000E+00 202500
0.0000000E+00 0.0000000E+00 0.1703303E+12 0.1305704E+12 0.0000000E+00 112500
0.0000000E+00 0.0000000E+00-0.9631949E+11-0.8567267E+10 0.0000000E+00 022500
-0.5570778E+11-0.3582891E+11 0.0000000E+00 0.0000000E+00-0.1158459E+12 103500
-0.2588305E+12-0.7674555E+11 0.0000000E+00 0.0000000E+00-0.2912974E+11 013500
0.0000000E+00 0.0000000E+00 0.6663323E+11 0.2340849E+10 0.0000000E+00 004500
-0.5207361E+11-0.1166336E+11 0.0000000E+00 0.0000000E+00-0.1669050E+11 400401
-0.2247420E+12-0.5516206E+11 0.0000000E+00 0.0000000E+00-0.3698853E+11 310401
-0.2979617E+12-0.8474741E+11 0.0000000E+00 0.0000000E+00-0.3314131E+11 220401
-0.1476412E+12-0.5414317E+11 0.0000000E+00 0.0000000E+00-0.1324492E+11 130401
-0.2087977E+11-0.1293828E+11 0.0000000E+00 0.0000000E+00-0.1999986E+10 040401
0.0000000E+00 0.0000000E+00 0.8862956E+11 0.6042586E+11 0.0000000E+00 301401
0.0000000E+00 0.0000000E+00 0.4003320E+11 0.1129833E+12 0.0000000E+00 211401
0.0000000E+00 0.0000000E+00-0.5729299E+11 0.8896398E+11 0.0000000E+00 121401
0.0000000E+00 0.0000000E+00-0.5502774E+11 0.2300409E+11 0.0000000E+00 031401
0.8866867E+11 0.2993351E+11 0.0000000E+00 0.0000000E+00-0.3504150E+11 202401
-0.1756560E+12-0.4765364E+11 0.0000000E+00 0.0000000E+00-0.5678985E+11 112401
-0.1527648E+12-0.3903570E+11 0.0000000E+00 0.0000000E+00-0.2335502E+11 022401
0.0000000E+00 0.0000000E+00-0.3373718E+11-0.2608558E+11 0.0000000E+00 103401
0.0000000E+00 0.0000000E+00 0.1689822E+10-0.4792888E+09 0.0000000E+00 013401
0.5160442E+11 0.1307922E+11 0.0000000E+00 0.0000000E+00-0.3337288E+09 004401
0.0000000E+00 0.0000000E+00 0.1446245E+10 0.1361895E+10 0.0000000E+00 400302
0.0000000E+00 0.0000000E+00-0.1651152E+10 0.8610400E+10 0.0000000E+00 310302
0.0000000E+00 0.0000000E+00 0.1697164E+10 0.1589065E+11 0.0000000E+00 220302
0.0000000E+00 0.0000000E+00 0.9088576E+10 0.1347486E+11 0.0000000E+00 130302
0.0000000E+00 0.0000000E+00 0.3768447E+10 0.4261136E+10 0.0000000E+00 040302
0.3388278E+11 0.1131765E+11 0.0000000E+00 0.0000000E+00 0.3741759E+10 301302
0.7567770E+11 0.2642665E+11 0.0000000E+00 0.0000000E+00 0.5594396E+10 211302
0.4528721E+11 0.1866888E+11 0.0000000E+00 0.0000000E+00 0.2092652E+10 121302
0.2266008E+10 0.3393048E+10 0.0000000E+00 0.0000000E+00-0.8269507E+09 031302
0.0000000E+00 0.0000000E+00-0.1382662E+11-0.8640447E+10 0.0000000E+00 202302
0.0000000E+00 0.0000000E+00-0.2597386E+11-0.1472549E+11 0.0000000E+00 112302
0.0000000E+00 0.0000000E+00-0.8558448E+10-0.6809526E+10 0.0000000E+00 022302
0.1392202E+11 0.4313154E+10 0.0000000E+00 0.0000000E+00 0.2027575E+10 103302
0.1716825E+11 0.4252332E+10 0.0000000E+00 0.0000000E+00 0.1771094E+10 013302
0.0000000E+00 0.0000000E+00 0.1506149E+10 0.1147666E+09 0.0000000E+00 004302
0.6951694E+09 0.1609364E+09 0.0000000E+00 0.0000000E+00 0.1463525E+09 400203
0.2464298E+10 0.6312723E+09 0.0000000E+00 0.0000000E+00 0.3238275E+09 310203
0.3287686E+10 0.9439400E+09 0.0000000E+00 0.0000000E+00 0.3840654E+09 220203
0.1989670E+10 0.7154648E+09 0.0000000E+00 0.0000000E+00 0.2192447E+09 130203
0.5592468E+09 0.2645601E+09 0.0000000E+00 0.0000000E+00 0.5069002E+08 040203
0.0000000E+00 0.0000000E+00 0.4002176E+10 0.9443298E+09 0.0000000E+00 301203
0.0000000E+00 0.0000000E+00 0.4378700E+10 0.6621637E+09 0.0000000E+00 211203
0.0000000E+00 0.0000000E+00 0.1853141E+10-0.6919777E+08 0.0000000E+00 121203
0.0000000E+00 0.0000000E+00 0.2287898E+08-0.2417644E+09 0.0000000E+00 031203
-0.6458398E+09-0.4056318E+09 0.0000000E+00 0.0000000E+00-0.2848240E+09 202203
-0.2734195E+10-0.1084730E+10 0.0000000E+00 0.0000000E+00-0.3259949E+09 112203
-0.1500079E+10-0.6577596E+09 0.0000000E+00 0.0000000E+00-0.1345045E+09 022203
0.0000000E+00 0.0000000E+00 0.2199746E+10 0.6668552E+09 0.0000000E+00 103203
0.0000000E+00 0.0000000E+00 0.1693701E+10 0.5614274E+09 0.0000000E+00 013203
-0.2671637E+08 0.2223692E+08 0.0000000E+00 0.0000000E+00 0.3442216E+08 004203
0.0000000E+00 0.0000000E+00-0.1314078E+08-0.1498302E+08 0.0000000E+00 400104
0.0000000E+00 0.0000000E+00 0.7004895E+08-0.1205734E+08 0.0000000E+00 310104
0.0000000E+00 0.0000000E+00 0.1880204E+09 0.4861982E+08 0.0000000E+00 220104
0.0000000E+00 0.0000000E+00 0.9832329E+08 0.4218635E+08 0.0000000E+00 130104
0.0000000E+00 0.0000000E+00 254799.1 7969038. 0.0000000E+00 040104
0.5909011E+08 0.1492182E+08 0.0000000E+00 0.0000000E+00 0.1126448E+08 301104
5314364. 6540292. 0.0000000E+00 0.0000000E+00 0.2116407E+08 211104
-0.6912343E+08-0.2295668E+08 0.0000000E+00 0.0000000E+00 -3052790. 121104
-0.3021596E+08-0.2118372E+08 0.0000000E+00 0.0000000E+00 -3713159. 031104
0.0000000E+00 0.0000000E+00-0.2915073E+09-0.1302283E+09 0.0000000E+00 202104
0.0000000E+00 0.0000000E+00-0.1822123E+09-0.1028612E+09 0.0000000E+00 112104
0.0000000E+00 0.0000000E+00 6350139. -0.2450908E+08 0.0000000E+00 022104
0.1177765E+09 0.4022286E+08 0.0000000E+00 0.0000000E+00 0.2811766E+08 103104
0.1183545E+09 0.4454427E+08 0.0000000E+00 0.0000000E+00 0.1995797E+08 013104
0.0000000E+00 0.0000000E+00-0.3397980E+08-0.1195771E+08 0.0000000E+00 004104
-1152811. -124922.2 0.0000000E+00 0.0000000E+00 72336.11 400005
-4846112. -301994.9 0.0000000E+00 0.0000000E+00 395156.8 310005
-5540968. 44751.21 0.0000000E+00 0.0000000E+00 567698.9 220005
-1343094. 254718.6 0.0000000E+00 0.0000000E+00 429221.0 130005
64555.12 -179559.1 0.0000000E+00 0.0000000E+00 70667.78 040005
0.0000000E+00 0.0000000E+00 1013937. -1338275. 0.0000000E+00 301005
0.0000000E+00 0.0000000E+00 -206792.1 -1546149. 0.0000000E+00 211005
0.0000000E+00 0.0000000E+00 -9290547. -3306975. 0.0000000E+00 121005
0.0000000E+00 0.0000000E+00 -4982016. -2413993. 0.0000000E+00 031005
-8268573. -2332858. 0.0000000E+00 0.0000000E+00 -908220.2 202005
-8609449. -2359053. 0.0000000E+00 0.0000000E+00 -1179584. 112005
-936369.2 251969.2 0.0000000E+00 0.0000000E+00 -5216.578 022005
0.0000000E+00 0.0000000E+00 6715816. 1700672. 0.0000000E+00 103005
0.0000000E+00 0.0000000E+00 3080759. 1180600. 0.0000000E+00 013005
-1589358. -617611.4 0.0000000E+00 0.0000000E+00 -274257.3 004005
-0.2512872E+12-0.9536203E+11 0.0000000E+00 0.0000000E+00-0.5086223E+11 300600
-0.4296034E+12-0.1615780E+12 0.0000000E+00 0.0000000E+00-0.4311719E+11 210600
-0.1354191E+12-0.5888771E+11 0.0000000E+00 0.0000000E+00 0.8272339E+10 120600
0.3920009E+11 0.9643387E+10 0.0000000E+00 0.0000000E+00 0.1028740E+11 030600
0.0000000E+00 0.0000000E+00 0.3725702E+12 0.7462844E+11 0.0000000E+00 201600
0.0000000E+00 0.0000000E+00 0.2081418E+12 0.5175690E+11 0.0000000E+00 111600
0.0000000E+00 0.0000000E+00 0.5258354E+11-0.1393659E+11 0.0000000E+00 021600
0.1128515E+11-0.9686408E+10 0.0000000E+00 0.0000000E+00-0.7151159E+11 102600
-0.1954265E+12-0.5694789E+11 0.0000000E+00 0.0000000E+00-0.1595468E+11 012600
0.0000000E+00 0.0000000E+00 0.2390685E+11-0.1242221E+11 0.0000000E+00 003600
0.0000000E+00 0.0000000E+00-0.1656621E+11 0.1030720E+11 0.0000000E+00 300501
0.0000000E+00 0.0000000E+00-0.6499573E+11 0.2062887E+11 0.0000000E+00 210501
0.0000000E+00 0.0000000E+00-0.5152186E+11 0.2017175E+11 0.0000000E+00 120501
0.0000000E+00 0.0000000E+00-0.1633068E+11 0.4819080E+10 0.0000000E+00 030501
-0.1298896E+11-0.8454869E+09 0.0000000E+00 0.0000000E+00-0.2398952E+11 201501
-0.1800316E+12-0.5397107E+11 0.0000000E+00 0.0000000E+00-0.4311186E+11 111501
-0.1107905E+12-0.3120303E+11 0.0000000E+00 0.0000000E+00-0.1690407E+11 021501
0.0000000E+00 0.0000000E+00-0.7999292E+11-0.2638700E+11 0.0000000E+00 102501
0.0000000E+00 0.0000000E+00-0.2827422E+11 0.5101990E+09 0.0000000E+00 012501
0.3084658E+11 0.4988619E+10 0.0000000E+00 0.0000000E+00-0.4370820E+10 003501
0.7122314E+10 0.2614583E+10 0.0000000E+00 0.0000000E+00 0.3180629E+09 300402
0.1455655E+11 0.5620295E+10 0.0000000E+00 0.0000000E+00-0.2131674E+09 210402
0.6845897E+10 0.3513216E+10 0.0000000E+00 0.0000000E+00-0.7480745E+09 120402
-0.9477250E+09 0.6041771E+09 0.0000000E+00 0.0000000E+00-0.6367665E+09 030402
0.0000000E+00 0.0000000E+00-0.5689833E+10-0.6976771E+09 0.0000000E+00 201402
0.0000000E+00 0.0000000E+00-0.1360859E+11-0.2307768E+10 0.0000000E+00 111402
0.0000000E+00 0.0000000E+00-0.4950623E+10-0.2311596E+10 0.0000000E+00 021402
0.3183641E+10 0.1263901E+10 0.0000000E+00 0.0000000E+00-0.1266864E+08 102402
0.9933426E+10 0.1822627E+10 0.0000000E+00 0.0000000E+00 8362427. 012402
0.0000000E+00 0.0000000E+00 0.7085851E+09 0.6881622E+09 0.0000000E+00 003402
0.0000000E+00 0.0000000E+00 0.2194631E+10 0.7694614E+09 0.0000000E+00 300303
0.0000000E+00 0.0000000E+00 0.3348356E+10 0.1440208E+10 0.0000000E+00 210303
0.0000000E+00 0.0000000E+00 0.2067151E+10 0.1144530E+10 0.0000000E+00 120303
0.0000000E+00 0.0000000E+00 0.9675078E+08 0.1538143E+09 0.0000000E+00 030303
-0.8927177E+09-0.3372053E+09 0.0000000E+00 0.0000000E+00-0.3078782E+09 201303
-0.3524841E+10-0.1106353E+10 0.0000000E+00 0.0000000E+00-0.5142407E+09 111303
-0.1832877E+10-0.6725439E+09 0.0000000E+00 0.0000000E+00-0.2417641E+09 021303
0.0000000E+00 0.0000000E+00 0.1639380E+10 0.4267518E+09 0.0000000E+00 102303
0.0000000E+00 0.0000000E+00 0.1511407E+10 0.6544139E+09 0.0000000E+00 012303
0.7787901E+09 0.2822895E+09 0.0000000E+00 0.0000000E+00 0.1866019E+09 003303
0.9587980E+08 0.2238526E+08 0.0000000E+00 0.0000000E+00 0.3653207E+08 300204
0.1623422E+09 0.5605390E+08 0.0000000E+00 0.0000000E+00 0.5934490E+08 210204
0.1704968E+09 0.5869762E+08 0.0000000E+00 0.0000000E+00 0.3586920E+08 120204
0.3790086E+08 7301029. 0.0000000E+00 0.0000000E+00 6291117. 030204
0.0000000E+00 0.0000000E+00-0.3075829E+09-0.1655002E+09 0.0000000E+00 201204
0.0000000E+00 0.0000000E+00-0.3740299E+09-0.1971341E+09 0.0000000E+00 111204
0.0000000E+00 0.0000000E+00-0.1747038E+09-0.7945016E+08 0.0000000E+00 021204
0.2646929E+09 0.8066760E+08 0.0000000E+00 0.0000000E+00 0.5004598E+08 102204
0.2677613E+09 0.8725307E+08 0.0000000E+00 0.0000000E+00 0.4226778E+08 012204
0.0000000E+00 0.0000000E+00 5228563. -0.1752218E+08 0.0000000E+00 003204
0.0000000E+00 0.0000000E+00 0.1023120E+08 2006699. 0.0000000E+00 300105
0.0000000E+00 0.0000000E+00 5256967. -2001931. 0.0000000E+00 210105
0.0000000E+00 0.0000000E+00-0.1159047E+08 -6127198. 0.0000000E+00 120105
0.0000000E+00 0.0000000E+00 -3999619. -1849584. 0.0000000E+00 030105
-0.2571333E+08 -8034021. 0.0000000E+00 0.0000000E+00 -4023767. 201105
-0.1861294E+08 -5450991. 0.0000000E+00 0.0000000E+00 -2510545. 111105
-9890118. -2047108. 0.0000000E+00 0.0000000E+00 -318291.0 021105
0.0000000E+00 0.0000000E+00 0.2886379E+08 8536796. 0.0000000E+00 102105
0.0000000E+00 0.0000000E+00 0.1339061E+08 6050620. 0.0000000E+00 012105
-3807815. -1412796. 0.0000000E+00 0.0000000E+00 -672265.5 003105
80474.98 3811.337 0.0000000E+00 0.0000000E+00 -22598.84 300006
256407.1 -7638.499 0.0000000E+00 0.0000000E+00 -49808.75 210006
78220.22 -57551.75 0.0000000E+00 0.0000000E+00 -70496.04 120006
-3426.924 -7831.595 0.0000000E+00 0.0000000E+00 -25951.66 030006
0.0000000E+00 0.0000000E+00 -1212083. -587286.6 0.0000000E+00 201006
0.0000000E+00 0.0000000E+00 -1018893. -634441.0 0.0000000E+00 111006
0.0000000E+00 0.0000000E+00 262608.3 20399.81 0.0000000E+00 021006
1236854. 348652.2 0.0000000E+00 0.0000000E+00 185503.5 102006
442873.3 126923.0 0.0000000E+00 0.0000000E+00 69929.39 012006
0.0000000E+00 0.0000000E+00 -207966.4 -88269.07 0.0000000E+00 003006
0.0000000E+00 0.0000000E+00 0.6230560E+11-0.1726796E+11 0.0000000E+00 200700
0.0000000E+00 0.0000000E+00 0.4734647E+11-0.3636505E+11 0.0000000E+00 110700
0.0000000E+00 0.0000000E+00 0.2747674E+11-0.2453955E+11 0.0000000E+00 020700
0.4493796E+11 0.8208090E+10 0.0000000E+00 0.0000000E+00-0.1687564E+11 101700
-0.6818862E+11-0.1867153E+11 0.0000000E+00 0.0000000E+00 0.1644026E+10 011700
0.0000000E+00 0.0000000E+00 0.1445135E+10-0.2136410E+11 0.0000000E+00 002700
-0.2343478E+11-0.7510146E+10 0.0000000E+00 0.0000000E+00-0.6469082E+10 200601
-0.7032138E+11-0.2447463E+11 0.0000000E+00 0.0000000E+00-0.1287841E+11 110601
-0.3286437E+11-0.1149091E+11 0.0000000E+00 0.0000000E+00-0.4332878E+10 020601
0.0000000E+00 0.0000000E+00-0.5780507E+11-0.1159786E+11 0.0000000E+00 101601
0.0000000E+00 0.0000000E+00-0.2398502E+11 0.3451689E+10 0.0000000E+00 011601
-0.6070244E+10-0.5397258E+10 0.0000000E+00 0.0000000E+00-0.7582098E+10 002601
0.0000000E+00 0.0000000E+00-0.6201613E+09 0.1794960E+10 0.0000000E+00 200502
0.0000000E+00 0.0000000E+00-0.3963549E+10 0.1731431E+10 0.0000000E+00 110502
0.0000000E+00 0.0000000E+00-0.1628741E+10 0.2821185E+09 0.0000000E+00 020502
-0.1228227E+11-0.3125793E+10 0.0000000E+00 0.0000000E+00-0.2139971E+10 101502
-0.4132499E+10-0.1577970E+10 0.0000000E+00 0.0000000E+00-0.1726683E+10 011502
0.0000000E+00 0.0000000E+00-0.2837921E+10 0.1166956E+10 0.0000000E+00 002502
-0.5274194E+09-0.1248686E+09 0.0000000E+00 0.0000000E+00-0.4864566E+08 200403
-0.1765439E+10-0.4308617E+09 0.0000000E+00 0.0000000E+00-0.2114349E+09 110403
-0.8044047E+09-0.2357520E+09 0.0000000E+00 0.0000000E+00-0.8537169E+08 020403
0.0000000E+00 0.0000000E+00-0.1023984E+09 0.1205681E+09 0.0000000E+00 101403
0.0000000E+00 0.0000000E+00-0.2310799E+09 0.3845292E+09 0.0000000E+00 011403
0.1617566E+10 0.4642140E+09 0.0000000E+00 0.0000000E+00 0.2350818E+09 002403
0.0000000E+00 0.0000000E+00-0.3368839E+08-0.2161306E+08 0.0000000E+00 200304
0.0000000E+00 0.0000000E+00-0.2238186E+09-0.8367906E+08 0.0000000E+00 110304
0.0000000E+00 0.0000000E+00-0.1360897E+09-0.4253934E+08 0.0000000E+00 020304
0.1788593E+09 0.4716540E+08 0.0000000E+00 0.0000000E+00 0.1147247E+08 101304
0.2104960E+09 0.5671930E+08 0.0000000E+00 0.0000000E+00 0.2473487E+08 011304
0.0000000E+00 0.0000000E+00 0.9765392E+08 6338823. 0.0000000E+00 002304
7991922. 885767.1 0.0000000E+00 0.0000000E+00 -633611.4 200205
4955067. -52846.62 0.0000000E+00 0.0000000E+00 -547498.9 110205
-6580358. -2159206. 0.0000000E+00 0.0000000E+00 -672950.9 020205
0.0000000E+00 0.0000000E+00 0.1472343E+08 5387861. 0.0000000E+00 101205
0.0000000E+00 0.0000000E+00 0.1397475E+08 5415154. 0.0000000E+00 011205
2619341. 716240.3 0.0000000E+00 0.0000000E+00 937211.4 002205
0.0000000E+00 0.0000000E+00 -298192.9 -249048.9 0.0000000E+00 200106
0.0000000E+00 0.0000000E+00 1424682. 136250.2 0.0000000E+00 110106
0.0000000E+00 0.0000000E+00 1050367. 97406.89 0.0000000E+00 020106
-506080.9 -149060.6 0.0000000E+00 0.0000000E+00 72413.17 101106
-501278.0 -116003.5 0.0000000E+00 0.0000000E+00 -15530.14 011106
0.0000000E+00 0.0000000E+00 -299705.1 -201442.2 0.0000000E+00 002106
-15891.96 -805.6359 0.0000000E+00 0.0000000E+00 1986.582 200007
-12624.48 6001.810 0.0000000E+00 0.0000000E+00 7529.085 110007
-6878.418 1700.432 0.0000000E+00 0.0000000E+00 4337.357 020007
0.0000000E+00 0.0000000E+00 68104.78 13112.13 0.0000000E+00 101007
0.0000000E+00 0.0000000E+00 1951.123 -13562.16 0.0000000E+00 011007
-9873.300 -6477.321 0.0000000E+00 0.0000000E+00 1717.856 002007
0.2939106E+11 0.7560170E+10 0.0000000E+00 0.0000000E+00 0.3455753E+10 100800
-0.5925189E+09 0.5603320E+09 0.0000000E+00 0.0000000E+00 0.4540867E+10 010800
0.0000000E+00 0.0000000E+00 0.2868818E+10-0.1924163E+11 0.0000000E+00 001800
0.0000000E+00 0.0000000E+00-0.1191411E+11-0.3300050E+10 0.0000000E+00 100701
0.0000000E+00 0.0000000E+00-0.5320601E+10-0.4318961E+09 0.0000000E+00 010701
-0.1555811E+11-0.5701293E+10 0.0000000E+00 0.0000000E+00-0.5021759E+10 001701
-0.6246632E+10-0.1620520E+10 0.0000000E+00 0.0000000E+00-0.8030893E+09 100602
-0.3977537E+10-0.1051167E+10 0.0000000E+00 0.0000000E+00-0.7915584E+09 010602
0.0000000E+00 0.0000000E+00-0.4300891E+10 0.5786006E+09 0.0000000E+00 001602
0.0000000E+00 0.0000000E+00-0.4264741E+09 -2704657. 0.0000000E+00 100503
0.0000000E+00 0.0000000E+00-0.5718965E+09 0.2431325E+08 0.0000000E+00 010503
0.9430120E+09 0.2180496E+09 0.0000000E+00 0.0000000E+00 0.6101339E+08 001503
0.2167962E+08 3076832. 0.0000000E+00 0.0000000E+00 -4798126. 100404
0.3818016E+08 7485997. 0.0000000E+00 0.0000000E+00 -678470.2 010404
0.0000000E+00 0.0000000E+00 0.5174573E+08 0.1956416E+08 0.0000000E+00 001404
0.0000000E+00 0.0000000E+00 -599237.4 378104.9 0.0000000E+00 100305
0.0000000E+00 0.0000000E+00 6547618. 2233434. 0.0000000E+00 010305
0.1034600E+08 3013795. 0.0000000E+00 0.0000000E+00 972600.2 001305
-1723705. -470582.7 0.0000000E+00 0.0000000E+00 -197401.2 100206
-206978.3 -17043.61 0.0000000E+00 0.0000000E+00 -81880.53 010206
0.0000000E+00 0.0000000E+00 -59576.06 124383.1 0.0000000E+00 001206
0.0000000E+00 0.0000000E+00 -51618.28 -24328.90 0.0000000E+00 100107
0.0000000E+00 0.0000000E+00 -86168.63 -18793.47 0.0000000E+00 010107
137105.7 26220.07 0.0000000E+00 0.0000000E+00 4204.733 001107
-73.61818 -443.1955 0.0000000E+00 0.0000000E+00 -392.7245 100008
703.7796 -61.20308 0.0000000E+00 0.0000000E+00 -406.2059 010008
0.0000000E+00 0.0000000E+00 -893.9818 1411.141 0.0000000E+00 001008
0.0000000E+00 0.0000000E+00 0.4856383E+10-0.7259978E+10 0.0000000E+00 000900
-0.3961839E+10-0.1164470E+10 0.0000000E+00 0.0000000E+00-0.9119065E+09 000801
0.0000000E+00 0.0000000E+00-0.1458042E+10-0.1277126E+08 0.0000000E+00 000702
0.9480730E+08 8928661. 0.0000000E+00 0.0000000E+00-0.1121633E+08 000603
0.0000000E+00 0.0000000E+00 -921429.3 5471988. 0.0000000E+00 000504
2004801. 596086.0 0.0000000E+00 0.0000000E+00 -81794.88 000405
0.0000000E+00 0.0000000E+00 -133167.1 28070.59 0.0000000E+00 000306
55900.28 12303.19 0.0000000E+00 0.0000000E+00 2300.337 000207
0.0000000E+00 0.0000000E+00 757.1513 79.47688 0.0000000E+00 000108
-47.35333 -8.060165 0.0000000E+00 0.0000000E+00 18.33833 000009"""
| 73.184043
| 196
| 0.711493
| 50,002
| 275,172
| 3.909164
| 0.223391
| 0.375948
| 0.459492
| 0.322614
| 0.514749
| 0.500957
| 0.454519
| 0.323611
| 0.186805
| 0.184267
| 0
| 0.755554
| 0.160452
| 275,172
| 3,760
| 197
| 73.184043
| 0.090546
| 0.006232
| 0
| 0.040503
| 0
| 0.838547
| 0.955243
| 0.188415
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002514
| false
| 0
| 0.006704
| 0
| 0.014525
| 0.001955
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
95a1068fd47b73c0ea6441eef0e4f661f0778f44
| 459
|
py
|
Python
|
test/test_move_resource.py
|
MoveOnLibra/libra-core
|
3b04fd86d263a22e323cca873c13e6397a560f8b
|
[
"MIT"
] | 5
|
2020-01-06T08:31:23.000Z
|
2020-10-17T19:24:30.000Z
|
test/test_move_resource.py
|
MoveOnLibra/libra-core
|
3b04fd86d263a22e323cca873c13e6397a560f8b
|
[
"MIT"
] | 1
|
2020-04-08T10:35:48.000Z
|
2020-04-08T10:35:48.000Z
|
test/test_move_resource.py
|
MoveOnLibra/libra-core
|
3b04fd86d263a22e323cca873c13e6397a560f8b
|
[
"MIT"
] | 1
|
2020-04-07T11:19:59.000Z
|
2020-04-07T11:19:59.000Z
|
from libra.move_resource import MoveResource
from libra.libra_timestamp import *
import pytest
def test_move_resource():
assert LibraTimestampResource.struct_identifier() == LibraTimestampResource.STRUCT_NAME
assert LibraTimestampResource.type_params() == []
assert LibraTimestampResource.struct_tag().module == LibraTimestampResource.MODULE_NAME
assert LibraTimestampResource.struct_tag().name == LibraTimestampResource.STRUCT_NAME
| 45.9
| 92
| 0.810458
| 44
| 459
| 8.204545
| 0.431818
| 0.387812
| 0.282548
| 0.204986
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 459
| 9
| 93
| 51
| 0.891358
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.125
| true
| 0
| 0.375
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
95a4e3b4afc2442d1deaafbd510be38e658b3178
| 81
|
py
|
Python
|
tests/test_src.py
|
he0119/action-test
|
5e50ecb824cda6b5d81b67ea4ac3862aa236c355
|
[
"MIT"
] | 1
|
2021-12-10T01:10:48.000Z
|
2021-12-10T01:10:48.000Z
|
tests/test_src.py
|
he0119/action-test
|
5e50ecb824cda6b5d81b67ea4ac3862aa236c355
|
[
"MIT"
] | 23
|
2020-12-26T04:03:38.000Z
|
2022-03-29T14:22:29.000Z
|
tests/test_src.py
|
he0119/action-test
|
5e50ecb824cda6b5d81b67ea4ac3862aa236c355
|
[
"MIT"
] | null | null | null |
from src import need_test
def test_need_test():
assert need_test() is True
| 13.5
| 30
| 0.740741
| 14
| 81
| 4
| 0.642857
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197531
| 81
| 5
| 31
| 16.2
| 0.861538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
250575e005e965609f685ee366b8660a2274ab10
| 4,868
|
py
|
Python
|
multiscale/msi/node_to_node.py
|
bowang-lab/gcn-drug-repurposing
|
acf6162d38528c76e5570d47a046c52c6e42624b
|
[
"MIT"
] | null | null | null |
multiscale/msi/node_to_node.py
|
bowang-lab/gcn-drug-repurposing
|
acf6162d38528c76e5570d47a046c52c6e42624b
|
[
"MIT"
] | null | null | null |
multiscale/msi/node_to_node.py
|
bowang-lab/gcn-drug-repurposing
|
acf6162d38528c76e5570d47a046c52c6e42624b
|
[
"MIT"
] | 1
|
2021-12-02T23:43:21.000Z
|
2021-12-02T23:43:21.000Z
|
import pandas as pd
import os
import networkx as nx
class DrugToIndication():
def __init__(self, directed, file_path, sep="\t"):
self.file_path = file_path
self.directed = directed
self.sep = sep
self.load()
def load_df(self):
df = pd.read_csv(self.file_path, sep=self.sep,
index_col=False, dtype=str)
self.df = df
def load_edge_list(self):
# Creates directional edgelist from node_1 to node_2
assert(not(self.df is None))
edge_list = list(zip(self.df["drug"], self.df["indication"]))
self.edge_list = edge_list
def load_graph(self):
if (self.directed):
self.graph = nx.DiGraph()
else:
self.graph = nx.Graph()
self.graph.add_edges_from(self.edge_list)
def update_node2attr(self, node2type, col_1, col_2):
for node, type_ in zip(self.df[col_1], self.df[col_2]):
if node in node2type:
assert((node2type[node] == type_) or (
pd.isnull(node2type[node]) and pd.isnull(type_)))
else:
node2type[node] = type_
return node2type
def load_node2type(self):
assert(not(self.df is None))
node2type = dict()
node2type = self.update_node2attr(node2type, "node_1", "node_1_type")
node2type = self.update_node2attr(node2type, "node_2", "node_2_type")
self.node2type = node2type
def load_type2nodes(self):
type2nodes = dict()
for node, type_ in self.node2type.items():
if type_ in type2nodes:
type2nodes[type_].add(node)
else:
type2nodes[type_] = set([node])
self.type2nodes = type2nodes
def load_node2name(self):
assert(not(self.df is None))
node2name = dict()
node2name = self.update_node2attr(node2name, "drug", "drug_name")
node2name = self.update_node2attr(
node2name, "indication", "indication_name")
self.node2name = node2name
def load_name2node(self):
assert(not(self.df is None))
name2node = {v: k for k, v in self.node2name.items()}
self.name2node = name2node
def load(self):
assert(not(self.file_path is None))
self.load_df()
self.load_edge_list()
self.load_graph()
self.load_node2name()
self.load_name2node()
class NodeToNode():
def __init__(self, directed, file_path, sep="\t"):
self.file_path = file_path
self.directed = directed
self.sep = sep
self.load()
def load_df(self):
df = pd.read_csv(self.file_path, sep=self.sep,
index_col=False, dtype=str)
self.df = df
def load_edge_list(self):
# Creates directional edgelist from node_1 to node_2
assert(not(self.df is None))
edge_list = list(zip(self.df["node_1"], self.df["node_2"]))
self.edge_list = edge_list
def load_graph(self):
if (self.directed):
self.graph = nx.DiGraph()
else:
self.graph = nx.Graph()
self.graph.add_edges_from(self.edge_list)
def update_node2attr(self, node2type, col_1, col_2):
for node, type_ in zip(self.df[col_1], self.df[col_2]):
if node in node2type:
assert((node2type[node] == type_) or (
pd.isnull(node2type[node]) and pd.isnull(type_)))
else:
node2type[node] = type_
return node2type
def load_node2type(self):
assert(not(self.df is None))
node2type = dict()
node2type = self.update_node2attr(node2type, "node_1", "node_1_type")
node2type = self.update_node2attr(node2type, "node_2", "node_2_type")
self.node2type = node2type
def load_type2nodes(self):
type2nodes = dict()
for node, type_ in self.node2type.items():
if type_ in type2nodes:
type2nodes[type_].add(node)
else:
type2nodes[type_] = set([node])
self.type2nodes = type2nodes
def load_node2name(self):
assert(not(self.df is None))
node2name = dict()
node2name = self.update_node2attr(node2name, "node_1", "node_1_name")
node2name = self.update_node2attr(node2name, "node_2", "node_2_name")
self.node2name = node2name
def load_name2node(self):
assert(not(self.df is None))
name2node = {v: k for k, v in self.node2name.items()}
self.name2node = name2node
def load(self):
assert(not(self.file_path is None))
self.load_df()
self.load_edge_list()
self.load_graph()
self.load_node2type()
self.load_type2nodes()
self.load_node2name()
self.load_name2node()
| 32.671141
| 77
| 0.590592
| 608
| 4,868
| 4.524671
| 0.113487
| 0.043621
| 0.047256
| 0.043621
| 0.934206
| 0.934206
| 0.87968
| 0.87968
| 0.87968
| 0.87968
| 0
| 0.032835
| 0.299302
| 4,868
| 148
| 78
| 32.891892
| 0.773673
| 0.020748
| 0
| 0.887097
| 0
| 0
| 0.035684
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 1
| 0.16129
| false
| 0
| 0.024194
| 0
| 0.217742
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
251943d42599cc0b1b67fe6d8ed3b5cc9180aff6
| 10,740
|
py
|
Python
|
test/manual/test_popsize.py
|
kaspermunch/argweaver
|
7191343c1d43c02de04e4e0a150d77b0612728c6
|
[
"MIT"
] | 31
|
2015-01-23T07:26:04.000Z
|
2022-03-23T04:46:42.000Z
|
test/manual/test_popsize.py
|
kaspermunch/argweaver
|
7191343c1d43c02de04e4e0a150d77b0612728c6
|
[
"MIT"
] | 14
|
2015-06-21T07:09:18.000Z
|
2022-02-01T21:25:46.000Z
|
test/manual/test_popsize.py
|
kaspermunch/argweaver
|
7191343c1d43c02de04e4e0a150d77b0612728c6
|
[
"MIT"
] | 7
|
2016-05-20T13:56:55.000Z
|
2021-05-28T14:01:41.000Z
|
import unittest, random
import arghmm
from rasmus.common import *
from rasmus import stats, hmm
from rasmus.testing import *
from compbio import coal, arglib, fasta
#=============================================================================
def mle_popsize_coal_times(k, times, mintime):
s = 0
i = k
last = 0
for t in times:
s += i*(i-1) * max(t - last, mintime)
i -= 1
last = t
return s / float(4 * k - 4)
def mle_popsize_tree(tree, mintime):
times = sorted([x.age for x in tree if not x.is_leaf()])
#print ilen(tree.leaves()), times
return mle_popsize_coal_times(ilen(tree.leaves()), times, mintime)
#=============================================================================
class Popsize (unittest.TestCase):
def test_est_popsize(self):
"""
Fully sample an ARG from stratch using API
"""
k = 50
rho = 1.5e-8
mu = 2.5e-8
length = int(1e6)
times = arghmm.get_time_points(ntimes=30, maxtime=200000)
popsize = 1e4
refine = 0
util.tic("sim ARG")
arg = arghmm.sample_arg_dsmc(k, 2 * popsize,
rho, start=0, end=length, times=times)
#arg = arglib.sample_arg_smc(k, 2 * popsize,
# rho, start=0, end=length)
#arg = arglib.sample_arg(k, 2 * popsize, rho, start=0, end=length)
util.toc()
x = []
for tree in arglib.iter_marginal_trees(arg):
arglib.remove_single_lineages(tree)
x.append(mle_popsize_tree(tree, mintime=0))
p = plot(x, ymin=0)
p.plot([0, len(x)], [popsize, popsize], style='lines')
pause()
def test_est_popsize2(self):
"""
Fully sample an ARG from stratch using API
"""
k = 20
rho = 1.5e-8
mu = 2.5e-8
length = int(4e6)
popsize = 1e4
popsize2 = 1e4 * .5
a = int(.3 * length)
b = int(.7 * length)
refine = 0
util.tic("sim ARG")
arg = arglib.sample_arg_smc(k, 2 * popsize,
rho, start=0, end=a)
arg = arglib.sample_arg_smc(k, 2 * popsize2,
rho, start=a, end=b,
init_tree=arg)
arg = arglib.sample_arg_smc(k, 2 * popsize,
rho, start=b, end=length,
init_tree=arg)
util.toc()
x = []; y = []
for (start, end), tree in arglib.iter_tree_tracks(arg):
arglib.remove_single_lineages(tree)
x.append(start)
y.append(mle_popsize_tree(tree, mintime=0))
x2, y2 = stats.smooth2(x, y, 100e3)
p = plot(x, y, ymin=0)
p.plot(x2, y2, style='lines')
p.plot([0, a, a, b, b, length],
[popsize, popsize, popsize2, popsize2, popsize, popsize],
style='lines')
pause()
def test_est_arg_popsize(self):
"""
Fully sample an ARG from stratch using API
"""
k = 20
rho = 1.5e-8 * 20
mu = 2.5e-8 * 20
length = int(2e6) / 20
times = arghmm.get_time_points(ntimes=20, maxtime=200000)
popsize = 1e4
popsize2 = 1e4 * .5
a = int(.3 * length)
b = int(.7 * length)
refine = 0
util.tic("sim ARG")
arg = arglib.sample_arg_smc(k, 2 * popsize,
rho, start=0, end=a)
arg = arglib.sample_arg_smc(k, 2 * popsize2,
rho, start=a, end=b,
init_tree=arg)
arg = arglib.sample_arg_smc(k, 2 * popsize,
rho, start=b, end=length,
init_tree=arg)
# sim seq
mut = arghmm.sample_arg_mutations(arg, mu, times)
seqs = arghmm.make_alignment(arg, mut)
util.toc()
# sample arg
util.tic("sample arg")
arg2 = arghmm.sample_arg(seqs, rho=rho, mu=mu, times=times,
popsizes=1e4, carg=True)
arg2 = arghmm.resample_climb_arg(arg2, seqs, popsizes=1e4,
rho=rho, mu=mu, times=times,
refine=200)
arg2 = arghmm.resample_all_arg(arg2, seqs, popsizes=1e4,
rho=rho, mu=mu, times=times,
refine=200)
util.toc()
x = []; y = []
for (start, end), tree in arglib.iter_tree_tracks(arg2):
arglib.remove_single_lineages(tree)
x.append(start)
y.append(mle_popsize_tree(tree, mintime=0))
# thin popsizes
x2 = range(0, length, length//5000); y2 = []
j = 0
for i in range(len(x2)):
while j < len(x) and x[j] < x2[i]:
j += 1
y2.append(y[min(j, len(y)-1)])
x3, y3 = stats.smooth2(x2, y2, 100e3)
p = plot(x, y, ymin=0)
p.plot(x3, y3, style='lines')
p.plot([0, a, a, b, b, length],
[popsize, popsize, popsize2, popsize2, popsize, popsize],
style='lines')
pause()
def test_popsizes_over_time(self):
"""
Fully sample an ARG from stratch using API
"""
k = 20
rho = 1.5e-8 * 20
mu = 2.5e-8 * 20
length = int(1e6) / 20
times = arghmm.get_time_points(ntimes=30, maxtime=160000)
a = 60.
b = 15
#popsizes = [1e4 * (a - b + abs(i-b))/a for i in range(len(times))]
popsizes = [1e4 * (a - i)/a for i in range(len(times))]
#popsizes = [1e4 for i in range(len(times))]
refine = 0
util.tic("sim ARG")
#arg = arglib.sample_arg_smc(k, 2 * popsizes[0],
# rho, start=0, end=length)
arg = arghmm.sample_arg_dsmc(k, [2*p for p in popsizes],
rho, start=0, end=length, times=times)
util.toc()
util.tic("estimate popsizes")
popsizes2 = arghmm.est_arg_popsizes(arg, times=times)
util.toc()
print popsizes2
p = plot(times, popsizes, xlog=10, xmin=10, ymin=0, ymax=20000)
p.plot(times[1:], popsizes2)
pause()
def test_sample_arg_popsizes_trees(self):
"""
Fully sample an ARG from stratch using API
"""
k = 2
rho = 1.5e-8
mu = 2.5e-8
length = int(20e6)
times = arghmm.get_time_points(ntimes=30, maxtime=160000)
popsizes = [1e4 * (61.-i)/60. for i in range(len(times))]
#popsizes = [1e4 for i in range(len(times))]
refine = 0
util.tic("sim ARG")
#arg = arglib.sample_arg_smc(k, 2 * popsizes[0],
# rho, start=0, end=length)
arg = arghmm.sample_arg_dsmc(k, [2*p for p in popsizes],
rho, start=0, end=length, times=times)
util.toc()
util.tic("estimate popsizes")
popsizes2 = arghmm.est_popsizes_trees(arg, times=times,
step=length/1000, verbose=True)
util.toc()
print popsizes2
p = plot(times, popsizes, xlog=10, xmin=10, ymin=0, ymax=20000)
p.plot(times[1:], popsizes2)
pause()
def test_sample_arg_popsizes_infer(self):
"""
Fully sample an ARG from stratch using API
"""
k = 2
rho = 1.5e-8 * 20
mu = 2.5e-8 * 20
length = int(100e6) / 20
times = arghmm.get_time_points(ntimes=30, maxtime=160000)
popsizes = [1e4 * (61.-i)/60. for i in range(len(times))]
refine = 0
util.tic("sim ARG")
#arg = arglib.sample_arg_smc(k, 2 * popsizes[0],
# rho, start=0, end=length)
arg = arghmm.sample_arg_dsmc(k, [2*p for p in popsizes],
rho, start=0, end=length, times=times)
util.toc()
muts = arghmm.sample_arg_mutations(arg, mu, times=times)
seqs = arglib.make_alignment(arg, muts)
popsizes2 = [0] * (len(times) - 1)
nsamples = 1
for i in range(nsamples):
arg2 = arghmm.sample_arg(seqs, rho=rho, mu=mu, times=times,
popsizes=popsizes,
refine=0, verbose=True)
popsizes3 = arghmm.est_arg_popsizes(arg2, times=times)
#popsizes3 = arghmm.est_popsizes_trees(arg2, times, length/200)
print popsizes3
popsizes2 = vadd(popsizes2, popsizes3)
popsizes2 = vdivs(popsizes2, float(nsamples))
print popsizes2
p = plot(times, popsizes, xlog=10, xmin=10)
p.plot(times[1:], popsizes2)
pause()
def test_sample_arg_popsizes_trees_infer(self):
"""
Fully sample an ARG from stratch using API
"""
k = 6
rho = 1.5e-8 * 20
mu = 2.5e-8 * 20
length = int(10e6) / 20
times = arghmm.get_time_points(ntimes=20, maxtime=160000)
popsizes = [1e4 * (61.-i)/60. for i in range(len(times))]
refine = 5
util.tic("sim ARG")
#arg = arglib.sample_arg_smc(k, 2 * popsizes[0],
# rho, start=0, end=length)
arg = arghmm.sample_arg_dsmc(k, [2*p for p in popsizes],
rho, start=0, end=length, times=times)
util.toc()
muts = arghmm.sample_arg_mutations(arg, mu, times=times)
seqs = arglib.make_alignment(arg, muts)
popsizes2 = [0] * (len(times) - 1)
nsamples = 1
for i in range(nsamples):
arg2 = arghmm.sample_arg(seqs, rho=rho, mu=mu, times=times,
popsizes=popsizes,
refine=refine, verbose=True, carg=True)
popsizes3 = arghmm.est_popsizes_trees(arg2, times, length/1000,
verbose=True)
print popsizes3
popsizes2 = vadd(popsizes2, popsizes3)
popsizes2 = vdivs(popsizes2, float(nsamples))
print popsizes2
p = plot(times, popsizes, xlog=10, xmin=10)
p.plot(times[1:], popsizes2)
pause()
#=============================================================================
if __name__ == "__main__":
test_main()
| 32.059701
| 78
| 0.48352
| 1,303
| 10,740
| 3.882579
| 0.124328
| 0.049812
| 0.023127
| 0.030836
| 0.800751
| 0.793042
| 0.792449
| 0.77031
| 0.715754
| 0.685906
| 0
| 0.058362
| 0.382588
| 10,740
| 334
| 79
| 32.155689
| 0.704569
| 0.10121
| 0
| 0.656109
| 0
| 0
| 0.013746
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.027149
| null | null | 0.027149
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
255c96bfc06ed86d6d177261d55c0d0f5b5251ab
| 58
|
py
|
Python
|
tests/test_foo.py
|
pearlfranz20/AL_Core
|
6592079330c7ec3ca264b86f8414970ddab06c0e
|
[
"MIT"
] | 10
|
2019-11-01T01:09:57.000Z
|
2022-02-17T09:15:12.000Z
|
tests/test_foo.py
|
pearlfranz20/AL_Core
|
6592079330c7ec3ca264b86f8414970ddab06c0e
|
[
"MIT"
] | 40
|
2019-08-06T18:01:31.000Z
|
2021-07-15T12:38:56.000Z
|
tests/test_foo.py
|
pearlfranz20/AL_Core
|
6592079330c7ec3ca264b86f8414970ddab06c0e
|
[
"MIT"
] | 6
|
2019-08-15T01:45:19.000Z
|
2021-06-01T19:54:29.000Z
|
from apprentice import *
def test_placeholder():
pass
| 14.5
| 24
| 0.741379
| 7
| 58
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189655
| 58
| 4
| 25
| 14.5
| 0.893617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
c2771fa2c248ea3908cb93602bab68267e9af5a1
| 49
|
py
|
Python
|
src/game.py
|
half-potato/worldsim
|
248726f39f4c5ec0debf248bb5bcf5b27ff6fa76
|
[
"MIT"
] | null | null | null |
src/game.py
|
half-potato/worldsim
|
248726f39f4c5ec0debf248bb5bcf5b27ff6fa76
|
[
"MIT"
] | 1
|
2018-01-25T03:44:41.000Z
|
2018-01-25T08:09:21.000Z
|
src/game.py
|
half-potato/worldsim
|
248726f39f4c5ec0debf248bb5bcf5b27ff6fa76
|
[
"MIT"
] | 2
|
2018-01-26T10:12:25.000Z
|
2020-10-29T21:24:21.000Z
|
world_time = 0
def time():
return world_time
| 12.25
| 21
| 0.693878
| 8
| 49
| 4
| 0.625
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026316
| 0.22449
| 49
| 3
| 22
| 16.333333
| 0.815789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
6c66e3e104023260b2e8399500e2f2e01d0e4984
| 200
|
py
|
Python
|
HAN/__init__.py
|
JasperHG90/PyTorch-HAN
|
6af2c9d01b2fa0cc16c31ac0a1f5d3887421a44e
|
[
"MIT"
] | 1
|
2020-09-17T06:54:14.000Z
|
2020-09-17T06:54:14.000Z
|
HAN/__init__.py
|
JasperHG90/HAN.py
|
6af2c9d01b2fa0cc16c31ac0a1f5d3887421a44e
|
[
"MIT"
] | null | null | null |
HAN/__init__.py
|
JasperHG90/HAN.py
|
6af2c9d01b2fa0cc16c31ac0a1f5d3887421a44e
|
[
"MIT"
] | null | null | null |
from HAN.pytorch.model import HAN
from HAN.utils.predict import predict_HAN
from HAN.utils.train import train_HAN
from HAN.utils.preprocess import Vectorizer
from HAN.utils.preprocess import segmenter
| 40
| 43
| 0.855
| 32
| 200
| 5.28125
| 0.34375
| 0.207101
| 0.284024
| 0.266272
| 0.331361
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095
| 200
| 5
| 44
| 40
| 0.933702
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
66636a261a617aee1eccef54d9484dbd34614c84
| 25,763
|
py
|
Python
|
mpf/tests/test_BallDeviceSwitchConfirmation.py
|
Scottacus64/mpf
|
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
|
[
"MIT"
] | 163
|
2015-01-25T02:19:50.000Z
|
2022-03-26T12:00:28.000Z
|
mpf/tests/test_BallDeviceSwitchConfirmation.py
|
Scottacus64/mpf
|
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
|
[
"MIT"
] | 1,086
|
2015-03-23T19:53:17.000Z
|
2022-03-24T20:46:11.000Z
|
mpf/tests/test_BallDeviceSwitchConfirmation.py
|
Scottacus64/mpf
|
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
|
[
"MIT"
] | 148
|
2015-01-28T02:31:39.000Z
|
2022-03-22T13:54:01.000Z
|
from mpf.tests.MpfTestCase import MpfTestCase
from unittest.mock import MagicMock
class TestBallDeviceSwitchConfirmation(MpfTestCase):
def __init__(self, test_map):
super().__init__(test_map)
self._captured = 0
self._enter = -1
self._missing = 0
self._requesting = 0
self._queue = False
def get_config_file(self):
return 'test_ball_device_switch_confirmation.yaml'
def get_machine_path(self):
return 'tests/machine_files/ball_device/'
def _missing_ball(self, **kwargs):
del kwargs
self._missing += 1
def _requesting_ball(self, balls, **kwargs):
del kwargs
self._requesting += balls
def _ball_enter(self, new_balls, unclaimed_balls, **kwargs):
del new_balls
del kwargs
self._enter += unclaimed_balls
def _captured_from_pf(self, balls, **kwargs):
del kwargs
self._captured += balls
def _hit_confirm(self):
self.machine.switch_controller.process_switch("s_launcher_confirm", 1)
self.advance_time_and_run(0.1)
self.machine.switch_controller.process_switch("s_launcher_confirm", 0)
self.advance_time_and_run(0.1)
def test_eject_successful_to_other_trough(self):
coil1 = self.machine.coils['eject_coil1']
coil2 = self.machine.coils['eject_coil2']
coil3 = self.machine.coils['eject_coil3']
coil4 = self.machine.coils['eject_coil4']
device1 = self.machine.ball_devices['test_trough']
device2 = self.machine.ball_devices['test_launcher']
device4 = self.machine.ball_devices['test_target2']
playfield = self.machine.ball_devices['playfield']
self.machine.events.add_handler('balldevice_test_target2_ball_enter',
self._ball_enter)
self.machine.events.add_handler('balldevice_captured_from_playfield',
self._captured_from_pf)
self.machine.events.add_handler('balldevice_ball_missing',
self._missing_ball)
self._enter = 0
self._captured = 0
self._missing = 0
# add an initial ball to trough
self.machine.switch_controller.process_switch("s_ball_switch1", 1)
self.advance_time_and_run(1)
self.assertEqual(1, self._captured)
self._captured = -1
self.assertEqual(0, playfield.balls)
# it should keep the ball
coil1.pulse = MagicMock()
coil2.pulse = MagicMock()
coil3.pulse = MagicMock()
coil4.pulse = MagicMock()
self.assertEqual(1, device1.balls)
assert not coil1.pulse.called
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
# request an ball
device4.request_ball()
self.advance_time_and_run(1)
# trough eject
self.assertTrue(coil1.pulse.called)
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch1", 0)
self.advance_time_and_run(1)
self.assertEqual(0, device1.balls)
# launcher receives and ejects ball
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
1)
self.advance_time_and_run(1)
self.assertEqual(1, device2.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
0)
self.advance_time_and_run(1)
self.assertEqual(0, device2.balls)
self._hit_confirm()
self.advance_time_and_run(1)
# target2 receives and keeps ball
self.machine.switch_controller.process_switch(
"s_ball_switch_target2_1", 1)
self.advance_time_and_run(1)
self.assertEqual(1, device4.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.assertEqual(0, self._enter)
self.assertEqual(-1, self._captured)
self.assertEqual(0, playfield.balls)
self.assertEqual(0, self._missing)
def test_eject_no_confirm_but_target_enter(self):
# TODO: we may detect this problem and act accordingly (broken confirm switch)
coil1 = self.machine.coils['eject_coil1']
coil2 = self.machine.coils['eject_coil2']
coil3 = self.machine.coils['eject_coil3']
coil4 = self.machine.coils['eject_coil4']
device1 = self.machine.ball_devices['test_trough']
device2 = self.machine.ball_devices['test_launcher']
device4 = self.machine.ball_devices['test_target2']
playfield = self.machine.ball_devices['playfield']
self.machine.events.add_handler('balldevice_test_target2_ball_enter',
self._ball_enter)
self.machine.events.add_handler('balldevice_captured_from_playfield',
self._captured_from_pf)
self.machine.events.add_handler('balldevice_ball_missing',
self._missing_ball)
self._enter = -1
self._captured = 0
self._missing = 0
# add an initial ball to trough
self.machine.switch_controller.process_switch("s_ball_switch1", 1)
self.machine.switch_controller.process_switch("s_ball_switch2", 1)
self.advance_time_and_run(1)
self.assertEqual(2, self._captured)
self._captured = 0
# assume we have more than one ball to prevent BallController from "fixing" pf
self.machine.ball_controller.num_balls_known = 5
self.assertEqual(0, playfield.balls)
self.assertEqual(0, playfield.available_balls)
# it should keep the ball
coil1.pulse = MagicMock()
coil2.pulse = MagicMock()
coil3.pulse = MagicMock()
coil4.pulse = MagicMock()
self.assertEqual(2, device1.balls)
assert not coil1.pulse.called
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
# request an ball
device4.request_ball()
self.advance_time_and_run(1)
# trough eject
self.assertTrue(coil1.pulse.called)
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch1", 0)
self.advance_time_and_run(1)
self.assertEqual(1, device1.balls)
# launcher receives and ejects ball
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
1)
self.advance_time_and_run(1)
self.assertEqual(1, device2.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
0)
self.advance_time_and_run(1)
self.assertEqual(0, device2.balls)
# target2 receives and keeps ball
self.machine.switch_controller.process_switch(
"s_ball_switch_target2_1", 1)
self.advance_time_and_run(1)
self.assertEqual(1, device4.balls)
self.assertEqual(-1, playfield.available_balls)
self.assertEqual(-1, playfield.balls)
# eject will fail since the eject_confirm switch was not hit
self.advance_time_and_run(100)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.assertEqual(0, self._enter)
self.assertEqual(1, self._captured)
# no ball on pf because the pf saw an unexpected ball
self.assertEqual(0, playfield.balls)
self.assertEqual(0, playfield.available_balls)
self.assertEqual(1, self._missing)
# there should be exactly 2 available_balls in the machine
self.assertEqual(0, device1.available_balls)
self.assertEqual(0, device2.available_balls)
self.assertEqual(2, device4.available_balls)
self.assertEqual(0, playfield.available_balls)
def test_eject_successful_but_ball_never_arrives(self):
# TODO: improve this situation
coil1 = self.machine.coils['eject_coil1']
coil2 = self.machine.coils['eject_coil2']
coil3 = self.machine.coils['eject_coil3']
coil4 = self.machine.coils['eject_coil4']
device1 = self.machine.ball_devices['test_trough']
device2 = self.machine.ball_devices['test_launcher']
device4 = self.machine.ball_devices['test_target2']
playfield = self.machine.ball_devices['playfield']
self.machine.events.add_handler('balldevice_test_target2_ball_enter',
self._ball_enter)
self.machine.events.add_handler('balldevice_captured_from_playfield',
self._captured_from_pf)
self.machine.events.add_handler('balldevice_ball_missing',
self._missing_ball)
self._enter = 0
self._captured = 0
self._missing = 0
# add two initial balls to trough
self.machine.switch_controller.process_switch("s_ball_switch1", 1)
self.machine.switch_controller.process_switch("s_ball_switch2", 1)
self.advance_time_and_run(1)
self.assertEqual(2, self._captured)
self._captured = 0
self.assertEqual(0, playfield.balls)
self.assertEqual(2, self.machine.ball_controller.num_balls_known)
# it should keep the ball
coil1.pulse = MagicMock()
coil2.pulse = MagicMock()
coil3.pulse = MagicMock()
coil4.pulse = MagicMock()
self.assertEqual(2, device1.balls)
assert not coil1.pulse.called
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
# request an ball
device4.request_ball()
self.advance_time_and_run(1)
# trough eject
self.assertTrue(coil1.pulse.called)
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch1", 0)
self.advance_time_and_run(1)
self.assertEqual(1, device1.balls)
# launcher receives and ejects ball
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
1)
self.advance_time_and_run(1)
self.assertEqual(1, device2.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
0)
self.advance_time_and_run(1)
self.assertEqual(0, device2.balls)
self._hit_confirm()
self.advance_time_and_run(1)
self.assertEqual(0, playfield.balls)
coil1.pulse = MagicMock()
coil2.pulse = MagicMock()
# ball never arrives
self.advance_time_and_run(20)
# ball should be at playfield by now and got missing
self.assertEqual(1, playfield.balls)
self.assertEqual(1, self._missing)
# since target2 != playfield. we eject a new ball to target2
self.machine.switch_controller.process_switch("s_ball_switch2", 0)
self.advance_time_and_run(1)
self.assertEqual(0, device1.balls)
# launcher receives and ejects ball
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
1)
self.advance_time_and_run(1)
self.assertEqual(1, device2.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
0)
self.advance_time_and_run(1)
self.assertEqual(0, device2.balls)
self._hit_confirm()
self.advance_time_and_run(1)
# target2 captures and keeps ball
self.machine.switch_controller.process_switch(
"s_ball_switch_target2_1", 1)
self.advance_time_and_run(1)
self.assertEqual(1, device4.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
# there should be exactly 2 available_balls in the machine
self.assertEqual(0, device1.available_balls)
self.assertEqual(0, device2.available_balls)
self.assertEqual(1, device4.available_balls)
self.assertEqual(1, playfield.available_balls)
self.assertEqual(2, self.machine.ball_controller.num_balls_known)
self.assertEqual(1, playfield.balls)
self.assertEqual(1, self._missing)
def test_eject_successful_but_ball_never_arrives_and_drain(self):
coil1 = self.machine.coils['eject_coil1']
coil2 = self.machine.coils['eject_coil2']
coil3 = self.machine.coils['eject_coil3']
coil4 = self.machine.coils['eject_coil4']
device1 = self.machine.ball_devices['test_trough']
device2 = self.machine.ball_devices['test_launcher']
device3 = self.machine.ball_devices['test_target1']
device4 = self.machine.ball_devices['test_target2']
playfield = self.machine.ball_devices['playfield']
self.machine.events.add_handler('balldevice_captured_from_playfield',
self._captured_from_pf)
self.machine.events.add_handler('balldevice_ball_missing',
self._missing_ball)
self._captured = 0
self._missing = 0
# add an initial ball to trough
self.machine.switch_controller.process_switch("s_ball_switch1", 1)
self.machine.switch_controller.process_switch("s_ball_switch2", 1)
self.advance_time_and_run(1)
self.assertEqual(2, self._captured)
self._captured = 0
self.assertEqual(0, playfield.balls)
# it should keep the ball
coil1.pulse = MagicMock()
coil2.pulse = MagicMock()
coil3.pulse = MagicMock()
coil4.pulse = MagicMock()
self.assertEqual(2, device1.balls)
assert not coil1.pulse.called
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.assertEqual(None, self.machine.game)
# start a game
self.machine.switch_controller.process_switch("s_start", 1)
self.advance_time_and_run(0.1)
self.machine.switch_controller.process_switch("s_start", 0)
self.advance_time_and_run(1)
self.assertNotEqual(None, self.machine.game)
# trough eject
self.assertTrue(coil1.pulse.called)
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch1", 0)
self.advance_time_and_run(1)
self.assertEqual(1, device1.balls)
self.assertEqual(2, self.machine.ball_controller.num_balls_known)
# launcher receives and ejects ball
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
1)
self.advance_time_and_run(1)
self.assertEqual(1, device2.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.assertEqual("idle", device1._state)
self.assertEqual("ejecting", device2._state)
self.assertEqual("waiting_for_ball", device3._state)
self.assertEqual("idle", device4._state)
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
0)
self.advance_time_and_run(1)
self.assertEqual(0, device2.balls)
self.assertEqual("idle", device1._state)
self.assertEqual("ball_left", device2._state)
self.assertEqual("waiting_for_ball", device3._state)
self.assertEqual("idle", device4._state)
self._hit_confirm()
self.advance_time_and_run(1)
self.assertEqual(0, playfield.balls)
# ball never arrives and goes to pf. its not yet missing
self.advance_time_and_run(10)
self.assertEqual(0, self._missing)
# ball drains
self.machine.switch_controller.process_switch("s_ball_switch1", 1)
self.advance_time_and_run(1)
self.assertEqual(2, device1.balls)
self.assertEqual(None, self.machine.game)
# ball should not be at playfield by now
self.assertEqual(-1, playfield.balls)
self.assertEqual(1, self._captured)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
# ball device notices that ball went missing
self.advance_time_and_run(100)
self.assertEqual("idle", device1._state)
self.assertEqual("idle", device2._state)
self.assertEqual("idle", device3._state)
self.assertEqual("idle", device4._state)
# there should be exactly 2 available_balls in the machine
self.assertEqual(2, device1.available_balls)
self.assertEqual(0, device2.available_balls)
self.assertEqual(0, device3.available_balls)
self.assertEqual(0, device4.available_balls)
self.assertEqual(0, playfield.available_balls)
self.assertEqual(0, playfield.balls)
self.assertEqual(1, self._missing)
self.assertEqual(2, self.machine.ball_controller.num_balls_known)
def test_eject_successful_but_ball_never_arrives_and_stays_on_pf(self):
coil1 = self.machine.coils['eject_coil1']
coil2 = self.machine.coils['eject_coil2']
coil3 = self.machine.coils['eject_coil3']
coil4 = self.machine.coils['eject_coil4']
device1 = self.machine.ball_devices['test_trough']
device2 = self.machine.ball_devices['test_launcher']
device3 = self.machine.ball_devices['test_target1']
device4 = self.machine.ball_devices['test_target2']
playfield = self.machine.ball_devices['playfield']
self.machine.events.add_handler('balldevice_captured_from_playfield',
self._captured_from_pf)
self.machine.events.add_handler('balldevice_ball_missing',
self._missing_ball)
self._captured = 0
self._missing = 0
# add an initial ball to trough
self.machine.switch_controller.process_switch("s_ball_switch1", 1)
self.advance_time_and_run(1)
self.assertEqual(1, self._captured)
self._captured = 0
self.assertEqual(0, playfield.balls)
# it should keep the ball
coil1.pulse = MagicMock()
coil2.pulse = MagicMock()
coil3.pulse = MagicMock()
coil4.pulse = MagicMock()
self.assertEqual(1, device1.balls)
assert not coil1.pulse.called
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.assertEqual(None, self.machine.game)
# start a game
self.machine.switch_controller.process_switch("s_start", 1)
self.advance_time_and_run(0.1)
self.machine.switch_controller.process_switch("s_start", 0)
self.advance_time_and_run(1)
self.assertNotEqual(None, self.machine.game)
# trough eject
self.assertTrue(coil1.pulse.called)
assert not coil2.pulse.called
assert not coil3.pulse.called
assert not coil4.pulse.called
self.machine.switch_controller.process_switch("s_ball_switch1", 0)
self.advance_time_and_run(1)
self.assertEqual(0, device1.balls)
self.assertEqual(1, self.machine.ball_controller.num_balls_known)
# launcher receives and ejects ball
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
1)
self.advance_time_and_run(1)
self.assertEqual(1, device2.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
self.assertEqual("idle", device1._state)
self.assertEqual("ejecting", device2._state)
self.assertEqual("waiting_for_ball", device3._state)
self.assertEqual("idle", device4._state)
self.machine.switch_controller.process_switch("s_ball_switch_launcher",
0)
self.advance_time_and_run(1)
self.assertEqual(0, device2.balls)
self.assertEqual("idle", device1._state)
self.assertEqual("ball_left", device2._state)
self.assertEqual("waiting_for_ball", device3._state)
self.assertEqual("idle", device4._state)
self._hit_confirm()
self.advance_time_and_run(1)
self.assertEqual(0, playfield.balls)
# ball never arrives and goes to pf. its not yet missing
self.advance_time_and_run(10)
self.assertEqual(0, self._missing)
# ball should not be at playfield by now
self.assertEqual(0, playfield.balls)
self.assertTrue(coil1.pulse.called)
self.assertTrue(coil2.pulse.called)
assert not coil3.pulse.called
assert not coil4.pulse.called
# ball device notices that ball went missing
self.advance_time_and_run(100)
self.assertEqual(1, self._missing)
self.assertEqual("idle", device1._state)
self.assertEqual("idle", device2._state)
self.assertEqual("idle", device3._state)
self.assertEqual("idle", device4._state)
# there should be exactly 1 available_ball in the machine
self.assertEqual(0, device1.available_balls)
self.assertEqual(0, device2.available_balls)
self.assertEqual(0, device3.available_balls)
self.assertEqual(0, device4.available_balls)
self.assertEqual(1, playfield.available_balls)
self.assertEqual(1, playfield.balls)
self.assertEqual(1, self._missing)
self.assertEqual(0, self._captured)
self.assertEqual(1, self.machine.ball_controller.num_balls_known)
def test_ball_return_in_launcher(self):
# add two initial balls to trough
self.hit_switch_and_run("s_ball_switch1", 1)
self.hit_switch_and_run("s_ball_switch2", 1)
self.assertEqual(2, self.machine.ball_devices["test_trough"].balls)
self.assertEqual(2, self.machine.ball_controller.num_balls_known)
self.assertBallsOnPlayfield(0, "playfield")
self.assertAvailableBallsOnPlayfield(0, "playfield")
self.hit_switch_and_run("s_ball_switch_target1", 1)
self.release_switch_and_run("s_ball_switch_target1", 1)
self.assertBallsOnPlayfield(0, "playfield")
self.assertAvailableBallsOnPlayfield(1, "playfield")
self.machine.ball_devices["test_target1"].request_ball()
self.assertEqual(1, self.machine.ball_devices["test_target1"].available_balls)
self.advance_time_and_run()
self.assertEqual("pulsed_10", self.machine.coils["eject_coil1"].hw_driver.state)
self.release_switch_and_run("s_ball_switch2", 1)
self.advance_time_and_run(8)
self.hit_switch_and_run("s_ball_switch_launcher", 1)
# launcher should eject
self.advance_time_and_run(1)
self.assertEqual("pulsed_10", self.machine.coils["eject_coil2"].hw_driver.state)
self.machine.coils["eject_coil2"].hw_driver.state = None
# it leaves the switch
self.release_switch_and_run("s_ball_switch_launcher", 3)
# switch goes active again
self.hit_switch_and_run("s_ball_switch_launcher", 1)
self.assertEqual(None, self.machine.coils["eject_coil2"].hw_driver.state)
self.assertEqual(1, self.machine.ball_devices["test_target1"].available_balls)
self.advance_time_and_run(9)
self.assertEqual("pulsed_10", self.machine.coils["eject_coil2"].hw_driver.state)
self.assertEqual(1, self.machine.ball_devices["test_target1"].available_balls)
self.release_switch_and_run("s_ball_switch_launcher", 1)
self._hit_confirm()
self.advance_time_and_run()
self.hit_switch_and_run("s_ball_switch_target1", 1)
self.assertBallsOnPlayfield(1, "playfield")
self.assertAvailableBallsOnPlayfield(1, "playfield")
| 38.683183
| 88
| 0.651244
| 3,073
| 25,763
| 5.213147
| 0.056622
| 0.118914
| 0.048689
| 0.058427
| 0.930462
| 0.919975
| 0.89819
| 0.886891
| 0.870225
| 0.836142
| 0
| 0.027554
| 0.259015
| 25,763
| 665
| 89
| 38.741353
| 0.811629
| 0.067772
| 0
| 0.88866
| 0
| 0
| 0.087047
| 0.039392
| 0
| 0
| 0
| 0.001504
| 0.449485
| 1
| 0.028866
| false
| 0
| 0.004124
| 0.004124
| 0.039175
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
66ab0ecc2bd7e7fcbbbffc51c751372ae5c555db
| 120
|
py
|
Python
|
pycspr/serialisation/json/deploy/__init__.py
|
hboshnak/casper-python-sdk
|
19db9bf3b4720d5b4e133463e5a32fd64f1c33ed
|
[
"Apache-2.0"
] | null | null | null |
pycspr/serialisation/json/deploy/__init__.py
|
hboshnak/casper-python-sdk
|
19db9bf3b4720d5b4e133463e5a32fd64f1c33ed
|
[
"Apache-2.0"
] | null | null | null |
pycspr/serialisation/json/deploy/__init__.py
|
hboshnak/casper-python-sdk
|
19db9bf3b4720d5b4e133463e5a32fd64f1c33ed
|
[
"Apache-2.0"
] | null | null | null |
from pycspr.serialisation.json.deploy.decoder import decode
from pycspr.serialisation.json.deploy.encoder import encode
| 40
| 59
| 0.866667
| 16
| 120
| 6.5
| 0.625
| 0.192308
| 0.442308
| 0.519231
| 0.634615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 120
| 2
| 60
| 60
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
66b917252d2082fd5ad755642f9eb67097330191
| 2,422
|
py
|
Python
|
tests/test_validation.py
|
kpdemetriou/newhope-cffi
|
f6e8c8cd1649ea2fbc1afff601e7aa9fce2e7a89
|
[
"BSD-3-Clause"
] | 1
|
2021-08-04T18:32:45.000Z
|
2021-08-04T18:32:45.000Z
|
tests/test_validation.py
|
kpdemetriou/newhope-cffi
|
f6e8c8cd1649ea2fbc1afff601e7aa9fce2e7a89
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_validation.py
|
kpdemetriou/newhope-cffi
|
f6e8c8cd1649ea2fbc1afff601e7aa9fce2e7a89
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
import newhope.cca
import newhope.cpa
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_encrypt_public_key_type(variant):
pk, sk = variant.generate_keypair()
with pytest.raises(TypeError):
variant.encrypt("0" * len(pk))
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_encrypt_public_key_longer(variant):
pk, sk = variant.generate_keypair()
with pytest.raises(ValueError):
variant.encrypt(pk + b"\0")
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_encrypt_public_key_shorter(variant):
pk, sk = variant.generate_keypair()
with pytest.raises(ValueError):
variant.encrypt(pk[:-1])
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_decrypt_secret_key_type(variant):
pk, sk = variant.generate_keypair()
ciphertext, plaintext = variant.encrypt(pk)
with pytest.raises(TypeError):
variant.decrypt("0" * len(sk), ciphertext)
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_decrypt_secret_key_type(variant):
pk, sk = variant.generate_keypair()
ciphertext, plaintext = variant.encrypt(pk)
with pytest.raises(TypeError):
variant.decrypt(sk, "0" * len(ciphertext))
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_decrypt_secret_key_longer(variant):
pk, sk = variant.generate_keypair()
ciphertext, plaintext = variant.encrypt(pk)
with pytest.raises(ValueError):
variant.decrypt(sk + b"\0", ciphertext)
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_decrypt_secret_key_shorter(variant):
pk, sk = variant.generate_keypair()
ciphertext, plaintext = variant.encrypt(pk)
with pytest.raises(ValueError):
variant.decrypt(sk[:-1], ciphertext)
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_decrypt_ciphertext_longer(variant):
pk, sk = variant.generate_keypair()
ciphertext, plaintext = variant.encrypt(pk)
with pytest.raises(ValueError):
variant.decrypt(sk, ciphertext + b"\0")
@pytest.mark.parametrize("variant", [newhope.cca, newhope.cpa])
def test_decrypt_ciphertext_shorter(variant):
pk, sk = variant.generate_keypair()
ciphertext, plaintext = variant.encrypt(pk)
with pytest.raises(ValueError):
variant.decrypt(sk, ciphertext[:-1])
| 29.536585
| 63
| 0.71924
| 300
| 2,422
| 5.663333
| 0.106667
| 0.058858
| 0.111242
| 0.148323
| 0.956445
| 0.947028
| 0.947028
| 0.947028
| 0.937022
| 0.908181
| 0
| 0.004346
| 0.144922
| 2,422
| 81
| 64
| 29.901235
| 0.816031
| 0
| 0
| 0.648148
| 1
| 0
| 0.029728
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.055556
| 0
| 0.222222
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
66ed6b9e3ac2b0921f982c43897623714cc35dde
| 121
|
py
|
Python
|
src/kaggle_web_traffic_forecasting/data_processing/__init__.py
|
DSmmartin/KaggleTimeSeries
|
54a6627487070b28b2eea4e27bcb35c48acedf19
|
[
"MIT"
] | null | null | null |
src/kaggle_web_traffic_forecasting/data_processing/__init__.py
|
DSmmartin/KaggleTimeSeries
|
54a6627487070b28b2eea4e27bcb35c48acedf19
|
[
"MIT"
] | null | null | null |
src/kaggle_web_traffic_forecasting/data_processing/__init__.py
|
DSmmartin/KaggleTimeSeries
|
54a6627487070b28b2eea4e27bcb35c48acedf19
|
[
"MIT"
] | null | null | null |
""" Module to encapsulate data processing requieremnts
"""
from .dataset_train_transpose import dataset_train_transpose
| 24.2
| 60
| 0.834711
| 14
| 121
| 6.928571
| 0.785714
| 0.247423
| 0.43299
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107438
| 121
| 4
| 61
| 30.25
| 0.898148
| 0.413223
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
dd4828866561d98a805fab89c485ac285146427a
| 8,153
|
py
|
Python
|
models/switchable_LIQ_wn_qsam.py
|
zhuang-group/SAQ
|
594e9c74944999766e119e7137f50583aeedf52b
|
[
"Apache-2.0"
] | 22
|
2021-11-24T23:19:26.000Z
|
2022-03-10T12:08:32.000Z
|
models/switchable_LIQ_wn_qsam.py
|
zip-group/SAQ
|
594e9c74944999766e119e7137f50583aeedf52b
|
[
"Apache-2.0"
] | null | null | null |
models/switchable_LIQ_wn_qsam.py
|
zip-group/SAQ
|
594e9c74944999766e119e7137f50583aeedf52b
|
[
"Apache-2.0"
] | 4
|
2021-11-29T04:10:32.000Z
|
2021-12-03T03:08:19.000Z
|
import torch
import torch.nn as nn
from quan_models.LIQ import normalization_on_weights, quantization, quantize_activation
from torch.nn import functional as F
class SwitchableQConv2d(nn.Conv2d):
"""
custom convolutional layers for quantization with sam
"""
def __init__(
self,
in_channels,
out_channels,
kernel_size,
stride=1,
padding=0,
dilation=1,
groups=1,
bias=True,
bits_weights_list=[2, 3, 4, 5, 6, 7, 8],
bits_activations_list=[2, 3, 4, 5, 6, 7, 8],
**kwargs
):
super(SwitchableQConv2d, self).__init__(
in_channels,
out_channels,
kernel_size,
stride,
padding,
dilation,
groups,
bias,
)
self.share_clip = kwargs["share_clip"]
self.weight_clip_value = nn.Parameter(
torch.Tensor([1] if self.share_clip else [1] * len(bits_weights_list))
)
self.activation_clip_value = nn.Parameter(
torch.Tensor([1] if self.share_clip else [1] * len(bits_weights_list))
)
self.bits_weights = bits_weights_list
self.bits_activations = bits_activations_list
self.current_bit_weights = 4.0
self.current_bit_activations = 4.0
self.is_second = False
self.epsilon = None
def quantize_weight(self, x, k, clip_value):
if k == 32:
return x
x = normalization_on_weights(x, clip_value)
x = (x + 1.0) / 2.0
x = quantization(x, k)
x = x * 2.0 - 1.0
x = x * clip_value
self.x = x
if self.x.requires_grad:
self.x.retain_grad()
return self.x
def quantize_weight_add_epsilon(self, x, k, clip_value, epsilon):
if k == 32:
return x
x = normalization_on_weights(x, clip_value)
x = (x + 1.0) / 2.0
x = quantization(x, k)
x = x * 2.0 - 1.0
x = x * clip_value
self.x = x
if self.x.requires_grad:
self.x.retain_grad()
return self.x + epsilon
def forward(self, input):
quantized_input = quantize_activation(
input,
self.current_bit_activations,
self.activation_clip_value.abs()
if self.share_clip
else self.activation_clip_value[
self.bits_activations.index(self.current_bit_activations)
].abs(),
)
weight_mean = self.weight.data.mean()
weight_std = self.weight.data.std()
normalized_weight = self.weight.add(-weight_mean).div(weight_std)
if not self.is_second:
quantized_weight = self.quantize_weight(
normalized_weight,
self.current_bit_weights,
self.weight_clip_value.abs()
if self.share_clip
else self.weight_clip_value[
self.bits_weights.index(self.current_bit_weights)
].abs(),
)
else:
quantized_weight = self.quantize_weight_add_epsilon(
normalized_weight,
self.current_bit_weights,
self.weight_clip_value.abs()
if self.share_clip
else self.weight_clip_value[
self.bits_weights.index(self.current_bit_weights)
].abs(),
self.epsilon,
)
output = F.conv2d(
quantized_input,
quantized_weight,
self.bias,
self.stride,
self.padding,
self.dilation,
self.groups,
)
self.output_shape = output.shape
return output
def set_first_forward(self):
self.is_second = False
def set_second_forward(self):
self.is_second = True
def extra_repr(self):
s = super().extra_repr()
s += ", current bits_weights={}".format(self.current_bit_weights)
s += ", current bits_activations={}".format(self.current_bit_activations)
s += ", share clip={}".format(self.share_clip)
s += ", bits_choices={}".format(self.bits_weights)
s = s.replace("LIQ_conv2d", "LIQ_wn_qsam_switchable_conv2d")
return s
class SwitchableQLinear(nn.Linear):
"""
custom convolutional layers for quantization
"""
def __init__(
self,
in_features,
out_features,
bias=True,
bits_weights_list=[2, 3, 4, 5, 6, 7, 8],
bits_activations_list=[2, 3, 4, 5, 6, 7, 8],
**kwargs
):
super(SwitchableQLinear, self).__init__(in_features, out_features, bias=bias)
self.share_clip = kwargs["share_clip"]
self.weight_clip_value = nn.Parameter(
torch.Tensor([1] if self.share_clip else [1] * len(bits_weights_list))
)
self.activation_clip_value = nn.Parameter(
torch.Tensor([1] if self.share_clip else [1] * len(bits_weights_list))
)
self.bits_weights = bits_weights_list
self.bits_activations = bits_activations_list
self.current_bit_weights = 4.0
self.current_bit_activations = 4.0
self.is_second = False
self.epsilon = None
def quantize_weight(self, x, k, clip_value):
if k == 32:
return x
x = normalization_on_weights(x, clip_value)
x = (x + 1.0) / 2.0
x = quantization(x, k)
x = x * 2.0 - 1.0
x = x * clip_value
self.x = x
if self.x.requires_grad:
self.x.retain_grad()
return self.x
def quantize_weight_add_epsilon(self, x, k, clip_value, epsilon):
if k == 32:
return x
x = normalization_on_weights(x, clip_value)
x = (x + 1.0) / 2.0
x = quantization(x, k)
x = x * 2.0 - 1.0
x = x * clip_value
self.x = x
if self.x.requires_grad:
self.x.retain_grad()
return self.x + epsilon
def forward(self, input):
quantized_input = quantize_activation(
input,
self.current_bit_activations,
self.activation_clip_value.abs()
if self.share_clip
else self.activation_clip_value[
self.bits_activations.index(self.current_bit_activations)
].abs(),
)
if not self.is_second:
quantized_weight = self.quantize_weight(
self.weight,
self.current_bit_weights,
self.weight_clip_value.abs()
if self.share_clip
else self.weight_clip_value[
self.bits_weights.index(self.current_bit_weights)
].abs(),
)
else:
quantized_weight = self.quantize_weight_add_epsilon(
self.weight,
self.current_bit_weights,
self.weight_clip_value.abs()
if self.share_clip
else self.weight_clip_value[
self.bits_weights.index(self.current_bit_weights)
].abs(),
self.epsilon,
)
output = F.linear(quantized_input, quantized_weight, self.bias)
self.output_shape = output.shape
return output
def set_first_forward(self):
self.is_second = False
def set_second_forward(self):
self.is_second = True
def extra_repr(self):
s = super().extra_repr()
s += ", current bits_weights={}".format(self.current_bit_weights)
s += ", current bits_activations={}".format(self.current_bit_activations)
s += ", share clip={}".format(self.share_clip)
s += ", bits_choices={}".format(self.bits_weights)
s += ", method={}".format("LIQ_qsam_switchable_linear")
return s
| 33.413934
| 88
| 0.54434
| 945
| 8,153
| 4.428571
| 0.111111
| 0.060215
| 0.066906
| 0.060215
| 0.864994
| 0.834887
| 0.834887
| 0.798566
| 0.798566
| 0.798566
| 0
| 0.018094
| 0.362811
| 8,153
| 243
| 89
| 33.55144
| 0.787488
| 0.01202
| 0
| 0.792627
| 0
| 0
| 0.034443
| 0.007069
| 0
| 0
| 0
| 0
| 0
| 1
| 0.064516
| false
| 0
| 0.018433
| 0
| 0.147465
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dd51ff26edcef7a5d2bcdc19b9c8d8d9bf0b7175
| 211
|
py
|
Python
|
utilities/strings.py
|
codeEmitter/token-hunter
|
46809c64074b68bb819ea50911bc65f246425106
|
[
"BSD-3-Clause"
] | 35
|
2021-01-06T08:26:38.000Z
|
2022-01-18T21:18:46.000Z
|
utilities/strings.py
|
codeEmitter/token-hunter
|
46809c64074b68bb819ea50911bc65f246425106
|
[
"BSD-3-Clause"
] | null | null | null |
utilities/strings.py
|
codeEmitter/token-hunter
|
46809c64074b68bb819ea50911bc65f246425106
|
[
"BSD-3-Clause"
] | 13
|
2020-11-04T05:37:43.000Z
|
2022-01-12T10:22:59.000Z
|
from utilities import constants
def truncate(target):
return (target[:constants.Strings.max_string_length()] + "...") \
if len(target) > constants.Strings.max_string_length() \
else target
| 26.375
| 69
| 0.682464
| 24
| 211
| 5.833333
| 0.625
| 0.214286
| 0.314286
| 0.357143
| 0.528571
| 0.528571
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189573
| 211
| 7
| 70
| 30.142857
| 0.818713
| 0
| 0
| 0
| 0
| 0
| 0.014218
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
dd59b5931e2a88699381bbc0c6d5c233ecbec835
| 48
|
py
|
Python
|
pysac/mhs_atmosphere/save_atmos/__init__.py
|
SolarDrew/pysac
|
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
|
[
"BSD-2-Clause"
] | null | null | null |
pysac/mhs_atmosphere/save_atmos/__init__.py
|
SolarDrew/pysac
|
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
|
[
"BSD-2-Clause"
] | null | null | null |
pysac/mhs_atmosphere/save_atmos/__init__.py
|
SolarDrew/pysac
|
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
|
[
"BSD-2-Clause"
] | null | null | null |
#from mhs_snapshot import *
import mhs_snapshot
| 16
| 27
| 0.833333
| 7
| 48
| 5.428571
| 0.571429
| 0.578947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 48
| 2
| 28
| 24
| 0.904762
| 0.541667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7c03563b23ef11d50ee88655b3e455b173fffa1f
| 42
|
py
|
Python
|
webapp/core/context_processors/__init__.py
|
PoCDAB/cfns-webapp
|
69637efa2046a04172898d3f41520e060efb77f5
|
[
"MIT"
] | null | null | null |
webapp/core/context_processors/__init__.py
|
PoCDAB/cfns-webapp
|
69637efa2046a04172898d3f41520e060efb77f5
|
[
"MIT"
] | null | null | null |
webapp/core/context_processors/__init__.py
|
PoCDAB/cfns-webapp
|
69637efa2046a04172898d3f41520e060efb77f5
|
[
"MIT"
] | null | null | null |
from .header_context import header_context
| 42
| 42
| 0.904762
| 6
| 42
| 6
| 0.666667
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 42
| 1
| 42
| 42
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b04b4f98a1dfc99235097f1291e58404158498a5
| 4,019
|
py
|
Python
|
test/x86_64/encoding/test_mask.py
|
lemire/PeachPy
|
650a4d866bd67d007371effdc7c096788f0acf20
|
[
"BSD-2-Clause"
] | 1
|
2016-01-13T20:41:42.000Z
|
2016-01-13T20:41:42.000Z
|
test/x86_64/encoding/test_mask.py
|
lemire/PeachPy
|
650a4d866bd67d007371effdc7c096788f0acf20
|
[
"BSD-2-Clause"
] | null | null | null |
test/x86_64/encoding/test_mask.py
|
lemire/PeachPy
|
650a4d866bd67d007371effdc7c096788f0acf20
|
[
"BSD-2-Clause"
] | 1
|
2019-04-20T12:55:12.000Z
|
2019-04-20T12:55:12.000Z
|
# This file is auto-generated by /codegen/x86_64_test_encoding.py
# Reference opcodes are generated by:
# GNU assembler (GNU Binutils) 2.25
from peachpy.x86_64 import *
import unittest
class TestKADDB(unittest.TestCase):
def runTest(self):
pass
class TestKADDW(unittest.TestCase):
def runTest(self):
pass
class TestKADDD(unittest.TestCase):
def runTest(self):
pass
class TestKADDQ(unittest.TestCase):
def runTest(self):
pass
class TestKANDB(unittest.TestCase):
def runTest(self):
pass
class TestKANDW(unittest.TestCase):
def runTest(self):
pass
class TestKANDD(unittest.TestCase):
def runTest(self):
pass
class TestKANDQ(unittest.TestCase):
def runTest(self):
pass
class TestKANDNB(unittest.TestCase):
def runTest(self):
pass
class TestKANDNW(unittest.TestCase):
def runTest(self):
pass
class TestKANDND(unittest.TestCase):
def runTest(self):
pass
class TestKANDNQ(unittest.TestCase):
def runTest(self):
pass
class TestKORB(unittest.TestCase):
def runTest(self):
pass
class TestKORW(unittest.TestCase):
def runTest(self):
pass
class TestKORD(unittest.TestCase):
def runTest(self):
pass
class TestKORQ(unittest.TestCase):
def runTest(self):
pass
class TestKXNORB(unittest.TestCase):
def runTest(self):
pass
class TestKXNORW(unittest.TestCase):
def runTest(self):
pass
class TestKXNORD(unittest.TestCase):
def runTest(self):
pass
class TestKXNORQ(unittest.TestCase):
def runTest(self):
pass
class TestKXORB(unittest.TestCase):
def runTest(self):
pass
class TestKXORW(unittest.TestCase):
def runTest(self):
pass
class TestKXORD(unittest.TestCase):
def runTest(self):
pass
class TestKXORQ(unittest.TestCase):
def runTest(self):
pass
class TestKMOVB(unittest.TestCase):
def runTest(self):
pass
class TestKMOVW(unittest.TestCase):
def runTest(self):
pass
class TestKMOVD(unittest.TestCase):
def runTest(self):
pass
class TestKMOVQ(unittest.TestCase):
def runTest(self):
pass
class TestKNOTB(unittest.TestCase):
def runTest(self):
pass
class TestKNOTW(unittest.TestCase):
def runTest(self):
pass
class TestKNOTD(unittest.TestCase):
def runTest(self):
pass
class TestKNOTQ(unittest.TestCase):
def runTest(self):
pass
class TestKUNPCKBW(unittest.TestCase):
def runTest(self):
pass
class TestKUNPCKWD(unittest.TestCase):
def runTest(self):
pass
class TestKUNPCKDQ(unittest.TestCase):
def runTest(self):
pass
class TestKTESTB(unittest.TestCase):
def runTest(self):
pass
class TestKTESTW(unittest.TestCase):
def runTest(self):
pass
class TestKTESTD(unittest.TestCase):
def runTest(self):
pass
class TestKTESTQ(unittest.TestCase):
def runTest(self):
pass
class TestKORTESTB(unittest.TestCase):
def runTest(self):
pass
class TestKORTESTW(unittest.TestCase):
def runTest(self):
pass
class TestKORTESTD(unittest.TestCase):
def runTest(self):
pass
class TestKORTESTQ(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTLB(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTLW(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTLD(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTLQ(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTRB(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTRW(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTRD(unittest.TestCase):
def runTest(self):
pass
class TestKSHIFTRQ(unittest.TestCase):
def runTest(self):
pass
| 15.223485
| 65
| 0.65887
| 438
| 4,019
| 6.03653
| 0.184932
| 0.308623
| 0.36649
| 0.501513
| 0.750378
| 0.750378
| 0.737519
| 0
| 0
| 0
| 0
| 0.003645
| 0.249067
| 4,019
| 263
| 66
| 15.281369
| 0.872432
| 0.034088
| 0
| 0.658065
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.329032
| false
| 0.329032
| 0.012903
| 0
| 0.670968
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 9
|
c6b8c6b83a2e644e213e34c20a0f2192aabd005a
| 3,035
|
py
|
Python
|
edr/audiofeedback.py
|
blacksurgeon/edr
|
809b30a0247961f6b92a968696afa4383c867b5e
|
[
"Apache-2.0"
] | 74
|
2018-01-30T10:44:20.000Z
|
2022-03-24T23:13:30.000Z
|
edr/audiofeedback.py
|
blacksurgeon/edr
|
809b30a0247961f6b92a968696afa4383c867b5e
|
[
"Apache-2.0"
] | 329
|
2017-11-20T12:18:21.000Z
|
2022-03-31T22:21:49.000Z
|
edr/audiofeedback.py
|
blacksurgeon/edr
|
809b30a0247961f6b92a968696afa4383c867b5e
|
[
"Apache-2.0"
] | 15
|
2018-02-08T09:22:46.000Z
|
2022-03-27T13:05:54.000Z
|
from __future__ import absolute_import
from sys import platform
import os.path
import utils2to3
if platform == 'darwin':
from AppKit import NSSound
class AudioFeedback(object):
def __init__(self):
self.snd_warn = NSSound.alloc().initWithContentsOfFile_byReference_(utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn.wav'), False)
self.snd_notify = NSSound.alloc().initWithContentsOfFile_byReference_(utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify.wav'), False)
def soft(self):
self.snd_warn = NSSound.alloc().initWithContentsOfFile_byReference_(utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn_soft.wav'), False)
self.snd_notify = NSSound.alloc().initWithContentsOfFile_byReference_(utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify_soft.wav'), False)
def loud(self):
self.snd_warn = NSSound.alloc().initWithContentsOfFile_byReference_(utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn.wav'), False)
self.snd_notify = NSSound.alloc().initWithContentsOfFile_byReference_(utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify.wav'), False)
def warn(self):
self.snd_warn.play()
def notify(self):
self.snd_notify.play()
elif platform == 'win32':
import winsound
class AudioFeedback(object):
def __init__(self):
self.snd_warn = utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn.wav')
self.snd_notify = utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify.wav')
def soft(self):
self.snd_warn = utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn_soft.wav')
self.snd_notify = utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify_soft.wav')
def loud(self):
self.snd_warn = utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn.wav')
self.snd_notify = utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify.wav')
def warn(self):
winsound.PlaySound(self.snd_warn, winsound.SND_ASYNC)
def notify(self):
winsound.PlaySound(self.snd_notify, winsound.SND_ASYNC)
elif platform == 'linux':
from playsound import playsound
class AudioFeedback(object):
def __init__(self):
self.snd_warn = utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn.wav')
self.snd_notify = utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify.wav')
def soft(self):
self.snd_warn = utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn_soft.wav')
self.snd_notify = utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify_soft.wav')
def loud(self):
self.snd_warn = utils2to3.abspathmaker(__file__, 'sounds', 'snd_warn.wav')
self.snd_notify = utils2to3.abspathmaker(__file__, 'sounds', 'snd_notify.wav')
def warn(self):
playsound(self.snd_warn)
def notify(self):
playsound(self.snd_notify)
| 37.469136
| 155
| 0.674465
| 335
| 3,035
| 5.659701
| 0.116418
| 0.088608
| 0.237342
| 0.294304
| 0.811709
| 0.784283
| 0.778481
| 0.778481
| 0.772679
| 0.756329
| 0
| 0.01666
| 0.208896
| 3,035
| 80
| 156
| 37.9375
| 0.773011
| 0
| 0
| 0.653846
| 0
| 0
| 0.127842
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.288462
| false
| 0
| 0.134615
| 0
| 0.480769
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
05c9071cf71c2364132fe0892d113f0b3bd9f5a7
| 86
|
py
|
Python
|
exercises/practice/prime-number/prime.py
|
exercism-bot/z3
|
5e32374acd1fa31f15919aa09880f04f1f17f975
|
[
"MIT"
] | 6
|
2021-02-16T18:12:57.000Z
|
2021-03-18T16:44:26.000Z
|
exercises/practice/prime-number/prime.py
|
exercism-bot/z3
|
5e32374acd1fa31f15919aa09880f04f1f17f975
|
[
"MIT"
] | 38
|
2021-02-16T15:17:49.000Z
|
2021-08-24T07:28:39.000Z
|
exercises/practice/prime-number/prime.py
|
exercism-bot/z3
|
5e32374acd1fa31f15919aa09880f04f1f17f975
|
[
"MIT"
] | 7
|
2021-02-17T14:04:33.000Z
|
2021-06-01T08:16:50.000Z
|
from z3 import *
def prime_number(x):
# TODO: Write your code here
pass
| 12.285714
| 32
| 0.616279
| 13
| 86
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0.313953
| 86
| 7
| 33
| 12.285714
| 0.864407
| 0.302326
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 1
| 0.333333
| false
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
af3c35622a8c302280352e599199c1ec78983300
| 264
|
py
|
Python
|
trimtuner/trimtuner/__init__.py
|
pedrogbmendes/TrimTuner
|
a9dec1f1ac610e6ec6d54cfaf5f9c93bc4f80f97
|
[
"MIT"
] | null | null | null |
trimtuner/trimtuner/__init__.py
|
pedrogbmendes/TrimTuner
|
a9dec1f1ac610e6ec6d54cfaf5f9c93bc4f80f97
|
[
"MIT"
] | null | null | null |
trimtuner/trimtuner/__init__.py
|
pedrogbmendes/TrimTuner
|
a9dec1f1ac610e6ec6d54cfaf5f9c93bc4f80f97
|
[
"MIT"
] | 1
|
2021-03-11T14:46:24.000Z
|
2021-03-11T14:46:24.000Z
|
from .trimtuner import trimtuner
from .incumbent_estimation import incumbent_estimation_cea
from .incumbent_estimation import incumbent_estimation
from .incumbent_estimation import incumbent_estimation_noconstraints
from .initial_sampling import initial_sampling
| 37.714286
| 68
| 0.901515
| 30
| 264
| 7.6
| 0.3
| 0.5
| 0.302632
| 0.381579
| 0.631579
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079545
| 264
| 6
| 69
| 44
| 0.938272
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
af612954b17904d574cfb25d491c764c449f3de0
| 77
|
py
|
Python
|
www/apps/portal/views/__init__.py
|
un33k/outsourcefactor
|
c48dbd11b74ba5fb72b85f05c431a16287f62507
|
[
"MIT"
] | 2
|
2018-12-23T04:14:32.000Z
|
2018-12-23T15:02:08.000Z
|
www/apps/portal/views/__init__.py
|
un33k/outsourcefactor
|
c48dbd11b74ba5fb72b85f05c431a16287f62507
|
[
"MIT"
] | null | null | null |
www/apps/portal/views/__init__.py
|
un33k/outsourcefactor
|
c48dbd11b74ba5fb72b85f05c431a16287f62507
|
[
"MIT"
] | 1
|
2019-11-17T19:53:07.000Z
|
2019-11-17T19:53:07.000Z
|
from talent_view import *
from job_view import *
from business_view import *
| 19.25
| 27
| 0.805195
| 12
| 77
| 4.916667
| 0.5
| 0.508475
| 0.474576
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155844
| 77
| 3
| 28
| 25.666667
| 0.907692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
af8241ae44753bdd4f39b693868628fad8c2d77c
| 42,734
|
py
|
Python
|
dashboard/cloop/utils.py
|
looptool/download
|
3f471e6c8ac2ad65d8659163a3f5e4fb36bdd093
|
[
"CC0-1.0"
] | 9
|
2016-10-04T21:57:03.000Z
|
2019-10-07T15:01:39.000Z
|
dashboard/cloop/utils.py
|
looptool/download
|
3f471e6c8ac2ad65d8659163a3f5e4fb36bdd093
|
[
"CC0-1.0"
] | 10
|
2016-07-21T09:26:31.000Z
|
2017-03-15T07:29:43.000Z
|
dashboard/cloop/utils.py
|
looptool/download
|
3f471e6c8ac2ad65d8659163a3f5e4fb36bdd093
|
[
"CC0-1.0"
] | 3
|
2017-03-11T23:50:00.000Z
|
2018-03-05T20:02:02.000Z
|
"""
Loop Dashboard utils
Contains methods to process data for dashboards dynamically
Todo:
- Pandas has bug that is stopping the database from being connected to using a connection string from the settings.py file
"""
from django.db import connections
from datetime import datetime, date, timedelta
import time
from cloop.models import Course, CourseRepeatingEvent, CourseSingleEvent, CourseSubmissionEvent
import json
import pandas as pd
from sqlalchemy import create_engine
from collections import defaultdict
from django.conf import settings
def get_contenttypes(course_type):
communication_types = None
assessment_types = None
if course_type == "Moodle":
communication_types = ['forum']
assessment_types = ['quiz', 'assign']
elif course_type == "MoodleMacquarie":
communication_types = ['forum_discussions', 'oublog', 'forum', 'oublog_posts', 'forum_posts', 'dialogue', 'dialogue_conversations']
assessment_types = ['quiz','quiz_attempts','grade_grades','turnitintool', 'assign']
elif course_type == "Blackboard":
communication_types = ['resource/x-bb-discussionboard', 'course/x-bb-collabsession', 'resource/x-bb-discussionfolder']
assessment_types = ['assessment/x-bb-qti-test', 'course/x-bb-courseassessment', 'resource/x-turnitin-assignment']
assessment_types_str = ','.join("'{0}'".format(x) for x in assessment_types)
communication_types_str = ','.join("'{0}'".format(x) for x in communication_types)
return communication_types, assessment_types, communication_types_str, assessment_types_str
def getOLAPconnection():
username = settings.DATABASES['olap']['USER']
password = settings.DATABASES['olap']['PASSWORD']
databasename = settings.DATABASES['olap']['NAME']
host = settings.DATABASES['olap']['HOST']
connection_string = 'mysql://%s:%s@%s/%s' % (username, password, host, databasename)
return connection_string
def get_prepostevent_treetable(course_id, course_weeks, treelist_json, curr_evt, course_type):
communication_types, assessment_types, communication_types_str, assessment_types_str = get_contenttypes(course_type)
engine = create_engine(getOLAPconnection(), echo=False)
sql = "SELECT F.user_id, F.page_id, F.pageview, D.date_week, D.date_dayinweek FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d"%(course_id)
connection = engine.raw_connection()
df = pd.read_sql(sql, connection)
treelist = json.loads(treelist_json)
weeks_str_list = ','.join(map(str, course_weeks))
table = []
table.append("<thead><tr>")
table.append("<th>Name</th><th>Type</th><th>View</th>")
for x in range(len(course_weeks)):
table.append("<th>Week %d</th>" % (x+1))
table.append("</tr>")
table.append("</thead>")
table.append("<tbody>\n")
for page in treelist:
pageid2 = int(page[0]) #int(row[2])
cursor = connections['olap'].cursor()
res_sql = "SELECT title, content_type, content_id, parent_id, order_no FROM dim_pages WHERE content_id=%d AND course_id=%d order by order_no;" %(pageid2, course_id)
row_count = cursor.execute(res_sql);
row = cursor.fetchall()
cursor.close()
order_no = row[0][4]
content_type = row[0][1]
classname = ""
parentidstring =""
pagestoinclude = None
if course_type=="Moodle":
pagestoinclude = ['page', 'folder', 'section', 'course_modules']
else:
pagestoinclude = ['course/x-bb-coursetoc', 'resource/x-bb-folder', 'resource/x-bb-stafffolder', 'resource/x-bb-discussionfolder']
if row[0][1] in pagestoinclude:
classname = "folder"
else:
classname = "file"
if row[0][3]==0:
parentidstring = ""
else:
parentidstring = "data-tt-parent-id='%s'" % (str(row[0][3]))
if (row[0][1]=='section'):
table.append("<tr data-tt-id='%s' %s class='stats-row'><td class='stats-title'><span class='%s'>%s</span></td><td class='stats-title'>%s</td><td class='stats-title'><a href='/coursepage?course_id=%d&page_id=%s§ion_order=%s' class='btn btn-small btn-primary'>View</a></td></td>" % (str(pageid2), parentidstring, classname, row[0][0], row[0][1], course_id, str(pageid2), str(row[0][4])))
else:
table.append("<tr data-tt-id='%s' %s class='stats-row'><td class='stats-title'><span class='%s'>%s</span></td><td class='stats-title'>%s</td><td class='stats-title'><a href='/coursepage?course_id=%d&page_id=%s' class='btn btn-small btn-primary'>View</a></td>" % (str(pageid2), parentidstring, classname, row[0][0], row[0][1], course_id, str(pageid2)))
filterd_df = df[(df.page_id == int(pageid2))]
grouped_df = filterd_df.groupby('date_week').sum()
total_counts_dict = defaultdict(int)
for index, row in grouped_df.iterrows():
total_counts_dict[index] = int(row['pageview'])
for week in course_weeks:
totalcounts = total_counts_dict[week]
if totalcounts > 0:
# Insert sparkline
evt_pre_list = range(0,curr_evt)
eventpre_df = filterd_df[filterd_df.date_dayinweek.isin(evt_pre_list)]
eventpre_counts = len(eventpre_df.index)
eventpost_counts = totalcounts - eventpre_counts
width, height = scale_chart(totalcounts)
table.append('<td><span class="sparklines2" sparkType="pie" values="%d,%d" sparkwidth="%d" sparkheight="%d"></span></td>' % (eventpre_counts, eventpost_counts, width, height))
else:
table.append('<td> </td>')
table.append("</tr>\n")
table.append("</tr>\n")
table.append("</tbody>\n")
table = ''.join(table)
return table
def get_prepostevent_table(course_id, curr_evt, contenttype, course_weeks, course_type):
weeks_str_list = ','.join(map(str, course_weeks))
communication_types, assessment_types, communication_types_str, assessment_types_str = get_contenttypes(course_type)
if (contenttype == "communication" or contenttype == "forum"):
#contenttype = "'forum'"
contentdisplaytype = ','.join("'{0}'".format(x) for x in communication_types)
else:
#contenttype = "'quiz','assign'"
contentdisplaytype = ','.join("'{0}'".format(x) for x in assessment_types)
table = []
table.append("<thead><tr>")
table.append("<th>Name</th><th>Type</th><th>View</th>")
for x in range(len(course_weeks)):
table.append("<th>Week %d</th>" % (x+1))
table.append("</tr>")
table.append("</thead>")
table.append("<tbody>\n")
cursor = connections['olap'].cursor()
res_sql = "SELECT title, content_type, content_id, parent_id FROM dim_pages WHERE content_type IN (%s) AND course_id=%d order by order_no;" %(contentdisplaytype, course_id)
row_count = cursor.execute(res_sql);
result = cursor.fetchall()
cursor.close()
engine = create_engine(getOLAPconnection(), echo=False)
sql = "SELECT F.user_id, F.page_id, F.pageview, D.date_week, D.date_dayinweek FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d"%(course_id)
connection = engine.raw_connection()
df = pd.read_sql(sql, connection)
for row in result:
pageid2 = int(row[2])
table.append("<tr class='stats-row'><td class='stats-title'><span>%s</span></td><td class='stats-title'>%s</td><td class='stats-title'><a href='/coursepage?course_id=%d&page_id=%s'>View</a></td>" % (row[0], row[1], course_id, str(pageid2)))
for week in course_weeks:
filterd_df = df[(df.page_id == pageid2)&(df.date_week == week)]
totalcounts = len(filterd_df.index)
if totalcounts > 0:
# Insert sparkline
evt_pre_list = range(0,curr_evt)
eventpre_df = filterd_df[filterd_df.date_dayinweek.isin(evt_pre_list)]
eventpre_counts = len(eventpre_df.index)
eventpost_counts = totalcounts - eventpre_counts
width, height = scale_chart(totalcounts)
table.append('<td><span class="sparklines2" sparkType="pie" values="%d,%d" sparkwidth="%d" sparkheight="%d"></span></td>' % (eventpre_counts, eventpost_counts, width, height))
else:
table.append('<td> </td>')
table.append("</tr>\n")
table.append("</tr>\n")
table.append("</tbody>\n")
table = ''.join(table)
return table
def getusers_prepostevent_table(course_id, curr_evt, course_weeks):
week_totals = [0] * len(course_weeks)
weeks_str_list = ','.join(map(str, course_weeks))
table = []
table.append("<thead><tr>")
table.append("<th>Firstname</th><th>Lastname</th><th>Account Type</th><th>View</th>")
for x in range(len(course_weeks)): #range(0, 10):
table.append("<th>Week %d</th>" % (x+1))
table.append("</tr>")
table.append("</thead>")
table.append("<tbody>\n")
cursor = connections['olap'].cursor()
sql = "SELECT user_pk,firstname,lastname,role, lms_id FROM dim_users WHERE course_id=%d ORDER BY lastname;" %(course_id) #need to make dynamic
row_count = cursor.execute(sql);
result = cursor.fetchall()
cursor.close()
engine = create_engine(getOLAPconnection(), echo=False)
sql2 = "SELECT F.user_id, F.page_id, F.pageview, D.date_week, D.date_dayinweek FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d"%(course_id)
connection = engine.raw_connection()
df = pd.read_sql(sql2, connection)
print df.head(2)
for row in result:
table.append("<tr class='stats-row'><td class='stats-title'>%s</td><td class='stats-title'>%s</td><td class='stats-title'>%s</td><td class='stats-title'><a href='/coursemember?user_id=%s&course_id=%s'>View</a></td>" % (row[1],row[2],row[3], row[0], course_id))
filterd_df = df[(df.user_id == int(row[4]))]
grouped_df = filterd_df.groupby('date_week').sum()
total_counts_dict = defaultdict(int)
for index, row in grouped_df.iterrows():
total_counts_dict[index] = int(row['pageview'])
for week in course_weeks:
totalcounts = total_counts_dict[week]
if totalcounts > 0:
# Insert sparkline
evt_pre_list = range(0,curr_evt)
eventpre_df = filterd_df[filterd_df.date_dayinweek.isin(evt_pre_list)]
eventpre_counts = len(eventpre_df.index) #get_usereventpre_postcounts(week, row[4], course_id, curr_evt)
eventpost_counts = totalcounts - eventpre_counts
width, height = scale_chart(totalcounts)
table.append('<td><span class="sparklines2" sparkType="pie" values="%d,%d" sparkwidth="%d" sparkheight="%d"></span></td>' % (eventpre_counts, eventpost_counts, width, height))
else:
table.append('<td> </td>')
table.append("</tr>\n")
table.append("</tbody>\n")
return ''.join(table)
def get_userweekcountforviz(week,userid,course_id):
pageviews = 0
cursor = connections['olap'].cursor()
sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.user_id='%s' AND F.course_id=%d AND D.Date_week=%d;" % (userid, course_id, int(week))
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
pageviews = int(row[0])
cursor.close()
return pageviews
def get_usereventpre_postcounts(week,userid,course_id, curr_evt):
evt_pre_list = range(0,curr_evt)
curr_evt_str = ','.join(map(str, evt_pre_list))
pageviews = 0
cursor = connections['olap'].cursor()
sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.user_id=%s AND D.date_week=%d AND D.date_dayinweek IN (%s);" % (course_id, str(userid), week, curr_evt_str)
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
pageviews = int(row[0])
cursor.close()
return int(pageviews)
def get_weekcountforviz(week, pageid, course_id):
pageviews = 0
cursor = connections['olap'].cursor()
sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.page_id=%d AND D.date_week=%d;" % (course_id, int(pageid), int(week))
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
pageviews = int(row[0])
cursor.close()
return pageviews
def get_eventpre_postcounts(week, pageid, course_id, curr_evt):
cursor = connections['olap'].cursor()
evt_pre_list = range(0,curr_evt)
curr_evt_str = ','.join(map(str, evt_pre_list))
pageviews = 0
pageid2 = int(pageid)
sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.page_id=%d AND D.date_week=%d AND D.date_dayinweek IN (%s);" % (course_id, int(pageid2), int(week), curr_evt_str)
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
pageviews = int(row[0])
cursor.close()
return int(pageviews)
def scale_chart(total_counts):
width = 50
height = 50
if total_counts > 75:
width = 50
height = 50
elif total_counts >= 26 and total_counts <= 74 :
width = 25
height = 25
elif total_counts <= 25:
width = 15
height = 15
return width, height
def getSingleCourseEvents(course_id):
course = Course.objects.get(pk=course_id)
single_evt = CourseSingleEvent.objects.filter(course=course)
evt_lst = ""
for evt in single_evt:
dte = evt.event_date
evt_lst = evt_lst + "{x: Date.UTC(%d, %d, %d), title: '%s'}," % (dte.year, (dte.month - 1), dte.day, evt.title)
evt = "{type: 'flags', name: 'Single Course Events', data:[%s], shape: 'squarepin'}" % (evt_lst)
return evt
def getSubmissionCourseEvents(course_id):
course = Course.objects.get(pk=course_id)
sub_evt = CourseSubmissionEvent.objects.filter(course=course)
evt_lst = ""
for evt in sub_evt:
sdte = evt.start_date
edte = evt.end_date
evt_lst = evt_lst + "{x: Date.UTC(%d, %d, %d), title: '%s: Start Date'}," % (sdte.year, (sdte.month - 1), sdte.day, evt.title)
evt_lst = evt_lst + "{x: Date.UTC(%d, %d, %d), title: '%s: End Date'}," % (edte.year, (edte.month -1), edte.day, evt.title)
evt = "{type: 'flags', name: 'Submission Events', data:[%s], onSeries: 'dataseries', shape: 'squarepin'}" % (evt_lst)
return evt
def weekbegend(year, week):
d = date(year, 1, 1)
delta_days = d.isoweekday() - 1
delta_weeks = week
if year == d.isocalendar()[0]:
delta_weeks -= 1
# delta for the beginning of the week
delta = timedelta(days=-delta_days, weeks=delta_weeks)
weekbeg = d + delta
# delta2 for the end of the week
delta2 = timedelta(days=6-delta_days, weeks=delta_weeks)
weekend = d + delta2
begweek_unix = time.mktime(weekbeg.timetuple())
endweek_unix = time.mktime(weekend.timetuple())
begweek = weekbeg.strftime("%A %d %B %Y")
endweek = weekend.strftime("%A %d %B %Y")
return weekbeg, weekend, begweek_unix, endweek_unix
def get_userweekcount(week,pageid, course_id, content_type, order_no):
cursor = connections['olap'].cursor()
usercounts = 0
sql = ""
if content_type=="section":
sql = "SELECT COUNT(DISTINCT F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.section_order=%d AND D.date_week=%d;" % (course_id, int(order_no), week)
else:
sql = "SELECT COUNT(DISTINCT F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.page_id=%d AND D.date_week=%d;" % (course_id, int(pageid), week)
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
usercounts = int(row[0])
return int(usercounts)
def get_quizusercount(week,pageid, course_id):
cursor = connections['olap'].cursor()
usercounts = 0
# convert week to datetimestamp
start, end, startunix, endunix = weekbegend(2015, week)
startUTC = 'Date.UTC(%d, %d, %d)' % (start.year, start.month-1, start.day)
endUTC = 'Date.UTC(%d, %d, %d)' % (end.year, end.month-1, end.day)
sql = ""
sql = "SELECT COUNT(DISTINCT F.user_id) AS usercount FROM dim_submissionattempts F WHERE F.course_id=%d AND F.content_id=%d AND F.unixtimestamp BETWEEN %d AND %d;" % (course_id, int(pageid), startunix, endunix)
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
usercounts = int(row[0])
return int(usercounts)
def get_quizusercoursecount(pageid, course_id):
cursor = connections['olap'].cursor()
usercounts = 0
sql = ""
sql = "SELECT COUNT(DISTINCT F.user_id) AS usercount FROM dim_submissionattempts F WHERE F.course_id=%d AND F.content_id=%d;" % (course_id, int(pageid))
row_count = cursor.execute(sql);
result = cursor.fetchall()
for row in result:
if row[0] is not None:
usercounts = int(row[0])
return int(usercounts)
def get_usercoursecount(pageid, course_id, content_type, order_no):
cursor = connections['olap'].cursor()
usercounts = 0
sql = ""
if content_type=="section":
sql = "SELECT COUNT(DISTINCT F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.section_order=%d;" % (course_id, int(order_no))
else:
sql = "SELECT COUNT(DISTINCT F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.page_id=%d;" % (course_id, int(pageid))
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
usercounts = int(row[0])
return int(usercounts)
def get_noforumposts(pageid, course_id, week_id):
cursor = connections['olap'].cursor()
no_posts = 0
sql = ""
sql = "SELECT COUNT(F.id) AS pageviews, D.date_week FROM summary_posts F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.forum_id=%d AND D.date_week=%d;" % (course_id, int(pageid), week_id)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
#print row
if row[0] is not None:
no_posts = int(row[0])
return int(no_posts)
def get_usernoforumposts(pageid, course_id, user_id, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
no_posts = 0
if unixstart is None:
sql = "SELECT COUNT(F.id) AS pageviews, D.date_week FROM summary_posts F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.forum_id=%d AND F.user_id=%d;" % (course_id, int(pageid), user_id)
else:
sql = "SELECT COUNT(F.id) AS pageviews, D.date_week FROM summary_posts F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.forum_id=%d AND F.user_id=%d AND D.unixtimestamp BETWEEN %d AND %d;" % (course_id, int(pageid), user_id, unixstart, unixend)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
no_posts = int(row[0])
return int(no_posts)
def get_nocourseforumposts(pageid, course_id, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
no_posts = 0
sql = ""
if unixstart is None:
sql = "SELECT COUNT(F.id) AS pageviews, D.date_week FROM summary_posts F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.forum_id=%d" % (course_id, int(pageid))
else:
sql = "SELECT COUNT(F.id) AS pageviews, D.date_week FROM summary_posts F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.forum_id=%d AND D.unixtimestamp BETWEEN %d AND %d" % (course_id, int(pageid), unixstart, unixend)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
no_posts = int(row[0])
return int(no_posts)
def get_quizattemps(pageid, course_id, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
no_attempts = 0
sql = ""
if unixstart is None:
sql = "SELECT count(id) AS attempts FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s;" % (pageid, course_id)
else:
sql = "SELECT count(id) AS attempts FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s AND unixtimestamp BETWEEN %d AND %d;" % (pageid, course_id, unixstart, unixend)
print sql
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
no_attempts = int(row[0])
return int(no_attempts)
def get_userquizattemps(pageid, course_id, user_id, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
no_attempts = 0
if unixstart is None:
sql = "SELECT count(id) AS attempts FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s AND user_id=%s;" % (pageid, course_id, user_id)
else:
sql = "SELECT count(id) AS attempts FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s AND user_id=%s AND unixtimestamp BETWEEN %d AND %d;" % (pageid, course_id, user_id, unixstart, unixend)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
#print row
if row[0] is not None:
no_attempts = int(row[0])
return int(no_attempts)
def get_avggrade(pageid, course_id, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
avg_grade = 0
sql = ""
if unixstart is None:
sql = "SELECT avg(grade) AS avggrade FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s;" % (pageid, course_id)
else:
sql = "SELECT avg(grade) AS avggrade FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s AND unixtimestamp BETWEEN %d AND %d;" % (pageid, course_id, unixstart, unixend)
print sql
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
avg_grade = int(row[0])
return int(avg_grade)
def get_usergrade(pageid, course_id, user_id, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
avg_grade = 0
if unixstart is None:
sql = "SELECT max(grade) AS maxgrade FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s AND user_id=%s;" % (pageid, course_id, user_id)
else:
sql = "SELECT max(grade) AS maxgrade FROM dim_submissionattempts WHERE content_id=%s AND course_id=%s AND user_id=%s AND unixtimestamp BETWEEN %d AND %d;" % (pageid, course_id, user_id, unixstart, unixend)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
#print row
if row[0] is not None:
avg_grade = row[0]
rounded_grade = "%.2f" % round(float(avg_grade),2)
return rounded_grade
def get_contentdetails(content_id, course_id):
cursor = connections['olap'].cursor()
sql = "SELECT title, content_type FROM dim_pages WHERE content_id=%d AND course_id=%s;" % (content_id, course_id)
row_count = cursor.execute(sql)
title = ""
type = ""
row = cursor.fetchone()
if row[0] is not None:
title = row[0]
if row[1] is not None:
type = row[1]
return {'title': title, 'type': type}
def get_userdetails(user_id, course_id):
cursor = connections['olap'].cursor()
sql = "SELECT firstname, lastname, email, role FROM dim_users WHERE user_pk='%s' AND course_id=%s;" % (user_id, course_id)
result = cursor.execute(sql);
firstname = ""
lastname = ""
email = ""
role = ""
row = cursor.fetchone()
if row[0] is not None:
firstname = row[0]
if row[1] is not None:
lastname = row[1]
if row[2] is not None:
email = row[2]
if row[3] is not None:
role = row[3]
return {'firstname': firstname, 'lastname': lastname, 'email':email, 'role': role }
def generate_userbyweek_histogram(week, course_id):
cursor = connections['olap'].cursor()
userbyweek_sql = "SELECT SUM(F.pageview) AS pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE D.DATE_week=%d AND F.course_id=%d GROUP BY F.user_pk;" %(week, course_id)
row_count = cursor.execute(userbyweek_sql);
result = cursor.fetchall()
userpageview_list = []
for row in result:
userpageview_list.append(row[0])
max_pageviews = 0
if len(userpageview_list)!=0:
max_pageviews = max(userpageview_list)
else:
max_pageviews = 0
histogram = create_bins(userpageview_list, max_pageviews, 25)
return histogram
def generate_userbycourse_histogram(course_id):
cursor = connections['olap'].cursor()
userbyweek_sql = "SELECT SUM(F.pageview) AS pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE F.course_id=%d GROUP BY F.user_pk;" %(course_id)
row_count = cursor.execute(userbyweek_sql);
result = cursor.fetchall()
userpageview_list = []
for row in result:
userpageview_list.append(row[0])
max_pageviews = 0
if len(userpageview_list)!=0:
max_pageviews = max(userpageview_list)
else:
max_pageviews = 0
histogram = create_bins(userpageview_list, max_pageviews, 100)
return histogram
def generate_usersforpage_histogram(course_id, page_id, section_order, unixstart=None, unixend=None):
cursor = connections['olap'].cursor()
userbyweek_sql = ""
if unixstart is None:
if (section_order==0):
userbyweek_sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F WHERE F.course_id=%d AND F.page_id=%d GROUP BY F.user_pk;" %(course_id, page_id)
else:
userbyweek_sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F WHERE F.course_id=%d AND F.page_id=%d AND F.section_order=%d GROUP BY F.user_pk;" %(course_id, page_id, section_order)
else:
if (section_order==0):
userbyweek_sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F WHERE F.course_id=%d AND F.page_id=%d AND F.unixtimestamp BETWEEN %d AND %d GROUP BY F.user_pk;" %(course_id, page_id, unixstart, unixend)
else:
userbyweek_sql = "SELECT SUM(F.pageview) AS pageviews FROM fact_coursevisits F WHERE F.course_id=%d AND F.page_id=%d AND F.section_order=%d AND F.unixtimestamp BETWEEN %d AND %d GROUP BY F.user_pk;" %(course_id, page_id, section_order, unixstart, unixend)
row_count = cursor.execute(userbyweek_sql);
result = cursor.fetchall()
userpageview_list = []
for row in result:
userpageview_list.append(row[0])
max_pageviews = 0
if len(userpageview_list)!=0:
max_pageviews = max(userpageview_list)
else:
max_pageviews = 0
histogram = create_bins(userpageview_list, max_pageviews, 5)
return histogram
#Todo: If numpy is added as a dependency and deployable on openshift then there is a digitize and histogram method available
def create_bins(grouped_totals_list, max, bin_allocation):
#print grouped_totals_list, bin_allocation
number_of_bins = max//bin_allocation + 1
allocations_list = []
allocations_dict = {}
for i in xrange(bin_allocation, (number_of_bins*bin_allocation)+1, bin_allocation):
allocations_list.append(i)
allocations_dict[i] = 0
for val in grouped_totals_list:
for (i, x) in enumerate(allocations_list):
if ((val <= allocations_list[i]) and (val > (allocations_list[i]-bin_allocation-1))):
allocations_dict[x] = allocations_dict[x] + 1
break
#Create bin labels
label_list = []
value_list = []
for (i, x) in enumerate(allocations_list):
label = ""
if (i == 0):
label = "<= %d" % (x)
elif (i==(len(allocations_list))-1):
label = ">= %d" % (x)
else:
label = "%d - %d" % (x-bin_allocation+1, x)
label_list.append(label)
value_list.append(allocations_dict[x])
values = ','.join(map(str, value_list))
labels = '"' + '","'.join(map(str, label_list)) + '"'
return {'values': values, 'labels': labels}
def get_usersthatdidnotaccesscontent(content_id, course_id, section_order, unixstart=None, unixend=None ):
cursor = connections['olap'].cursor()
sql = ""
if unixstart is None:
if (section_order==0):
sql = "SELECT U.firstname, U.lastname, U.email, U.Role FROM dim_users U WHERE U.course_id=%d AND U.lms_id NOT IN (SELECT DISTINCT F.user_id FROM fact_coursevisits F JOIN dim_users U ON F.user_id=U.lms_id WHERE F.page_id=%d AND F.course_id=%d)" %(course_id, content_id, course_id)
else:
sql = "SELECT U.firstname, U.lastname, U.email, U.Role FROM dim_users U WHERE U.course_id=%d AND U.lms_id NOT IN (SELECT DISTINCT F.user_id FROM fact_coursevisits F JOIN dim_users U ON F.user_id=U.lms_id WHERE F.page_id=%d AND F.course_id=%d AND F.section_order=%d)" %(course_id, content_id, course_id, section_order)
else:
if (section_order==0):
sql = "SELECT U.firstname, U.lastname, U.email, U.Role FROM dim_users U WHERE U.course_id=%d AND U.lms_id NOT IN (SELECT DISTINCT F.user_id FROM fact_coursevisits F JOIN dim_users U ON F.user_id=U.lms_id WHERE F.page_id=%d AND F.course_id=%d AND F.unixtimestamp BETWEEN %d AND %d)" %(course_id, content_id, course_id, unixstart, unixend)
else:
sql = "SELECT U.firstname, U.lastname, U.email, U.Role FROM dim_users U WHERE U.course_id=%d AND U.lms_id NOT IN (SELECT DISTINCT F.user_id FROM fact_coursevisits F JOIN dim_users U ON F.user_id=U.lms_id WHERE F.page_id=%d AND F.course_id=%d AND F.section_order=%d AND F.unixtimestamp BETWEEN %d AND %d)" %(course_id, content_id, course_id, section_order, unixstart, unixend)
row_count = cursor.execute(sql)
result = cursor.fetchall()
table = ""
for row in result:
table = table + '<tr><td class="center">%s</td><td class="center">%s</td><td class="center">%s</td><td class="center">%s</td></tr>' %(row[0], row[1], row[2], row[3])
return table
def get_contentpageviews_dataset(content_id, course_id, weeks, section_order, course_type):
communication_types = None
assessment_types = None
if course_type == "Moodle":
communication_types = ['forum']
assessment_types = ['quiz', 'assign']
elif course_type == "MoodleMacquarie":
communication_types = ['forum_discussions', 'oublog', 'forum', 'oublog_posts', 'forum_posts', 'dialogue', 'dialogue_conversations']
assessment_types = ['quiz','quiz_attempts','grade_grades','turnitintool', 'assign']
elif course_type == "Blackboard":
communication_types = ['resource/x-bb-discussionboard', 'course/x-bb-collabsession', 'resource/x-bb-discussionfolder']
assessment_types = ['assessment/x-bb-qti-test', 'course/x-bb-courseassessment', 'resource/x-turnitin-assignment']
excluse_contentype_list = communication_types + assessment_types
excluse_contentype_str = ','.join("'{0}'".format(x) for x in excluse_contentype_list)
cursor = connections['olap'].cursor()
sql = "SELECT content_type FROM dim_pages WHERE content_id=%d AND course_id=%s;" % (content_id, course_id)
result = cursor.execute(sql);
content_type = ""
row = cursor.fetchone()
if row[0] is not None:
content_type = row[0]
sql_clause = ""
content_type_str = ""
if content_type in communication_types:
sql_clause = "IN"
content_type_str = ','.join("'{0}'".format(x) for x in communication_types)
elif content_type in assessment_types:
sql_clause = "IN"
content_type_str = ','.join("'{0}'".format(x) for x in assessment_types)
else:
sql_clause = "NOT IN"
content_type_str = excluse_contentype_str
sql = ""
if (section_order==0):
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day,SUM(F.pageview) AS Pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE D.DATE_week IN (%s) AND F.course_id=%d AND F.page_id='%s' AND F.module %s (%s) GROUP BY D.id ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks, course_id, content_id, sql_clause, content_type_str)
else:
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day,SUM(F.pageview) AS Pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE D.DATE_week IN (%s) AND F.course_id=%d AND F.page_id='%s' AND F.section_order=%d AND F.module %s (%s) GROUP BY D.id ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks, course_id, content_id, section_order, sql_clause, content_type_str)
row_count = cursor.execute(sql)
result = cursor.fetchall()
pagepageviews_dict = {}
dataset_list = []
for row in result:
pagepageviews_dict[row[0]] = row[4]
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day FROM dim_dates D WHERE D.DATE_week IN (%s) ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] in pagepageviews_dict:
pageviews = pagepageviews_dict[row[0]]
else:
pageviews = 0
datapoint = "[Date.UTC(%s,%s,%s),%s]" % (row[1],str(int(row[2])-1),row[3],pageviews)
dataset_list.append(datapoint)
dataset = ','.join(map(str, dataset_list))
return dataset
def get_userpageviews_dataset(user_id, course_id, weeks, course_type):
communication_types = None
assessment_types = None
if course_type == "Moodle":
communication_types = ['forum']
assessment_types = ['quiz', 'assign']
elif course_type == "MoodleMacquarie":
communication_types = ['forum_discussions', 'oublog', 'forum', 'oublog_posts', 'forum_posts', 'dialogue', 'dialogue_conversations']
assessment_types = ['quiz','quiz_attempts','grade_grades','turnitintool', 'assign']
elif course_type == "Blackboard":
communication_types = ['resource/x-bb-discussionboard', 'course/x-bb-collabsession', 'resource/x-bb-discussionfolder']
assessment_types = ['assessment/x-bb-qti-test', 'course/x-bb-courseassessment', 'resource/x-turnitin-assignment']
excluse_contentype_list = communication_types + assessment_types
excluse_contentype_str = ','.join("'{0}'".format(x) for x in excluse_contentype_list)
cursor = connections['olap'].cursor()
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day,SUM(F.pageview) AS Pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE D.DATE_week IN (%s) AND F.course_id=%d AND F.user_pk='%s' AND F.module NOT IN (%s) GROUP BY D.id ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks, course_id, user_id, excluse_contentype_str)
row_count = cursor.execute(sql)
result = cursor.fetchall()
userpageviews_dict = {}
dataset_list = []
for row in result:
userpageviews_dict[row[0]] = row[4]
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day FROM dim_dates D WHERE D.DATE_week IN (%s) ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] in userpageviews_dict:
pageviews = userpageviews_dict[row[0]]
else:
pageviews = 0
datapoint = "[Date.UTC(%s,%s,%s),%s]" % (row[1],str(int(row[2])-1),row[3],pageviews)
dataset_list.append(datapoint)
dataset = ','.join(map(str, dataset_list))
return dataset
def get_usercommunicationviews_dataset(user_id, course_id, weeks, course_type):
communication_types = None
assessment_types = None
if course_type == "Moodle":
communication_types = ['forum']
assessment_types = ['quiz', 'assign']
elif course_type == "MoodleMacquarie":
communication_types = ['forum_discussions', 'oublog', 'forum', 'oublog_posts', 'forum_posts', 'dialogue', 'dialogue_conversations']
assessment_types = ['quiz','quiz_attempts','grade_grades','turnitintool', 'assign']
elif course_type == "Blackboard":
communication_types = ['resource/x-bb-discussionboard', 'course/x-bb-collabsession', 'resource/x-bb-discussionfolder']
assessment_types = ['assessment/x-bb-qti-test', 'course/x-bb-courseassessment', 'resource/x-turnitin-assignment']
assessment_types_str = ','.join("'{0}'".format(x) for x in assessment_types)
communication_types_str = ','.join("'{0}'".format(x) for x in communication_types)
cursor = connections['olap'].cursor()
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day,SUM(F.pageview) AS Pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE D.DATE_week IN (%s) AND F.course_id=%d AND F.user_pk='%s' AND F.module IN (%s) GROUP BY D.id ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks, course_id, user_id, communication_types_str)
row_count = cursor.execute(sql)
result = cursor.fetchall()
userpageviews_dict = {}
dataset_list = []
for row in result:
userpageviews_dict[row[0]] = row[4]
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day FROM dim_dates D WHERE D.DATE_week IN (%s) ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] in userpageviews_dict:
pageviews = userpageviews_dict[row[0]]
else:
pageviews = 0
datapoint = "[Date.UTC(%s,%s,%s),%s]" % (row[1],str(int(row[2])-1),row[3],pageviews)
dataset_list.append(datapoint)
dataset = ','.join(map(str, dataset_list))
return dataset
def get_userassessmentviews_dataset(user_id, course_id, weeks, course_type):
communication_types = None
assessment_types = None
if course_type == "Moodle":
communication_types = ['forum']
assessment_types = ['quiz', 'assign']
elif course_type == "MoodleMacquarie":
communication_types = ['forum_discussions', 'oublog', 'forum', 'oublog_posts', 'forum_posts', 'dialogue', 'dialogue_conversations']
assessment_types = ['quiz','quiz_attempts','grade_grades','turnitintool', 'assign']
elif course_type == "Blackboard":
communication_types = ['resource/x-bb-discussionboard', 'course/x-bb-collabsession', 'resource/x-bb-discussionfolder']
assessment_types = ['assessment/x-bb-qti-test', 'course/x-bb-courseassessment', 'resource/x-turnitin-assignment']
assessment_types_str = ','.join("'{0}'".format(x) for x in assessment_types)
communication_types_str = ','.join("'{0}'".format(x) for x in communication_types)
cursor = connections['olap'].cursor()
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day,SUM(F.pageview) AS Pageviews FROM dim_dates D LEFT JOIN fact_coursevisits F ON D.Id = F.Date_Id WHERE D.DATE_week IN (%s) AND F.course_id=%d AND F.user_pk='%s' AND F.module IN (%s) GROUP BY D.id ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks, course_id, user_id, assessment_types_str)
row_count = cursor.execute(sql)
result = cursor.fetchall()
userpageviews_dict = {}
dataset_list = []
for row in result:
userpageviews_dict[row[0]] = row[4]
sql = "SELECT D.id, D.Date_Year, D.Date_Month, D.Date_Day FROM dim_dates D WHERE D.DATE_week IN (%s) ORDER BY D.date_year, D.date_month, D.date_day;" %(weeks)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] in userpageviews_dict:
pageviews = userpageviews_dict[row[0]]
else:
pageviews = 0
datapoint = "[Date.UTC(%s,%s,%s),%s]" % (row[1],str(int(row[2])-1),row[3],pageviews)
dataset_list.append(datapoint)
dataset = ','.join(map(str, dataset_list))
return dataset
def get_courseweeks(course_id):
"""
Returns a list of course weeks
Todo: Calculate from course table start and end date
Args:
course_id: course id
Returns:
list of course week numbers
"""
return [31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]
def get_indivuserweekcount_for_specificallcoursepage(week, course_id, module, action, user_id):
cursor = connections['olap'].cursor()
usercounts = 0
sql = "SELECT COUNT(F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND D.date_week=%d AND F.module='%s' AND F.action='%s AND F.user_id=%d';" % (course_id, week, module, action, user_id)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
usercounts = int(row[0])
return int(usercounts)
def get_indivuser_weekcount(week,pageid, course_id, content_type, order_no, user_id):
cursor = connections['olap'].cursor()
usercounts = 0
pageid2 = str(pageid)
pageid2 = int(pageid2[0:(len(pageid2)-2)])
sql = ""
if content_type=="section":
sql = "SELECT COUNT(F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.section_order=%d AND F.user_id=%d AND D.date_week=%d;" % (course_id, int(order_no), user_id, week)
else:
sql = "SELECT COUNT(F.user_pk) AS usercount FROM fact_coursevisits F INNER JOIN dim_dates D ON F.Date_Id = D.Id WHERE F.course_id=%d AND F.page_id=%d AND F.user_id=%d AND D.date_week=%d;" % (course_id, int(pageid2), user_id, week)
row_count = cursor.execute(sql)
result = cursor.fetchall()
for row in result:
if row[0] is not None:
usercounts = int(row[0])
return int(usercounts)
| 48.950745
| 409
| 0.662751
| 6,226
| 42,734
| 4.372149
| 0.064247
| 0.045259
| 0.012343
| 0.010029
| 0.809265
| 0.794423
| 0.78568
| 0.773447
| 0.753169
| 0.727637
| 0
| 0.008642
| 0.203889
| 42,734
| 872
| 410
| 49.006881
| 0.791482
| 0.012075
| 0
| 0.676985
| 0
| 0.0821
| 0.3258
| 0.062723
| 0.001346
| 0
| 0
| 0.00344
| 0
| 0
| null | null | 0.002692
| 0.012113
| null | null | 0.004038
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
af838ba79021336d95ebcdf3796b45bbdae8a663
| 49,478
|
py
|
Python
|
utils/tests/test_outline_complete.py
|
rafsaf/Plemiona_Planer
|
1a0e2da0c4b18f1abd1df876f688c6442cba17ce
|
[
"Apache-2.0"
] | 2
|
2020-11-15T12:50:07.000Z
|
2020-11-17T21:54:54.000Z
|
utils/tests/test_outline_complete.py
|
rafsaf/Plemiona_Planer
|
1a0e2da0c4b18f1abd1df876f688c6442cba17ce
|
[
"Apache-2.0"
] | 21
|
2021-11-01T14:04:19.000Z
|
2022-03-25T06:31:03.000Z
|
utils/tests/test_outline_complete.py
|
rafsaf/Tribal-Wars-Planer
|
083af9b1efe814be3abe975b9ac8faccc00ebb09
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2021 Rafał Safin (rafsaf). All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
import itertools
from django.test import TestCase
from django.utils.translation import activate
from base.models import Outline
from base.models import TargetVertex as Target
from base.models import WeightMaximum, WeightModel
from base.models.player import Player
from base.models.result import Result
from base.tests.test_utils.initial_setup import create_initial_data_write_outline
from utils.avaiable_troops import get_legal_coords_outline
from utils.outline_complete import complete_outline_write
from utils.outline_initial import MakeOutline
# Please note that only extended syntax for the targets should be used.
# The tests should cover many diffrent outline ideas and available modes.
# Every method below is a next outline.
# Outline front dist equals to 3.
# The tests should not! include the "meat" inside.
# The only important are created (or not) weights models and state updates!
# TEXT = (
# "500|500,0,0,10000,0,0,0,0,100,2,0,0,\r\n" - front
# "500|501,0,0,190,0,0,0,0,100,0,0,0,\r\n" - front
# "500|502,0,0,19500,0,0,0,0,100,0,0,0,\r\n" - front
# "500|503,0,0,20100,0,0,0,0,100,0,0,0,\r\n" - back
# "500|504,0,0,20000,0,0,0,0,100,4,0,0,\r\n" - back
# "500|505,0,0,20000,0,0,0,0,100,2,0,0," - back
# )
class TestOutlineCreateTargets(TestCase):
def setUp(self):
activate("pl")
create_initial_data_write_outline()
self.outline: Outline = Outline.objects.get(id=1)
# weights max create
make_outline = MakeOutline(self.outline)
make_outline()
get_legal_coords_outline(self.outline)
self.salt = "test_outline_complete"
def target(self) -> Target:
target = Target.objects.create(
outline=self.outline, target="500|499", player="player1"
)
return target
def weights(self) -> list[WeightModel]:
return list(WeightModel.objects.all().select_related("state").order_by("order"))
def test_indexes_are_correct_in_every_distance_real_target(self):
self.outline.initial_outline_min_off = 100
self.outline.save()
target = self.target()
target.mode_division = "separatly"
target.exact_off = [1, 1, 1, 1]
target.exact_noble = [1, 1, 1, 1]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
# there should be correct indexes
self.assertEqual(created[0].order, 0)
self.assertEqual(created[1].order, 10000)
self.assertEqual(created[2].order, 20000)
self.assertEqual(created[3].order, 30000)
self.assertEqual(created[4].order, 80000)
self.assertEqual(created[5].order, 90000)
self.assertEqual(created[6].order, 100000)
self.assertEqual(created[7].order, 110000)
def test_indexes_are_correct_in_every_distance_fake_target(self):
target = self.target()
target.fake = True
target.exact_off = [1, 1, 1, 1]
target.exact_noble = [1, 1, 1, 1]
target.save()
# we don't care about modes here
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 8)
# there should be correct indexes
self.assertEqual(created[0].order, 0)
self.assertEqual(created[1].order, 10000)
self.assertEqual(created[2].order, 20000)
self.assertEqual(created[3].order, 30000)
self.assertEqual(created[4].order, 80000)
self.assertEqual(created[5].order, 90000)
self.assertEqual(created[6].order, 100000)
self.assertEqual(created[7].order, 110000)
def test_indexes_are_correct_in_every_distance_ruin_target(self):
self.outline.initial_outline_min_off = 500
self.outline.initial_outline_catapult_default = 50
self.outline.save()
target = self.target()
target.ruin = True
target.exact_off = [1, 1, 1, 1]
target.exact_noble = [1, 1, 1, 1]
target.save()
# we don't care about modes here
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 8)
# there should be correct indexes
self.assertEqual(created[0].order, 0)
self.assertEqual(created[1].order, 10000)
self.assertEqual(created[2].order, 20000)
self.assertEqual(created[3].order, 30000)
self.assertEqual(created[4].order, 40000)
self.assertEqual(created[5].order, 50000)
self.assertEqual(created[6].order, 60000)
self.assertEqual(created[7].order, 70000)
def test_real_type_outline_guide_is_many_and_division_is_divide_split(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "split"
self.outline.save()
target = self.target()
target.mode_division = "divide"
target.mode_guide = "many"
target.exact_off = [0, 0, 3, 0]
target.exact_noble = [2, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 5)
self.assertEqual(created[0].order, 10000)
self.assertEqual(created[0].start, "500|505")
self.assertEqual(created[0].off, 20800)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 6)
self.assertEqual(created[0].state.off_left, 0)
self.assertEqual(created[0].state.off_state, 20800)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 2)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 10001)
self.assertEqual(created[1].start, "500|504")
self.assertEqual(created[1].off, 20800)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 5)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 20800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 4)
self.assertEqual(created[1].state.nobleman_state, 0)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 10002)
self.assertEqual(created[2].start, "500|503")
self.assertEqual(created[2].off, 20900)
self.assertEqual(created[2].catapult, 100)
self.assertEqual(created[2].nobleman, 0)
self.assertEqual(created[2].distance, 4)
self.assertEqual(created[2].state.off_left, 0)
self.assertEqual(created[2].state.off_state, 20900)
self.assertEqual(created[2].state.catapult_left, 0)
self.assertEqual(created[2].state.catapult_state, 100)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 0)
self.assertEqual(created[2].state.fake_limit, 4)
self.assertEqual(created[3].order, 110000)
self.assertEqual(created[3].off, 5400)
self.assertEqual(created[3].start, "500|500")
self.assertEqual(created[3].catapult, 50)
self.assertEqual(created[3].nobleman, 1)
self.assertEqual(created[3].distance, 1)
self.assertEqual(created[3].state.off_left, 0)
self.assertEqual(created[3].state.off_state, 10800)
self.assertEqual(created[3].state.catapult_left, 0)
self.assertEqual(created[3].state.catapult_state, 100)
self.assertEqual(created[3].state.nobleman_left, 0)
self.assertEqual(created[3].state.nobleman_state, 2)
self.assertEqual(created[3].state.fake_limit, 4)
self.assertEqual(created[4].order, 110001)
self.assertEqual(created[4].start, "500|500")
self.assertEqual(created[4].off, 5400)
self.assertEqual(created[4].catapult, 50)
self.assertEqual(created[4].nobleman, 1)
self.assertEqual(created[4].distance, 1)
self.assertEqual(created[4].state.off_left, 0)
self.assertEqual(created[4].state.off_state, 10800)
self.assertEqual(created[4].state.catapult_left, 0)
self.assertEqual(created[4].state.catapult_state, 100)
self.assertEqual(created[4].state.nobleman_left, 0)
self.assertEqual(created[4].state.nobleman_state, 2)
self.assertEqual(created[4].state.fake_limit, 4)
def test_real_type_outline_guide_is_many_and_division_is_divide_together(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "together"
self.outline.save()
target = self.target()
target.mode_division = "divide"
target.mode_guide = "many"
target.exact_off = [0, 0, 3, 0]
target.exact_noble = [2, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 4)
self.assertEqual(created[0].order, 10000)
self.assertEqual(created[0].start, "500|505")
self.assertEqual(created[0].off, 20800)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 6)
self.assertEqual(created[0].state.off_left, 0)
self.assertEqual(created[0].state.off_state, 20800)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 2)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 10001)
self.assertEqual(created[1].start, "500|504")
self.assertEqual(created[1].off, 20800)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 5)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 20800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 4)
self.assertEqual(created[1].state.nobleman_state, 0)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 10002)
self.assertEqual(created[2].start, "500|503")
self.assertEqual(created[2].off, 20900)
self.assertEqual(created[2].catapult, 100)
self.assertEqual(created[2].nobleman, 0)
self.assertEqual(created[2].distance, 4)
self.assertEqual(created[2].state.off_left, 0)
self.assertEqual(created[2].state.off_state, 20900)
self.assertEqual(created[2].state.catapult_left, 0)
self.assertEqual(created[2].state.catapult_state, 100)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 0)
self.assertEqual(created[2].state.fake_limit, 4)
self.assertEqual(created[3].order, 110000)
self.assertEqual(created[3].off, 10800)
self.assertEqual(created[3].start, "500|500")
self.assertEqual(created[3].catapult, 100)
self.assertEqual(created[3].nobleman, 2)
self.assertEqual(created[3].distance, 1)
self.assertEqual(created[3].state.off_left, 0)
self.assertEqual(created[3].state.off_state, 10800)
self.assertEqual(created[3].state.catapult_left, 0)
self.assertEqual(created[3].state.catapult_state, 100)
self.assertEqual(created[3].state.nobleman_left, 0)
self.assertEqual(created[3].state.nobleman_state, 2)
self.assertEqual(created[3].state.fake_limit, 4)
def test_real_type_outline_guide_is_one_and_division_is_not_divide_split(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "split"
self.outline.save()
target = self.target()
target.mode_division = "not_divide"
target.mode_guide = "one"
target.exact_off = [0, 1, 0, 0]
target.exact_noble = [0, 0, 6, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 7)
self.assertEqual(created[0].order, 20000)
self.assertEqual(created[0].start, "500|503")
self.assertEqual(created[0].off, 20900)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 4)
self.assertEqual(created[0].state.off_left, 0)
self.assertEqual(created[0].state.off_state, 20900)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 0)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 90000)
self.assertEqual(created[1].start, "500|505")
self.assertEqual(created[1].off, 20600)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 1)
self.assertEqual(created[1].distance, 6)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 20800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 0)
self.assertEqual(created[1].state.nobleman_state, 2)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 90001)
self.assertEqual(created[2].start, "500|505")
self.assertEqual(created[2].off, 200)
self.assertEqual(created[2].catapult, 0)
self.assertEqual(created[2].nobleman, 1)
self.assertEqual(created[2].distance, 6)
self.assertEqual(created[2].state.off_left, 0)
self.assertEqual(created[2].state.off_state, 20800)
self.assertEqual(created[2].state.catapult_left, 0)
self.assertEqual(created[2].state.catapult_state, 100)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 2)
self.assertEqual(created[2].state.fake_limit, 4)
self.assertEqual(created[3].order, 90015)
self.assertEqual(created[3].start, "500|504")
self.assertEqual(created[3].off, 20200)
self.assertEqual(created[3].catapult, 100)
self.assertEqual(created[3].nobleman, 1)
self.assertEqual(created[3].distance, 5)
self.assertEqual(created[3].state.off_left, 0)
self.assertEqual(created[3].state.off_state, 20800)
self.assertEqual(created[3].state.catapult_left, 0)
self.assertEqual(created[3].state.catapult_state, 100)
self.assertEqual(created[3].state.nobleman_left, 0)
self.assertEqual(created[3].state.nobleman_state, 4)
self.assertEqual(created[3].state.fake_limit, 4)
self.assertEqual(created[4].order, 90016)
self.assertEqual(created[4].start, "500|504")
self.assertEqual(created[4].off, 200)
self.assertEqual(created[4].catapult, 0)
self.assertEqual(created[4].nobleman, 1)
self.assertEqual(created[4].distance, 5)
self.assertEqual(created[4].state.off_left, 0)
self.assertEqual(created[4].state.off_state, 20800)
self.assertEqual(created[4].state.catapult_left, 0)
self.assertEqual(created[4].state.catapult_state, 100)
self.assertEqual(created[4].state.nobleman_left, 0)
self.assertEqual(created[4].state.nobleman_state, 4)
self.assertEqual(created[4].state.fake_limit, 4)
self.assertEqual(created[5].order, 90017)
self.assertEqual(created[5].start, "500|504")
self.assertEqual(created[5].off, 200)
self.assertEqual(created[5].catapult, 0)
self.assertEqual(created[5].nobleman, 1)
self.assertEqual(created[5].distance, 5)
self.assertEqual(created[5].state.off_left, 0)
self.assertEqual(created[5].state.off_state, 20800)
self.assertEqual(created[5].state.catapult_left, 0)
self.assertEqual(created[5].state.catapult_state, 100)
self.assertEqual(created[5].state.nobleman_left, 0)
self.assertEqual(created[5].state.nobleman_state, 4)
self.assertEqual(created[5].state.fake_limit, 4)
self.assertEqual(created[6].order, 90018)
self.assertEqual(created[6].start, "500|504")
self.assertEqual(created[6].off, 200)
self.assertEqual(created[6].catapult, 0)
self.assertEqual(created[6].nobleman, 1)
self.assertEqual(created[6].distance, 5)
self.assertEqual(created[6].state.off_left, 0)
self.assertEqual(created[6].state.off_state, 20800)
self.assertEqual(created[6].state.catapult_left, 0)
self.assertEqual(created[6].state.catapult_state, 100)
self.assertEqual(created[6].state.nobleman_left, 0)
self.assertEqual(created[6].state.nobleman_state, 4)
self.assertEqual(created[6].state.fake_limit, 4)
def test_real_type_outline_guide_is_one_and_division_is_not_divide_together(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "together"
self.outline.save()
target = self.target()
target.mode_division = "not_divide"
target.mode_guide = "one"
target.exact_off = [0, 1, 0, 0]
target.exact_noble = [0, 0, 6, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 3)
self.assertEqual(created[0].order, 20000)
self.assertEqual(created[0].start, "500|503")
self.assertEqual(created[0].off, 20900)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 4)
self.assertEqual(created[0].state.off_left, 0)
self.assertEqual(created[0].state.off_state, 20900)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 0)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 90000)
self.assertEqual(created[1].start, "500|505")
self.assertEqual(created[1].off, 20800)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 2)
self.assertEqual(created[1].distance, 6)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 20800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 0)
self.assertEqual(created[1].state.nobleman_state, 2)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 90001)
self.assertEqual(created[2].start, "500|504")
self.assertEqual(created[2].off, 20800)
self.assertEqual(created[2].catapult, 100)
self.assertEqual(created[2].nobleman, 4)
self.assertEqual(created[2].distance, 5)
self.assertEqual(created[2].state.off_left, 0)
self.assertEqual(created[2].state.off_state, 20800)
self.assertEqual(created[2].state.catapult_left, 0)
self.assertEqual(created[2].state.catapult_state, 100)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 4)
self.assertEqual(created[2].state.fake_limit, 4)
def test_real_type_outline_guide_is_single_and_division_is_separatly_split(self):
self.outline.initial_outline_min_off = 1000
self.outline.mode_split = "split"
self.outline.save()
target = self.target()
target.mode_division = "separatly"
target.mode_guide = "single"
target.exact_off = [2, 0, 0, 0]
target.exact_noble = [3, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 5)
self.assertEqual(created[0].order, 30000)
self.assertEqual(created[0].start, "500|502")
self.assertEqual(created[0].off, 20300)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 3)
self.assertEqual(created[0].state.off_left, 0)
self.assertEqual(created[0].state.off_state, 20300)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 0)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 30001)
self.assertEqual(created[1].start, "500|500")
self.assertEqual(created[1].off, 10600)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 1)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 10800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 1)
self.assertEqual(created[1].state.nobleman_state, 1)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[1].order, 30001)
self.assertEqual(created[1].start, "500|500")
self.assertEqual(created[1].off, 10600)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 1)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 10800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 1)
self.assertEqual(created[1].state.nobleman_state, 1)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 110000)
self.assertEqual(created[2].start, "500|505")
self.assertEqual(created[2].off, 200)
self.assertEqual(created[2].catapult, 0)
self.assertEqual(created[2].nobleman, 1)
self.assertEqual(created[2].distance, 6)
self.assertEqual(created[2].state.off_left, 20600)
self.assertEqual(created[2].state.off_state, 200)
self.assertEqual(created[2].state.catapult_left, 100)
self.assertEqual(created[2].state.catapult_state, 0)
self.assertEqual(created[2].state.nobleman_left, 1)
self.assertEqual(created[2].state.nobleman_state, 1)
self.assertEqual(created[2].state.fake_limit, 4)
self.assertEqual(created[3].order, 110015)
self.assertEqual(created[3].start, "500|504")
self.assertEqual(created[3].off, 200)
self.assertEqual(created[3].catapult, 0)
self.assertEqual(created[3].nobleman, 1)
self.assertEqual(created[3].distance, 5)
self.assertEqual(created[3].state.off_left, 20600)
self.assertEqual(created[3].state.off_state, 200)
self.assertEqual(created[3].state.catapult_left, 100)
self.assertEqual(created[3].state.catapult_state, 0)
self.assertEqual(created[3].state.nobleman_left, 3)
self.assertEqual(created[3].state.nobleman_state, 1)
self.assertEqual(created[3].state.fake_limit, 4)
self.assertEqual(created[4].order, 110030)
self.assertEqual(created[4].start, "500|500")
self.assertEqual(created[4].off, 200)
self.assertEqual(created[4].catapult, 0)
self.assertEqual(created[4].nobleman, 1)
self.assertEqual(created[4].distance, 1)
self.assertEqual(created[4].state.off_left, 0)
self.assertEqual(created[4].state.off_state, 10800)
self.assertEqual(created[4].state.catapult_left, 0)
self.assertEqual(created[4].state.catapult_state, 100)
self.assertEqual(created[4].state.nobleman_left, 1)
self.assertEqual(created[4].state.nobleman_state, 1)
self.assertEqual(created[4].state.fake_limit, 4)
def test_real_type_outline_guide_is_single_and_division_is_separatly_together(self):
self.outline.initial_outline_min_off = 1000
self.outline.mode_split = "together"
self.outline.save()
target = self.target()
target.mode_division = "separatly"
target.mode_guide = "single"
target.exact_off = [2, 0, 0, 0]
target.exact_noble = [3, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 5)
self.assertEqual(created[0].order, 30000)
self.assertEqual(created[0].start, "500|502")
self.assertEqual(created[0].off, 20300)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 3)
self.assertEqual(created[0].state.off_left, 0)
self.assertEqual(created[0].state.off_state, 20300)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 0)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 30001)
self.assertEqual(created[1].start, "500|500")
self.assertEqual(created[1].off, 10600)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 1)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 10800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 1)
self.assertEqual(created[1].state.nobleman_state, 1)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[1].order, 30001)
self.assertEqual(created[1].start, "500|500")
self.assertEqual(created[1].off, 10600)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 1)
self.assertEqual(created[1].state.off_left, 0)
self.assertEqual(created[1].state.off_state, 10800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 1)
self.assertEqual(created[1].state.nobleman_state, 1)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 110000)
self.assertEqual(created[2].start, "500|505")
self.assertEqual(created[2].off, 200)
self.assertEqual(created[2].catapult, 0)
self.assertEqual(created[2].nobleman, 1)
self.assertEqual(created[2].distance, 6)
self.assertEqual(created[2].state.off_left, 20600)
self.assertEqual(created[2].state.off_state, 200)
self.assertEqual(created[2].state.catapult_left, 100)
self.assertEqual(created[2].state.catapult_state, 0)
self.assertEqual(created[2].state.nobleman_left, 1)
self.assertEqual(created[2].state.nobleman_state, 1)
self.assertEqual(created[2].state.fake_limit, 4)
self.assertEqual(created[3].order, 110001)
self.assertEqual(created[3].start, "500|504")
self.assertEqual(created[3].off, 200)
self.assertEqual(created[3].catapult, 0)
self.assertEqual(created[3].nobleman, 1)
self.assertEqual(created[3].distance, 5)
self.assertEqual(created[3].state.off_left, 20600)
self.assertEqual(created[3].state.off_state, 200)
self.assertEqual(created[3].state.catapult_left, 100)
self.assertEqual(created[3].state.catapult_state, 0)
self.assertEqual(created[3].state.nobleman_left, 3)
self.assertEqual(created[3].state.nobleman_state, 1)
self.assertEqual(created[3].state.fake_limit, 4)
self.assertEqual(created[4].order, 110002)
self.assertEqual(created[4].start, "500|500")
self.assertEqual(created[4].off, 200)
self.assertEqual(created[4].catapult, 0)
self.assertEqual(created[4].nobleman, 1)
self.assertEqual(created[4].distance, 1)
self.assertEqual(created[4].state.off_left, 0)
self.assertEqual(created[4].state.off_state, 10800)
self.assertEqual(created[4].state.catapult_left, 0)
self.assertEqual(created[4].state.catapult_state, 100)
self.assertEqual(created[4].state.nobleman_left, 1)
self.assertEqual(created[4].state.nobleman_state, 1)
self.assertEqual(created[4].state.fake_limit, 4)
def test_fake_type_outline_guide_is_many_and_division_is_divide_split(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "split"
self.outline.save()
target = self.target()
target.fake = True
target.mode_division = "divide"
target.mode_guide = "many"
target.exact_off = [0, 0, 3, 0]
target.exact_noble = [2, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 5)
self.assertEqual(created[0].order, 10000)
self.assertEqual(created[0].start, "500|505")
self.assertEqual(created[0].off, 100)
self.assertEqual(created[0].catapult, 0)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 6)
self.assertEqual(created[0].state.off_left, 20700)
self.assertEqual(created[0].state.off_state, 100)
self.assertEqual(created[0].state.catapult_left, 100)
self.assertEqual(created[0].state.catapult_state, 0)
self.assertEqual(created[0].state.nobleman_left, 2)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 3)
self.assertEqual(created[1].order, 10001)
self.assertEqual(created[1].start, "500|504")
self.assertEqual(created[1].off, 100)
self.assertEqual(created[1].catapult, 0)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 5)
self.assertEqual(created[1].state.off_left, 20700)
self.assertEqual(created[1].state.off_state, 100)
self.assertEqual(created[1].state.catapult_left, 100)
self.assertEqual(created[1].state.catapult_state, 0)
self.assertEqual(created[1].state.nobleman_left, 4)
self.assertEqual(created[1].state.nobleman_state, 0)
self.assertEqual(created[1].state.fake_limit, 3)
self.assertEqual(created[2].order, 10002)
self.assertEqual(created[2].start, "500|503")
self.assertEqual(created[2].off, 100)
self.assertEqual(created[2].catapult, 0)
self.assertEqual(created[2].nobleman, 0)
self.assertEqual(created[2].distance, 4)
self.assertEqual(created[2].state.off_left, 20800)
self.assertEqual(created[2].state.off_state, 100)
self.assertEqual(created[2].state.catapult_left, 100)
self.assertEqual(created[2].state.catapult_state, 0)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 0)
self.assertEqual(created[2].state.fake_limit, 3)
self.assertEqual(created[3].order, 110000)
self.assertEqual(created[3].off, 0)
self.assertEqual(created[3].start, "500|500")
self.assertEqual(created[3].catapult, 0)
self.assertEqual(created[3].nobleman, 1)
self.assertEqual(created[3].distance, 1)
self.assertEqual(created[3].state.off_left, 10800)
self.assertEqual(created[3].state.off_state, 0)
self.assertEqual(created[3].state.catapult_left, 100)
self.assertEqual(created[3].state.catapult_state, 0)
self.assertEqual(created[3].state.nobleman_left, 0)
self.assertEqual(created[3].state.nobleman_state, 2)
self.assertEqual(created[3].state.fake_limit, 4)
self.assertEqual(created[4].order, 110001)
self.assertEqual(created[4].start, "500|500")
self.assertEqual(created[4].off, 0)
self.assertEqual(created[4].catapult, 0)
self.assertEqual(created[4].nobleman, 1)
self.assertEqual(created[4].distance, 1)
self.assertEqual(created[4].state.off_left, 10800)
self.assertEqual(created[4].state.off_state, 0)
self.assertEqual(created[4].state.catapult_left, 100)
self.assertEqual(created[4].state.catapult_state, 0)
self.assertEqual(created[4].state.nobleman_left, 0)
self.assertEqual(created[4].state.nobleman_state, 2)
self.assertEqual(created[4].state.fake_limit, 4)
def test_fake_type_outline_guide_is_many_and_division_is_divide_together(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "together"
self.outline.save()
target = self.target()
target.fake = True
target.mode_division = "divide"
target.mode_guide = "many"
target.exact_off = [0, 0, 3, 0]
target.exact_noble = [2, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 4)
self.assertEqual(created[0].order, 10000)
self.assertEqual(created[0].start, "500|505")
self.assertEqual(created[0].off, 100)
self.assertEqual(created[0].catapult, 0)
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 6)
self.assertEqual(created[0].state.off_left, 20700)
self.assertEqual(created[0].state.off_state, 100)
self.assertEqual(created[0].state.catapult_left, 100)
self.assertEqual(created[0].state.catapult_state, 0)
self.assertEqual(created[0].state.nobleman_left, 2)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 3)
self.assertEqual(created[1].order, 10001)
self.assertEqual(created[1].start, "500|504")
self.assertEqual(created[1].off, 100)
self.assertEqual(created[1].catapult, 00)
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 5)
self.assertEqual(created[1].state.off_left, 20700)
self.assertEqual(created[1].state.off_state, 100)
self.assertEqual(created[1].state.catapult_left, 100)
self.assertEqual(created[1].state.catapult_state, 0)
self.assertEqual(created[1].state.nobleman_left, 4)
self.assertEqual(created[1].state.nobleman_state, 0)
self.assertEqual(created[1].state.fake_limit, 3)
self.assertEqual(created[2].order, 10002)
self.assertEqual(created[2].start, "500|503")
self.assertEqual(created[2].off, 100)
self.assertEqual(created[2].catapult, 0)
self.assertEqual(created[2].nobleman, 0)
self.assertEqual(created[2].distance, 4)
self.assertEqual(created[2].state.off_left, 20800)
self.assertEqual(created[2].state.off_state, 100)
self.assertEqual(created[2].state.catapult_left, 100)
self.assertEqual(created[2].state.catapult_state, 0)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 0)
self.assertEqual(created[2].state.fake_limit, 3)
self.assertEqual(created[3].order, 110000)
self.assertEqual(created[3].off, 0)
self.assertEqual(created[3].start, "500|500")
self.assertEqual(created[3].catapult, 0)
self.assertEqual(created[3].nobleman, 2)
self.assertEqual(created[3].distance, 1)
self.assertEqual(created[3].state.off_left, 10800)
self.assertEqual(created[3].state.off_state, 0)
self.assertEqual(created[3].state.catapult_left, 100)
self.assertEqual(created[3].state.catapult_state, 0)
self.assertEqual(created[3].state.nobleman_left, 0)
self.assertEqual(created[3].state.nobleman_state, 2)
self.assertEqual(created[3].state.fake_limit, 4)
def test_ruin_type_outline_headquarters(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "split"
self.outline.initial_outline_buildings = ["headquarters"]
self.outline.initial_outline_catapult_default = 100
self.outline.initial_outline_off_left_catapult = 0
self.outline.save()
target = self.target()
target.ruin = True
target.exact_off = [0, 0, 0, 0]
target.exact_noble = [0, 0, 3, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 3)
self.assertEqual(created[0].order, 50000)
self.assertEqual(created[0].start, "500|505")
self.assertEqual(created[0].off, 800)
self.assertEqual(created[0].catapult, 100)
self.assertEqual(created[0].building, "headquarters")
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 6)
self.assertEqual(created[0].state.off_left, 20000)
self.assertEqual(created[0].state.off_state, 800)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 100)
self.assertEqual(created[0].state.nobleman_left, 2)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 50001)
self.assertEqual(created[1].start, "500|504")
self.assertEqual(created[1].off, 800)
self.assertEqual(created[1].catapult, 100)
self.assertEqual(created[1].building, "headquarters")
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 5)
self.assertEqual(created[1].state.off_left, 20000)
self.assertEqual(created[1].state.off_state, 800)
self.assertEqual(created[1].state.catapult_left, 0)
self.assertEqual(created[1].state.catapult_state, 100)
self.assertEqual(created[1].state.nobleman_left, 4)
self.assertEqual(created[1].state.nobleman_state, 0)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 50002)
self.assertEqual(created[2].start, "500|503")
self.assertEqual(created[2].off, 400)
self.assertEqual(created[2].catapult, 50)
self.assertEqual(created[2].building, "headquarters")
self.assertEqual(created[2].nobleman, 0)
self.assertEqual(created[2].distance, 4)
self.assertEqual(created[2].state.off_left, 20500)
self.assertEqual(created[2].state.off_state, 400)
self.assertEqual(created[2].state.catapult_left, 50)
self.assertEqual(created[2].state.catapult_state, 50)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 0)
self.assertEqual(created[2].state.fake_limit, 4)
def test_ruin_type_outline_smithy(self):
self.outline.initial_outline_min_off = 500
self.outline.mode_split = "split"
self.outline.initial_outline_buildings = ["smithy", "clay_pit"]
self.outline.initial_outline_catapult_default = 200
self.outline.initial_outline_off_left_catapult = 0
self.outline.save()
target = self.target()
target.ruin = True
target.exact_off = [0, 0, 0, 0]
target.exact_noble = [0, 0, 3, 0]
target.save()
weight: WeightMaximum = WeightMaximum.objects.get(start="500|505")
weight.catapult_left = 200
weight.catapult_max = 200
weight.off_left += 800
weight.off_max += 800
weight.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
self.assertEqual(len(created), 3)
self.assertEqual(created[0].order, 50000)
self.assertEqual(created[0].start, "500|505")
self.assertEqual(created[0].off, 1600)
self.assertEqual(created[0].catapult, 200)
self.assertEqual(created[0].building, "smithy")
self.assertEqual(created[0].nobleman, 0)
self.assertEqual(created[0].distance, 6)
self.assertEqual(created[0].state.off_left, 20000)
self.assertEqual(created[0].state.off_state, 1600)
self.assertEqual(created[0].state.catapult_left, 0)
self.assertEqual(created[0].state.catapult_state, 200)
self.assertEqual(created[0].state.nobleman_left, 2)
self.assertEqual(created[0].state.nobleman_state, 0)
self.assertEqual(created[0].state.fake_limit, 4)
self.assertEqual(created[1].order, 50001)
self.assertEqual(created[1].start, "500|504")
self.assertEqual(created[1].off, 400)
self.assertEqual(created[1].catapult, 50)
self.assertEqual(created[1].building, "smithy")
self.assertEqual(created[1].nobleman, 0)
self.assertEqual(created[1].distance, 5)
self.assertEqual(created[1].state.off_left, 20400)
self.assertEqual(created[1].state.off_state, 400)
self.assertEqual(created[1].state.catapult_left, 50)
self.assertEqual(created[1].state.catapult_state, 50)
self.assertEqual(created[1].state.nobleman_left, 4)
self.assertEqual(created[1].state.nobleman_state, 0)
self.assertEqual(created[1].state.fake_limit, 4)
self.assertEqual(created[2].order, 50002)
self.assertEqual(created[2].start, "500|503")
self.assertEqual(created[2].off, 800)
self.assertEqual(created[2].catapult, 100)
self.assertEqual(created[2].building, "clay_pit")
self.assertEqual(created[2].nobleman, 0)
self.assertEqual(created[2].distance, 4)
self.assertEqual(created[2].state.off_left, 20100)
self.assertEqual(created[2].state.off_state, 800)
self.assertEqual(created[2].state.catapult_left, 0)
self.assertEqual(created[2].state.catapult_state, 100)
self.assertEqual(created[2].state.nobleman_left, 0)
self.assertEqual(created[2].state.nobleman_state, 0)
self.assertEqual(created[2].state.fake_limit, 4)
def test_real_type_outline_defuault_settings_initial_outline_max_off_used_no_targets_created(
self,
):
self.outline.initial_outline_min_off = 10000
self.outline.initial_outline_max_off = 20300
self.outline.mode_split = "together"
self.outline.save()
target = self.target()
target.mode_division = "divide"
target.mode_guide = "many"
target.exact_off = [0, 0, 5, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
assert len(created) == 0
def test_real_type_outline_defuault_settings_initial_outline_max_off_used_good_offs_taken(
self,
):
self.outline.initial_outline_min_off = 10000
self.outline.initial_outline_max_off = 20800
self.outline.mode_split = "together"
self.outline.save()
target = self.target()
target.mode_division = "divide"
target.mode_guide = "many"
target.exact_off = [10, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
assert len(created) == 4
assert created[0].order == 30000
assert created[0].start == "500|505"
assert created[0].off == 20800
assert created[1].order == 30001
assert created[1].start == "500|504"
assert created[1].off == 20800
assert created[2].order == 30002
assert created[2].start == "500|502"
assert created[2].off == 20300
assert created[3].order == 30003
assert created[3].start == "500|500"
assert created[3].off == 10800
def test_no_targets_outline_complete(self):
Target.objects.all().delete()
complete_outline_write(self.outline, salt=self.salt)
def test_all_possible_2304_combionations_of_outline_complete(self):
MODE_OFF = [mode[0] for mode in Target.MODE_OFF]
MODE_NOBLE = [mode[0] for mode in Target.MODE_NOBLE]
MODE_DIVISION = [mode[0] for mode in Target.MODE_DIVISION]
NOBLE_GUIDELINES = [mode[0] for mode in Target.NOBLE_GUIDELINES]
MODE_SPLIT = [mode[0] for mode in Outline.MODE_SPLIT]
RUINED_VILLAGES_POINTS = [mode[0] for mode in Outline.RUINED_VILLAGES_POINTS]
FAKE_MIN_OFF_CHOICES = [mode[0] for mode in Outline.FAKE_MIN_OFF_CHOICES]
NIGHT_BONUS = [True, False]
cases = itertools.product(
*[
MODE_OFF,
MODE_NOBLE,
MODE_DIVISION,
NOBLE_GUIDELINES,
MODE_SPLIT,
RUINED_VILLAGES_POINTS,
FAKE_MIN_OFF_CHOICES,
NIGHT_BONUS,
]
)
Result.objects.create(outline=self.outline)
self.outline.initial_outline_min_off = 10000
self.outline.initial_outline_max_off = 28000
self.outline.save()
target = self.target()
for test_input in cases:
target.mode_off = test_input[0]
target.mode_noble = test_input[1]
target.mode_division = test_input[2]
target.mode_guide = test_input[3]
target.required_off = 1
target.required_noble = 1
target.night_bonus = test_input[7]
target.save()
self.outline.mode_split = test_input[4]
self.outline.initial_outline_average_ruining_points = test_input[5]
self.outline.initial_outline_fake_mode = test_input[6]
self.outline.night_bonus = test_input[7]
self.outline.save()
complete_outline_write(self.outline, salt="test_outline_complete")
assert len(self.weights()) == 2
self.outline.remove_user_outline()
def test_morale_on_leads_to_skip_all_villages_for_low_morale_value(
self,
):
self.outline.initial_outline_min_off = 0
self.outline.initial_outline_max_off = 28000
self.outline.morale_on = True
self.outline.morale_on_targets_greater_than = 95
self.outline.save()
ally_player: Player = Player.objects.get(name="player0")
enemy_player: Player = Player.objects.get(name="player1")
ally_player.points = 1200
enemy_player.points = 250 # morale 93%
ally_player.save()
enemy_player.save()
# recreate weight maxs so points will not be default 0
make_outline = MakeOutline(self.outline)
make_outline()
target = self.target()
target.exact_off = [10, 0, 0, 0]
target.exact_noble = [10, 0, 0, 0]
target.save()
complete_outline_write(self.outline, salt=self.salt)
created = self.weights()
assert len(created) == 0
| 46.854167
| 97
| 0.666862
| 6,428
| 49,478
| 5.011357
| 0.047293
| 0.298016
| 0.428895
| 0.12138
| 0.90569
| 0.873778
| 0.857449
| 0.815478
| 0.807842
| 0.804955
| 0
| 0.069893
| 0.202757
| 49,478
| 1,055
| 98
| 46.898578
| 0.746742
| 0.031529
| 0
| 0.77234
| 0
| 0
| 0.015121
| 0.000877
| 0
| 0
| 0
| 0
| 0.697872
| 1
| 0.02234
| false
| 0
| 0.012766
| 0.001064
| 0.038298
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
bb84e919b80e3910f2e1c0fbb67610f9e8d0b9d2
| 8,241
|
py
|
Python
|
python/sklearn/linear-regression/back/extract_data.py
|
lijiansong/lang
|
e255709da2b12e09dea45f86d54f77a19b96f13b
|
[
"WTFPL"
] | 1
|
2020-01-09T03:22:09.000Z
|
2020-01-09T03:22:09.000Z
|
python/sklearn/linear-regression/back/extract_data.py
|
lijiansong/lang
|
e255709da2b12e09dea45f86d54f77a19b96f13b
|
[
"WTFPL"
] | null | null | null |
python/sklearn/linear-regression/back/extract_data.py
|
lijiansong/lang
|
e255709da2b12e09dea45f86d54f77a19b96f13b
|
[
"WTFPL"
] | null | null | null |
#!/usr/bin/env python3
import sys
import re
import os
import collections
def extract_end2end_fps(end2end_file_path):
file_reader = open(end2end_file_path, 'r')
prefix = os.getcwd().split("/")[-2]
file_writer = open(prefix + '-end2end_fps.txt', 'w')
data_list = []
sparse_round_count = {}
try:
text_lines = file_reader.readlines()
print(type(text_lines))
#print(text_lines)
for line in text_lines:
line = line.rstrip('\n')
#print(line)
line_str = line.split(":", 3)
#print(line_str)
end2end_fps = float(line_str[3])
_, _, _, sparsity_num, batch_size, data_parallel, model_parallel, thread_num, _, round_num = line_str[0].split("-")
sparsity_num = float(sparsity_num)
round_num = int(round_num)
sparse_round_count[sparsity_num] = sparse_round_count.get(sparsity_num, 0) + 1
batch_size = re.findall(r'\d+', batch_size)
data_list.append([sparsity_num, batch_size[0], data_parallel, model_parallel, thread_num, end2end_fps, round_num])
print(data_list)
# sort data_list by multiple keys
data_list = sorted(data_list, key = lambda x: (x[1], x[2], x[3], x[4]))
res_dict = {}
for line in data_list:
sparsity_num, batch_size, data_parallel, model_parallel, thread_num, end2end_fps, round_num = line[0], line[1], line[2], line[3], line[4], line[5], line[6]
res_dict[sparsity_num] = res_dict.get(sparsity_num, 0) + end2end_fps/sparse_round_count[sparsity_num]
print(res_dict)
print(sparse_round_count)
od = collections.OrderedDict(sorted(res_dict.items()))
# write to file
for k, v in od.items():
res = str(k) + ',' + str(v) + '\n'
file_writer.write(res)
finally:
file_reader.close()
file_writer.close()
def extract_hardware_fps(hw_fps_file_path):
file_reader = open(hw_fps_file_path, 'r')
prefix = os.getcwd().split("/")[-2]
file_writer = open(prefix + '-hardware_fps.txt', 'w')
data_list = []
sparse_round_count = {}
try:
text_lines = file_reader.readlines()
print(type(text_lines))
#print(text_lines)
for line in text_lines:
line = line.rstrip('\n')
#print(line)
line_str = line.split(":", 3)
#print(line_str)
end2end_fps = float(line_str[3])
_, _, _, sparsity_num, batch_size, data_parallel, model_parallel, thread_num, _, round_num = line_str[0].split("-")
sparsity_num = float(sparsity_num)
round_num = int(round_num)
sparse_round_count[sparsity_num] = sparse_round_count.get(sparsity_num, 0) + 1
batch_size = re.findall(r'\d+', batch_size)
data_list.append([sparsity_num, batch_size[0], data_parallel, model_parallel, thread_num, end2end_fps, round_num])
print(data_list)
# sort data_list by multiple keys
data_list = sorted(data_list, key = lambda x: (x[1], x[2], x[3], x[4]))
res_dict = {}
for line in data_list:
sparsity_num, batch_size, data_parallel, model_parallel, thread_num, end2end_fps, round_num = line[0], line[1], line[2], line[3], line[4], line[5], line[6]
res_dict[sparsity_num] = res_dict.get(sparsity_num, 0) + end2end_fps/sparse_round_count[sparsity_num]
print(res_dict)
print(sparse_round_count)
od = collections.OrderedDict(sorted(res_dict.items()))
# write to file
for k, v in od.items():
res = str(k) + ',' + str(v) + '\n'
file_writer.write(res)
finally:
file_reader.close()
file_writer.close()
def extract_total_exe_time(exe_time_file_path):
file_reader = open(exe_time_file_path, 'r')
prefix = os.getcwd().split("/")[-2]
file_writer = open(prefix + '-total-exe-time.txt', 'w')
data_list = []
sparse_round_count = {}
try:
text_lines = file_reader.readlines()
print(type(text_lines))
#print(text_lines)
for line in text_lines:
line = line.rstrip('\n')
#print(line)
line_str = line.split(":", 3)
#print(line_str)
exe_time = line_str[3]
print(exe_time)
# exe_time will be like this:
# 1.23677e+06 us
exe_time, _ = exe_time.split()
print(exe_time)
_, _, _, sparsity_num, batch_size, data_parallel, model_parallel, thread_num, _, round_num = line_str[0].split("-")
sparsity_num = float(sparsity_num)
round_num = int(round_num)
sparse_round_count[sparsity_num] = sparse_round_count.get(sparsity_num, 0) + 1
batch_size = re.findall(r'\d+', batch_size)
data_list.append([sparsity_num, batch_size[0], data_parallel, model_parallel, thread_num, int(float(exe_time)), round_num])
print(data_list)
# sort data_list by multiple keys
data_list = sorted(data_list, key = lambda x: (x[1], x[2], x[3], x[4]))
res_dict = {}
for line in data_list:
sparsity_num, batch_size, data_parallel, model_parallel, thread_num, total_exe_time, round_num = line[0], line[1], line[2], line[3], line[4], line[5], line[6]
res_dict[sparsity_num] = res_dict.get(sparsity_num, 0) + total_exe_time/sparse_round_count[sparsity_num]
print(res_dict)
print(sparse_round_count)
od = collections.OrderedDict(sorted(res_dict.items()))
# write to file
for k, v in od.items():
res = str(k) + ',' + str(v) + '\n'
file_writer.write(res)
finally:
file_reader.close()
file_writer.close()
def extract_io_time(in_time_file_path, io_suffix):
file_reader = open(in_time_file_path, 'r')
prefix = os.getcwd().split("/")[-2]
file_writer = open(prefix + io_suffix, 'w')
sparse_round_count = {}
res_dict = {}
try:
text_lines = file_reader.readlines()
print(type(text_lines))
#print(text_lines)
for line in text_lines:
line = line.rstrip('\n')
#print(line)
line_str = line.split(":")
#print(line_str)
io_time = line_str[3]
#print(io_time)
# exe_time will be like this:
# 385 us
io_time, _ = io_time.split()
#print(io_time)
io_time = float(io_time)
_, _, _, sparsity_num, batch_size, data_parallel, model_parallel, thread_num, _, round_num = line_str[0].split("-")
sparsity_num = float(sparsity_num)
round_num = int(round_num)
# Note: sparse_round_count is a dict, whose key is 'sparsity_num', value is a set of 'round_num'.
if sparsity_num in sparse_round_count:
sparse_round_count[sparsity_num].add(round_num)
else:
sparse_round_count[sparsity_num]=set()
sparse_round_count[sparsity_num].add(round_num)
batch_size = re.findall(r'\d+', batch_size)
res_dict[sparsity_num] = res_dict.get(sparsity_num, 0) + io_time
print(res_dict)
print(sparse_round_count)
od = collections.OrderedDict(sorted(res_dict.items()))
# write to file
for k, v in od.items():
res = str(k) + ',' + str(v/len(sparse_round_count[k])) + '\n'
file_writer.write(res)
finally:
file_reader.close()
file_writer.close()
if __name__ == '__main__':
if len(sys.argv) < 7:
sys.exit("Usage: must 7 args!")
end2end_file = sys.argv[1]
hw_fps_file = sys.argv[2]
time_log_file = sys.argv[3]
prepare_input_log_file = sys.argv[4]
copyin_log_file = sys.argv[5]
copyout_log_file = sys.argv[6]
#extract_end2end_fps(end2end_file)
#extract_hardware_fps(hw_fps_file)
#extract_total_exe_time(time_log_file)
extract_io_time(prepare_input_log_file, "-prepare_input_time.txt")
extract_io_time(copyin_log_file, "-copyin_time.txt")
extract_io_time(copyout_log_file, "-copyout_time.txt")
| 41.832487
| 170
| 0.608421
| 1,130
| 8,241
| 4.099115
| 0.10531
| 0.094991
| 0.079447
| 0.043178
| 0.834629
| 0.788212
| 0.778066
| 0.767271
| 0.744603
| 0.744603
| 0
| 0.015923
| 0.268414
| 8,241
| 196
| 171
| 42.045918
| 0.752364
| 0.078874
| 0
| 0.729032
| 0
| 0
| 0.024732
| 0.003042
| 0
| 0
| 0
| 0
| 0
| 1
| 0.025806
| false
| 0
| 0.025806
| 0
| 0.051613
| 0.109677
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bbb68b7a72e84662300bafb2dad9de321d542a31
| 5,209
|
py
|
Python
|
List/LvupStats.py
|
1234567890num/KH2Randomizer
|
2722b2f8f324246300d9c16637243c942adf14d1
|
[
"Apache-2.0"
] | 7
|
2021-09-04T03:04:16.000Z
|
2022-02-04T17:57:22.000Z
|
List/LvupStats.py
|
1234567890num/KH2Randomizer
|
2722b2f8f324246300d9c16637243c942adf14d1
|
[
"Apache-2.0"
] | 48
|
2021-05-26T11:59:11.000Z
|
2022-03-30T01:59:23.000Z
|
List/LvupStats.py
|
1234567890num/KH2Randomizer
|
2722b2f8f324246300d9c16637243c942adf14d1
|
[
"Apache-2.0"
] | 15
|
2021-04-10T18:31:47.000Z
|
2022-03-31T17:32:45.000Z
|
class Stats:
def getLevelStats():
return [
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Str",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Mag",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
"Def",
]
def getAp():
return [
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"Ap",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
"Ap",
"",
]
def getBonusStats():
return ["HP"]*20+["MP"]*4+["Armor"]*3 +["Accessory"]*3+["Item"]*5+["Drive"]*6 # Added missing drive gauge up and mp up
| 17.900344
| 126
| 0.118065
| 222
| 5,209
| 2.77027
| 0.117117
| 0.585366
| 0.868293
| 1.144715
| 0.788618
| 0.788618
| 0.788618
| 0.788618
| 0.788618
| 0.788618
| 0
| 0.00466
| 0.711653
| 5,209
| 291
| 126
| 17.900344
| 0.404794
| 0.007295
| 0
| 0.975694
| 0
| 0
| 0.098453
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.010417
| true
| 0
| 0
| 0.010417
| 0.024306
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
a5223ad5b0b8dc0ef1dbe9c526990796a322f233
| 3,526
|
py
|
Python
|
Python/markdownTableOfContents/test/test_markdown_toc.py
|
toddnguyen47/utility-files
|
de7d9839b5265c10d7ec017f8e08dfb8d6caac2a
|
[
"MIT"
] | null | null | null |
Python/markdownTableOfContents/test/test_markdown_toc.py
|
toddnguyen47/utility-files
|
de7d9839b5265c10d7ec017f8e08dfb8d6caac2a
|
[
"MIT"
] | 1
|
2021-04-20T22:01:09.000Z
|
2021-04-20T22:01:09.000Z
|
Python/markdownTableOfContents/test/test_markdown_toc.py
|
toddnguyen47/utility-files
|
de7d9839b5265c10d7ec017f8e08dfb8d6caac2a
|
[
"MIT"
] | 1
|
2021-03-18T03:42:03.000Z
|
2021-03-18T03:42:03.000Z
|
import unittest
import markdown_toc
class TestMarkdownToc(unittest.TestCase):
"""
Unit test class. Run with the following command:
`python -m unittest discover ./test/`
"""
def setUp(self) -> None:
self.filepath = "test.md"
self.markdown_toc_obj = markdown_toc.MarkdownToc(self.filepath)
def test_read_in_file(self):
self.markdown_toc_obj.read_in_file()
list_of_lines = self.markdown_toc_obj.list_of_lines
self.assertEqual("- https://stackoverflow.com/a/23332517", list_of_lines[1])
self.assertEqual("sudo apt install cmake build-essential", list_of_lines[22])
self.assertEqual("- You're all set!", list_of_lines[76])
def test_does_line_start_with_pound(self):
self.markdown_toc_obj.cur_line = "# References"
self.assertTrue(self.markdown_toc_obj.does_line_start_with_pound())
self.markdown_toc_obj.cur_line = "# References"
self.assertTrue(self.markdown_toc_obj.does_line_start_with_pound())
self.markdown_toc_obj.cur_line = "## References"
self.assertTrue(self.markdown_toc_obj.does_line_start_with_pound())
self.markdown_toc_obj.cur_line = "## References"
self.assertTrue(self.markdown_toc_obj.does_line_start_with_pound())
self.markdown_toc_obj.cur_line = "##References"
self.assertFalse(self.markdown_toc_obj.does_line_start_with_pound())
def test_convert_to_href(self):
self.markdown_toc_obj.cur_line = "# Eclipse C/C++ Unit Test Launch Configuration"
self.assertEqual("(#eclipse-cc-unit-test-launch-configuration)",
self.markdown_toc_obj.convert_curline_to_href())
self.markdown_toc_obj.cur_line = "## References"
self.assertEqual("(#references)",
self.markdown_toc_obj.convert_curline_to_href())
def test_convert_to_toc(self):
self.markdown_toc_obj.cur_line = "# References"
self.assertEqual("- [References](#references)", self.markdown_toc_obj.convert_to_toc())
self.markdown_toc_obj.cur_line = "# Eclipse C/C++ Unit Test Launch Configuration"
self.assertEqual(
"- [Eclipse C/C++ Unit Test Launch Configuration](#eclipse-cc-unit-test-launch-configuration)",
self.markdown_toc_obj.convert_to_toc())
self.markdown_toc_obj.cur_line = "## Eclipse C/C++ Unit Test Launch Configuration"
self.assertEqual(
" - [Eclipse C/C++ Unit Test Launch Configuration](#eclipse-cc-unit-test-launch-configuration)",
self.markdown_toc_obj.convert_to_toc())
def test_get_hashtag_count(self):
self.markdown_toc_obj.cur_line = "# References"
self.assertEqual(1, self.markdown_toc_obj.get_hashtag_count_in_curline())
self.markdown_toc_obj.cur_line = "### References"
self.assertEqual(3, self.markdown_toc_obj.get_hashtag_count_in_curline())
self.markdown_toc_obj.cur_line = "## References"
self.assertEqual(2, self.markdown_toc_obj.get_hashtag_count_in_curline())
def test_prepend_whitespace(self):
self.markdown_toc_obj.cur_line = "# References"
self.assertEqual("", self.markdown_toc_obj.get_prefix_whitespace())
self.markdown_toc_obj.cur_line = "## References"
self.assertEqual(" ", self.markdown_toc_obj.get_prefix_whitespace())
self.markdown_toc_obj.cur_line = "### References"
self.assertEqual(" ", self.markdown_toc_obj.get_prefix_whitespace())
| 51.101449
| 111
| 0.697107
| 456
| 3,526
| 5.019737
| 0.164474
| 0.177807
| 0.229358
| 0.275229
| 0.760157
| 0.750546
| 0.736566
| 0.734819
| 0.712538
| 0.674967
| 0
| 0.00561
| 0.191151
| 3,526
| 68
| 112
| 51.852941
| 0.796985
| 0.02439
| 0
| 0.545455
| 0
| 0.036364
| 0.205323
| 0.054109
| 0
| 0
| 0
| 0
| 0.345455
| 1
| 0.127273
| false
| 0
| 0.036364
| 0
| 0.181818
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a53077dccce47d64255d8325493c04c484ad64e6
| 116
|
py
|
Python
|
static/py/findPidName.py
|
jayhsieh/Django-based-stock-trading-platform
|
eefcfff8e895065345a7a2e73fb8722194f8339f
|
[
"MIT"
] | 3
|
2019-10-26T05:10:23.000Z
|
2022-01-31T21:26:37.000Z
|
static/py/findPidName.py
|
ajmal017/Django-based-stock-trading-platform
|
eefcfff8e895065345a7a2e73fb8722194f8339f
|
[
"MIT"
] | null | null | null |
static/py/findPidName.py
|
ajmal017/Django-based-stock-trading-platform
|
eefcfff8e895065345a7a2e73fb8722194f8339f
|
[
"MIT"
] | 10
|
2020-01-18T13:33:14.000Z
|
2022-03-16T18:42:50.000Z
|
import os
import psutil
def find_procs_by_name(pid):
p = psutil.Process(pid)
find_procs_by_name(12988)
| 14.5
| 29
| 0.724138
| 19
| 116
| 4.105263
| 0.631579
| 0.230769
| 0.282051
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053763
| 0.198276
| 116
| 7
| 30
| 16.571429
| 0.784946
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
a5861887ef775c7c8f1a3e7c26ce1c008f064ce5
| 183
|
py
|
Python
|
test.py
|
snyxan/ParlAI
|
521e893c2cbe50682d5f0db03f235787cc383d0f
|
[
"MIT"
] | 1
|
2021-12-13T10:30:44.000Z
|
2021-12-13T10:30:44.000Z
|
test.py
|
snyxan/ParlAI
|
521e893c2cbe50682d5f0db03f235787cc383d0f
|
[
"MIT"
] | null | null | null |
test.py
|
snyxan/ParlAI
|
521e893c2cbe50682d5f0db03f235787cc383d0f
|
[
"MIT"
] | null | null | null |
print('aaa')
print('adaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa11aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
| 61
| 169
| 0.945355
| 4
| 183
| 43.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01105
| 0.010929
| 183
| 2
| 170
| 91.5
| 0.944751
| 0
| 0
| 0
| 0
| 0
| 0.89071
| 0.874317
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
3c0686a2b56f1750fcf9278e4a7915d9d4789160
| 278
|
py
|
Python
|
python/anyascii/_data/_11e.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_11e.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_11e.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b=" k g ng p b m t d n c j ny y r l w s ' i u e o . *"
| 278
| 278
| 0.086331
| 22
| 278
| 1.090909
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.892086
| 278
| 1
| 278
| 278
| 0.8
| 0
| 0
| 0
| 0
| 1
| 0.982079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3c0eb310236b04c490776b835a2124b615898e63
| 1,422
|
py
|
Python
|
tests/test_csr_utils.py
|
narges-rzv/csr_utils
|
9a643b4a7ab2ccc889664ea63e9bff764f8cbc8b
|
[
"MIT"
] | null | null | null |
tests/test_csr_utils.py
|
narges-rzv/csr_utils
|
9a643b4a7ab2ccc889664ea63e9bff764f8cbc8b
|
[
"MIT"
] | null | null | null |
tests/test_csr_utils.py
|
narges-rzv/csr_utils
|
9a643b4a7ab2ccc889664ea63e9bff764f8cbc8b
|
[
"MIT"
] | null | null | null |
import pytest
import csr_utils
def test_csr_utils_import():
x = csr_utils.csr_matrix(csr_utils.np.array([[1, 0], [3, 0], [2, 2]], dtype=float))
assert len(x.shape) == 2
assert x.shape == (3,2)
def test_csr_utils_normed_single_observation():
x = csr_utils.csr_matrix(csr_utils.np.array([[1, 0], [3, 0], [2, 2]], dtype=float))
xnorm, xmean, xstd, xixnormed = csr_utils.normalize_csr_matrix(x)
assert csr_utils.np.all(xmean == csr_utils.np.array([2., 2.]))
assert csr_utils.np.all(csr_utils.np.isclose(xstd, csr_utils.np.array([0.81649, 1. ]), 1e-4))
assert len(xixnormed) == 1
def test_csr_utils_normed_mult_observation_1():
x = csr_utils.csr_matrix(csr_utils.np.array([[1, 0], [3, 4], [2, 2]], dtype=float))
xnorm, xmean, xstd, xixnormed = csr_utils.normalize_csr_matrix(x)
assert csr_utils.np.all(xmean == csr_utils.np.array([2., 3.]))
assert csr_utils.np.all(csr_utils.np.isclose(xstd, csr_utils.np.array([0.81649, 1. ]), 1e-4))
assert len(xixnormed) == 2
def test_csr_utils_normed_mult_observation_2():
x = csr_utils.csr_matrix(csr_utils.np.array([[1, 0], [3, 4], [2, 8]], dtype=float))
xnorm, xmean, xstd, xixnormed = csr_utils.normalize_csr_matrix(x)
assert csr_utils.np.all(xmean == csr_utils.np.array([ 2., 6.]))
assert csr_utils.np.all(csr_utils.np.isclose(xstd, csr_utils.np.array([0.81649, 2. ]), 1e-4))
assert len(xixnormed) == 2
| 45.870968
| 98
| 0.680028
| 246
| 1,422
| 3.699187
| 0.142276
| 0.272527
| 0.208791
| 0.164835
| 0.889011
| 0.889011
| 0.83956
| 0.76044
| 0.76044
| 0.76044
| 0
| 0.053279
| 0.142053
| 1,422
| 30
| 99
| 47.4
| 0.692623
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.458333
| 1
| 0.166667
| false
| 0
| 0.125
| 0
| 0.291667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
3c69ac5bfc90fc24c04db9a82d85ecd3077b5088
| 6,890
|
py
|
Python
|
tests/integration/tree/test_covarying_evolutionary_rates_integration.py
|
yuzhenpeng/PhyKIT
|
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
|
[
"MIT"
] | 26
|
2020-10-28T10:33:33.000Z
|
2022-02-04T14:59:22.000Z
|
tests/integration/tree/test_covarying_evolutionary_rates_integration.py
|
yuzhenpeng/PhyKIT
|
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
|
[
"MIT"
] | 4
|
2021-03-28T22:05:39.000Z
|
2022-03-22T00:33:01.000Z
|
tests/integration/tree/test_covarying_evolutionary_rates_integration.py
|
JLSteenwyk/PhyKIT
|
0b3194d1bb5c189993b256fe96011cce48b9bbb4
|
[
"MIT"
] | 4
|
2020-11-06T11:58:25.000Z
|
2021-08-17T16:57:51.000Z
|
import pytest
import sys
from math import isclose
from mock import patch, call
from pathlib import Path
from textwrap import dedent
from phykit.phykit import Phykit
here = Path(__file__)
@pytest.mark.integration
class TestCovaryingEvolutionaryRates(object):
@patch("builtins.print")
def test_covarying_evolutionary_rates(self, mocked_print):
expected_result = "0.6769\t0.065228"
testargs = [
"phykit",
"covarying_evolutionary_rates",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tre",
]
with patch.object(sys, "argv", testargs):
Phykit()
assert mocked_print.mock_calls == [call(expected_result)]
@patch("builtins.print")
def test_covarying_evolutionary_rates_alias(self, mocked_print):
expected_result = "0.6769\t0.065228"
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tre",
]
with patch.object(sys, "argv", testargs):
Phykit()
assert mocked_print.mock_calls == [call(expected_result)]
@patch("builtins.print")
def test_covarying_evolutionary_rates_verbose(self, mocked_print):
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tre",
"-v"
]
with patch.object(sys, "argv", testargs):
Phykit()
assert mocked_print.mock_calls == [
call(f"{-0.1297}\t{-1.2712}"),
call(f"{0.3588}\t{1.9021}"),
call(f"{0.3588}\t{0.179}"),
call(f"{1.2555}\t{0.7115}"),
call(f"{0.3588}\t{-0.1114}"),
call(f"{0.3588}\t{0.179}"),
call(f"{-0.1375}\t{-0.1157}"),
call(f"{-2.4235}\t{-1.4731}")
]
@patch("builtins.print")
def test_covarying_evolutionary_rates_incorrect_tree0(self, mocked_print):
expected_result = "0.6769\t0.065228"
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tr",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tre",
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
Phykit()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 2
@patch("builtins.print")
def test_covarying_evolutionary_rates_incorrect_tree1(self, mocked_print):
expected_result = "0.6769\t0.065228"
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tr",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tre",
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
Phykit()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 2
@patch("builtins.print")
def test_covarying_evolutionary_rates_incorrect_reference(self, mocked_print):
expected_result = "0.6769\t0.065228"
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tr",
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
Phykit()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 2
@patch("builtins.print")
def test_covarying_evolutionary_rates_incorrect_tree_topology(self, mocked_print):
expected_result = "0.6769\t0.065228"
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_3_incorrect_topology.tre ",
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
Phykit()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 2
@patch("builtins.print")
def test_covarying_evolutionary_rates_no_common_tips(self, mocked_print):
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple_no_match_0.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_no_match_1.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_1.tre",
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
Phykit()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 2
@patch("builtins.print")
def test_covarying_evolutionary_rates_tree_topologies_do_not_match(self, mocked_print):
testargs = [
"phykit",
"cover",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_wrong_topology.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_3_incorrect_topology.tre ",
]
with pytest.raises(SystemExit) as pytest_wrapped_e:
Phykit()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == 2
@patch("builtins.print")
def test_covarying_evolutionary_rates(self, mocked_print):
expected_result = "0.5826\t0.169897"
testargs = [
"phykit",
"covarying_evolutionary_rates",
f"{here.parent.parent.parent}/sample_files/tree_simple.tre",
f"{here.parent.parent.parent}/sample_files/tree_simple_outlier_branch.tre",
"-r",
f"{here.parent.parent.parent}/sample_files/tree_simple_2.tre",
]
with patch.object(sys, "argv", testargs):
Phykit()
assert mocked_print.mock_calls == [call(expected_result)]
| 37.650273
| 94
| 0.614078
| 827
| 6,890
| 4.859734
| 0.114873
| 0.179149
| 0.08211
| 0.126897
| 0.901468
| 0.898731
| 0.895745
| 0.895745
| 0.895745
| 0.870863
| 0
| 0.03711
| 0.260813
| 6,890
| 182
| 95
| 37.857143
| 0.752013
| 0
| 0
| 0.723926
| 0
| 0
| 0.348041
| 0.269521
| 0
| 0
| 0
| 0
| 0.09816
| 1
| 0.06135
| false
| 0
| 0.042945
| 0
| 0.110429
| 0.147239
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b1ecfaed956213cb559476669bc978d1f15c3ac4
| 9,149
|
py
|
Python
|
tests/test_series/test_get.py
|
bearsh/raccoon
|
bd7a59c3dcf7ad7b995194a4a49631759d9e565c
|
[
"MIT"
] | 62
|
2016-07-11T01:23:15.000Z
|
2022-01-14T17:42:17.000Z
|
tests/test_series/test_get.py
|
bearsh/raccoon
|
bd7a59c3dcf7ad7b995194a4a49631759d9e565c
|
[
"MIT"
] | 13
|
2016-07-11T01:24:02.000Z
|
2021-05-17T14:51:58.000Z
|
tests/test_series/test_get.py
|
bearsh/raccoon
|
bd7a59c3dcf7ad7b995194a4a49631759d9e565c
|
[
"MIT"
] | 14
|
2017-03-22T17:23:02.000Z
|
2021-05-08T05:16:30.000Z
|
import pytest
import raccoon as rc
from raccoon.utils import assert_series_equal
def test_get_cell():
actual = rc.Series([1, 2, 3], index=[10, 11, 13], sort=False)
assert actual.get(10) == 1
assert actual.get(11) == 2
assert actual.get(13) == 3
# test items not in index raise errors
with pytest.raises(ValueError):
actual.get(1)
with pytest.raises(ValueError):
actual.get(100)
with pytest.raises(ValueError):
actual.get(12)
def test_get_cell_sorted():
actual = rc.Series([1, 2, 3], index=[10, 11, 13], sort=True)
assert actual.get(10) == 1
assert actual.get(11) == 2
assert actual.get(13) == 3
# test items not in index raise errors
with pytest.raises(ValueError):
actual.get(1)
with pytest.raises(ValueError):
actual.get(100)
with pytest.raises(ValueError):
actual.get(12)
def test_get_rows():
srs = rc.Series([1, 2, 3, 4], index=[10, 11, 12, 99], index_name='start_10', sort=False)
expected = rc.Series([2, 3], index=[11, 12], index_name='start_10', sort=False)
actual = srs.get([11, 12])
assert_series_equal(actual, expected)
# test with boolean list
actual = srs.get([False, True, True, False])
assert_series_equal(actual, expected)
# index out of order
expected = rc.Series([4, 1], index=[99, 10], index_name='start_10', sort=False)
actual = srs.get([99, 10])
assert_series_equal(actual, expected)
# get as a list
assert srs.get([11, 12], as_list=True) == [2, 3]
# get as a list
assert srs.get([False, True, True, False], as_list=True) == [2, 3]
# items not in index raise errors
with pytest.raises(ValueError):
srs.get([11, 88], as_list=True)
# not enough items in boolean list
with pytest.raises(ValueError):
srs.get([True, True])
def test_get_rows_sorted():
srs = rc.Series([1, 2, 3, 4], index=[10, 11, 12, 99], index_name='start_10', sort=True)
expected = rc.Series([2, 3], index=[11, 12], index_name='start_10', sort=True)
actual = srs.get([11, 12])
assert_series_equal(actual, expected)
# test with boolean list
actual = srs.get([False, True, True, False])
assert_series_equal(actual, expected)
# index out of order
expected = rc.Series([4, 1], index=[99, 10], index_name='start_10', sort=True)
actual = srs.get([99, 10])
assert_series_equal(actual, expected)
# get as a list
assert srs.get([11, 12], as_list=True) == [2, 3]
# get as a list
assert srs.get([False, True, True, False], as_list=True) == [2, 3]
# items not in index raise errors
with pytest.raises(ValueError):
srs.get([11, 88], as_list=True)
# not enough items in boolean list
with pytest.raises(ValueError):
srs.get([True, True])
def test_get_location():
srs = rc.Series([5, 6, 7, 8], index=[2, 4, 6, 8])
assert srs.get_location(2) == {'value': 7, 'index': 6}
assert srs.get_location(-1) == {'index': 8, 'value': 8}
def test_get_locations():
srs = rc.Series([5, 6, 7, 8], index=[2, 4, 6, 8])
assert_series_equal(srs.get_locations([0, 2]), rc.Series([5, 7], index=[2, 6]))
assert srs.get_locations([0, 2], as_list=True) == [5, 7]
assert_series_equal(srs.get_locations([2]), rc.Series([7], index=[6]))
def test_get_slice():
srs = rc.Series([5, 6, 7, 8], index=[2, 4, 6, 8], sort=True)
assert_series_equal(srs.get_slice(2, 8), srs)
assert_series_equal(srs.get_slice(1, 8), srs)
assert_series_equal(srs.get_slice(2, 18), srs)
assert_series_equal(srs.get_slice(1, 18), srs)
assert_series_equal(srs.get_slice(4, 4), rc.Series([6], [4], sort=True))
assert_series_equal(srs.get_slice(3, 4), rc.Series([6], [4], sort=True))
assert_series_equal(srs.get_slice(4, 5), rc.Series([6], [4], sort=True))
assert_series_equal(srs.get_slice(3, 5), rc.Series([6], [4], sort=True))
assert_series_equal(srs.get_slice(3, 6), rc.Series([6, 7], [4, 6], sort=True))
assert_series_equal(srs.get_slice(4, 7), rc.Series([6, 7], [4, 6], sort=True))
assert_series_equal(srs.get_slice(3, 7), rc.Series([6, 7], [4, 6], sort=True))
assert_series_equal(srs.get_slice(None, 7), rc.Series([5, 6, 7], [2, 4, 6], sort=True))
assert_series_equal(srs.get_slice(3, None), rc.Series([6, 7, 8], [4, 6, 8], sort=True))
assert_series_equal(srs.get_slice(3, 3), rc.Series([], [], sort=True))
assert_series_equal(srs.get_slice(0, 0), rc.Series([], [], sort=True))
assert_series_equal(srs.get_slice(5, 5), rc.Series([], [], sort=True))
# Only works with sort=True
with pytest.raises(RuntimeError):
rc.Series([4, 5], [6, 7], sort=False).get_slice(6, 6)
def test_get_slice_as_list():
srs = rc.Series([5, 6, 7, 8], index=[2, 4, 6, 8], sort=True)
assert srs.get_slice(2, 8, as_list=True) == ([2, 4, 6, 8], [5, 6, 7, 8])
assert srs.get_slice(1, 8, as_list=True) == ([2, 4, 6, 8], [5, 6, 7, 8])
assert srs.get_slice(2, 18, as_list=True) == ([2, 4, 6, 8], [5, 6, 7, 8])
assert srs.get_slice(1, 18, as_list=True) == ([2, 4, 6, 8], [5, 6, 7, 8])
assert srs.get_slice(4, 4, as_list=True) == ([4], [6])
assert srs.get_slice(3, 4, as_list=True) == ([4], [6])
assert srs.get_slice(4, 5, as_list=True) == ([4], [6])
assert srs.get_slice(3, 5, as_list=True) == ([4], [6])
assert srs.get_slice(3, 6, as_list=True) == ([4, 6], [6, 7])
assert srs.get_slice(4, 7, as_list=True) == ([4, 6], [6, 7])
assert srs.get_slice(3, 7, as_list=True) == ([4, 6], [6, 7])
assert srs.get_slice(None, 7, as_list=True) == ([2, 4, 6], [5, 6, 7])
assert srs.get_slice(3, None, as_list=True) == ([4, 6, 8], [6, 7, 8])
assert srs.get_slice(3, 3, as_list=True) == ([], [])
assert srs.get_slice(0, 0, as_list=True) == ([], [])
assert srs.get_slice(5, 5, as_list=True) == ([], [])
def test_get_square_brackets():
srs = rc.Series([10, 11, 12], index=['a', 'b', 'c'], sort=False)
assert srs['b'] == 11
assert_series_equal(srs[['a', 'c']], rc.Series([10, 12], ['a', 'c']))
# get a series back
assert_series_equal(srs[['b']], rc.Series([11], ['b'], sort=False))
assert_series_equal(srs[['c', 'a']], rc.Series([12, 10], ['c', 'a'], sort=False))
# srs[[0, 2]] -- get indexes = [0, 2]
srs = rc.Series([10, 11, 12], sort=False)
assert_series_equal(srs[[0, 2]], rc.Series([10, 12], index=[0, 2], sort=False))
assert_series_equal(srs[[2, 1]], rc.Series([12, 11], index=[2, 1], sort=False))
def test_get_square_brackets_sorted():
srs = rc.Series([10, 11, 12], index=['a', 'b', 'c'], sort=True)
assert srs['b'] == 11
assert_series_equal(srs[['a', 'c']], rc.Series([10, 12], ['a', 'c'], sort=True))
# get a series back
assert_series_equal(srs[['b']], rc.Series([11], ['b'], sort=True))
assert_series_equal(srs[['c', 'a']], rc.Series([12, 10], ['c', 'a'], sort=True))
# srs[[0, 2]] -- get indexes = [0, 2]
srs = rc.Series([10, 11, 12], sort=True)
assert_series_equal(srs[[0, 2]], rc.Series([10, 12], index=[0, 2], sort=True))
assert_series_equal(srs[[2, 1]], rc.Series([12, 11], index=[2, 1], sort=True))
def test_get_slicer():
srs = rc.Series([7, 8, 9], index=[1, 2, 3], sort=False)
assert_series_equal(srs[2:3], rc.Series([8, 9], index=[2, 3], sort=False))
assert_series_equal(srs[1:2], rc.Series([7, 8], index=[1, 2], sort=False))
assert_series_equal(srs[2:2], rc.Series([8], index=[2], sort=False))
# test indexes not in the range
with pytest.raises(IndexError):
_ = srs[4:5]
with pytest.raises(IndexError):
_ = srs[1:8]
with pytest.raises(IndexError):
_ = srs[2:1]
def test_get_slicer_sorted():
srs = rc.Series([7, 8, 9], index=[1, 2, 3], sort=True)
assert_series_equal(srs[2:3], rc.Series([8, 9], index=[2, 3], sort=True))
assert_series_equal(srs[1:2], rc.Series([7, 8], index=[1, 2], sort=True))
assert_series_equal(srs[0.5:2.5], rc.Series([7, 8], index=[1, 2], sort=True))
assert_series_equal(srs[2:2], rc.Series([8], index=[2], sort=True))
assert_series_equal(srs[4:5], rc.Series([], index=[], sort=True))
assert_series_equal(srs[2:1], rc.Series([], index=[], sort=True))
assert_series_equal(srs[1:8], srs)
def test_head():
srs = rc.Series([3, 4, 5], sort=False)
assert_series_equal(srs.head(0), rc.Series([], [], sort=False))
assert_series_equal(srs.head(1), rc.Series([3], sort=False))
assert_series_equal(srs.head(2), rc.Series([3, 4], sort=False))
assert_series_equal(srs.head(3), rc.Series([3, 4, 5], sort=False))
assert_series_equal(srs.head(999), rc.Series([3, 4, 5], sort=False))
def test_tail():
srs = rc.Series([3, 4, 5], sort=False)
assert_series_equal(srs.tail(0), rc.Series([], [], sort=False))
assert_series_equal(srs.tail(1), rc.Series([5], index=[2], sort=False))
assert_series_equal(srs.tail(2), rc.Series([4, 5], index=[1, 2], sort=False))
assert_series_equal(srs.tail(3), rc.Series([3, 4, 5], sort=False))
assert_series_equal(srs.tail(999), rc.Series([3, 4, 5], sort=False))
| 35.324324
| 92
| 0.609575
| 1,556
| 9,149
| 3.442802
| 0.050771
| 0.095576
| 0.174538
| 0.179205
| 0.893971
| 0.846183
| 0.828635
| 0.790741
| 0.746127
| 0.711779
| 0
| 0.074879
| 0.185485
| 9,149
| 258
| 93
| 35.46124
| 0.643988
| 0.055416
| 0
| 0.339744
| 0
| 0
| 0.011136
| 0
| 0
| 0
| 0
| 0
| 0.551282
| 1
| 0.089744
| false
| 0
| 0.019231
| 0
| 0.108974
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
594d3c9bd6b8ec63e69aca0d00761e2b0bc27d98
| 83
|
py
|
Python
|
camiseta/__init__.py
|
adrien4g/camiseta
|
c07a470de8a11705f63b0bb7df67f5df781b15a1
|
[
"MIT"
] | null | null | null |
camiseta/__init__.py
|
adrien4g/camiseta
|
c07a470de8a11705f63b0bb7df67f5df781b15a1
|
[
"MIT"
] | null | null | null |
camiseta/__init__.py
|
adrien4g/camiseta
|
c07a470de8a11705f63b0bb7df67f5df781b15a1
|
[
"MIT"
] | null | null | null |
from camiseta.tag import *
from camiseta.utils import *
from camiseta.info import *
| 27.666667
| 28
| 0.795181
| 12
| 83
| 5.5
| 0.5
| 0.545455
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13253
| 83
| 3
| 29
| 27.666667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
3cbe34b8351829c7ae9cd837efaffc32facfcf8a
| 23,077
|
py
|
Python
|
eeauditor/auditors/aws/Amazon_Elasticache_Redis_Auditor.py
|
kbhagi/ElectricEye
|
31960e1e1cfb75c5d354844ea9e07d5295442823
|
[
"Apache-2.0"
] | 442
|
2020-03-15T20:56:36.000Z
|
2022-03-31T22:13:07.000Z
|
eeauditor/auditors/aws/Amazon_Elasticache_Redis_Auditor.py
|
kbhagi/ElectricEye
|
31960e1e1cfb75c5d354844ea9e07d5295442823
|
[
"Apache-2.0"
] | 57
|
2020-03-15T22:09:56.000Z
|
2022-03-31T13:17:06.000Z
|
eeauditor/auditors/aws/Amazon_Elasticache_Redis_Auditor.py
|
kbhagi/ElectricEye
|
31960e1e1cfb75c5d354844ea9e07d5295442823
|
[
"Apache-2.0"
] | 59
|
2020-03-15T21:19:10.000Z
|
2022-03-31T15:01:31.000Z
|
#This file is part of ElectricEye.
#SPDX-License-Identifier: Apache-2.0
#Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information
#regarding copyright ownership. The ASF licenses this file
#to you under the Apache License, Version 2.0 (the
#"License"); you may not use this file except in compliance
#with the License. You may obtain a copy of the License at
#http://www.apache.org/licenses/LICENSE-2.0
#Unless required by applicable law or agreed to in writing,
#software distributed under the License is distributed on an
#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#KIND, either express or implied. See the License for the
#specific language governing permissions and limitations
#under the License.
import boto3
import datetime
from check_register import CheckRegister
registry = CheckRegister()
# import boto3 clients
elasticache = boto3.client("elasticache")
@registry.register_check("elasticache")
def redis_auth_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[Elasticache.Redis.1] Elasticache Redis clusters should have an AUTH token enabled"""
# loop through EC clusters
response = elasticache.describe_cache_clusters(MaxRecords=100)
myElasticacheClusters = response["CacheClusters"]
for clusters in myElasticacheClusters:
clusterId = str(clusters["CacheClusterId"])
clusterEngine = str(clusters["Engine"])
# ignore memcached clusters
if clusterEngine != "redis":
pass
else:
engineVersion = str(clusters["EngineVersion"])
# check for auth token
authTokenCheck = str(clusters["AuthTokenEnabled"])
# ISO Time
iso8601Time = (
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
)
if authTokenCheck == "False":
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterId + "/no-redis-auth-token",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterId,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "HIGH"},
"Confidence": 99,
"Title": "[Elasticache.Redis.1] Elasticache Redis clusters should have an AUTH token enabled",
"Description": "Elasticache cluster "
+ clusterId
+ " does not have a Redis AUTH token enabled. Refer to the remediation instructions if this configuration is not intended.",
"Remediation": {
"Recommendation": {
"Text": "If your cluster should have a Redis AUTH token refer to the Modifying the AUTH Token on an Existing ElastiCache for Redis Cluster section of the ElastiCache for Redis User Guide",
"Url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html#auth-modifyng-token",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsElastiCacheCacheCluster",
"Id": f"arn:{awsPartition}:elasticache:{awsRegion}:{awsAccountId}:cluster:{clusterId}",
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {"ClusterId": clusterId, "EngineVersion": engineVersion,}
},
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF PR.AC-6",
"NIST SP 800-53 AC-1",
"NIST SP 800-53 AC-2",
"NIST SP 800-53 AC-3",
"NIST SP 800-53 AC-16",
"NIST SP 800-53 AC-19",
"NIST SP 800-53 AC-24",
"NIST SP 800-53 IA-1",
"NIST SP 800-53 IA-2",
"NIST SP 800-53 IA-4",
"NIST SP 800-53 IA-5",
"NIST SP 800-53 IA-8",
"NIST SP 800-53 PE-2",
"NIST SP 800-53 PS-3",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.7.1.1",
"ISO 27001:2013 A.9.2.1",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
else:
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterId + "/no-redis-auth-token",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterId,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[Elasticache.Redis.1] Elasticache Redis clusters should have an AUTH token enabled",
"Description": "Elasticache cluster "
+ clusterId
+ " has a Redis AUTH token enabled.",
"Remediation": {
"Recommendation": {
"Text": "If your cluster should have a Redis AUTH token refer to the Modifying the AUTH Token on an Existing ElastiCache for Redis Cluster section of the ElastiCache for Redis User Guide",
"Url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html#auth-modifyng-token",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsElastiCacheCacheCluster",
"Id": f"arn:{awsPartition}:elasticache:{awsRegion}:{awsAccountId}:cluster:{clusterId}",
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {"ClusterId": clusterId, "EngineVersion": engineVersion,}
},
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF PR.AC-6",
"NIST SP 800-53 AC-1",
"NIST SP 800-53 AC-2",
"NIST SP 800-53 AC-3",
"NIST SP 800-53 AC-16",
"NIST SP 800-53 AC-19",
"NIST SP 800-53 AC-24",
"NIST SP 800-53 IA-1",
"NIST SP 800-53 IA-2",
"NIST SP 800-53 IA-4",
"NIST SP 800-53 IA-5",
"NIST SP 800-53 IA-8",
"NIST SP 800-53 PE-2",
"NIST SP 800-53 PS-3",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.7.1.1",
"ISO 27001:2013 A.9.2.1",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ARCHIVED",
}
yield finding
@registry.register_check("elasticache")
def encryption_at_rest_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[Elasticache.Redis.2] Elasticache Redis clusters should have encryption at rest enabled"""
# loop through EC clusters
response = elasticache.describe_cache_clusters(MaxRecords=100)
myElasticacheClusters = response["CacheClusters"]
for clusters in myElasticacheClusters:
clusterId = str(clusters["CacheClusterId"])
clusterEngine = str(clusters["Engine"])
# ignore memcached clusters
if clusterEngine != "redis":
print("Memcached cluster found, skipping as it does not support encryption")
pass
else:
engineVersion = str(clusters["EngineVersion"])
# check for encryption at rest
atRestEncryptionCheck = str(clusters["AtRestEncryptionEnabled"])
# ISO Time
iso8601Time = (
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
)
if atRestEncryptionCheck == "False":
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterId + "/no-encryption-at-rest",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterId,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "HIGH"},
"Confidence": 99,
"Title": "[Elasticache.Redis.2] Elasticache Redis clusters should have encryption at rest enabled",
"Description": "Elasticache cluster "
+ clusterId
+ " does not have encryption at rest enabled. Refer to the remediation instructions if this configuration is not intended",
"Remediation": {
"Recommendation": {
"Text": "If your cluster should have encryption at rest enabled refer to the At-Rest Encryption in ElastiCache for Redis section of the ElastiCache for Redis User Guide",
"Url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/at-rest-encryption.html#at-rest-encryption-enable",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsElastiCacheCacheCluster",
"Id": f"arn:{awsPartition}:elasticache:{awsRegion}:{awsAccountId}:cluster:{clusterId}",
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {"ClusterId": clusterId, "EngineVersion": engineVersion,}
},
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF PR.DS-1",
"NIST SP 800-53 MP-8",
"NIST SP 800-53 SC-12",
"NIST SP 800-53 SC-28",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.2.3",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
else:
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterId + "/no-encryption-at-rest",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterId,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[Elasticache.Redis.2] Elasticache Redis clusters should have encryption at rest enabled",
"Description": "Elasticache cluster "
+ clusterId
+ " has encryption at rest enabled.",
"Remediation": {
"Recommendation": {
"Text": "If your cluster should have encryption at rest enabled refer to the At-Rest Encryption in ElastiCache for Redis section of the ElastiCache for Redis User Guide",
"Url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/at-rest-encryption.html#at-rest-encryption-enable",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsElastiCacheCacheCluster",
"Id": f"arn:{awsPartition}:elasticache:{awsRegion}:{awsAccountId}:cluster:{clusterId}",
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {"ClusterId": clusterId, "EngineVersion": engineVersion,}
},
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF PR.DS-1",
"NIST SP 800-53 MP-8",
"NIST SP 800-53 SC-12",
"NIST SP 800-53 SC-28",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.2.3",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ARCHIVED",
}
yield finding
@registry.register_check("elasticache")
def encryption_in_transit_check(cache: dict, awsAccountId: str, awsRegion: str, awsPartition: str) -> dict:
"""[Elasticache.Redis.3] Elasticache Redis clusters should have encryption in transit enabled"""
# loop through EC clusters
response = elasticache.describe_cache_clusters(MaxRecords=100)
myElasticacheClusters = response["CacheClusters"]
for clusters in myElasticacheClusters:
clusterId = str(clusters["CacheClusterId"])
clusterEngine = str(clusters["Engine"])
# ignore memcached clusters
if clusterEngine != "redis":
print("Memcached cluster found, skipping as it does not support encryption")
pass
else:
engineVersion = str(clusters["EngineVersion"])
# check for encryption in transit
inTransitEncryptionCheck = str(clusters["TransitEncryptionEnabled"])
# ISO Time
iso8601Time = (
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
)
if inTransitEncryptionCheck == "False":
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterId + "/no-encryption-in-transit",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterId,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "HIGH"},
"Confidence": 99,
"Title": "[Elasticache.Redis.3] Elasticache Redis clusters should have encryption in transit enabled",
"Description": "Elasticache cluster "
+ clusterId
+ " does not have encryption in transit enabled. Refer to the remediation instructions if this configuration is not intended",
"Remediation": {
"Recommendation": {
"Text": "If your cluster should have encryption in transit enabled refer to the Enabling In-Transit Encryption section of the ElastiCache for Redis User Guide",
"Url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/in-transit-encryption.html#in-transit-encryption-enable",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsElastiCacheCacheCluster",
"Id": f"arn:{awsPartition}:elasticache:{awsRegion}:{awsAccountId}:cluster:{clusterId}",
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {"ClusterId": clusterId, "EngineVersion": engineVersion,}
},
}
],
"Compliance": {
"Status": "FAILED",
"RelatedRequirements": [
"NIST CSF PR.DS-2",
"NIST SP 800-53 SC-8",
"NIST SP 800-53 SC-11",
"NIST SP 800-53 SC-12",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.2.3",
"ISO 27001:2013 A.13.1.1",
"ISO 27001:2013 A.13.2.1",
"ISO 27001:2013 A.13.2.3",
"ISO 27001:2013 A.14.1.2",
"ISO 27001:2013 A.14.1.3",
],
},
"Workflow": {"Status": "NEW"},
"RecordState": "ACTIVE",
}
yield finding
else:
finding = {
"SchemaVersion": "2018-10-08",
"Id": clusterId + "/no-encryption-in-transit",
"ProductArn": f"arn:{awsPartition}:securityhub:{awsRegion}:{awsAccountId}:product/{awsAccountId}/default",
"GeneratorId": clusterId,
"AwsAccountId": awsAccountId,
"Types": [
"Software and Configuration Checks/AWS Security Best Practices",
"Effects/Data Exposure",
],
"FirstObservedAt": iso8601Time,
"CreatedAt": iso8601Time,
"UpdatedAt": iso8601Time,
"Severity": {"Label": "INFORMATIONAL"},
"Confidence": 99,
"Title": "[Elasticache.Redis.3] Elasticache Redis clusters should have encryption in transit enabled",
"Description": "Elasticache cluster "
+ clusterId
+ " has encryption in transit enabled.",
"Remediation": {
"Recommendation": {
"Text": "If your cluster should have encryption in transit enabled refer to the Enabling In-Transit Encryption section of the ElastiCache for Redis User Guide",
"Url": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/in-transit-encryption.html#in-transit-encryption-enable",
}
},
"ProductFields": {"Product Name": "ElectricEye"},
"Resources": [
{
"Type": "AwsElastiCacheCacheCluster",
"Id": f"arn:{awsPartition}:elasticache:{awsRegion}:{awsAccountId}:cluster:{clusterId}",
"Partition": awsPartition,
"Region": awsRegion,
"Details": {
"Other": {"ClusterId": clusterId, "EngineVersion": engineVersion,}
},
}
],
"Compliance": {
"Status": "PASSED",
"RelatedRequirements": [
"NIST CSF PR.DS-2",
"NIST SP 800-53 SC-8",
"NIST SP 800-53 SC-11",
"NIST SP 800-53 SC-12",
"AICPA TSC CC6.1",
"ISO 27001:2013 A.8.2.3",
"ISO 27001:2013 A.13.1.1",
"ISO 27001:2013 A.13.2.1",
"ISO 27001:2013 A.13.2.3",
"ISO 27001:2013 A.14.1.2",
"ISO 27001:2013 A.14.1.3",
],
},
"Workflow": {"Status": "RESOLVED"},
"RecordState": "ARCHIVED",
}
yield finding
| 51.975225
| 216
| 0.461758
| 1,824
| 23,077
| 5.832237
| 0.143092
| 0.021433
| 0.032149
| 0.039293
| 0.899135
| 0.893025
| 0.892743
| 0.890299
| 0.879207
| 0.87413
| 0
| 0.050702
| 0.438489
| 23,077
| 444
| 217
| 51.975225
| 0.770258
| 0.0585
| 0
| 0.838308
| 0
| 0.032338
| 0.383878
| 0.065163
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007463
| false
| 0.014925
| 0.007463
| 0
| 0.014925
| 0.004975
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a719cd95f8a7c4cbd9eb3b01b6aab05cc564f0f4
| 131
|
py
|
Python
|
pyaniml/utility/__init__.py
|
FAIRChemistry/pyAnIML
|
f324b13691514f1ea2972ca4a890a67fb4bef316
|
[
"MIT"
] | null | null | null |
pyaniml/utility/__init__.py
|
FAIRChemistry/pyAnIML
|
f324b13691514f1ea2972ca4a890a67fb4bef316
|
[
"MIT"
] | 3
|
2022-03-19T13:12:26.000Z
|
2022-03-20T19:25:52.000Z
|
pyaniml/utility/__init__.py
|
FAIRChemistry/pyAnIML
|
f324b13691514f1ea2972ca4a890a67fb4bef316
|
[
"MIT"
] | null | null | null |
from pyaniml.utility.utils import attribute
from pyaniml.utility.utils import element
from pyaniml.utility.utils import SchemaBase
| 32.75
| 44
| 0.862595
| 18
| 131
| 6.277778
| 0.444444
| 0.292035
| 0.477876
| 0.610619
| 0.769912
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091603
| 131
| 3
| 45
| 43.666667
| 0.94958
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
5959d372854096b787e072f74fc484e5364eac31
| 1,772
|
py
|
Python
|
tests/test_csv_formatter.py
|
nmrazvan/vaccinare-covid-api
|
aa7e4ecdb1c7cf5da2a80e89bd8f809b2b7b6557
|
[
"MIT"
] | 5
|
2021-01-22T12:45:16.000Z
|
2021-03-12T07:03:44.000Z
|
tests/test_csv_formatter.py
|
nmrazvan/vaccinare-covid-api
|
aa7e4ecdb1c7cf5da2a80e89bd8f809b2b7b6557
|
[
"MIT"
] | 1
|
2021-01-19T08:12:43.000Z
|
2021-01-19T11:26:04.000Z
|
tests/test_csv_formatter.py
|
nmrazvan/vaccinare-covid-api
|
aa7e4ecdb1c7cf5da2a80e89bd8f809b2b7b6557
|
[
"MIT"
] | 1
|
2021-03-12T17:29:25.000Z
|
2021-03-12T17:29:25.000Z
|
from datetime import datetime
from vaccinare_covid_api.formatters import CsvFormatter
from io import StringIO
def test_csv_formatter_with_simple_header():
s = StringIO()
csv = CsvFormatter(s, {"centre.id": "ID", "slot.startTime.date": "Date"})
csv.start()
csv.write({"id": 76}, {"startTime": datetime.strptime("2021-02-09 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.end()
s.seek(0)
lt = csv.writer.dialect.lineterminator
assert s.read() == f"ID,Date{lt}76,2021-02-09{lt}"
def test_csv_formatter_with_centre_aggregation():
s = StringIO()
csv = CsvFormatter(s, {"centre.id": "ID", "slot.startTime.date[]": "Date"})
csv.start()
csv.write({"id": 76}, {"startTime": datetime.strptime("2021-02-09 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.write({"id": 76}, {"startTime": datetime.strptime("2021-02-10 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.write({"id": 77}, {"startTime": datetime.strptime("2021-02-11 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.end()
s.seek(0)
lt = csv.writer.dialect.lineterminator
assert s.read() == f"ID,Date{lt}76,2021-02-09;2021-02-10{lt}77,2021-02-11{lt}"
def test_csv_formatter_with_date_aggregation():
s = StringIO()
csv = CsvFormatter(s, {"centre.id": "ID", "slot.startTime.date": "Date"})
csv.start()
csv.write({"id": 76}, {"startTime": datetime.strptime("2021-02-09 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.write({"id": 76}, {"startTime": datetime.strptime("2021-02-10 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.write({"id": 77}, {"startTime": datetime.strptime("2021-02-11 19:00:00", "%Y-%m-%d %H:%M:%S")})
csv.end()
s.seek(0)
lt = csv.writer.dialect.lineterminator
assert s.read() == f"ID,Date{lt}76,2021-02-09{lt}76,2021-02-10{lt}77,2021-02-11{lt}"
| 39.377778
| 103
| 0.613995
| 295
| 1,772
| 3.630508
| 0.169492
| 0.078431
| 0.065359
| 0.189542
| 0.888889
| 0.867414
| 0.824463
| 0.824463
| 0.824463
| 0.78338
| 0
| 0.120158
| 0.140519
| 1,772
| 44
| 104
| 40.272727
| 0.58306
| 0
| 0
| 0.705882
| 0
| 0.058824
| 0.326749
| 0.094244
| 0
| 0
| 0
| 0
| 0.088235
| 1
| 0.088235
| false
| 0
| 0.088235
| 0
| 0.176471
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
59b88148137d8b2b10f751c53813640ff71ca31f
| 193
|
py
|
Python
|
mentoriacompartilhada/hello/models.py
|
mentoriacompartilhada/paulushcgcj-python-v0
|
e7ead91b063be4db7486c82bb33d0a1f2839fcee
|
[
"Apache-2.0"
] | null | null | null |
mentoriacompartilhada/hello/models.py
|
mentoriacompartilhada/paulushcgcj-python-v0
|
e7ead91b063be4db7486c82bb33d0a1f2839fcee
|
[
"Apache-2.0"
] | null | null | null |
mentoriacompartilhada/hello/models.py
|
mentoriacompartilhada/paulushcgcj-python-v0
|
e7ead91b063be4db7486c82bb33d0a1f2839fcee
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
class Pessoa(models.Model):
nome = models.CharField(max_length=255)
email = models.CharField(max_length=60)
password = models.CharField(max_length=40)
| 27.571429
| 46
| 0.751295
| 27
| 193
| 5.259259
| 0.62963
| 0.316901
| 0.380282
| 0.507042
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042424
| 0.145078
| 193
| 6
| 47
| 32.166667
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.2
| 0.2
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
59e30f9f959b2c66b401761370f2411c0209c528
| 175
|
py
|
Python
|
africanus/model/shape/__init__.py
|
JoshVStaden/codex-africanus
|
4a38994431d51510b1749fa0e4b8b6190b8b530f
|
[
"BSD-3-Clause"
] | 13
|
2018-04-06T09:36:13.000Z
|
2021-04-13T13:11:00.000Z
|
africanus/model/shape/__init__.py
|
JoshVStaden/codex-africanus
|
4a38994431d51510b1749fa0e4b8b6190b8b530f
|
[
"BSD-3-Clause"
] | 153
|
2018-03-28T14:13:48.000Z
|
2022-02-03T07:49:17.000Z
|
africanus/model/shape/__init__.py
|
JoshVStaden/codex-africanus
|
4a38994431d51510b1749fa0e4b8b6190b8b530f
|
[
"BSD-3-Clause"
] | 14
|
2018-03-29T13:30:52.000Z
|
2021-06-12T02:56:55.000Z
|
__all__ = ["gaussian", "shapelet", "shapelet_1d"]
from africanus.model.shape.gaussian_shape import gaussian
from africanus.model.shape.shapelets import shapelet, shapelet_1d
| 35
| 65
| 0.811429
| 22
| 175
| 6.136364
| 0.454545
| 0.237037
| 0.266667
| 0.340741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0125
| 0.085714
| 175
| 4
| 66
| 43.75
| 0.83125
| 0
| 0
| 0
| 0
| 0
| 0.154286
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f9f4ca1baf2499f3c5e5d70800f7df201fe8a71a
| 5,385
|
py
|
Python
|
support/generators/generate_vm_opcodes.py
|
Drarok/saffire
|
38315853acd87bf1ca7d150ab929f8b515b77a1c
|
[
"BSD-3-Clause"
] | 24
|
2015-01-04T13:13:39.000Z
|
2022-02-08T12:18:35.000Z
|
support/generators/generate_vm_opcodes.py
|
Drarok/saffire
|
38315853acd87bf1ca7d150ab929f8b515b77a1c
|
[
"BSD-3-Clause"
] | 56
|
2015-02-27T16:00:28.000Z
|
2019-09-17T08:55:01.000Z
|
support/generators/generate_vm_opcodes.py
|
Drarok/saffire
|
38315853acd87bf1ca7d150ab929f8b515b77a1c
|
[
"BSD-3-Clause"
] | 8
|
2015-02-26T08:29:00.000Z
|
2019-08-22T16:36:48.000Z
|
"""
This script creates a vmopcodes.h include file from our vm_codes template. This is needed because we need to have
a few different kind of accessing the opcodes. Either by a define, or through an array (by hexidecimal code).
"""
import textwrap
import sys
import re
#
# Read opcodes
#
opcodes = {}
for line in open(sys.argv[1]):
line = line.strip()
if not line or line[0] == ';' :
continue
match = re.match('[\t ]*([A-Z_0-9]+)[\t ]+([0-9A-Fx]+)', line, re.IGNORECASE)
if match is None:
print "Encountered incorrect formated opcode at '%s'\n" % line
opcodes[match.group(2)] = match.group(1)
opcode_keys = opcodes.keys()
opcode_keys.sort()
#
# Write H file
#
fp = open(sys.argv[3], "w")
header = '''
/*
Copyright (c) 2012-2015, The Saffire Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Saffire Group the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __VM_GENERATED_OPCODES_H__
#define __VM_GENERATED_OPCODES_H__
/*
* WARNING: THIS FILE IS AUTOGENERATED! PLEASE USE CREATE_VMOPCODES_H.PY TO REGENERATE!
*/
'''
fp.write(header)
for hex_code,str_code in opcodes.iteritems():
fp.write(" #define VM_%-20s%s\n" % (str_code.upper(), hex_code))
fp.write("\n\n")
fp.write(" int vm_codes_offset[256];\n")
fp.write(" char *vm_code_names[%d];\n" % len(opcodes))
footer = '''
#endif
'''
fp.write(footer)
fp.close()
#
# Write C file
#
fp = open(sys.argv[2], "w")
header = '''
/*
Copyright (c) 2012-2015, The Saffire Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Saffire Group the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* WARNING: THIS FILE IS AUTOGENERATED! PLEASE USE CREATE_VMOPCODES_H.PY TO REGENERATE!
*/
'''
fp.write(header)
# Do indexes
fp.write("int vm_codes_index[%d] = {\n" % len(opcodes))
for line in textwrap.wrap(", ".join(opcode_keys), 70, initial_indent=' ', subsequent_indent="\n ") :
fp.write(line)
fp.write("\n};\n")
fp.write("\n\n")
# Do offsets
fp.write("int vm_codes_offset[256] = {\n")
s = []
for i in range(0,256) :
opcode = "0x%02X" % i
if opcode in opcode_keys :
idx = opcode_keys.index(opcode)
else :
idx = -1
s.append(str(idx))
#fp.write(", ".join(s))
for line in textwrap.wrap(", ".join(s), 70, initial_indent=' ', subsequent_indent="\n ") :
fp.write(line)
fp.write("\n};\n")
fp.write("\n\n")
# Do names
fp.write("char *vm_code_names[%d] = {\n" % len(opcodes))
s = []
for i in opcode_keys :
s.append('"%s"' % opcodes[i])
for line in textwrap.wrap(", ".join(s), 70, initial_indent=' ', subsequent_indent="\n ") :
fp.write(line)
fp.write("\n};\n")
fp.write("\n\n")
fp.close()
| 31.491228
| 114
| 0.723677
| 815
| 5,385
| 4.723926
| 0.274847
| 0.036364
| 0.016623
| 0.016364
| 0.79013
| 0.776364
| 0.767532
| 0.767532
| 0.753506
| 0.753506
| 0
| 0.010847
| 0.178273
| 5,385
| 170
| 115
| 31.676471
| 0.859209
| 0.016899
| 0
| 0.669565
| 0
| 0
| 0.720571
| 0.027348
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.026087
| null | null | 0.008696
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e60e84c28bec7ba0fad6e17f061be225e0bd43d1
| 164
|
py
|
Python
|
tests/mdown/examples/header/header.py
|
looking-for-a-job/mdown.py
|
75733ceaf4c6970d0e631b6efdfcd422098cea65
|
[
"Unlicense"
] | 1
|
2020-10-09T22:57:20.000Z
|
2020-10-09T22:57:20.000Z
|
tests/mdown/examples/header/header.py
|
looking-for-a-job/mdown.py
|
75733ceaf4c6970d0e631b6efdfcd422098cea65
|
[
"Unlicense"
] | null | null | null |
tests/mdown/examples/header/header.py
|
looking-for-a-job/mdown.py
|
75733ceaf4c6970d0e631b6efdfcd422098cea65
|
[
"Unlicense"
] | null | null | null |
#!/usr/bin/env python
import mdown
string = '# Title'
assert string == mdown.header("Title", 1)
string = '###### Title'
assert string == mdown.header("Title", 6)
| 18.222222
| 41
| 0.646341
| 22
| 164
| 4.818182
| 0.545455
| 0.207547
| 0.320755
| 0.433962
| 0.735849
| 0.735849
| 0.735849
| 0
| 0
| 0
| 0
| 0.014286
| 0.146341
| 164
| 8
| 42
| 20.5
| 0.742857
| 0.121951
| 0
| 0
| 0
| 0
| 0.202797
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e66151a042479f492d7a0194b8d1f09adf73bc33
| 161
|
py
|
Python
|
__tests__/__init__.py
|
brtkev/binance-wrapper
|
d32bb4d76fe189859dd0c5b1fa9d70ae769fa1c2
|
[
"MIT"
] | null | null | null |
__tests__/__init__.py
|
brtkev/binance-wrapper
|
d32bb4d76fe189859dd0c5b1fa9d70ae769fa1c2
|
[
"MIT"
] | null | null | null |
__tests__/__init__.py
|
brtkev/binance-wrapper
|
d32bb4d76fe189859dd0c5b1fa9d70ae769fa1c2
|
[
"MIT"
] | null | null | null |
from __tests__.testUtils import *
from __tests__.testInfo import *
from __tests__.testMargin import *
from __tests__.spot import *
from __tests__.extra import *
| 26.833333
| 34
| 0.813665
| 20
| 161
| 5.55
| 0.4
| 0.405405
| 0.540541
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124224
| 161
| 6
| 35
| 26.833333
| 0.787234
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
050eb7cf42ab54d8ce9e017058eaeed543354e73
| 162
|
py
|
Python
|
RSSINav/eval.py
|
bytemaster-0xff/playground
|
bf038c2d9c62519a5310aba4f65e56e6cb2eb20e
|
[
"MIT"
] | 1
|
2017-05-01T07:25:45.000Z
|
2017-05-01T07:25:45.000Z
|
RSSINav/eval.py
|
bytemaster-0xff/playground
|
bf038c2d9c62519a5310aba4f65e56e6cb2eb20e
|
[
"MIT"
] | null | null | null |
RSSINav/eval.py
|
bytemaster-0xff/playground
|
bf038c2d9c62519a5310aba4f65e56e6cb2eb20e
|
[
"MIT"
] | null | null | null |
import csv
import numpy as np
import converter as js
#import torch
#from torch.autograd import Variable
#import torch.nn as nn
#import torch.nn.functional as F
| 16.2
| 36
| 0.790123
| 28
| 162
| 4.571429
| 0.5
| 0.257813
| 0.203125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 162
| 9
| 37
| 18
| 0.941176
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
052e525079ebfccc3a00495d95c5d3053e06e08d
| 217
|
py
|
Python
|
test/cli/test_insiders.py
|
AramKoorn/TenBagger
|
cc207b1e288b1ff7345ccb7802218bee28bc2245
|
[
"Apache-2.0"
] | 52
|
2021-07-15T12:26:38.000Z
|
2022-03-10T03:05:14.000Z
|
test/cli/test_insiders.py
|
AramKoorn/TenBagger
|
cc207b1e288b1ff7345ccb7802218bee28bc2245
|
[
"Apache-2.0"
] | 7
|
2021-07-16T06:39:04.000Z
|
2021-11-14T20:57:12.000Z
|
test/cli/test_insiders.py
|
AramKoorn/TenBagger
|
cc207b1e288b1ff7345ccb7802218bee28bc2245
|
[
"Apache-2.0"
] | 3
|
2021-07-28T05:46:33.000Z
|
2021-11-08T04:48:50.000Z
|
import pytest
import subprocess
def test_insiders_company():
subprocess.call("python3 cli/insiders.py SONO", shell=True)
def test_insiders_overview():
subprocess.call("python3 cli/purchases.py", shell=True)
| 19.727273
| 62
| 0.774194
| 29
| 217
| 5.655172
| 0.551724
| 0.085366
| 0.182927
| 0.292683
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010417
| 0.115207
| 217
| 10
| 63
| 21.7
| 0.84375
| 0
| 0
| 0
| 0
| 0
| 0.239631
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0595dd9ffa65ae1eb57912298418c6e6f8316011
| 69
|
py
|
Python
|
convokit/lengthTracker/__init__.py
|
maubinle/Cornell-Conversational-Analysis-Toolkit
|
5339c2b9bd3f147d3f44f3d1456607f01f46af54
|
[
"MIT"
] | 1
|
2021-12-24T13:56:20.000Z
|
2021-12-24T13:56:20.000Z
|
convokit/lengthTracker/__init__.py
|
maubinle/Cornell-Conversational-Analysis-Toolkit
|
5339c2b9bd3f147d3f44f3d1456607f01f46af54
|
[
"MIT"
] | null | null | null |
convokit/lengthTracker/__init__.py
|
maubinle/Cornell-Conversational-Analysis-Toolkit
|
5339c2b9bd3f147d3f44f3d1456607f01f46af54
|
[
"MIT"
] | null | null | null |
from .lengthTracker import *
from .lengthTracker import LengthTracker
| 34.5
| 40
| 0.855072
| 7
| 69
| 8.428571
| 0.428571
| 0.576271
| 0.779661
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 69
| 2
| 40
| 34.5
| 0.951613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
55b234ae6ccb28116667461799f4ee7f27eefe38
| 4,195
|
py
|
Python
|
tests/api_tests/test_api_list_patching.py
|
IlyaKozlov/dedoc
|
aa25a8868b5fd61314a32de2e22871a6d10fa3be
|
[
"Apache-2.0"
] | null | null | null |
tests/api_tests/test_api_list_patching.py
|
IlyaKozlov/dedoc
|
aa25a8868b5fd61314a32de2e22871a6d10fa3be
|
[
"Apache-2.0"
] | null | null | null |
tests/api_tests/test_api_list_patching.py
|
IlyaKozlov/dedoc
|
aa25a8868b5fd61314a32de2e22871a6d10fa3be
|
[
"Apache-2.0"
] | null | null | null |
from tests.api_tests.abstrac_api_test import AbstractTestApiDocReader
class TestApiDocReader(AbstractTestApiDocReader):
def test_list_patching(self) -> None:
file_name = "docx/13_moloko_1_polug.docx"
result = self._send_request(file_name, data={"structure_type": "tree"})
content = result["content"]["structure"]
lst = content["subparagraphs"][1]
self.assertEqual(len(lst["subparagraphs"]), 2)
lst = content["subparagraphs"][2]
self.assertEqual(len(lst["subparagraphs"]), 11)
def test_list_patching_2(self) -> None:
file_name = "list_tests/missed_list.docx"
result = self._send_request(file_name, data={"structure_type": "tree"})
content = result["content"]["structure"]
subparagraphs = content["subparagraphs"][0]
self.assertEqual(len(subparagraphs["subparagraphs"]), 5)
self.assertEqual(subparagraphs["subparagraphs"][0]["text"], "1. list item 1")
self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "2. list item 2")
self.assertEqual(subparagraphs["subparagraphs"][2]["text"], "3. list item 3")
self.assertEqual(subparagraphs["subparagraphs"][3]["text"], "4. list item 4")
self.assertEqual(subparagraphs["subparagraphs"][4]["text"], "6. list item 6")
subparagraphs = subparagraphs["subparagraphs"][4]["subparagraphs"][0]
self.assertEqual(len(subparagraphs["subparagraphs"]), 3)
self.assertEqual(subparagraphs["subparagraphs"][0]["text"], "6.1. list item 6.1")
self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "6.3 list item 6.3")
self.assertEqual(subparagraphs["subparagraphs"][2]["text"], "6.5 list item 6.5")
subparagraphs = subparagraphs["subparagraphs"][1]["subparagraphs"][1]
self.assertEqual(len(subparagraphs["subparagraphs"]), 2)
self.assertEqual(subparagraphs["subparagraphs"][0]["text"], "6.3.2.3 list item 6.3.2.3")
self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "6.3.2.4. list item 6.3.2.4")
def test_list_patching_3(self) -> None:
file_name = "list_tests/missed_list_2.docx"
result = self._send_request(file_name, data={"structure_type": "tree"})
content = result["content"]["structure"]
subparagraphs = content["subparagraphs"][0]
self.assertEqual(len(subparagraphs["subparagraphs"]), 5)
self.assertEqual(subparagraphs["subparagraphs"][0]["text"], "1. list item 1")
self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "2. list item 2")
self.assertEqual(subparagraphs["subparagraphs"][2]["text"], "3. list item 3")
self.assertEqual(subparagraphs["subparagraphs"][3]["text"], "4. list item 4")
self.assertEqual(subparagraphs["subparagraphs"][4]["text"], "6. list item 6")
self.assertEqual(subparagraphs["subparagraphs"][1]["subparagraphs"][0]["subparagraphs"][0]["text"], "1)")
self.assertEqual(subparagraphs["subparagraphs"][1]["subparagraphs"][0]["subparagraphs"][1]["text"], "3)")
self.assertEqual(subparagraphs["subparagraphs"][1]["subparagraphs"][0]["subparagraphs"][2]["text"], "4)")
self.assertEqual(subparagraphs["subparagraphs"][1]["subparagraphs"][0]["subparagraphs"][3]["text"], "7)")
subparagraphs = subparagraphs["subparagraphs"][4]["subparagraphs"][0]
self.assertEqual(len(subparagraphs["subparagraphs"]), 3)
self.assertEqual(subparagraphs["subparagraphs"][0]["text"], "6.1. list item 6.1")
# self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "6.2.")
self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "6.3 list item 6.3")
# self.assertEqual(list["subparagraphs"][3]["text"], "6.4.")
self.assertEqual(subparagraphs["subparagraphs"][2]["text"], "6.5 list item 6.5")
subparagraphs = subparagraphs["subparagraphs"][1]["subparagraphs"][1]
self.assertEqual(len(subparagraphs["subparagraphs"]), 2)
self.assertEqual(subparagraphs["subparagraphs"][0]["text"], "6.3.2.3. list item 6.3.2.3")
self.assertEqual(subparagraphs["subparagraphs"][1]["text"], "6.3.2.4. list item 6.3.2.4")
| 58.263889
| 113
| 0.660072
| 481
| 4,195
| 5.686071
| 0.091476
| 0.37075
| 0.255942
| 0.374771
| 0.897258
| 0.866179
| 0.865448
| 0.865448
| 0.73894
| 0.73894
| 0
| 0.040788
| 0.152563
| 4,195
| 71
| 114
| 59.084507
| 0.728551
| 0.030036
| 0
| 0.666667
| 0
| 0
| 0.322676
| 0.020413
| 0
| 0
| 0
| 0
| 0.592593
| 1
| 0.055556
| false
| 0
| 0.018519
| 0
| 0.092593
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
e966a39f23489bde8ad89920be2f6089a89b035d
| 127
|
py
|
Python
|
Loss_Function/load_loss_function.py
|
Encyclomen/Neural-Machine-Translation
|
c3cd7883c7cf907ab65625e8de7ca9dd23ba2b82
|
[
"MIT"
] | 2
|
2018-12-10T15:40:29.000Z
|
2019-03-28T09:57:40.000Z
|
Loss_Function/load_loss_function.py
|
Encyclomen/Neural-Machine-Translation
|
c3cd7883c7cf907ab65625e8de7ca9dd23ba2b82
|
[
"MIT"
] | null | null | null |
Loss_Function/load_loss_function.py
|
Encyclomen/Neural-Machine-Translation
|
c3cd7883c7cf907ab65625e8de7ca9dd23ba2b82
|
[
"MIT"
] | null | null | null |
def load_loss_function(loss_class, *args, **kwargs):
loss_function = loss_class(*args, **kwargs)
return loss_function
| 25.4
| 52
| 0.732283
| 17
| 127
| 5.117647
| 0.470588
| 0.413793
| 0.367816
| 0.482759
| 0.712644
| 0.712644
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149606
| 127
| 4
| 53
| 31.75
| 0.805556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
e979b4bae6e180bd9922812fb93e820cfd52be58
| 442
|
py
|
Python
|
pietoolbelt/metrics/cpu/regression.py
|
kitkat52/pietoolbelt
|
0e0b5859662fcb43b008218746cc3e76cc66b6b8
|
[
"MIT"
] | 1
|
2021-05-30T08:21:12.000Z
|
2021-05-30T08:21:12.000Z
|
pietoolbelt/metrics/cpu/regression.py
|
kitkat52/pietoolbelt
|
0e0b5859662fcb43b008218746cc3e76cc66b6b8
|
[
"MIT"
] | 7
|
2020-07-07T21:04:08.000Z
|
2021-12-13T10:08:17.000Z
|
pietoolbelt/metrics/cpu/regression.py
|
kitkat52/pietoolbelt
|
0e0b5859662fcb43b008218746cc3e76cc66b6b8
|
[
"MIT"
] | 1
|
2021-06-17T09:21:39.000Z
|
2021-06-17T09:21:39.000Z
|
import numpy as np
def rmse(predict: np.ndarray, target: np.ndarray) -> float:
return float(np.mean(np.sqrt(np.mean((predict - target) ** 2, axis=0))))
def amad(predict: np.ndarray, target: np.ndarray) -> float:
return float(np.mean(np.mean(np.abs(predict - target), axis=0)))
def relative(predict: np.ndarray, target: np.ndarray) -> float:
return float(np.mean(np.mean(np.abs(predict - target) / (target + 1e-6), axis=1)))
| 31.571429
| 86
| 0.671946
| 71
| 442
| 4.183099
| 0.309859
| 0.181818
| 0.13468
| 0.222222
| 0.703704
| 0.703704
| 0.703704
| 0.703704
| 0.703704
| 0.703704
| 0
| 0.015873
| 0.144796
| 442
| 13
| 87
| 34
| 0.769841
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0.142857
| 0.428571
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 9
|
e97d834dfa715cbee84ebcc35c77b0a9a3b8be1d
| 405
|
py
|
Python
|
Advanced/Exercises/Functions_Advanced_Lab/2_person_info.py
|
tankishev/Python
|
60e511fc901f136b88c681f77f209fe2f8c46447
|
[
"MIT"
] | 2
|
2022-03-04T11:39:03.000Z
|
2022-03-13T07:13:23.000Z
|
Advanced/Exercises/Functions_Advanced_Lab/2_person_info.py
|
tankishev/Python
|
60e511fc901f136b88c681f77f209fe2f8c46447
|
[
"MIT"
] | null | null | null |
Advanced/Exercises/Functions_Advanced_Lab/2_person_info.py
|
tankishev/Python
|
60e511fc901f136b88c681f77f209fe2f8c46447
|
[
"MIT"
] | null | null | null |
# Write a function called get_info that receives a name, an age, and a town and returns a string in the format:
# "This is {name} from {town} and he is {age} years old". Use dictionary unpacking when testing your function. Submit only the function in the judge system.
def get_info(**kwargs):
return f"This is {kwargs.get('name')} from {kwargs.get('town')} and he is {kwargs.get('age')} years old"
| 57.857143
| 156
| 0.718519
| 71
| 405
| 4.070423
| 0.535211
| 0.072664
| 0.062284
| 0.076125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17284
| 405
| 6
| 157
| 67.5
| 0.862687
| 0.654321
| 0
| 0
| 0
| 0.5
| 0.686131
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
756c6b802e9e43288683380d69f94d755e4bcb46
| 10,120
|
py
|
Python
|
environments/gym_pycolab/envs/pycolab_grid_worlds_env.py
|
braemt/attentive-multi-task-deep-reinforcement-learning
|
921feefce98076f88c892f0b7e6db8572f596763
|
[
"MIT"
] | 12
|
2019-04-07T02:04:48.000Z
|
2022-03-22T12:57:47.000Z
|
environments/gym_pycolab/envs/pycolab_grid_worlds_env.py
|
braemt/attentive-multi-task-deep-reinforcement-learning
|
921feefce98076f88c892f0b7e6db8572f596763
|
[
"MIT"
] | null | null | null |
environments/gym_pycolab/envs/pycolab_grid_worlds_env.py
|
braemt/attentive-multi-task-deep-reinforcement-learning
|
921feefce98076f88c892f0b7e6db8572f596763
|
[
"MIT"
] | 7
|
2019-04-07T02:04:49.000Z
|
2020-12-28T10:30:27.000Z
|
# THIS FILE IS NEW OR MODIFIED COMPARED TO https://github.com/deepmind/pycolab
import random
import numpy as np
from gym import spaces
from gym_pycolab.envs.pycolab_env import PycolabEnv
from gym_pycolab.worlds import grid_worlds as grid_worlds
from gym_pycolab.worlds import connect_four
WALL_LEVEL = [' # ',
' # ',
'## # ',
' ',
' ',
' # ##',
' # ',
' # ']
class PycolabConnectNEnv(PycolabEnv):
def __init__(self):
super(PycolabEnv, self).__init__()
def _make_game(self):
self._setup()
return connect_four.make_game(shape=self._shape, connect_n=6)
def _setup(self):
self.action_space = spaces.Discrete(self._shape[1])
self._observation_shape = [self._shape[0], self._shape[1], 1]
self.observation_space = spaces.Box(0.0, 1.0, self._observation_shape)
class PycolabConnect4Env(PycolabConnectNEnv):
def __init__(self):
self._shape = [8, 8]
super(PycolabConnectNEnv, self).__init__()
def _make_game(self):
self._setup()
return connect_four.make_game(shape=self._shape, connect_n=4)
class PycolabConnect4RotatedEnv(PycolabConnectNEnv):
def __init__(self):
self._shape = [8, 8]
super(PycolabConnectNEnv, self).__init__()
def _make_game(self):
self._setup()
return connect_four.make_game(shape=self._shape, connect_n=4)
def _format_observation(self, state):
state = super(PycolabConnect4RotatedEnv, self)._format_observation(state)
return np.rot90(state, k=1)
class PycolabConnect5Env(PycolabConnectNEnv):
def __init__(self):
self._shape = [8, 8]
super(PycolabConnectNEnv, self).__init__()
def _make_game(self):
self._setup()
return connect_four.make_game(shape=self._shape, connect_n=5)
class PycolabConnect5RotatedEnv(PycolabConnectNEnv):
def __init__(self):
self._shape = [8, 8]
super(PycolabConnectNEnv, self).__init__()
def _make_game(self):
self._setup()
return connect_four.make_game(shape=self._shape, connect_n=5)
def _format_observation(self, state):
state = super(PycolabConnect5RotatedEnv, self)._format_observation(state)
return np.rot90(state, k=1)
class PycolabGridWorldsEnv(PycolabEnv):
def __init__(self):
super(PycolabEnv, self).__init__()
self._setup()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=None, terminal_reward=0.5, bonus_reward=0.5, per_step_cost=0.0,
positive_rewards=0, negative_rewards=0, swap_rewards=False,
confined_to_board=False, off_board_cost=0.5, wall_is_terminal=False, wall_cost=0.0,
swap_actions=False, doors=False, round_world=False)
def _setup(self):
self.action_space = spaces.Discrete(4)
self._observation_shape = [8, 8, 1]
self.observation_space = spaces.Box(0.0, 1.0, self._observation_shape)
class PycolabGridWorldsLevel1Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=1.0, per_step_cost=0.01, confined_to_board=True,
off_board_cost=0.0)
class PycolabGridWorldsLevel2Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=1.0)
class PycolabGridWorldsLevel3Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(positive_rewards=1)
class PycolabGridWorldsLevel4Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(positive_rewards=1, negative_rewards=1)
class PycolabGridWorldsLevel5Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=0.4, positive_rewards=3, bonus_reward=0.2)
class PycolabGridWorldsLevel6Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=0.4, positive_rewards=3, negative_rewards=1, bonus_reward=0.2)
class PycolabGridWorldsLevel7Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(positive_rewards=1, negative_rewards=1, swap_rewards=True)
class PycolabGridWorldsLevel8Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=1.0, positive_rewards=3, swap_rewards=True, bonus_reward=0.2)
class PycolabGridWorldsLevel9Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=0.4, negative_rewards=3, swap_rewards=True, bonus_reward=0.2)
class PycolabGridWorldsLevel10Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=0.4, positive_rewards=1, negative_rewards=3, swap_rewards=True,
bonus_reward=0.2)
class PycolabGridWorldsLevel11Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=1.0, per_step_cost=0.01,
confined_to_board=True, off_board_cost=0.0)
class PycolabGridWorldsLevel12Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=1.0)
class PycolabGridWorldsLevel13Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, positive_rewards=1)
class PycolabGridWorldsLevel14Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, positive_rewards=1, negative_rewards=1)
class PycolabGridWorldsLevel15Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=0.4, positive_rewards=3, bonus_reward=0.2)
class PycolabGridWorldsLevel16Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=0.4, positive_rewards=3, negative_rewards=1,
bonus_reward=0.2)
class PycolabGridWorldsLevel17Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, positive_rewards=1, negative_rewards=1, swap_rewards=True)
class PycolabGridWorldsLevel18Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=1.0, positive_rewards=3, swap_rewards=True,
bonus_reward=0.2)
class PycolabGridWorldsLevel19Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=0.4, negative_rewards=3, swap_rewards=True,
bonus_reward=0.2)
class PycolabGridWorldsLevel20Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(raw_level=WALL_LEVEL, terminal_reward=0.4, positive_rewards=1, negative_rewards=3,
swap_rewards=True, bonus_reward=0.2)
class PycolabGridWorldsLevel101Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(terminal_reward=1.0, swap_actions=True)
class PycolabGridWorldsLevel102Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(positive_rewards=1, swap_actions=True)
class PycolabGridWorldsLevel103Env(PycolabGridWorldsEnv):
def __init__(self):
super(PycolabGridWorldsEnv, self).__init__()
def _make_game(self):
self._setup()
return grid_worlds.make_game(positive_rewards=1, negative_rewards=1, swap_actions=True)
| 32.332268
| 120
| 0.686957
| 1,135
| 10,120
| 5.651982
| 0.096035
| 0.07233
| 0.049727
| 0.06781
| 0.795168
| 0.78145
| 0.78145
| 0.767732
| 0.742479
| 0.742479
| 0
| 0.022681
| 0.21581
| 10,120
| 313
| 121
| 32.332268
| 0.78566
| 0.00751
| 0
| 0.658986
| 0
| 0
| 0.006373
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.02765
| 0
| 0.589862
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
759cdb2dc66624e5bc8d22dcd25ecbe544e048dd
| 4,657
|
py
|
Python
|
tests/test_cache.py
|
udatsnoi/Flask-CacheControl
|
55c5d40106e2dd81d56efa253698210a6c63fcf4
|
[
"BSD-3-Clause"
] | 18
|
2016-10-04T10:26:32.000Z
|
2021-04-26T15:40:18.000Z
|
tests/test_cache.py
|
udatsnoi/Flask-CacheControl
|
55c5d40106e2dd81d56efa253698210a6c63fcf4
|
[
"BSD-3-Clause"
] | 4
|
2017-03-01T13:28:44.000Z
|
2021-02-27T12:20:13.000Z
|
tests/test_cache.py
|
udatsnoi/Flask-CacheControl
|
55c5d40106e2dd81d56efa253698210a6c63fcf4
|
[
"BSD-3-Clause"
] | 6
|
2016-01-26T18:23:50.000Z
|
2021-02-19T08:34:42.000Z
|
import pytest
from flask import Flask, Response
from flask_cachecontrol import FlaskCacheControl, cache_for, cache, dont_cache, ResponseIsSuccessful, Always
app = Flask(__name__)
flask_cache_control = FlaskCacheControl(app)
@app.route('/cache_for/on_success/<int:status_code>')
@cache_for(only_if=ResponseIsSuccessful, seconds=300)
def view_cache_for_on_success(status_code):
return Response(status=status_code)
@app.route('/cache_for/always/<int:status_code>')
@cache_for(only_if=Always, seconds=300)
def view_cache_for_always(status_code):
return Response(status=status_code)
@app.route('/dont_cache/always/<int:status_code>')
@dont_cache(only_if=Always)
def view_dont_cache_always(status_code):
return Response(status=status_code)
@app.route('/dont_cache/on_success/<int:status_code>')
@dont_cache(only_if=ResponseIsSuccessful)
def view_dont_cache_on_success(status_code):
return Response(status=status_code)
@app.route('/cache/always/<int:status_code>')
@cache(no_store=True, only_if=Always)
def view_cache_always(status_code):
return Response(status=status_code)
@app.route('/cache/on_success/<int:status_code>')
@cache(no_store=True, only_if=ResponseIsSuccessful)
def view_cache_on_success(status_code):
return Response(status=status_code)
@app.route('/cache/always_only_if_none/<int:status_code>')
@cache(no_store=True, only_if=None)
def view_cache_on_success_only_if_none(status_code):
return Response(status=status_code)
@pytest.fixture
def client():
app.config['TESTING'] = True
with app.test_client() as client:
yield client
def test_cache_for_always_works_for_200(client):
rv = client.get('/cache_for/always/200')
assert 'Cache-Control' in rv.headers and rv.headers['Cache-Control'] == 'max-age=300'
assert 'Expires' in rv.headers
def test_cache_for_always_works_for_404(client):
rv = client.get('/cache_for/always/404')
assert 'Cache-Control' in rv.headers and rv.headers['Cache-Control'] == 'max-age=300'
assert 'Expires' in rv.headers
def test_cache_for_on_success_works_on_success(client):
rv = client.get('/cache_for/on_success/200')
assert 'Cache-Control' in rv.headers
def test_cache_for_on_success_works_not_on_failure(client):
rv = client.get('/cache_for/on_success/300')
assert 'Cache-Control' not in rv.headers
rv = client.get('/cache_for/on_success/404')
assert 'Cache-Control' not in rv.headers
def test_dont_cache_always_works_on_success(client):
rv = client.get('/dont_cache/always/200')
assert 'Cache-Control' in rv.headers and 'no-cache' in rv.headers['Cache-Control']
def test_dont_cache_always_works_on_failure(client):
rv = client.get('/dont_cache/always/404')
assert 'Cache-Control' in rv.headers and 'no-cache' in rv.headers['Cache-Control']
def test_dont_cache_on_success_works_on_success(client):
rv = client.get('/dont_cache/on_success/200')
assert 'Cache-Control' in rv.headers and 'no-cache' in rv.headers['Cache-Control']
def test_dont_cache_on_success_works_not_on_failure(client):
rv = client.get('/dont_cache/on_success/404')
assert 'Cache-Control' not in rv.headers
def test_cache_always_works_on_success(client):
rv = client.get('/cache/always/200')
assert 'Cache-Control' in rv.headers \
and 'no-store' in rv.headers['Cache-Control'] \
and 'no-cache' not in rv.headers['Cache-Control']
def test_cache_always_works_on_failure(client):
rv = client.get('/cache/always/404')
assert 'Cache-Control' in rv.headers \
and 'no-store' in rv.headers['Cache-Control'] \
and 'no-cache' not in rv.headers['Cache-Control']
def test_cache_on_success_works_on_success(client):
rv = client.get('/cache/on_success/200')
assert 'Cache-Control' in rv.headers \
and 'no-store' in rv.headers['Cache-Control'] \
and 'no-cache' not in rv.headers['Cache-Control']
def test_cache_on_success_works_not_on_failure(client):
rv = client.get('/cache/on_success/404')
assert 'Cache-Control' not in rv.headers
def test_cache_always_works_on_success_with_only_if_none(client):
rv = client.get('/cache/always_only_if_none/200')
assert 'Cache-Control' in rv.headers \
and 'no-store' in rv.headers['Cache-Control'] \
and 'no-cache' not in rv.headers['Cache-Control']
def test_cache_always_works_on_failure_with_only_if_none(client):
rv = client.get('/cache/always_only_if_none/404')
assert 'Cache-Control' in rv.headers \
and 'no-store' in rv.headers['Cache-Control'] \
and 'no-cache' not in rv.headers['Cache-Control']
| 32.795775
| 108
| 0.739102
| 713
| 4,657
| 4.551192
| 0.075736
| 0.088752
| 0.101695
| 0.097072
| 0.896764
| 0.85886
| 0.835131
| 0.743297
| 0.73621
| 0.651772
| 0
| 0.015644
| 0.13528
| 4,657
| 141
| 109
| 33.028369
| 0.790166
| 0
| 0
| 0.351064
| 0
| 0
| 0.246081
| 0.12347
| 0
| 0
| 0
| 0
| 0.180851
| 1
| 0.234043
| false
| 0
| 0.031915
| 0.074468
| 0.340426
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
759da48e6bb6f7cd631d38881a702f72b6d31eb6
| 777
|
py
|
Python
|
pontoon/base/__init__.py
|
sudheesh001/pontoon
|
046bb50113a76ff278de73036db395ea726cab43
|
[
"BSD-3-Clause"
] | 1
|
2017-04-04T06:55:46.000Z
|
2017-04-04T06:55:46.000Z
|
pontoon/base/__init__.py
|
zbraniecki/pontoon
|
d559316783938bc66d5d9a52dcdb01137475c259
|
[
"BSD-3-Clause"
] | null | null | null |
pontoon/base/__init__.py
|
zbraniecki/pontoon
|
d559316783938bc66d5d9a52dcdb01137475c259
|
[
"BSD-3-Clause"
] | null | null | null |
"""Application base, containing global templates."""
default_app_config = 'pontoon.base.apps.BaseConfig'
MOZILLA_REPOS = (
'ssh://hg.mozilla.org/users/m_owca.info/firefox-beta/',
'ssh://hg.mozilla.org/users/m_owca.info/firefox-for-android-beta/',
'ssh://hg.mozilla.org/users/m_owca.info/thunderbird-beta/',
'ssh://hg.mozilla.org/users/m_owca.info/lightning-beta/',
'ssh://hg.mozilla.org/users/m_owca.info/seamonkey-beta/',
'ssh://hg.mozilla.org/users/m_owca.info/firefox-aurora/',
'ssh://hg.mozilla.org/users/m_owca.info/firefox-for-android-aurora/',
'ssh://hg.mozilla.org/users/m_owca.info/thunderbird-aurora/',
'ssh://hg.mozilla.org/users/m_owca.info/lightning-aurora/',
'ssh://hg.mozilla.org/users/m_owca.info/seamonkey-aurora/',
)
| 45.705882
| 73
| 0.710425
| 118
| 777
| 4.567797
| 0.237288
| 0.092764
| 0.222635
| 0.278293
| 0.816327
| 0.816327
| 0.816327
| 0.816327
| 0.816327
| 0.252319
| 0
| 0
| 0.082368
| 777
| 16
| 74
| 48.5625
| 0.755961
| 0.059202
| 0
| 0
| 0
| 0.153846
| 0.824828
| 0.824828
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
75c1fcb5205ab2e797300258118f4de97112730a
| 75,746
|
py
|
Python
|
heat/tests/test_neutron.py
|
NeCTAR-RC/heat
|
b152817f192a7b46514793633ddc968c1fe1ebf8
|
[
"Apache-2.0"
] | 1
|
2015-02-26T03:23:23.000Z
|
2015-02-26T03:23:23.000Z
|
heat/tests/test_neutron.py
|
NeCTAR-RC/heat
|
b152817f192a7b46514793633ddc968c1fe1ebf8
|
[
"Apache-2.0"
] | null | null | null |
heat/tests/test_neutron.py
|
NeCTAR-RC/heat
|
b152817f192a7b46514793633ddc968c1fe1ebf8
|
[
"Apache-2.0"
] | null | null | null |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import copy
import mox
from testtools import skipIf
from heat.common import exception
from heat.common import template_format
from heat.engine import clients
from heat.engine import properties
from heat.engine import resource
from heat.engine.resources.neutron import net
from heat.engine.resources.neutron.neutron import NeutronResource as qr
from heat.engine.resources.neutron import provider_net
from heat.engine.resources.neutron import router
from heat.engine.resources.neutron import subnet
from heat.engine import scheduler
from heat.openstack.common.importutils import try_import
from heat.tests.common import HeatTestCase
from heat.tests import fakes
from heat.tests import utils
neutronclient = try_import('neutronclient.v2_0.client')
qe = try_import('neutronclient.common.exceptions')
neutron_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to test Neutron resources",
"Parameters" : {},
"Resources" : {
"network": {
"Type": "OS::Neutron::Net",
"Properties": {
"name": "the_network",
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"shared": true,
"dhcp_agent_ids": [
"28c25a04-3f73-45a7-a2b4-59e183943ddc"
]
}
},
"unnamed_network": {
"Type": "OS::Neutron::Net"
},
"admin_down_network": {
"Type": "OS::Neutron::Net",
"Properties": {
"admin_state_up": false
}
},
"subnet": {
"Type": "OS::Neutron::Subnet",
"Properties": {
"network_id": { "Ref" : "network" },
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"ip_version": 4,
"cidr": "10.0.3.0/24",
"allocation_pools": [{"start": "10.0.3.20", "end": "10.0.3.150"}],
"host_routes": [
{"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}],
"dns_nameservers": ["8.8.8.8"]
}
},
"port": {
"Type": "OS::Neutron::Port",
"Properties": {
"device_id": "d6b4d3a5-c700-476f-b609-1493dd9dadc0",
"name": "port1",
"network_id": { "Ref" : "network" },
"fixed_ips": [{
"subnet_id": { "Ref" : "subnet" },
"ip_address": "10.0.3.21"
}]
}
},
"port2": {
"Type": "OS::Neutron::Port",
"Properties": {
"name": "port2",
"network_id": { "Ref" : "network" }
}
},
"router": {
"Type": "OS::Neutron::Router",
"Properties": {
"l3_agent_id": "792ff887-6c85-4a56-b518-23f24fa65581"
}
},
"router_interface": {
"Type": "OS::Neutron::RouterInterface",
"Properties": {
"router_id": { "Ref" : "router" },
"subnet_id": { "Ref" : "subnet" }
}
},
"gateway": {
"Type": "OS::Neutron::RouterGateway",
"Properties": {
"router_id": { "Ref" : "router" },
"network_id": { "Ref" : "network" }
}
}
}
}
'''
provider_network_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to test Neutron resources",
"Resources" : {
"provider_network_vlan": {
"Type": "OS::Neutron::ProviderNet",
"Properties": {
"name": "the_provider_network",
"network_type": "vlan",
"physical_network": "physnet_1",
"segmentation_id": "101",
"shared": true
}
}
}
}
'''
neutron_external_gateway_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to test Neutron resources",
"Parameters" : {},
"Resources" : {
"router": {
"Type": "OS::Neutron::Router",
"Properties": {
"name": "Test Router",
"external_gateway_info": {
"network": "public",
"enable_snat": true
}
}
}
}
}
'''
neutron_floating_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to test Neutron resources",
"Parameters" : {},
"Resources" : {
"port_floating": {
"Type": "OS::Neutron::Port",
"Properties": {
"network_id": "xyz1234",
"fixed_ips": [{
"subnet_id": "sub1234",
"ip_address": "10.0.0.10"
}]
}
},
"floating_ip": {
"Type": "OS::Neutron::FloatingIP",
"Properties": {
"floating_network_id": "abcd1234",
}
},
"floating_ip_assoc": {
"Type": "OS::Neutron::FloatingIPAssociation",
"Properties": {
"floatingip_id": { "Ref" : "floating_ip" },
"port_id": { "Ref" : "port_floating" }
}
},
"router": {
"Type": "OS::Neutron::Router"
},
"gateway": {
"Type": "OS::Neutron::RouterGateway",
"Properties": {
"router_id": { "Ref" : "router" },
"network_id": "abcd1234"
}
}
}
}
'''
neutron_port_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to test Neutron resources",
"Parameters" : {},
"Resources" : {
"port": {
"Type": "OS::Neutron::Port",
"Properties": {
"network_id": "net1234",
"fixed_ips": [{
"subnet_id": "sub1234",
"ip_address": "10.0.3.21"
}],
"device_owner": "network:dhcp"
}
}
}
}
'''
neutron_port_with_address_pair_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Template to test Neutron resources",
"Parameters" : {},
"Resources" : {
"port": {
"Type": "OS::Neutron::Port",
"Properties": {
"network_id": "abcd1234",
"allowed_address_pairs": [{
"ip_address": "10.0.3.21",
"mac_address": "00-B0-D0-86-BB-F7"
}]
}
}
}
}
'''
neutron_subnet_and_external_gateway_template = '''
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"net_external": {
"Type": "OS::Neutron::Net",
"Properties": {
"name": "net_external",
"admin_state_up": true,
"value_specs": {
"provider:network_type": "flat",
"provider:physical_network": "default",
"router:external": true
}
}
},
"subnet_external": {
"Type": "OS::Neutron::Subnet",
"Properties": {
"name": "subnet_external",
"network_id": {
"Ref": "net_external"
},
"ip_version": 4,
"cidr": "192.168.10.0/24",
"gateway_ip": "192.168.10.11",
"enable_dhcp": false
}
},
"router": {
"Type": "OS::Neutron::Router",
"Properties": {
"name": "router_heat",
"external_gateway_info": {
"network": {
"Ref": "net_external"
}
}
}
}
}
}
'''
stpna = {
"network": {
"status": "ACTIVE",
"subnets": [],
"name": "the_provider_network",
"admin_state_up": True,
"shared": True,
"provider:network_type": "vlan",
"provider:physical_network": "physnet_1",
"provider:segmentation_id": "101",
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}
}
stpnb = copy.deepcopy(stpna)
stpnb['network']['status'] = "BUILD"
class NeutronTest(HeatTestCase):
def test_validate_properties(self):
vs = {'router:external': True}
data = {'admin_state_up': False,
'value_specs': vs}
p = properties.Properties(net.Net.properties_schema, data)
self.assertIsNone(qr.validate_properties(p))
vs['shared'] = True
self.assertEqual('shared not allowed in value_specs',
qr.validate_properties(p))
vs.pop('shared')
vs['name'] = 'foo'
self.assertEqual('name not allowed in value_specs',
qr.validate_properties(p))
vs.pop('name')
vs['tenant_id'] = '1234'
self.assertEqual('tenant_id not allowed in value_specs',
qr.validate_properties(p))
vs.pop('tenant_id')
vs['foo'] = '1234'
self.assertIsNone(qr.validate_properties(p))
def test_prepare_properties(self):
data = {'admin_state_up': False,
'value_specs': {'router:external': True}}
p = properties.Properties(net.Net.properties_schema, data)
props = qr.prepare_properties(p, 'resource_name')
self.assertEqual({'name': 'resource_name',
'router:external': True,
'admin_state_up': False,
'shared': False}, props)
def test_is_built(self):
self.assertTrue(qr.is_built({
'name': 'the_net',
'status': 'ACTIVE'
}))
self.assertTrue(qr.is_built({
'name': 'the_net',
'status': 'DOWN'
}))
self.assertFalse(qr.is_built({
'name': 'the_net',
'status': 'BUILD'
}))
self.assertRaises(exception.Error, qr.is_built, {
'name': 'the_net',
'status': 'FROBULATING'
})
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NeutronNetTest(HeatTestCase):
def setUp(self):
super(NeutronNetTest, self).setUp()
self.m.StubOutWithMock(neutronclient.Client, 'create_network')
self.m.StubOutWithMock(neutronclient.Client, 'delete_network')
self.m.StubOutWithMock(neutronclient.Client, 'show_network')
self.m.StubOutWithMock(neutronclient.Client, 'update_network')
self.m.StubOutWithMock(neutronclient.Client,
'add_network_to_dhcp_agent')
self.m.StubOutWithMock(neutronclient.Client,
'remove_network_from_dhcp_agent')
self.m.StubOutWithMock(neutronclient.Client,
'list_dhcp_agent_hosting_networks')
self.m.StubOutWithMock(clients.OpenStackClients, 'keystone')
utils.setup_dummy_db()
def create_net(self, t, stack, resource_name):
rsrc = net.Net('test_net', t['Resources'][resource_name], stack)
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
return rsrc
def test_net(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
# Create script
neutronclient.Client.create_network({
'network': {
'name': u'the_network',
'admin_state_up': True,
'tenant_id': 'c1210485b2424d48804aad5d39c61b8f',
'shared': True}
}).AndReturn({"network": {
"status": "BUILD",
"subnets": [],
"name": "name",
"admin_state_up": True,
"shared": True,
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.list_dhcp_agent_hosting_networks(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({"agents": []})
neutronclient.Client.add_network_to_dhcp_agent(
'28c25a04-3f73-45a7-a2b4-59e183943ddc',
{'network_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766'}
).AndReturn(None)
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({"network": {
"status": "BUILD",
"subnets": [],
"name": "name",
"admin_state_up": True,
"shared": True,
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({"network": {
"status": "ACTIVE",
"subnets": [],
"name": "name",
"admin_state_up": True,
"shared": True,
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NetworkNotFoundClient(status_code=404))
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({"network": {
"status": "ACTIVE",
"subnets": [],
"name": "name",
"admin_state_up": True,
"shared": True,
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({"network": {
"status": "ACTIVE",
"subnets": [],
"name": "name",
"admin_state_up": True,
"shared": True,
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
# Update script
neutronclient.Client.list_dhcp_agent_hosting_networks(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({
"agents": [{
"admin_state_up": True,
"agent_type": "DHCP agent",
"alive": True,
"binary": "neutron-dhcp-agent",
"configurations": {
"dhcp_driver": "DummyDriver",
"dhcp_lease_duration": 86400,
"networks": 0,
"ports": 0,
"subnets": 0,
"use_namespaces": True},
"created_at": "2014-03-20 05:12:34",
"description": None,
"heartbeat_timestamp": "2014-03-20 05:12:34",
"host": "hostname",
"id": "28c25a04-3f73-45a7-a2b4-59e183943ddc",
"started_at": "2014-03-20 05:12:34",
"topic": "dhcp_agent"
}]
})
neutronclient.Client.add_network_to_dhcp_agent(
'bb09cfcd-5277-473d-8336-d4ed8628ae68',
{'network_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766'}
).AndReturn(None)
neutronclient.Client.remove_network_from_dhcp_agent(
'28c25a04-3f73-45a7-a2b4-59e183943ddc',
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(None)
neutronclient.Client.update_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
{'network': {
'shared': True,
'name': 'mynet',
'admin_state_up': True
}}).AndReturn(None)
# Delete script
neutronclient.Client.delete_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(None)
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NetworkNotFoundClient(status_code=404))
neutronclient.Client.delete_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NetworkNotFoundClient(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_net(t, stack, 'network')
# assert the implicit dependency between the gateway and the interface
deps = stack.dependencies[stack['router_interface']]
self.assertIn(stack['gateway'], deps)
# assert the implicit dependency between the gateway and the subnet
deps = stack.dependencies[stack['subnet']]
self.assertIn(stack['gateway'], deps)
rsrc.validate()
ref_id = rsrc.FnGetRefId()
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', ref_id)
self.assertIsNone(rsrc.FnGetAtt('status'))
self.assertEqual('ACTIVE', rsrc.FnGetAtt('status'))
self.assertRaises(
exception.InvalidTemplateAttribute, rsrc.FnGetAtt, 'Foo')
update_snippet = {
"Type": "OS::Neutron::Net",
"Properties": {
"name": "mynet",
"shared": True,
"admin_state_up": True,
"dhcp_agent_ids": [
"bb09cfcd-5277-473d-8336-d4ed8628ae68"
]
}
}
prop_diff = {
"name": "mynet",
"dhcp_agent_ids": [
"bb09cfcd-5277-473d-8336-d4ed8628ae68"
]
}
rsrc.handle_update(update_snippet, {}, prop_diff)
scheduler.TaskRunner(rsrc.delete)()
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
scheduler.TaskRunner(rsrc.delete)()
self.m.VerifyAll()
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NeutronProviderNetTest(HeatTestCase):
def setUp(self):
super(NeutronProviderNetTest, self).setUp()
self.m.StubOutWithMock(neutronclient.Client, 'create_network')
self.m.StubOutWithMock(neutronclient.Client, 'show_network')
self.m.StubOutWithMock(neutronclient.Client, 'delete_network')
self.m.StubOutWithMock(neutronclient.Client, 'update_network')
self.m.StubOutWithMock(clients.OpenStackClients, 'keystone')
utils.setup_dummy_db()
def create_provider_net(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
# Create script
neutronclient.Client.create_network({
'network': {
'name': u'the_provider_network',
'admin_state_up': True,
'provider:network_type': 'vlan',
'provider:physical_network': 'physnet_1',
'provider:segmentation_id': '101',
'shared': True}
}).AndReturn(stpnb)
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(stpnb)
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(stpna)
t = template_format.parse(provider_network_template)
stack = utils.parse_stack(t)
rsrc = provider_net.ProviderNet(
'provider_net', t['Resources']['provider_network_vlan'], stack)
return rsrc
def test_create_provider_net(self):
rsrc = self.create_provider_net()
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NetworkNotFoundClient(status_code=404))
# Delete script
neutronclient.Client.delete_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(None)
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(stpna)
neutronclient.Client.show_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NetworkNotFoundClient(status_code=404))
neutronclient.Client.delete_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NetworkNotFoundClient(status_code=404))
self.m.ReplayAll()
rsrc.validate()
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
ref_id = rsrc.FnGetRefId()
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', ref_id)
self.assertIsNone(rsrc.FnGetAtt('status'))
self.assertEqual('ACTIVE', rsrc.FnGetAtt('status'))
self.assertRaises(
exception.InvalidTemplateAttribute, rsrc.FnGetAtt, 'Foo')
self.assertIsNone(scheduler.TaskRunner(rsrc.delete)())
self.assertEqual((rsrc.DELETE, rsrc.COMPLETE), rsrc.state)
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
scheduler.TaskRunner(rsrc.delete)()
self.assertEqual((rsrc.DELETE, rsrc.COMPLETE), rsrc.state)
self.m.VerifyAll()
def test_update_provider_net(self):
rsrc = self.create_provider_net()
neutronclient.Client.update_network(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
{'network': {
'shared': True,
'name': 'prov_net',
'admin_state_up': True,
'provider:network_type': 'vlan',
'provider:physical_network': 'physnet_1',
'provider:segmentation_id': '102'
}}).AndReturn(None)
self.m.ReplayAll()
rsrc.validate()
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
update_snippet = {
"Type": "OS::Neutron::ProviderNet",
"Properties": {
"name": "prov_net",
"shared": True,
"admin_state_up": True,
"network_type": "vlan",
"physical_network": "physnet_1",
"segmentation_id": "102"
}
}
self.assertIsNone(rsrc.handle_update(update_snippet, {}, {}))
self.m.VerifyAll()
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NeutronSubnetTest(HeatTestCase):
def setUp(self):
super(NeutronSubnetTest, self).setUp()
self.m.StubOutWithMock(neutronclient.Client, 'create_subnet')
self.m.StubOutWithMock(neutronclient.Client, 'delete_subnet')
self.m.StubOutWithMock(neutronclient.Client, 'show_subnet')
self.m.StubOutWithMock(neutronclient.Client, 'update_subnet')
self.m.StubOutWithMock(clients.OpenStackClients, 'keystone')
utils.setup_dummy_db()
def create_subnet(self, t, stack, resource_name):
rsrc = subnet.Subnet('test_subnet', t['Resources'][resource_name],
stack)
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
return rsrc
def test_subnet(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_subnet({
'subnet': {
'name': utils.PhysName('test_stack', 'test_subnet'),
'network_id': u'None',
'dns_nameservers': [u'8.8.8.8'],
'allocation_pools': [
{'start': u'10.0.3.20', 'end': u'10.0.3.150'}],
'host_routes': [
{'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}],
'ip_version': 4,
'cidr': u'10.0.3.0/24',
'tenant_id': 'c1210485b2424d48804aad5d39c61b8f',
'enable_dhcp': True
}
}).AndReturn({
"subnet": {
"allocation_pools": [
{"start": "10.0.3.20", "end": "10.0.3.150"}],
"cidr": "10.0.3.0/24",
"dns_nameservers": ["8.8.8.8"],
"enable_dhcp": True,
"gateway_ip": "10.0.3.1",
"host_routes": [
{"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}],
"id": "91e47a57-7508-46fe-afc9-fc454e8580e1",
"ip_version": 4,
"name": "name",
"network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"tenant_id": "c1210485b2424d48804aad5d39c61b8f"
}
})
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1').AndRaise(
qe.NeutronClientException(status_code=404))
sn = {
"subnet": {
"name": "name",
"network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"allocation_pools": [
{"start": "10.0.3.20", "end": "10.0.3.150"}],
"gateway_ip": "10.0.3.1",
'host_routes': [
{'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}],
"ip_version": 4,
"cidr": "10.0.3.0/24",
"dns_nameservers": ["8.8.8.8"],
"id": "91e47a57-7508-46fe-afc9-fc454e8580e1",
"enable_dhcp": True,
}
}
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn(sn)
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn(sn)
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn(sn)
# Update script
neutronclient.Client.update_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1',
{'subnet': {
'dns_nameservers': ['8.8.8.8', '192.168.1.254'],
'name': 'mysubnet',
'enable_dhcp': True
}}
)
# Delete script
neutronclient.Client.delete_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1'
).AndReturn(None)
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1'
).AndRaise(qe.NeutronClientException(status_code=404))
neutronclient.Client.delete_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_subnet(t, stack, 'subnet')
rsrc.validate()
ref_id = rsrc.FnGetRefId()
self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1', ref_id)
self.assertIsNone(rsrc.FnGetAtt('network_id'))
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766',
rsrc.FnGetAtt('network_id'))
self.assertEqual('8.8.8.8', rsrc.FnGetAtt('dns_nameservers')[0])
# assert the dependency (implicit or explicit) between the ports
# and the subnet
self.assertIn(stack['port'], stack.dependencies[stack['subnet']])
self.assertIn(stack['port2'], stack.dependencies[stack['subnet']])
update_snippet = {
"Type": "OS::Neutron::Subnet",
"Properties": {
"name": 'mysubnet',
"network_id": {"Ref": "network"},
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"ip_version": 4,
"cidr": "10.0.3.0/24",
"allocation_pools": [
{"start": "10.0.3.20", "end": "10.0.3.150"}],
"dns_nameservers": ["8.8.8.8", "192.168.1.254"],
'host_routes': [
{'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}]
}
}
rsrc.handle_update(stack.resolve_static_data(update_snippet), {}, {})
self.assertIsNone(scheduler.TaskRunner(rsrc.delete)())
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
self.assertIsNone(scheduler.TaskRunner(rsrc.delete)())
self.m.VerifyAll()
def test_subnet_disable_dhcp(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_subnet({
'subnet': {
'name': utils.PhysName('test_stack', 'test_subnet'),
'network_id': u'None',
'dns_nameservers': [u'8.8.8.8'],
'allocation_pools': [
{'start': u'10.0.3.20', 'end': u'10.0.3.150'}],
'host_routes': [
{'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}],
'ip_version': 4,
'enable_dhcp': False,
'cidr': u'10.0.3.0/24',
'tenant_id': 'c1210485b2424d48804aad5d39c61b8f'
}
}).AndReturn({
"subnet": {
"allocation_pools": [
{"start": "10.0.3.20", "end": "10.0.3.150"}],
"host_routes": [
{"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}],
"cidr": "10.0.3.0/24",
"dns_nameservers": ["8.8.8.8"],
"enable_dhcp": False,
"gateway_ip": "10.0.3.1",
"id": "91e47a57-7508-46fe-afc9-fc454e8580e1",
"ip_version": 4,
"name": "name",
"network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"tenant_id": "c1210485b2424d48804aad5d39c61b8f"
}
})
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn({
"subnet": {
"name": "name",
"network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"allocation_pools": [
{"start": "10.0.3.20", "end": "10.0.3.150"}],
"host_routes": [
{"destination": "10.0.4.0/24",
"nexthop": "10.0.3.20"}],
"gateway_ip": "10.0.3.1",
"ip_version": 4,
"cidr": "10.0.3.0/24",
"dns_nameservers": ["8.8.8.8"],
"id": "91e47a57-7508-46fe-afc9-fc454e8580e1",
"enable_dhcp": False,
}
})
neutronclient.Client.delete_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1'
).AndReturn(None)
neutronclient.Client.show_subnet(
'91e47a57-7508-46fe-afc9-fc454e8580e1'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
t['Resources']['subnet']['Properties']['enable_dhcp'] = 'False'
stack = utils.parse_stack(t)
rsrc = self.create_subnet(t, stack, 'subnet')
rsrc.validate()
ref_id = rsrc.FnGetRefId()
self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1', ref_id)
self.assertIs(False, rsrc.FnGetAtt('enable_dhcp'))
scheduler.TaskRunner(rsrc.delete)()
self.m.VerifyAll()
def test_null_gateway_ip(self):
p = {}
subnet.Subnet._null_gateway_ip(p)
self.assertEqual({}, p)
p = {'foo': 'bar'}
subnet.Subnet._null_gateway_ip(p)
self.assertEqual({'foo': 'bar'}, p)
p = {
'foo': 'bar',
'gateway_ip': '198.51.100.0'
}
subnet.Subnet._null_gateway_ip(p)
self.assertEqual({
'foo': 'bar',
'gateway_ip': '198.51.100.0'
}, p)
p = {
'foo': 'bar',
'gateway_ip': ''
}
subnet.Subnet._null_gateway_ip(p)
self.assertEqual({
'foo': 'bar',
'gateway_ip': None
}, p)
# This should not happen as prepare_properties
# strips out None values, but testing anyway
p = {
'foo': 'bar',
'gateway_ip': None
}
subnet.Subnet._null_gateway_ip(p)
self.assertEqual({
'foo': 'bar',
'gateway_ip': None
}, p)
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NeutronRouterTest(HeatTestCase):
@skipIf(router.neutronV20 is None, "Missing Neutron v2_0")
def setUp(self):
super(NeutronRouterTest, self).setUp()
self.m.StubOutWithMock(neutronclient.Client, 'create_router')
self.m.StubOutWithMock(neutronclient.Client, 'delete_router')
self.m.StubOutWithMock(neutronclient.Client, 'show_router')
self.m.StubOutWithMock(neutronclient.Client, 'update_router')
self.m.StubOutWithMock(neutronclient.Client, 'add_interface_router')
self.m.StubOutWithMock(neutronclient.Client, 'remove_interface_router')
self.m.StubOutWithMock(neutronclient.Client, 'add_gateway_router')
self.m.StubOutWithMock(neutronclient.Client, 'remove_gateway_router')
self.m.StubOutWithMock(neutronclient.Client,
'add_router_to_l3_agent')
self.m.StubOutWithMock(neutronclient.Client,
'remove_router_from_l3_agent')
self.m.StubOutWithMock(neutronclient.Client,
'list_l3_agent_hosting_routers')
self.m.StubOutWithMock(router.neutronV20,
'find_resourceid_by_name_or_id')
self.m.StubOutWithMock(clients.OpenStackClients, 'keystone')
utils.setup_dummy_db()
def create_router(self, t, stack, resource_name):
rsrc = router.Router('router', t['Resources'][resource_name], stack)
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
return rsrc
def create_router_interface(self, t, stack, resource_name, properties={}):
t['Resources'][resource_name]['Properties'] = properties
rsrc = router.RouterInterface(
'router_interface',
t['Resources'][resource_name],
stack)
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
return rsrc
def create_gateway_router(self, t, stack, resource_name, properties={}):
t['Resources'][resource_name]['Properties'] = properties
rsrc = router.RouterGateway(
'gateway',
t['Resources'][resource_name],
stack)
scheduler.TaskRunner(rsrc.create)()
self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state)
return rsrc
def test_router(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_router({
'router': {
'name': utils.PhysName('test_stack', 'router'),
'admin_state_up': True,
}
}).AndReturn({
"router": {
"status": "BUILD",
"external_gateway_info": None,
"name": utils.PhysName('test_stack', 'router'),
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
neutronclient.Client.list_l3_agent_hosting_routers(
u'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndReturn({"agents": []})
neutronclient.Client.add_router_to_l3_agent(
u'792ff887-6c85-4a56-b518-23f24fa65581',
{'router_id': u'3e46229d-8fce-4733-819a-b5fe630550f8'}
).AndReturn(None)
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "BUILD",
"external_gateway_info": None,
"name": utils.PhysName('test_stack', 'router'),
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": None,
"name": utils.PhysName('test_stack', 'router'),
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndRaise(
qe.NeutronClientException(status_code=404))
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": None,
"name": utils.PhysName('test_stack', 'router'),
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": None,
"name": utils.PhysName('test_stack', 'router'),
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
# Update script
neutronclient.Client.list_l3_agent_hosting_routers(
u'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndReturn({
"agents": [{
"admin_state_up": True,
"agent_type": "L3 agent",
"alive": True,
"binary": "neutron-l3-agent",
"configurations": {
"ex_gw_ports": 1,
"floating_ips": 0,
"gateway_external_network_id": "",
"handle_internal_only_routers": True,
"interface_driver": "DummyDriver",
"interfaces": 1,
"router_id": "",
"routers": 1,
"use_namespaces": True},
"created_at": "2014-03-11 05:00:05",
"description": None,
"heartbeat_timestamp": "2014-03-11 05:01:49",
"host": "l3_agent_host",
"id": "792ff887-6c85-4a56-b518-23f24fa65581",
"started_at": "2014-03-11 05:00:05",
"topic": "l3_agent"
}]
})
neutronclient.Client.remove_router_from_l3_agent(
u'792ff887-6c85-4a56-b518-23f24fa65581',
u'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndReturn(None)
neutronclient.Client.add_router_to_l3_agent(
u'63b3fd83-2c5f-4dad-b3ae-e0f83a40f216',
{'router_id': u'3e46229d-8fce-4733-819a-b5fe630550f8'}
).AndReturn(None)
neutronclient.Client.update_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'router': {
'name': 'myrouter',
'admin_state_up': False
}}
)
# Delete script
neutronclient.Client.delete_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndReturn(None)
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndRaise(qe.NeutronClientException(status_code=404))
neutronclient.Client.delete_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_router(t, stack, 'router')
rsrc.validate()
ref_id = rsrc.FnGetRefId()
self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8', ref_id)
self.assertIsNone(rsrc.FnGetAtt('tenant_id'))
self.assertEqual('3e21026f2dc94372b105808c0e721661',
rsrc.FnGetAtt('tenant_id'))
update_snippet = {
"Type": "OS::Neutron::Router",
"Properties": {
"admin_state_up": False,
"name": "myrouter",
"l3_agent_id": "63b3fd83-2c5f-4dad-b3ae-e0f83a40f216"
}
}
prop_diff = {
"admin_state_up": False,
"name": "myrouter",
"l3_agent_id": "63b3fd83-2c5f-4dad-b3ae-e0f83a40f216"
}
rsrc.handle_update(update_snippet, {}, prop_diff)
self.assertIsNone(scheduler.TaskRunner(rsrc.delete)())
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
self.assertIsNone(scheduler.TaskRunner(rsrc.delete)())
self.m.VerifyAll()
def test_router_dependence(self):
# assert the implicit dependency between the router
# and subnet
t = template_format.parse(
neutron_subnet_and_external_gateway_template)
stack = utils.parse_stack(t)
deps = stack.dependencies[stack['subnet_external']]
self.assertIn(stack['router'], deps)
def test_router_interface(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.add_interface_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'}
).AndReturn(None)
neutronclient.Client.remove_interface_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'}
).AndReturn(None)
neutronclient.Client.remove_interface_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'}
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_router_interface(
t, stack, 'router_interface', properties={
'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8',
'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'
})
scheduler.TaskRunner(rsrc.delete)()
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
scheduler.TaskRunner(rsrc.delete)()
self.m.VerifyAll()
def test_router_interface_with_old_data(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.add_interface_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'}
).AndReturn(None)
neutronclient.Client.remove_interface_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'}
).AndReturn(None)
neutronclient.Client.remove_interface_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'}
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_router_interface(
t, stack, 'router_interface', properties={
'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8',
'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'
})
self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8'
':subnet_id=91e47a57-7508-46fe-afc9-fc454e8580e1',
rsrc.resource_id)
(rsrc.resource_id) = ('3e46229d-8fce-4733-819a-b5fe630550f8:'
'91e47a57-7508-46fe-afc9-fc454e8580e1')
scheduler.TaskRunner(rsrc.delete)()
self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8'
':91e47a57-7508-46fe-afc9-fc454e8580e1',
rsrc.resource_id)
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
scheduler.TaskRunner(rsrc.delete)()
self.m.VerifyAll()
def test_router_interface_with_port_id(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.add_interface_router(
'ae478782-53c0-4434-ab16-49900c88016c',
{'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'}
).AndReturn(None)
neutronclient.Client.remove_interface_router(
'ae478782-53c0-4434-ab16-49900c88016c',
{'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'}
).AndReturn(None)
neutronclient.Client.remove_interface_router(
'ae478782-53c0-4434-ab16-49900c88016c',
{'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'}
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_router_interface(
t, stack, 'router_interface', properties={
'router_id': 'ae478782-53c0-4434-ab16-49900c88016c',
'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'
})
scheduler.TaskRunner(rsrc.delete)()
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
scheduler.TaskRunner(rsrc.delete)()
self.m.VerifyAll()
def test_router_interface_validate(self):
t = template_format.parse(neutron_template)
json = t['Resources']['router_interface']
json['Properties'] = {
'router_id': 'ae478782-53c0-4434-ab16-49900c88016c',
'subnet_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e',
'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'}
stack = utils.parse_stack(t)
res = router.RouterInterface('router_interface', json, stack)
self.assertRaises(exception.ResourcePropertyConflict, res.validate)
json['Properties'] = {
'router_id': 'ae478782-53c0-4434-ab16-49900c88016c',
'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'}
stack = utils.parse_stack(t)
res = router.RouterInterface('router_interface', json, stack)
self.assertIsNone(res.validate())
json['Properties'] = {
'router_id': 'ae478782-53c0-4434-ab16-49900c88016c',
'subnet_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'}
stack = utils.parse_stack(t)
res = router.RouterInterface('router_interface', json, stack)
self.assertIsNone(res.validate())
json['Properties'] = {
'router_id': 'ae478782-53c0-4434-ab16-49900c88016c'}
stack = utils.parse_stack(t)
res = router.RouterInterface('router_interface', json, stack)
ex = self.assertRaises(exception.StackValidationFailed, res.validate)
self.assertEqual("Either subnet_id or port_id must be specified.",
str(ex))
def test_gateway_router(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
router.neutronV20.find_resourceid_by_name_or_id(
mox.IsA(neutronclient.Client),
'network',
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn('fc68ea2c-b60b-4b4f-bd82-94ec81110766')
neutronclient.Client.add_gateway_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766'}
).AndReturn(None)
neutronclient.Client.remove_gateway_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndReturn(None)
neutronclient.Client.remove_gateway_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_template)
stack = utils.parse_stack(t)
rsrc = self.create_gateway_router(
t, stack, 'gateway', properties={
'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8',
'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
})
scheduler.TaskRunner(rsrc.delete)()
rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again')
scheduler.TaskRunner(rsrc.delete)()
self.m.VerifyAll()
def _create_router_with_gateway(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
router.neutronV20.find_resourceid_by_name_or_id(
mox.IsA(neutronclient.Client),
'network',
'public'
).AndReturn('fc68ea2c-b60b-4b4f-bd82-94ec81110766')
neutronclient.Client.create_router({
"router": {
"name": "Test Router",
"external_gateway_info": {
'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
'enable_snat': True
},
"admin_state_up": True,
}
}).AndReturn({
"router": {
"status": "BUILD",
"external_gateway_info": None,
"name": "Test Router",
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": {
"network_id":
"fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"enable_snat": True
},
"name": "Test Router",
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
def test_create_router_gateway_as_property(self):
self._create_router_with_gateway()
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": {
"network_id":
"fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"enable_snat": True
},
"name": "Test Router",
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
self.m.ReplayAll()
t = template_format.parse(neutron_external_gateway_template)
stack = utils.parse_stack(t)
rsrc = self.create_router(t, stack, 'router')
rsrc.validate()
ref_id = rsrc.FnGetRefId()
self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8', ref_id)
gateway_info = rsrc.FnGetAtt('external_gateway_info')
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766',
gateway_info.get('network_id'))
self.assertTrue(gateway_info.get('enable_snat'))
self.m.VerifyAll()
def test_create_router_gateway_enable_snat(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
router.neutronV20.find_resourceid_by_name_or_id(
mox.IsA(neutronclient.Client),
'network',
'public'
).AndReturn('fc68ea2c-b60b-4b4f-bd82-94ec81110766')
neutronclient.Client.create_router({
"router": {
"name": "Test Router",
"external_gateway_info": {
'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
},
"admin_state_up": True,
}
}).AndReturn({
"router": {
"status": "BUILD",
"external_gateway_info": None,
"name": "Test Router",
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').MultipleTimes().AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": {
"network_id":
"fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"enable_snat": True
},
"name": "Test Router",
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
self.m.ReplayAll()
t = template_format.parse(neutron_external_gateway_template)
t["Resources"]["router"]["Properties"]["external_gateway_info"].pop(
"enable_snat")
stack = utils.parse_stack(t)
rsrc = self.create_router(t, stack, 'router')
rsrc.validate()
ref_id = rsrc.FnGetRefId()
self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8', ref_id)
gateway_info = rsrc.FnGetAtt('external_gateway_info')
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766',
gateway_info.get('network_id'))
self.m.VerifyAll()
def test_update_router_gateway_as_property(self):
self._create_router_with_gateway()
router.neutronV20.find_resourceid_by_name_or_id(
mox.IsA(neutronclient.Client),
'network',
'other_public'
).AndReturn('91e47a57-7508-46fe-afc9-fc454e8580e1')
neutronclient.Client.update_router(
'3e46229d-8fce-4733-819a-b5fe630550f8',
{'router': {
"name": "Test Router",
"external_gateway_info": {
'network_id': '91e47a57-7508-46fe-afc9-fc454e8580e1',
'enable_snat': False
},
"admin_state_up": True}}
).AndReturn(None)
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({
"router": {
"status": "ACTIVE",
"external_gateway_info": {
"network_id": "91e47a57-7508-46fe-afc9-fc454e8580e1",
"enable_snat": False
},
"name": "Test Router",
"admin_state_up": True,
"tenant_id": "3e21026f2dc94372b105808c0e721661",
"routes": [],
"id": "3e46229d-8fce-4733-819a-b5fe630550f8"
}
})
self.m.ReplayAll()
t = template_format.parse(neutron_external_gateway_template)
stack = utils.parse_stack(t)
rsrc = self.create_router(t, stack, 'router')
update_template = copy.deepcopy(rsrc.t)
update_template['Properties']['external_gateway_info'] = {
"network": "other_public",
"enable_snat": False
}
scheduler.TaskRunner(rsrc.update, update_template)()
self.assertEqual((rsrc.UPDATE, rsrc.COMPLETE), rsrc.state)
gateway_info = rsrc.FnGetAtt('external_gateway_info')
self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1',
gateway_info.get('network_id'))
self.assertFalse(gateway_info.get('enable_snat'))
self.m.VerifyAll()
def test_delete_router_gateway_as_property(self):
self._create_router_with_gateway()
neutronclient.Client.delete_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndReturn(None)
neutronclient.Client.show_router(
'3e46229d-8fce-4733-819a-b5fe630550f8'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_external_gateway_template)
stack = utils.parse_stack(t)
rsrc = self.create_router(t, stack, 'router')
self.assertIsNone(scheduler.TaskRunner(rsrc.delete)())
self.m.VerifyAll()
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NeutronFloatingIPTest(HeatTestCase):
@skipIf(net.clients.neutronclient is None, "Missing Neutron Client")
def setUp(self):
super(NeutronFloatingIPTest, self).setUp()
self.m.StubOutWithMock(neutronclient.Client, 'create_floatingip')
self.m.StubOutWithMock(neutronclient.Client, 'delete_floatingip')
self.m.StubOutWithMock(neutronclient.Client, 'show_floatingip')
self.m.StubOutWithMock(neutronclient.Client, 'update_floatingip')
self.m.StubOutWithMock(neutronclient.Client, 'create_port')
self.m.StubOutWithMock(neutronclient.Client, 'delete_port')
self.m.StubOutWithMock(neutronclient.Client, 'update_port')
self.m.StubOutWithMock(neutronclient.Client, 'show_port')
self.m.StubOutWithMock(clients.OpenStackClients, 'keystone')
utils.setup_dummy_db()
def test_floating_ip(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_floatingip({
'floatingip': {'floating_network_id': u'abcd1234'}
}).AndReturn({'floatingip': {
'id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
'floating_network_id': u'abcd1234'
}})
neutronclient.Client.show_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NeutronClientException(status_code=404))
neutronclient.Client.show_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).MultipleTimes().AndReturn({'floatingip': {
'id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
'floating_network_id': u'abcd1234'
}})
neutronclient.Client.delete_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766').AndReturn(None)
neutronclient.Client.delete_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766').AndRaise(
qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_floating_template)
stack = utils.parse_stack(t)
# assert the implicit dependency between the floating_ip
# and the gateway
deps = stack.dependencies[stack['gateway']]
self.assertIn(stack['floating_ip'], deps)
fip = stack['floating_ip']
scheduler.TaskRunner(fip.create)()
self.assertEqual((fip.CREATE, fip.COMPLETE), fip.state)
fip.validate()
fip_id = fip.FnGetRefId()
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', fip_id)
self.assertIsNone(fip.FnGetAtt('show'))
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766',
fip.FnGetAtt('show')['id'])
self.assertRaises(exception.InvalidTemplateAttribute,
fip.FnGetAtt, 'Foo')
self.assertEqual(u'abcd1234', fip.FnGetAtt('floating_network_id'))
self.assertRaises(resource.UpdateReplace,
fip.handle_update, {}, {}, {})
scheduler.TaskRunner(fip.delete)()
fip.state_set(fip.CREATE, fip.COMPLETE, 'to delete again')
scheduler.TaskRunner(fip.delete)()
self.m.VerifyAll()
def test_port(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'xyz1234',
'fixed_ips': [
{'subnet_id': u'sub1234', 'ip_address': u'10.0.0.10'}
],
'name': utils.PhysName('test_stack', 'port_floating'),
'admin_state_up': True}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.PortNotFoundClient(status_code=404))
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).MultipleTimes().AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.update_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {
'port': {
'fixed_ips': [
{'subnet_id': 'sub1234', 'ip_address': '10.0.0.11'}
],
'admin_state_up': True,
'name': 'test_port',
'device_id': 'd6b4d3a5-c700-476f-b609-1493dd9dadc2',
'device_owner': 'network:floatingip'
}
}
).AndReturn(None)
self.m.ReplayAll()
t = template_format.parse(neutron_floating_template)
stack = utils.parse_stack(t)
p = stack['port_floating']
scheduler.TaskRunner(p.create)()
self.assertEqual((p.CREATE, p.COMPLETE), p.state)
p.validate()
port_id = p.FnGetRefId()
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', port_id)
self.assertIsNone(p.FnGetAtt('status'))
self.assertEqual('ACTIVE', p.FnGetAtt('status'))
self.assertRaises(
exception.InvalidTemplateAttribute, p.FnGetAtt, 'Foo')
self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766',
p.resource_id)
update_snippet = {
"Type": "OS::Neutron::Port",
"Properties": {
"network_id": "xyz1234",
"fixed_ips": [{
"subnet_id": "sub1234",
"ip_address": "10.0.0.11"
}],
"name": "test_port",
"device_id": "d6b4d3a5-c700-476f-b609-1493dd9dadc2",
'device_owner': 'network:floatingip'
}
}
p.handle_update(update_snippet, {}, {})
self.m.VerifyAll()
def test_floatip_port(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_floatingip({
'floatingip': {'floating_network_id': u'abcd1234'}
}).AndReturn({'floatingip': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.create_port({'port': {
'network_id': u'xyz1234',
'fixed_ips': [
{'subnet_id': u'sub1234', 'ip_address': u'10.0.0.10'}
],
'name': utils.PhysName('test_stack', 'port_floating'),
'admin_state_up': True}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.update_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
{
'floatingip': {
'port_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766'}}
).AndReturn({'floatingip': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.update_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
{'floatingip': {
'port_id': None
}}).AndReturn(None)
neutronclient.Client.delete_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(None)
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.PortNotFoundClient(status_code=404))
neutronclient.Client.delete_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn(None)
neutronclient.Client.update_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766',
{'floatingip': {
'port_id': None
}}).AndRaise(qe.NeutronClientException(status_code=404))
neutronclient.Client.delete_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.PortNotFoundClient(status_code=404))
neutronclient.Client.delete_floatingip(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
t = template_format.parse(neutron_floating_template)
stack = utils.parse_stack(t)
fip = stack['floating_ip']
scheduler.TaskRunner(fip.create)()
self.assertEqual((fip.CREATE, fip.COMPLETE), fip.state)
p = stack['port_floating']
scheduler.TaskRunner(p.create)()
self.assertEqual((p.CREATE, p.COMPLETE), p.state)
fipa = stack['floating_ip_assoc']
scheduler.TaskRunner(fipa.create)()
self.assertEqual((fipa.CREATE, fipa.COMPLETE), fipa.state)
fipa.validate()
fipa_id = fipa.FnGetRefId()
fip_id = fip.FnGetRefId()
port_id = p.FnGetRefId()
self.assertEqual('%s:%s' % (fip_id, port_id), fipa_id)
self.assertRaises(resource.UpdateReplace,
fipa.handle_update, {}, {}, {})
scheduler.TaskRunner(fipa.delete)()
scheduler.TaskRunner(p.delete)()
scheduler.TaskRunner(fip.delete)()
fipa.state_set(fipa.CREATE, fipa.COMPLETE, 'to delete again')
fip.state_set(fip.CREATE, fip.COMPLETE, 'to delete again')
p.state_set(p.CREATE, p.COMPLETE, 'to delete again')
scheduler.TaskRunner(fipa.delete)()
self.assertIsNone(scheduler.TaskRunner(p.delete)())
scheduler.TaskRunner(fip.delete)()
self.m.VerifyAll()
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NeutronPortTest(HeatTestCase):
@skipIf(net.clients.neutronclient is None, "Missing Neutron Client")
def setUp(self):
super(NeutronPortTest, self).setUp()
self.m.StubOutWithMock(neutronclient.Client, 'create_port')
self.m.StubOutWithMock(neutronclient.Client, 'show_port')
self.m.StubOutWithMock(clients.OpenStackClients, 'keystone')
utils.setup_dummy_db()
def test_missing_subnet_id(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'net1234',
'fixed_ips': [
{'ip_address': u'10.0.3.21'}
],
'name': utils.PhysName('test_stack', 'port'),
'admin_state_up': True,
'device_owner': u'network:dhcp'}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
self.m.ReplayAll()
t = template_format.parse(neutron_port_template)
t['Resources']['port']['Properties']['fixed_ips'][0].pop('subnet_id')
stack = utils.parse_stack(t)
port = stack['port']
scheduler.TaskRunner(port.create)()
self.m.VerifyAll()
def test_missing_ip_address(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'net1234',
'fixed_ips': [
{'subnet_id': u'sub1234'}
],
'name': utils.PhysName('test_stack', 'port'),
'admin_state_up': True,
'device_owner': u'network:dhcp'}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
self.m.ReplayAll()
t = template_format.parse(neutron_port_template)
t['Resources']['port']['Properties']['fixed_ips'][0].pop('ip_address')
stack = utils.parse_stack(t)
port = stack['port']
scheduler.TaskRunner(port.create)()
self.m.VerifyAll()
def test_missing_fixed_ips(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'net1234',
'name': utils.PhysName('test_stack', 'port'),
'admin_state_up': True,
'device_owner': u'network:dhcp'}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766",
"fixed_ips": {
"subnet_id": "d0e971a6-a6b4-4f4c-8c88-b75e9c120b7e",
"ip_address": "10.0.0.2"
}
}})
self.m.ReplayAll()
t = template_format.parse(neutron_port_template)
t['Resources']['port']['Properties'].pop('fixed_ips')
stack = utils.parse_stack(t)
port = stack['port']
scheduler.TaskRunner(port.create)()
self.m.VerifyAll()
def test_allowed_address_pair(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'abcd1234',
'allowed_address_pairs': [{
'ip_address': u'10.0.3.21',
'mac_address': u'00-B0-D0-86-BB-F7'
}],
'name': utils.PhysName('test_stack', 'port'),
'admin_state_up': True}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
self.m.ReplayAll()
t = template_format.parse(neutron_port_with_address_pair_template)
stack = utils.parse_stack(t)
port = stack['port']
scheduler.TaskRunner(port.create)()
self.m.VerifyAll()
def test_missing_mac_address(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'abcd1234',
'allowed_address_pairs': [{
'ip_address': u'10.0.3.21',
}],
'name': utils.PhysName('test_stack', 'port'),
'admin_state_up': True}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
self.m.ReplayAll()
t = template_format.parse(neutron_port_with_address_pair_template)
t['Resources']['port']['Properties']['allowed_address_pairs'][0].pop(
'mac_address'
)
stack = utils.parse_stack(t)
port = stack['port']
scheduler.TaskRunner(port.create)()
self.m.VerifyAll()
def test_security_groups(self):
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_port({'port': {
'network_id': u'net1234',
'security_groups': ['8a2f582a-e1cd-480f-b85d-b02631c10656',
'024613dc-b489-4478-b46f-ada462738740'],
'fixed_ips': [
{'subnet_id': u'sub1234', 'ip_address': u'10.0.3.21'}
],
'name': utils.PhysName('test_stack', 'port'),
'admin_state_up': True,
'device_owner': u'network:dhcp'}}
).AndReturn({'port': {
"status": "BUILD",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
neutronclient.Client.show_port(
'fc68ea2c-b60b-4b4f-bd82-94ec81110766'
).AndReturn({'port': {
"status": "ACTIVE",
"id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766"
}})
self.m.ReplayAll()
t = template_format.parse(neutron_port_template)
t['Resources']['port']['Properties']['security_groups'] = [
'8a2f582a-e1cd-480f-b85d-b02631c10656',
'024613dc-b489-4478-b46f-ada462738740']
stack = utils.parse_stack(t)
port = stack['port']
scheduler.TaskRunner(port.create)()
self.m.VerifyAll()
@skipIf(neutronclient is None, 'neutronclient unavailable')
class NetworkConstraintTest(HeatTestCase):
def test_validate(self):
self.m.StubOutWithMock(clients.OpenStackClients, 'neutron')
clients.OpenStackClients.neutron().MultipleTimes().AndReturn(None)
self.m.StubOutWithMock(net.neutronV20, 'find_resourceid_by_name_or_id')
net.neutronV20.find_resourceid_by_name_or_id(
None, 'network', 'foo'
).AndReturn('foo')
net.neutronV20.find_resourceid_by_name_or_id(
None, 'network', 'bar'
).AndRaise(qe.NeutronClientException(status_code=404))
self.m.ReplayAll()
constraint = net.NetworkConstraint()
self.assertTrue(constraint.validate("foo", None))
self.assertFalse(constraint.validate("bar", None))
self.m.VerifyAll()
| 36.539315
| 79
| 0.56564
| 7,181
| 75,746
| 5.800028
| 0.05988
| 0.067059
| 0.038031
| 0.047539
| 0.862377
| 0.835822
| 0.779616
| 0.733974
| 0.706819
| 0.684946
| 0
| 0.113648
| 0.29929
| 75,746
| 2,072
| 80
| 36.55695
| 0.671075
| 0.014588
| 0
| 0.712222
| 0
| 0.001111
| 0.321248
| 0.142187
| 0
| 0
| 0
| 0
| 0.05
| 1
| 0.023889
| false
| 0.000556
| 0.011111
| 0
| 0.042778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f97b6c1f2930606e7664d2c982eade16b7bd39a0
| 6,474
|
py
|
Python
|
run_twd.py
|
AndrzejTunkiel/Tape
|
1f6a7c337d9f3557452cb5c80c2dfc4d99085be3
|
[
"MIT"
] | null | null | null |
run_twd.py
|
AndrzejTunkiel/Tape
|
1f6a7c337d9f3557452cb5c80c2dfc4d99085be3
|
[
"MIT"
] | null | null | null |
run_twd.py
|
AndrzejTunkiel/Tape
|
1f6a7c337d9f3557452cb5c80c2dfc4d99085be3
|
[
"MIT"
] | 1
|
2021-11-15T01:21:22.000Z
|
2021-11-15T01:21:22.000Z
|
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 25 10:23:34 2021
@author: Andrzej T. Tunkiel
andrzej.t.tunkiel@uis.no
"""
from sens_tape import tape
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
data = pd.read_csv('f9ad.csv')
drops = ['Unnamed: 0', 'Unnamed: 0.1', 'RHX_RT unitless', 'Pass Name unitless',
'nameWellbore', 'name','RGX_RT unitless',
'MWD Continuous Azimuth dega']
splits = np.linspace(0.15, 0.8, 30)
truth_array = []
pred_array = []
columns_array = []
score_array = []
for split in splits:
truth, pred, columns, score = tape(data, split=split,
drops=drops,
index = 'Measured Depth m',
target = 'MWD Continuous Inclination dega',
convert_to_diff = [],
lcs_list = ['MWD Continuous Inclination dega'],
plot_samples = True,
resample='radius',
hPcaScaler='mm')
truth_array.append(truth)
pred_array.append(pred)
columns_array.append(columns)
score_array.append(score)
diffs = []
for i in range(len(truth_array)):
diffs.append(np.average(np.abs(truth_array[i] - pred_array[i]), axis=0))
sns.heatmap(diffs, vmax=1.2, vmin=0, cmap='viridis')
plt.title(np.average(diffs))
plt.show()
truth_array = []
pred_array = []
columns_array = []
score_array = []
for split in splits:
truth, pred, columns, score = tape(data, split=split,
drops=drops,
index = 'Measured Depth m',
target = 'MWD Continuous Inclination dega',
convert_to_diff = [],
lcs_list = ['MWD Continuous Inclination dega'],
plot_samples = False,
resample='radius',
hPcaScaler='ss')
truth_array.append(truth)
pred_array.append(pred)
columns_array.append(columns)
score_array.append(score)
diffs = []
for i in range(len(truth_array)):
diffs.append(np.average(np.abs(truth_array[i] - pred_array[i]), axis=0))
sns.heatmap(diffs, vmax=1.2, vmin=0, cmap='viridis')
plt.title(np.average(diffs))
plt.show()
#%%
truth_array = []
pred_array = []
columns_array = []
score_array = []
for split in splits:
truth, pred, columns, score = tape(data, split=split,
drops=drops,
index = 'Measured Depth m',
target = 'MWD Continuous Inclination dega',
convert_to_diff = [],
lcs_list = ['MWD Continuous Inclination dega'],
plot_samples = False,
resample='knn')
truth_array.append(truth)
pred_array.append(pred)
columns_array.append(columns)
score_array.append(score)
diffs = []
for i in range(len(truth_array)):
diffs.append(np.average(np.abs(truth_array[i] - pred_array[i]), axis=0))
sns.heatmap(diffs, vmax=1.2, vmin=0, cmap='viridis')
plt.title(np.average(diffs))
plt.show()
#%%
truth_array = []
pred_array = []
columns_array = []
score_array = []
for split in splits:
truth, pred, columns, score = tape(data, split=split,
drops=drops,
index = 'Measured Depth m',
target = 'MWD Continuous Inclination dega',
asel_choice = 'ppscore',
hAttrCount=6,
convert_to_diff = [],
lcs_list = ['MWD Continuous Inclination dega'],
plot_samples = False)
truth_array.append(truth)
pred_array.append(pred)
columns_array.append(columns)
score_array.append(score)
diffs = []
for i in range(len(truth_array)):
diffs.append(np.average(np.abs(truth_array[i] - pred_array[i]), axis=0))
sns.heatmap(diffs, vmax=1.2, vmin=0, cmap='viridis')
plt.title(np.average(diffs))
plt.show()
truth_array = []
pred_array = []
columns_array = []
score_array = []
for split in splits:
truth, pred, columns, score = tape(data, split=split,
drops=drops,
index = 'Measured Depth m',
target = 'MWD Continuous Inclination dega',
asel_choice = 'pearson',
hAttrCount=6,
convert_to_diff = [],
lcs_list = ['MWD Continuous Inclination dega'],
plot_samples = False)
truth_array.append(truth)
pred_array.append(pred)
columns_array.append(columns)
score_array.append(score)
diffs = []
for i in range(len(truth_array)):
diffs.append(np.average(np.abs(truth_array[i] - pred_array[i]), axis=0))
sns.heatmap(diffs, vmax=1.2, vmin=0, cmap='viridis')
plt.title(np.average(diffs))
plt.show()
#%%
truth_array = []
pred_array = []
columns_array = []
score_array = []
for split in splits:
truth, pred, columns, score = tape(data, split=split,
drops=drops,
index = 'Measured Depth m',
target = 'MWD Continuous Inclination dega',
convert_to_diff = ['MWD Continuous Inclination dega'],
lcs_list = [],
shift=0.1,
plot_samples = False)
truth_array.append(truth)
pred_array.append(pred)
columns_array.append(columns)
score_array.append(score)
diffs = []
for i in range(len(truth_array)):
diffs.append(np.average(np.abs(truth_array[i] - pred_array[i]), axis=0))
sns.heatmap(diffs, vmax=1.2, vmin=0, cmap='viridis')
plt.title(np.average(diffs))
plt.show()
| 31.427184
| 87
| 0.505715
| 689
| 6,474
| 4.612482
| 0.155298
| 0.075519
| 0.090623
| 0.105727
| 0.864695
| 0.864695
| 0.864695
| 0.864695
| 0.864695
| 0.864695
| 0
| 0.013042
| 0.384152
| 6,474
| 205
| 88
| 31.580488
| 0.784048
| 0.018381
| 0
| 0.875
| 0
| 0
| 0.104715
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.006579
| 0.032895
| 0
| 0.032895
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f9a5512d8e3b44e02bb77d36727dee3d6a9a9045
| 18,667
|
py
|
Python
|
testcases/generated/jmr_test.py
|
Tanc009/jdcloud-cli
|
4e11de77c68501f44e7026c0ad1c24e5d043197e
|
[
"Apache-2.0"
] | null | null | null |
testcases/generated/jmr_test.py
|
Tanc009/jdcloud-cli
|
4e11de77c68501f44e7026c0ad1c24e5d043197e
|
[
"Apache-2.0"
] | null | null | null |
testcases/generated/jmr_test.py
|
Tanc009/jdcloud-cli
|
4e11de77c68501f44e7026c0ad1c24e5d043197e
|
[
"Apache-2.0"
] | null | null | null |
# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.
import unittest
import os
import json
class JmrTest(unittest.TestCase):
def test_create_cluster_in_new_network(self):
cmd = """python ../../main.py jmr create-cluster-in-new-network --cluster-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_show_cluster_details(self):
cmd = """python ../../main.py jmr show-cluster-details --id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_release_cluster(self):
cmd = """python ../../main.py jmr release-cluster --id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_key(self):
cmd = """python ../../main.py jmr get-key """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_property_value(self):
cmd = """python ../../main.py jmr get-property-value """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_hardware_stack(self):
cmd = """python ../../main.py jmr get-hardware-stack """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_instance_list(self):
cmd = """python ../../main.py jmr get-instance-list """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_idata_cluster(self):
cmd = """python ../../main.py jmr idata-cluster --id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_software_info(self):
cmd = """python ../../main.py jmr get-software-info --ver 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_software_and_version_info(self):
cmd = """python ../../main.py jmr get-software-and-version-info --ver 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_jmr_version_list(self):
cmd = """python ../../main.py jmr get-jmr-version-list """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_calculate_cluster_price(self):
cmd = """python ../../main.py jmr calculate-cluster-price --cluster-list-view-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_avaliable_num(self):
cmd = """python ../../main.py jmr get-avaliable-num """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_query_server_quota(self):
cmd = """python ../../main.py jmr query-server-quota """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_query_vpcs(self):
cmd = """python ../../main.py jmr query-vpcs """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_query_vpc_subnets(self):
cmd = """python ../../main.py jmr query-vpc-subnets --vpc-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_delete_cluster(self):
cmd = """python ../../main.py jmr delete-cluster --record-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_query_floating_ip(self):
cmd = """python ../../main.py jmr query-floating-ip --record-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_validate_user(self):
cmd = """python ../../main.py jmr validate-user """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_renew_billing_order(self):
cmd = """python ../../main.py jmr renew-billing-order --cluster-id 'xxx' --type '5'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_validate_name(self):
cmd = """python ../../main.py jmr validate-name --name 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_access_keys(self):
cmd = """python ../../main.py jmr get-access-keys """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_cluster_expansion(self):
cmd = """python ../../main.py jmr cluster-expansion --cluster-id 'xxx' --expansion-num '5'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_calculate_expansion_price(self):
cmd = """python ../../main.py jmr calculate-expansion-price --cluster-id 'xxx' --expansion-num '5'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cluster_detail_info(self):
cmd = """python ../../main.py jmr get-cluster-detail-info --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_monitor_service_list(self):
cmd = """python ../../main.py jmr monitor-service-list --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_monitor_details(self):
cmd = """python ../../main.py jmr monitor-details --cluster-id 'xxx' --service 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_first_server_vnc_url(self):
cmd = """python ../../main.py jmr get-first-server-vnc-url --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_job_type_list(self):
cmd = """python ../../main.py jmr get-job-type-list --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_job_list(self):
cmd = """python ../../main.py jmr get-job-list --jmr-job-view-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_is_valid_job_name(self):
cmd = """python ../../main.py jmr is-valid-job-name --job-id 'xxx' --job-name 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_create_job(self):
cmd = """python ../../main.py jmr create-job --jmr-job-view-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_modify_job(self):
cmd = """python ../../main.py jmr modify-job --jmr-job-view-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_delete_job(self):
cmd = """python ../../main.py jmr delete-job --job-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_create_and_excute_job(self):
cmd = """python ../../main.py jmr create-and-excute-job --jmr-job-view-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_execute_job(self):
cmd = """python ../../main.py jmr execute-job --jmr-task-view-model '{"":""}' --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_show_job_details(self):
cmd = """python ../../main.py jmr show-job-details --job-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_task_list(self):
cmd = """python ../../main.py jmr get-task-list --job-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_delete_hdfs_file(self):
cmd = """python ../../main.py jmr delete-hdfs-file --cluster-id 'xxx' --file-path 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cluster_job_count(self):
cmd = """python ../../main.py jmr get-cluster-job-count --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cluster_cron_job_count(self):
cmd = """python ../../main.py jmr get-cluster-cron-job-count --cluster-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cron_job_list(self):
cmd = """python ../../main.py jmr get-cron-job-list --jmr-plan-view-model '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_is_valid_plan_name(self):
cmd = """python ../../main.py jmr is-valid-plan-name --plan-id 'xxx' --plan-name 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_create_cron_job(self):
cmd = """python ../../main.py jmr create-cron-job --jmr-plan-view-model '{"":""}' --time 'xxx' --month 'xxx' --week 'xxx' --day 'xxx' --hour 'xxx' --minute 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cron_job_detail(self):
cmd = """python ../../main.py jmr get-cron-job-detail --plan-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_modify_cron_job(self):
cmd = """python ../../main.py jmr modify-cron-job --jmr-plan-view-model '{"":""}' --time 'xxx' --month 'xxx' --week 'xxx' --day 'xxx' --hour 'xxx' --minute 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_pause_cron_job(self):
cmd = """python ../../main.py jmr pause-cron-job --plan-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_resume_cron_job(self):
cmd = """python ../../main.py jmr resume-cron-job --plan-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_delete_cron_job(self):
cmd = """python ../../main.py jmr delete-cron-job --plan-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cron_job_task_list(self):
cmd = """python ../../main.py jmr get-cron-job-task-list --plan-id '5'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_cron_job_task_list_by_job_id(self):
cmd = """python ../../main.py jmr get-cron-job-task-list-by-job-id --job-id 'xxx' --plan-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_run_cron_job_once(self):
cmd = """python ../../main.py jmr run-cron-job-once --plan-id '5'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_last_cron_job_task(self):
cmd = """python ../../main.py jmr get-last-cron-job-task --job-id 'xxx' --plan-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_query_executing_job_list(self):
cmd = """python ../../main.py jmr query-executing-job-list """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_work_flow_list(self):
cmd = """python ../../main.py jmr get-work-flow-list --workflow-name 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_save_work_flow(self):
cmd = """python ../../main.py jmr save-work-flow --workflow '{"":""}'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_delete_work_flow(self):
cmd = """python ../../main.py jmr delete-work-flow --workflow-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_run_work_flow(self):
cmd = """python ../../main.py jmr run-work-flow --workflow-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_wf_instance_detail(self):
cmd = """python ../../main.py jmr wf-instance-detail --wf-instance-id 'xxx' --wf-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_get_work_flow_tracker_list(self):
cmd = """python ../../main.py jmr get-work-flow-tracker-list """
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
def test_delete_work_flow_tracker(self):
cmd = """python ../../main.py jmr delete-work-flow-tracker --tracker-id 'xxx'"""
with os.popen(cmd) as f:
content = f.read()
print content
result = json.loads(content)
self.assertIsInstance(result, dict)
| 32.464348
| 173
| 0.579525
| 2,368
| 18,667
| 4.483108
| 0.074747
| 0.040222
| 0.074699
| 0.097683
| 0.868124
| 0.853994
| 0.849849
| 0.787962
| 0.729371
| 0.698003
| 0
| 0.001041
| 0.279209
| 18,667
| 574
| 174
| 32.520906
| 0.78796
| 0.033964
| 0
| 0.707657
| 0
| 0.041763
| 0.220649
| 0.026644
| 0
| 0
| 0
| 0
| 0.141531
| 0
| null | null | 0
| 0.006961
| null | null | 0.141531
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ddcceb2fc466736a31afc19bb389153b5ab762f9
| 90
|
py
|
Python
|
src/context/db.py
|
hvuhsg/OpenAPIGateway
|
76413c69e2f35a2febf899f161ddc4da4b0ea354
|
[
"MIT"
] | 1
|
2022-01-29T17:50:38.000Z
|
2022-01-29T17:50:38.000Z
|
src/context/db.py
|
hvuhsg/OpenAPIGateway
|
76413c69e2f35a2febf899f161ddc4da4b0ea354
|
[
"MIT"
] | null | null | null |
src/context/db.py
|
hvuhsg/OpenAPIGateway
|
76413c69e2f35a2febf899f161ddc4da4b0ea354
|
[
"MIT"
] | null | null | null |
from db.mongo import MongoDB
def get_db() -> MongoDB:
return MongoDB.get_instance()
| 15
| 33
| 0.722222
| 13
| 90
| 4.846154
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177778
| 90
| 5
| 34
| 18
| 0.851351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
ddebc4c329e8f2dde5a1e176b430a423b27dd09c
| 50,878
|
py
|
Python
|
PyTests/Violet/overridden_static_methods.py
|
LiarPrincess/Violet
|
0a4268649b0eec3ab631d19015d7043394c6571e
|
[
"MIT"
] | null | null | null |
PyTests/Violet/overridden_static_methods.py
|
LiarPrincess/Violet
|
0a4268649b0eec3ab631d19015d7043394c6571e
|
[
"MIT"
] | 6
|
2021-10-14T15:55:16.000Z
|
2022-03-31T14:04:02.000Z
|
PyTests/Violet/overridden_static_methods.py
|
LiarPrincess/Violet
|
0a4268649b0eec3ab631d19015d7043394c6571e
|
[
"MIT"
] | null | null | null |
# ==================================================================================================
# Automatically generated from: ./PyTests/Violet/generate_overridden_static_methods_test/__main__.py
# DO NOT EDIT!
# ==================================================================================================
'''
We sometimes dispatch methods using 'object.type.staticMethods' instead of doing
a standard Python dispatch. But if we override given method in subtype then we
should always use dynamic dispatch. This file will test just that.
See 'PyStaticCall' documentation for more information.
'''
import sys
# Not all of the types are in 'builtins'.
if sys.implementation.name == 'Violet':
module = type(sys)
SimpleNamespace = type(sys.implementation)
else:
from types import SimpleNamespace
from types import ModuleType as module
# ===============
# === Globals ===
# ===============
# Insert value to this dictionary to indicate that the method was called.
global_values = {}
def set_global_value(class_name: object, method_name: str):
global global_values
key = class_name + '.' + method_name
global_values[key] = True
def is_global_value_set(class_name: object, method_name: str):
global global_values
key = class_name + '.' + method_name
return global_values.get(key)
# Commonly used values.
attribute_name = 'attribute_name'
index_value = 1234
hash_value = 42
dir_value = ['__dir__']
# =================
# === bytearray ===
# =================
class MyBytearray(bytearray):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyBytearray', '__getattribute__')
return None
return super().__getattribute__(name)
def __getitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyBytearray', '__getitem__')
return None
return super().__getitem__(index)
def __setitem__(self, index, value):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyBytearray', '__setitem__')
return None
return super().__setitem__(index, value)
def __delitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyBytearray', '__delitem__')
return None
return super().__delitem__(index)
def __iter__(self):
global set_global_value
set_global_value('MyBytearray', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyBytearray', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyBytearray', '__contains__')
return False
def __add__(self, o):
return '__add__'
def __mul__(self, o):
return '__mul__'
def __rmul__(self, o):
return '__rmul__'
def __iadd__(self, o):
return '__iadd__'
def __imul__(self, o):
return '__imul__'
o = MyBytearray()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyBytearray', '__getattribute__')
o[index_value]
assert is_global_value_set('MyBytearray', '__getitem__')
o[index_value] = 43
assert is_global_value_set('MyBytearray', '__setitem__')
del o[index_value]
assert is_global_value_set('MyBytearray', '__delitem__')
iter(o)
assert is_global_value_set('MyBytearray', '__iter__')
len(o)
assert is_global_value_set('MyBytearray', '__len__')
42 in o
assert is_global_value_set('MyBytearray', '__contains__')
assert o.__add__(bytearray()) == '__add__'
assert o + bytearray() == '__add__'
assert o.__mul__(bytearray()) == '__mul__'
assert o * bytearray() == '__mul__'
assert o.__rmul__(bytearray()) == '__rmul__'
assert bytearray() * o == '__rmul__'
assert o.__iadd__(bytearray()) == '__iadd__'
o_copy = o
o_copy += bytearray()
assert o_copy == '__iadd__'
assert o.__imul__(bytearray()) == '__imul__'
o_copy = o
o_copy *= bytearray()
assert o_copy == '__imul__'
# =============
# === bytes ===
# =============
class MyBytes(bytes):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyBytes', '__getattribute__')
return None
return super().__getattribute__(name)
def __getitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyBytes', '__getitem__')
return None
return super().__getitem__(index)
def __iter__(self):
global set_global_value
set_global_value('MyBytes', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyBytes', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyBytes', '__contains__')
return False
def __add__(self, o):
return '__add__'
def __mul__(self, o):
return '__mul__'
def __rmul__(self, o):
return '__rmul__'
o = MyBytes()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyBytes', '__getattribute__')
o[index_value]
assert is_global_value_set('MyBytes', '__getitem__')
iter(o)
assert is_global_value_set('MyBytes', '__iter__')
len(o)
assert is_global_value_set('MyBytes', '__len__')
42 in o
assert is_global_value_set('MyBytes', '__contains__')
assert o.__add__(b'') == '__add__'
assert o + b'' == '__add__'
assert o.__mul__(b'') == '__mul__'
assert o * b'' == '__mul__'
assert o.__rmul__(b'') == '__rmul__'
assert b'' * o == '__rmul__'
# ===================
# === classmethod ===
# ===================
class MyClassmethod(classmethod):
def __isabstractmethod__(self):
global set_global_value
set_global_value('MyClassmethod', '__isabstractmethod__')
return False
o = MyClassmethod(lambda: None)
o.__isabstractmethod__()
assert is_global_value_set('MyClassmethod', '__isabstractmethod__')
# ===============
# === complex ===
# ===============
class MyComplex(complex):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __bool__(self):
global set_global_value
set_global_value('MyComplex', '__bool__')
return False
def __int__(self):
global set_global_value
set_global_value('MyComplex', '__int__')
return 42
def __float__(self):
global set_global_value
set_global_value('MyComplex', '__float__')
return 42.3
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyComplex', '__getattribute__')
return None
return super().__getattribute__(name)
def __pos__(self):
return '__pos__'
def __neg__(self):
return '__neg__'
def __abs__(self):
return '__abs__'
def __add__(self, o):
return '__add__'
def __divmod__(self, o):
return '__divmod__'
def __floordiv__(self, o):
return '__floordiv__'
def __mod__(self, o):
return '__mod__'
def __mul__(self, o):
return '__mul__'
def __sub__(self, o):
return '__sub__'
def __truediv__(self, o):
return '__truediv__'
def __radd__(self, o):
return '__radd__'
def __rdivmod__(self, o):
return '__rdivmod__'
def __rfloordiv__(self, o):
return '__rfloordiv__'
def __rmod__(self, o):
return '__rmod__'
def __rmul__(self, o):
return '__rmul__'
def __rsub__(self, o):
return '__rsub__'
def __rtruediv__(self, o):
return '__rtruediv__'
def __pow__(self, o, mod=None):
return '__pow__'
def __rpow__(self, o, mod=None):
return '__rpow__'
o = MyComplex()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
bool(o)
assert is_global_value_set('MyComplex', '__bool__')
int(o)
assert is_global_value_set('MyComplex', '__int__')
float(o)
assert is_global_value_set('MyComplex', '__float__')
getattr(o, attribute_name)
assert is_global_value_set('MyComplex', '__getattribute__')
assert o.__pos__() == '__pos__'
assert (+o) == '__pos__'
assert o.__neg__() == '__neg__'
assert (-o) == '__neg__'
assert o.__abs__() == '__abs__'
assert abs(o) == '__abs__'
assert o.__add__(1.0j) == '__add__'
assert o + 1.0j == '__add__'
assert o.__divmod__(1.0j) == '__divmod__'
assert o.__floordiv__(1.0j) == '__floordiv__'
assert o.__mod__(1.0j) == '__mod__'
assert o % 1.0j == '__mod__'
assert o.__mul__(1.0j) == '__mul__'
assert o * 1.0j == '__mul__'
assert o.__sub__(1.0j) == '__sub__'
assert o - 1.0j == '__sub__'
assert o.__truediv__(1.0j) == '__truediv__'
assert o / 1.0j == '__truediv__'
assert o.__radd__(1.0j) == '__radd__'
assert 1.0j + o == '__radd__'
assert o.__rdivmod__(1.0j) == '__rdivmod__'
assert o.__rfloordiv__(1.0j) == '__rfloordiv__'
assert o.__rmod__(1.0j) == '__rmod__'
assert 1.0j % o == '__rmod__'
assert o.__rmul__(1.0j) == '__rmul__'
assert 1.0j * o == '__rmul__'
assert o.__rsub__(1.0j) == '__rsub__'
assert 1.0j - o == '__rsub__'
assert o.__rtruediv__(1.0j) == '__rtruediv__'
assert 1.0j / o == '__rtruediv__'
assert o.__pow__(1.0j) == '__pow__'
assert pow(o, 1.0j) == '__pow__'
assert o.__rpow__(1.0j) == '__rpow__'
assert pow(1.0j, o) == '__rpow__'
# ============
# === dict ===
# ============
class MyDict(dict):
def __repr__(self):
return '__repr__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyDict', '__getattribute__')
return None
return super().__getattribute__(name)
def __getitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyDict', '__getitem__')
return None
return super().__getitem__(index)
def __setitem__(self, index, value):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyDict', '__setitem__')
return None
return super().__setitem__(index, value)
def __delitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyDict', '__delitem__')
return None
return super().__delitem__(index)
def __iter__(self):
global set_global_value
set_global_value('MyDict', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyDict', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyDict', '__contains__')
return False
def keys(self):
global set_global_value
set_global_value('MyDict', 'keys')
return super().keys()
o = MyDict()
assert repr(o) == '__repr__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyDict', '__getattribute__')
o[index_value]
assert is_global_value_set('MyDict', '__getitem__')
o[index_value] = 43
assert is_global_value_set('MyDict', '__setitem__')
del o[index_value]
assert is_global_value_set('MyDict', '__delitem__')
iter(o)
assert is_global_value_set('MyDict', '__iter__')
len(o)
assert is_global_value_set('MyDict', '__len__')
42 in o
assert is_global_value_set('MyDict', '__contains__')
o.keys()
assert is_global_value_set('MyDict', 'keys')
# =================
# === enumerate ===
# =================
class MyEnumerate(enumerate):
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyEnumerate', '__getattribute__')
return None
return super().__getattribute__(name)
def __iter__(self):
global set_global_value
set_global_value('MyEnumerate', '__iter__')
return super().__iter__()
def __next__(self):
global set_global_value
set_global_value('MyEnumerate', '__next__')
return 'infinite loop'
o = MyEnumerate([])
getattr(o, attribute_name)
assert is_global_value_set('MyEnumerate', '__getattribute__')
iter(o)
assert is_global_value_set('MyEnumerate', '__iter__')
next(o)
assert is_global_value_set('MyEnumerate', '__next__')
# ==============
# === filter ===
# ==============
class MyFilter(filter):
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyFilter', '__getattribute__')
return None
return super().__getattribute__(name)
def __iter__(self):
global set_global_value
set_global_value('MyFilter', '__iter__')
return super().__iter__()
def __next__(self):
global set_global_value
set_global_value('MyFilter', '__next__')
return 'infinite loop'
o = MyFilter(lambda: None, [])
getattr(o, attribute_name)
assert is_global_value_set('MyFilter', '__getattribute__')
iter(o)
assert is_global_value_set('MyFilter', '__iter__')
next(o)
assert is_global_value_set('MyFilter', '__next__')
# =============
# === float ===
# =============
class MyFloat(float):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __bool__(self):
global set_global_value
set_global_value('MyFloat', '__bool__')
return False
def __int__(self):
global set_global_value
set_global_value('MyFloat', '__int__')
return 42
def __float__(self):
global set_global_value
set_global_value('MyFloat', '__float__')
return 42.3
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyFloat', '__getattribute__')
return None
return super().__getattribute__(name)
def __pos__(self):
return '__pos__'
def __neg__(self):
return '__neg__'
def __abs__(self):
return '__abs__'
def __trunc__(self):
return '__trunc__'
def __round__(self, ndigits = None):
return '__round__'
def __add__(self, o):
return '__add__'
def __divmod__(self, o):
return '__divmod__'
def __floordiv__(self, o):
return '__floordiv__'
def __mod__(self, o):
return '__mod__'
def __mul__(self, o):
return '__mul__'
def __sub__(self, o):
return '__sub__'
def __truediv__(self, o):
return '__truediv__'
def __radd__(self, o):
return '__radd__'
def __rdivmod__(self, o):
return '__rdivmod__'
def __rfloordiv__(self, o):
return '__rfloordiv__'
def __rmod__(self, o):
return '__rmod__'
def __rmul__(self, o):
return '__rmul__'
def __rsub__(self, o):
return '__rsub__'
def __rtruediv__(self, o):
return '__rtruediv__'
def __pow__(self, o, mod=None):
return '__pow__'
def __rpow__(self, o, mod=None):
return '__rpow__'
o = MyFloat()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
bool(o)
assert is_global_value_set('MyFloat', '__bool__')
int(o)
assert is_global_value_set('MyFloat', '__int__')
float(o)
assert is_global_value_set('MyFloat', '__float__')
getattr(o, attribute_name)
assert is_global_value_set('MyFloat', '__getattribute__')
assert o.__pos__() == '__pos__'
assert (+o) == '__pos__'
assert o.__neg__() == '__neg__'
assert (-o) == '__neg__'
assert o.__abs__() == '__abs__'
assert abs(o) == '__abs__'
assert o.__trunc__() == '__trunc__'
assert round(o) == '__round__'
assert o.__add__(1.0) == '__add__'
assert o + 1.0 == '__add__'
assert o.__divmod__(1.0) == '__divmod__'
assert o.__floordiv__(1.0) == '__floordiv__'
assert o.__mod__(1.0) == '__mod__'
assert o % 1.0 == '__mod__'
assert o.__mul__(1.0) == '__mul__'
assert o * 1.0 == '__mul__'
assert o.__sub__(1.0) == '__sub__'
assert o - 1.0 == '__sub__'
assert o.__truediv__(1.0) == '__truediv__'
assert o / 1.0 == '__truediv__'
assert o.__radd__(1.0) == '__radd__'
assert 1.0 + o == '__radd__'
assert o.__rdivmod__(1.0) == '__rdivmod__'
assert o.__rfloordiv__(1.0) == '__rfloordiv__'
assert o.__rmod__(1.0) == '__rmod__'
assert 1.0 % o == '__rmod__'
assert o.__rmul__(1.0) == '__rmul__'
assert 1.0 * o == '__rmul__'
assert o.__rsub__(1.0) == '__rsub__'
assert 1.0 - o == '__rsub__'
assert o.__rtruediv__(1.0) == '__rtruediv__'
assert 1.0 / o == '__rtruediv__'
assert o.__pow__(1.0) == '__pow__'
assert pow(o, 1.0) == '__pow__'
assert o.__rpow__(1.0) == '__rpow__'
assert pow(1.0, o) == '__rpow__'
# =================
# === frozenset ===
# =================
class MyFrozenset(frozenset):
def __repr__(self):
return '__repr__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyFrozenset', '__getattribute__')
return None
return super().__getattribute__(name)
def __iter__(self):
global set_global_value
set_global_value('MyFrozenset', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyFrozenset', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyFrozenset', '__contains__')
return False
def __and__(self, o):
return '__and__'
def __or__(self, o):
return '__or__'
def __sub__(self, o):
return '__sub__'
def __xor__(self, o):
return '__xor__'
def __rand__(self, o):
return '__rand__'
def __ror__(self, o):
return '__ror__'
def __rsub__(self, o):
return '__rsub__'
def __rxor__(self, o):
return '__rxor__'
o = MyFrozenset()
assert repr(o) == '__repr__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyFrozenset', '__getattribute__')
iter(o)
assert is_global_value_set('MyFrozenset', '__iter__')
len(o)
assert is_global_value_set('MyFrozenset', '__len__')
42 in o
assert is_global_value_set('MyFrozenset', '__contains__')
assert o.__and__(frozenset()) == '__and__'
assert o & frozenset() == '__and__'
assert o.__or__(frozenset()) == '__or__'
assert o | frozenset() == '__or__'
assert o.__sub__(frozenset()) == '__sub__'
assert o - frozenset() == '__sub__'
assert o.__xor__(frozenset()) == '__xor__'
assert o ^ frozenset() == '__xor__'
assert o.__rand__(frozenset()) == '__rand__'
assert frozenset() & o == '__rand__'
assert o.__ror__(frozenset()) == '__ror__'
assert frozenset() | o == '__ror__'
assert o.__rsub__(frozenset()) == '__rsub__'
assert frozenset() - o == '__rsub__'
assert o.__rxor__(frozenset()) == '__rxor__'
assert frozenset() ^ o == '__rxor__'
# ===========
# === int ===
# ===========
class MyInt(int):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __bool__(self):
global set_global_value
set_global_value('MyInt', '__bool__')
return False
def __int__(self):
global set_global_value
set_global_value('MyInt', '__int__')
return 42
def __float__(self):
global set_global_value
set_global_value('MyInt', '__float__')
return 42.3
def __index__(self):
global set_global_value
set_global_value('MyInt', '__index__')
return 42
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyInt', '__getattribute__')
return None
return super().__getattribute__(name)
def __pos__(self):
return '__pos__'
def __neg__(self):
return '__neg__'
def __invert__(self):
return '__invert__'
def __abs__(self):
return '__abs__'
def __trunc__(self):
return '__trunc__'
def __round__(self, ndigits = None):
return '__round__'
def __add__(self, o):
return '__add__'
def __and__(self, o):
return '__and__'
def __divmod__(self, o):
return '__divmod__'
def __floordiv__(self, o):
return '__floordiv__'
def __lshift__(self, o):
return '__lshift__'
def __mod__(self, o):
return '__mod__'
def __mul__(self, o):
return '__mul__'
def __or__(self, o):
return '__or__'
def __rshift__(self, o):
return '__rshift__'
def __sub__(self, o):
return '__sub__'
def __truediv__(self, o):
return '__truediv__'
def __xor__(self, o):
return '__xor__'
def __radd__(self, o):
return '__radd__'
def __rand__(self, o):
return '__rand__'
def __rdivmod__(self, o):
return '__rdivmod__'
def __rfloordiv__(self, o):
return '__rfloordiv__'
def __rlshift__(self, o):
return '__rlshift__'
def __rmod__(self, o):
return '__rmod__'
def __rmul__(self, o):
return '__rmul__'
def __ror__(self, o):
return '__ror__'
def __rrshift__(self, o):
return '__rrshift__'
def __rsub__(self, o):
return '__rsub__'
def __rtruediv__(self, o):
return '__rtruediv__'
def __rxor__(self, o):
return '__rxor__'
def __pow__(self, o, mod=None):
return '__pow__'
def __rpow__(self, o, mod=None):
return '__rpow__'
o = MyInt()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
bool(o)
assert is_global_value_set('MyInt', '__bool__')
int(o)
assert is_global_value_set('MyInt', '__int__')
float(o)
assert is_global_value_set('MyInt', '__float__')
o.__index__()
assert is_global_value_set('MyInt', '__index__')
getattr(o, attribute_name)
assert is_global_value_set('MyInt', '__getattribute__')
assert o.__pos__() == '__pos__'
assert (+o) == '__pos__'
assert o.__neg__() == '__neg__'
assert (-o) == '__neg__'
assert o.__invert__() == '__invert__'
assert (~o) == '__invert__'
assert o.__abs__() == '__abs__'
assert abs(o) == '__abs__'
assert o.__trunc__() == '__trunc__'
assert round(o) == '__round__'
assert o.__add__(1) == '__add__'
assert o + 1 == '__add__'
assert o.__and__(1) == '__and__'
assert o & 1 == '__and__'
assert o.__divmod__(1) == '__divmod__'
assert o.__floordiv__(1) == '__floordiv__'
assert o.__lshift__(1) == '__lshift__'
assert o << 1 == '__lshift__'
assert o.__mod__(1) == '__mod__'
assert o % 1 == '__mod__'
assert o.__mul__(1) == '__mul__'
assert o * 1 == '__mul__'
assert o.__or__(1) == '__or__'
assert o | 1 == '__or__'
assert o.__rshift__(1) == '__rshift__'
assert o >> 1 == '__rshift__'
assert o.__sub__(1) == '__sub__'
assert o - 1 == '__sub__'
assert o.__truediv__(1) == '__truediv__'
assert o / 1 == '__truediv__'
assert o.__xor__(1) == '__xor__'
assert o ^ 1 == '__xor__'
assert o.__radd__(1) == '__radd__'
assert 1 + o == '__radd__'
assert o.__rand__(1) == '__rand__'
assert 1 & o == '__rand__'
assert o.__rdivmod__(1) == '__rdivmod__'
assert o.__rfloordiv__(1) == '__rfloordiv__'
assert o.__rlshift__(1) == '__rlshift__'
assert 1 << o == '__rlshift__'
assert o.__rmod__(1) == '__rmod__'
assert 1 % o == '__rmod__'
assert o.__rmul__(1) == '__rmul__'
assert 1 * o == '__rmul__'
assert o.__ror__(1) == '__ror__'
assert 1 | o == '__ror__'
assert o.__rrshift__(1) == '__rrshift__'
assert 1 >> o == '__rrshift__'
assert o.__rsub__(1) == '__rsub__'
assert 1 - o == '__rsub__'
assert o.__rtruediv__(1) == '__rtruediv__'
assert 1 / o == '__rtruediv__'
assert o.__rxor__(1) == '__rxor__'
assert 1 ^ o == '__rxor__'
assert o.__pow__(1) == '__pow__'
assert pow(o, 1) == '__pow__'
assert o.__rpow__(1) == '__rpow__'
assert pow(1, o) == '__rpow__'
# ============
# === list ===
# ============
class MyList(list):
def __repr__(self):
return '__repr__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyList', '__getattribute__')
return None
return super().__getattribute__(name)
def __getitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyList', '__getitem__')
return None
return super().__getitem__(index)
def __setitem__(self, index, value):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyList', '__setitem__')
return None
return super().__setitem__(index, value)
def __delitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyList', '__delitem__')
return None
return super().__delitem__(index)
def __iter__(self):
global set_global_value
set_global_value('MyList', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyList', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyList', '__contains__')
return False
def __reversed__(self):
global set_global_value
set_global_value('MyList', '__reversed__')
return super().__reversed__()
def __add__(self, o):
return '__add__'
def __mul__(self, o):
return '__mul__'
def __rmul__(self, o):
return '__rmul__'
def __iadd__(self, o):
return '__iadd__'
def __imul__(self, o):
return '__imul__'
o = MyList()
assert repr(o) == '__repr__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyList', '__getattribute__')
o[index_value]
assert is_global_value_set('MyList', '__getitem__')
o[index_value] = 43
assert is_global_value_set('MyList', '__setitem__')
del o[index_value]
assert is_global_value_set('MyList', '__delitem__')
iter(o)
assert is_global_value_set('MyList', '__iter__')
len(o)
assert is_global_value_set('MyList', '__len__')
42 in o
assert is_global_value_set('MyList', '__contains__')
o.__reversed__()
assert is_global_value_set('MyList', '__reversed__')
assert o.__add__([]) == '__add__'
assert o + [] == '__add__'
assert o.__mul__([]) == '__mul__'
assert o * [] == '__mul__'
assert o.__rmul__([]) == '__rmul__'
assert [] * o == '__rmul__'
assert o.__iadd__([]) == '__iadd__'
o_copy = o
o_copy += []
assert o_copy == '__iadd__'
assert o.__imul__([]) == '__imul__'
o_copy = o
o_copy *= []
assert o_copy == '__imul__'
# ===========
# === map ===
# ===========
class MyMap(map):
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyMap', '__getattribute__')
return None
return super().__getattribute__(name)
def __iter__(self):
global set_global_value
set_global_value('MyMap', '__iter__')
return super().__iter__()
def __next__(self):
global set_global_value
set_global_value('MyMap', '__next__')
return 'infinite loop'
o = MyMap(lambda: None, [])
getattr(o, attribute_name)
assert is_global_value_set('MyMap', '__getattribute__')
iter(o)
assert is_global_value_set('MyMap', '__iter__')
next(o)
assert is_global_value_set('MyMap', '__next__')
# ==============
# === module ===
# ==============
class MyModule(module):
def __repr__(self):
return '__repr__'
def __dir__(self):
global dir_value
return dir_value
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyModule', '__getattribute__')
return None
return super().__getattribute__(name)
def __setattr__(self, name, value):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyModule', '__setattr__')
return None
return super().__setattr__(name, value)
def __delattr__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyModule', '__delattr__')
return None
return super().__delattr__(name)
o = MyModule('name')
assert repr(o) == '__repr__'
assert dir(o) == dir_value
getattr(o, attribute_name)
assert is_global_value_set('MyModule', '__getattribute__')
setattr(o, attribute_name, 42)
assert is_global_value_set('MyModule', '__setattr__')
delattr(o, attribute_name)
assert is_global_value_set('MyModule', '__delattr__')
# =======================
# === SimpleNamespace ===
# =======================
class MySimpleNamespace(SimpleNamespace):
def __repr__(self):
return '__repr__'
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MySimpleNamespace', '__getattribute__')
return None
return super().__getattribute__(name)
def __setattr__(self, name, value):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MySimpleNamespace', '__setattr__')
return None
return super().__setattr__(name, value)
def __delattr__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MySimpleNamespace', '__delattr__')
return None
return super().__delattr__(name)
o = MySimpleNamespace()
assert repr(o) == '__repr__'
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MySimpleNamespace', '__getattribute__')
setattr(o, attribute_name, 42)
assert is_global_value_set('MySimpleNamespace', '__setattr__')
delattr(o, attribute_name)
assert is_global_value_set('MySimpleNamespace', '__delattr__')
# ==============
# === object ===
# ==============
class MyObject(object):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __dir__(self):
global dir_value
return dir_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyObject', '__getattribute__')
return None
return super().__getattribute__(name)
def __setattr__(self, name, value):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyObject', '__setattr__')
return None
return super().__setattr__(name, value)
def __delattr__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyObject', '__delattr__')
return None
return super().__delattr__(name)
o = MyObject()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert dir(o) == dir_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyObject', '__getattribute__')
setattr(o, attribute_name, 42)
assert is_global_value_set('MyObject', '__setattr__')
delattr(o, attribute_name)
assert is_global_value_set('MyObject', '__delattr__')
# ================
# === property ===
# ================
class MyProperty(property):
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyProperty', '__getattribute__')
return None
return super().__getattribute__(name)
o = MyProperty()
getattr(o, attribute_name)
assert is_global_value_set('MyProperty', '__getattribute__')
# ===========
# === set ===
# ===========
class MySet(set):
def __repr__(self):
return '__repr__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MySet', '__getattribute__')
return None
return super().__getattribute__(name)
def __iter__(self):
global set_global_value
set_global_value('MySet', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MySet', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MySet', '__contains__')
return False
def __and__(self, o):
return '__and__'
def __or__(self, o):
return '__or__'
def __sub__(self, o):
return '__sub__'
def __xor__(self, o):
return '__xor__'
def __rand__(self, o):
return '__rand__'
def __ror__(self, o):
return '__ror__'
def __rsub__(self, o):
return '__rsub__'
def __rxor__(self, o):
return '__rxor__'
o = MySet()
assert repr(o) == '__repr__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MySet', '__getattribute__')
iter(o)
assert is_global_value_set('MySet', '__iter__')
len(o)
assert is_global_value_set('MySet', '__len__')
42 in o
assert is_global_value_set('MySet', '__contains__')
assert o.__and__(set()) == '__and__'
assert o & set() == '__and__'
assert o.__or__(set()) == '__or__'
assert o | set() == '__or__'
assert o.__sub__(set()) == '__sub__'
assert o - set() == '__sub__'
assert o.__xor__(set()) == '__xor__'
assert o ^ set() == '__xor__'
assert o.__rand__(set()) == '__rand__'
assert set() & o == '__rand__'
assert o.__ror__(set()) == '__ror__'
assert set() | o == '__ror__'
assert o.__rsub__(set()) == '__rsub__'
assert set() - o == '__rsub__'
assert o.__rxor__(set()) == '__rxor__'
assert set() ^ o == '__rxor__'
# ====================
# === staticmethod ===
# ====================
class MyStaticmethod(staticmethod):
def __isabstractmethod__(self):
global set_global_value
set_global_value('MyStaticmethod', '__isabstractmethod__')
return False
o = MyStaticmethod(lambda: None)
o.__isabstractmethod__()
assert is_global_value_set('MyStaticmethod', '__isabstractmethod__')
# ===========
# === str ===
# ===========
class MyStr(str):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyStr', '__getattribute__')
return None
return super().__getattribute__(name)
def __getitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyStr', '__getitem__')
return None
return super().__getitem__(index)
def __iter__(self):
global set_global_value
set_global_value('MyStr', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyStr', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyStr', '__contains__')
return False
def __add__(self, o):
return '__add__'
def __mul__(self, o):
return '__mul__'
def __rmul__(self, o):
return '__rmul__'
o = MyStr()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyStr', '__getattribute__')
o[index_value]
assert is_global_value_set('MyStr', '__getitem__')
iter(o)
assert is_global_value_set('MyStr', '__iter__')
len(o)
assert is_global_value_set('MyStr', '__len__')
42 in o
assert is_global_value_set('MyStr', '__contains__')
assert o.__add__('') == '__add__'
assert o + '' == '__add__'
assert o.__mul__('') == '__mul__'
assert o * '' == '__mul__'
assert o.__rmul__('') == '__rmul__'
assert '' * o == '__rmul__'
# =============
# === tuple ===
# =============
class MyTuple(tuple):
def __repr__(self):
return '__repr__'
def __hash__(self):
global hash_value
return hash_value
def __eq__(self, o):
return o == '__eq__'
def __ne__(self, o):
return o == '__ne__'
def __lt__(self, o):
return o == '__lt__'
def __le__(self, o):
return o == '__le__'
def __gt__(self, o):
return o == '__gt__'
def __ge__(self, o):
return o == '__ge__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyTuple', '__getattribute__')
return None
return super().__getattribute__(name)
def __getitem__(self, index):
global index_value
if index == index_value:
global set_global_value
set_global_value('MyTuple', '__getitem__')
return None
return super().__getitem__(index)
def __iter__(self):
global set_global_value
set_global_value('MyTuple', '__iter__')
return super().__iter__()
def __len__(self):
global set_global_value
set_global_value('MyTuple', '__len__')
return 1
def __contains__(self, element):
global set_global_value
set_global_value('MyTuple', '__contains__')
return False
def __add__(self, o):
return '__add__'
def __mul__(self, o):
return '__mul__'
def __rmul__(self, o):
return '__rmul__'
o = MyTuple()
assert repr(o) == '__repr__'
assert hash(o) == hash_value
assert o == '__eq__'
assert o != '__ne__'
assert o < '__lt__'
assert o <= '__le__'
assert o > '__gt__'
assert o >= '__ge__'
getattr(o, attribute_name)
assert is_global_value_set('MyTuple', '__getattribute__')
o[index_value]
assert is_global_value_set('MyTuple', '__getitem__')
iter(o)
assert is_global_value_set('MyTuple', '__iter__')
len(o)
assert is_global_value_set('MyTuple', '__len__')
42 in o
assert is_global_value_set('MyTuple', '__contains__')
assert o.__add__(()) == '__add__'
assert o + () == '__add__'
assert o.__mul__(()) == '__mul__'
assert o * () == '__mul__'
assert o.__rmul__(()) == '__rmul__'
assert () * o == '__rmul__'
# ============
# === type ===
# ============
class MyType(type):
def __repr__(self):
return '__repr__'
def __dir__(self):
global dir_value
return dir_value
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyType', '__getattribute__')
return None
return super().__getattribute__(name)
def __setattr__(self, name, value):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyType', '__setattr__')
return None
return super().__setattr__(name, value)
def __delattr__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyType', '__delattr__')
return None
return super().__delattr__(name)
def __call__(self, args=None, kwargs=None):
return '__call__'
def __instancecheck__(self, object):
global set_global_value
set_global_value('MyType', '__instancecheck__')
return False
def __subclasscheck__(self, subclass):
global set_global_value
set_global_value('MyType', '__subclasscheck__')
return False
o = MyType('Name', (), {})
assert repr(o) == '__repr__'
assert dir(o) == dir_value
getattr(o, attribute_name)
assert is_global_value_set('MyType', '__getattribute__')
setattr(o, attribute_name, 42)
assert is_global_value_set('MyType', '__setattr__')
delattr(o, attribute_name)
assert is_global_value_set('MyType', '__delattr__')
assert o() == '__call__'
isinstance(42, o)
assert is_global_value_set('MyType', '__instancecheck__')
issubclass(int, o)
assert is_global_value_set('MyType', '__subclasscheck__')
# ===========
# === zip ===
# ===========
class MyZip(zip):
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyZip', '__getattribute__')
return None
return super().__getattribute__(name)
def __iter__(self):
global set_global_value
set_global_value('MyZip', '__iter__')
return super().__iter__()
def __next__(self):
global set_global_value
set_global_value('MyZip', '__next__')
return 'infinite loop'
o = MyZip()
getattr(o, attribute_name)
assert is_global_value_set('MyZip', '__getattribute__')
iter(o)
assert is_global_value_set('MyZip', '__iter__')
next(o)
assert is_global_value_set('MyZip', '__next__')
# =====================
# === BaseException ===
# =====================
class MyBaseException(BaseException):
def __repr__(self):
return '__repr__'
def __str__(self):
return '__str__'
def __getattribute__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyBaseException', '__getattribute__')
return None
return super().__getattribute__(name)
def __setattr__(self, name, value):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyBaseException', '__setattr__')
return None
return super().__setattr__(name, value)
def __delattr__(self, name):
global attribute_name
if name == attribute_name:
global set_global_value
set_global_value('MyBaseException', '__delattr__')
return None
return super().__delattr__(name)
o = MyBaseException()
assert repr(o) == '__repr__'
assert str(o) == '__str__'
getattr(o, attribute_name)
assert is_global_value_set('MyBaseException', '__getattribute__')
setattr(o, attribute_name, 42)
assert is_global_value_set('MyBaseException', '__setattr__')
delattr(o, attribute_name)
assert is_global_value_set('MyBaseException', '__delattr__')
# ===================
# === ImportError ===
# ===================
class MyImportError(ImportError):
def __str__(self):
return '__str__'
o = MyImportError()
assert str(o) == '__str__'
# ================
# === KeyError ===
# ================
class MyKeyError(KeyError):
def __str__(self):
return '__str__'
o = MyKeyError()
assert str(o) == '__str__'
# ===================
# === SyntaxError ===
# ===================
class MySyntaxError(SyntaxError):
def __str__(self):
return '__str__'
o = MySyntaxError()
assert str(o) == '__str__'
| 24.507707
| 100
| 0.618244
| 5,915
| 50,878
| 4.37481
| 0.037363
| 0.116899
| 0.099007
| 0.056884
| 0.844495
| 0.809715
| 0.785331
| 0.76253
| 0.70526
| 0.650887
| 0
| 0.005823
| 0.240517
| 50,878
| 2,075
| 101
| 24.519518
| 0.663854
| 0.039821
| 0
| 0.708091
| 1
| 0
| 0.152289
| 0
| 0
| 0
| 0
| 0
| 0.265372
| 1
| 0.207767
| false
| 0
| 0.003236
| 0.137864
| 0.462783
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 10
|
ddf52c09d985bef76422c99b84e9be3ad1461ecc
| 34,586
|
py
|
Python
|
tests/model/api/test_convenience.py
|
stklik/CREST
|
7fd97c50b0c6c923e1c477105bed4f0ea032bb99
|
[
"MIT"
] | 14
|
2019-08-06T10:17:46.000Z
|
2022-03-13T12:50:59.000Z
|
tests/model/api/test_convenience.py
|
stklik/CREST
|
7fd97c50b0c6c923e1c477105bed4f0ea032bb99
|
[
"MIT"
] | 16
|
2018-01-20T00:54:24.000Z
|
2019-07-24T15:43:42.000Z
|
tests/model/api/test_convenience.py
|
stklik/CREST
|
7fd97c50b0c6c923e1c477105bed4f0ea032bb99
|
[
"MIT"
] | 1
|
2021-02-01T15:33:24.000Z
|
2021-02-01T15:33:24.000Z
|
import unittest
import crestdsl.model as crest
import crestdsl.model.api as api
import copy
class ConvenienceAPI_AddTest(unittest.TestCase):
"""
The following tests are related to issue #15 https://github.com/crestdsl/CREST/issues/15
It's about overriding crest objects that are already used in transitions, updates, influences, etc.
This is not allowed ! Therefore we check that the errors are thrown
"""
def test_override_port_in__init__throws_error_when_already_used_as_update_target(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
port_out = crest.Output(res, 987)
state = current = crest.State()
update = crest.Update(state=state, target=port_out, function=(lambda self: 12345))
def __init__(self):
api.add(self, "port_out", crest.Output(res, 7777) )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign Output port 'port_out' after it was used as target of Update 'update'.")
def test_override_port_in__init__throws_error_when_already_used_as_influence_source(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
port_in = crest.Input(res, 1234)
port_out = crest.Output(res, 987)
state = current = crest.State()
influence = crest.Influence(source=port_in, target=port_out)
def __init__(self):
api.add(self, "port_in", crest.Input(res, 5555) )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign Input port 'port_in' after it was used as source of Influence 'influence'.")
def test_override_port_in__init__throws_error_when_already_used_as_influence_target(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
port_in = crest.Input(res, 1234)
port_out = crest.Output(res, 987)
state = current = crest.State()
influence = crest.Influence(source=port_in, target=port_out)
def __init__(self):
api.add(self, "port_out", crest.Output(res, 5555) )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign Output port 'port_out' after it was used as target of Influence 'influence'.")
def test_override_port_in__init__throws_error_when_already_used_as_action_target(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
port_out = crest.Output(res, 987)
state = current = crest.State()
second_state = crest.State()
transition = crest.Transition(source=state, target=second_state, guard=(lambda self: True))
action = crest.Action(transition=transition, target=port_out, function=(lambda self: 12345))
def __init__(self):
api.add(self, "port_out", crest.Output(res, 7777) )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign Output port 'port_out' after it was used as target of Action 'action'.")
def test_override_state_in__init__updates_current_state_to_new_state(self):
res = crest.Resource("test", crest.REAL)
newstate = crest.State()
class TestEntity(crest.Entity):
port_out = crest.Output(res, 987)
state = current = crest.State()
def __init__(self):
api.add(self, "state", newstate )
entity = TestEntity()
self.assertEqual(newstate, entity.current)
def test_override_state_in__init__throws_error_when_already_used_in_update(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
port_out = crest.Output(res, 987)
state = current = crest.State()
second_state = crest.State()
update = crest.Update(state=second_state, target=port_out, function=(lambda self: 12345))
def __init__(self):
api.add(self, "second_state", crest.State() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign State 'second_state' after it was used in Update 'update'.")
def test_override_state_in__init__throws_error_when_already_used_as_transition_source(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
state = current = crest.State()
second_state = crest.State()
trans = crest.Transition(source=second_state, target=state, guard=(lambda self: True))
def __init__(self):
api.add(self, "second_state", crest.State() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign State 'second_state' after it was used as source of Transition 'trans'.")
def test_override_state_in__init__throws_error_when_already_used_as_transition_target(self):
res = crest.Resource("test", crest.REAL)
class TestEntity(crest.Entity):
state = current = crest.State()
second_state = crest.State()
trans = crest.Transition(source=state, target=second_state, guard=(lambda self: True))
def __init__(self):
api.add(self, "second_state", crest.State() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), f"Cannot reassign State 'second_state' after it was used as target of Transition 'trans'.")
""" Replacing Subentities """
def test_override_subentity_in__init__throws_error_when_sub_input_connected_by_update(self):
res = crest.Resource("test", crest.REAL)
class SubEntity(crest.Entity):
state = current = crest.State()
sub_in = crest.Input(res, 111)
class TestEntity(crest.Entity):
port_in = crest.Input(res, 1234)
sub = SubEntity()
state = current = crest.State()
update = crest.Update(state=state, target=sub.sub_in, function=(lambda self: 12345))
def __init__(self):
api.add(self, "sub", SubEntity() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), "Cannot reassign SubEntity 'sub' since one of its Input ports was used as target of Update 'update'.")
def test_override_subentity_in__init__throws_error_when_sub_input_connected_by_influence_source(self):
res = crest.Resource("test", crest.REAL)
class SubEntity(crest.Entity):
state = current = crest.State()
sub_out = crest.Output(res, 111)
class TestEntity(crest.Entity):
port_out = crest.Output(res, 987)
state = current = crest.State()
sub = SubEntity()
influence = crest.Influence(source=sub.sub_out, target=port_out)
def __init__(self):
api.add(self, "sub", SubEntity() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), "Cannot reassign SubEntity 'sub' since one of its Output ports was used as source of Influence 'influence'.")
def test_override_subentity_in__init__throws_error_when_sub_input_connected_by_influence_target(self):
res = crest.Resource("test", crest.REAL)
class SubEntity(crest.Entity):
state = current = crest.State()
sub_in = crest.Input(res, 111)
class TestEntity(crest.Entity):
port_in = crest.Input(res, 1234)
state = current = crest.State()
sub = SubEntity()
influence = crest.Influence(source=port_in, target=sub.sub_in)
def __init__(self):
api.add(self, "sub", SubEntity() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), "Cannot reassign SubEntity 'sub' since one of its Input ports was used as target of Influence 'influence'.")
def test_override_subentity_in__init__throws_error_when_sub_input_connected_by_action(self):
res = crest.Resource("test", crest.REAL)
class SubEntity(crest.Entity):
state = current = crest.State()
sub_in = crest.Input(res, 111)
class TestEntity(crest.Entity):
port_out = crest.Output(res, 987)
state = current = crest.State()
second_state = crest.State()
transition = crest.Transition(source=state, target=second_state, guard=(lambda self: True))
sub = SubEntity()
action = crest.Action(transition=transition, target=sub.sub_in, function=(lambda self: 12345))
def __init__(self):
api.add(self, "sub", SubEntity() )
with self.assertRaises(AttributeError) as context:
TestEntity()
self.assertEqual(str(context.exception), "Cannot reassign SubEntity 'sub' since one of its Input ports was used as target of Action 'action'.")
class ConvenienceAPI_PullupTest(unittest.TestCase):
"""
These tests checks the api's pullup function.
"""
def setUp(self):
"""Create an entity with subentities from which we can pullup and relay"""
res = crest.Resource("test", crest.REAL)
class TestSubEntity(crest.Entity):
state = current = crest.State()
port_in = crest.Input(res, 111)
port_in2 = crest.Input(res, 222)
local = crest.Local(res, 9999)
port_out = crest.Output(res, 11111)
port_out2 = crest.Output(res, 22222)
class TestEntity(crest.Entity):
state = current = crest.State()
sub1 = TestSubEntity()
sub2 = TestSubEntity()
self.testclass = TestEntity
def test_pullup_single_input_port(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(self.sub1.port_in)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.port_in, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.port_in.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.port_in.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.port_in_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.port_in_connect.source, testentity.port_in, "The connection's source is the pulled up port")
self.assertEqual(testentity.port_in_connect.target, testentity.sub1.port_in, "The connection's target is the subentity's input port")
def test_pullup_single_output_port(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(self.sub2.port_out)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.port_out, crest.Output), "The entity pulled up an output port")
self.assertEqual(testentity.port_out.value, testentity.sub2.port_out.value, "The pulled up port has the same value")
self.assertEqual(testentity.port_out.resource, testentity.sub2.port_out.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.port_out_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.port_out_connect.source, testentity.sub2.port_out, "The connection's source is the subentity output port")
self.assertEqual(testentity.port_out_connect.target, testentity.port_out, "The connection's target is the pulled up output port")
def test_named_pullup_single_ports(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(my_port_in=self.sub1.port_in)
api.pullup(my_port_out=self.sub2.port_out)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.my_port_in, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.my_port_in.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_in.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_in_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_in_connect.source, testentity.my_port_in, "The connection's source is the pulled up port")
self.assertEqual(testentity.my_port_in_connect.target, testentity.sub1.port_in, "The connection's target is the subentity's input port")
# check port pull up
self.assertTrue(isinstance(testentity.my_port_out, crest.Output), "The entity pulled up an output port")
self.assertEqual(testentity.my_port_out.value, testentity.sub2.port_out.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_out.resource, testentity.sub2.port_out.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_out_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_out_connect.source, testentity.sub2.port_out, "The connection's source is the subentity output port")
self.assertEqual(testentity.my_port_out_connect.target, testentity.my_port_out, "The connection's target is the pulled up output port")
def test_pullup_local_port_fails(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(self.sub1.local)
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Error during pullup. 'local' cannot be pulled up because it is not an Input or Output port.")
def test_pullup_fails_if_not_subentity(self):
class SubClass(self.testclass):
port = crest.Input(crest.Resource("dummy", crest.REAL), 12345)
def __init__(self):
api.pullup(self.port)
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Error during pullup. Port port's parent entity is not a subentity. Cannot pull up.")
def test_pullup_multiple_ports(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(self.sub1.port_in, self.sub2.port_out)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.port_in, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.port_in.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.port_in.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.port_in_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.port_in_connect.source, testentity.port_in, "The connection's source is the pulled up port")
self.assertEqual(testentity.port_in_connect.target, testentity.sub1.port_in, "The connection's target is the subentity's input port")
# check port pull up
self.assertTrue(isinstance(testentity.port_out, crest.Output), "The entity pulled up an output port")
self.assertEqual(testentity.port_out.value, testentity.sub2.port_out.value, "The pulled up port has the same value")
self.assertEqual(testentity.port_out.resource, testentity.sub2.port_out.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.port_out_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.port_out_connect.source, testentity.sub2.port_out, "The connection's source is the subentity output port")
self.assertEqual(testentity.port_out_connect.target, testentity.port_out, "The connection's target is the pulled up output port")
def test_named_pullup_multiple_ports(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(my_port_in=self.sub1.port_in, my_port_out=self.sub2.port_out)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.my_port_in, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.my_port_in.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_in.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_in_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_in_connect.source, testentity.my_port_in, "The connection's source is the pulled up port")
self.assertEqual(testentity.my_port_in_connect.target, testentity.sub1.port_in, "The connection's target is the subentity's input port")
# check port pull up
self.assertTrue(isinstance(testentity.my_port_out, crest.Output), "The entity pulled up an output port")
self.assertEqual(testentity.my_port_out.value, testentity.sub2.port_out.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_out.resource, testentity.sub2.port_out.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_out_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_out_connect.source, testentity.sub2.port_out, "The connection's source is the subentity output port")
self.assertEqual(testentity.my_port_out_connect.target, testentity.my_port_out, "The connection's target is the pulled up output port")
def test_pullup_multiple_ports_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(self.sub1.port_in, self.sub2.port_in)
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception),"Error during pullup. There exists already an object called 'port_in'.")
def test_pullup_two_individual_pullups_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(self.sub1.port_in)
api.pullup(self.sub2.port_in)
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception),"Error during pullup. There exists already an object called 'port_in'.")
def test_pullup_influence_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
self.port_in_connect = crest.Influence(source=self.sub1.port_out, target=self.sub2.port_out)
api.pullup(self.sub1.port_in)
api.pullup(self.sub2.port_in)
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Error during pullup. Cannot create connection influence. Name 'port_in_connect' already exists.")
def test_pullup_multiple_ports_avoid_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(my_port_in1=self.sub1.port_in,
my_port_in2=self.sub2.port_in)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.my_port_in1, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.my_port_in1.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_in1.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_in1_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_in1_connect.source, testentity.my_port_in1, "The connection's source is the pulled up port")
self.assertEqual(testentity.my_port_in1_connect.target, testentity.sub1.port_in, "The connection's target is the subentity's input port")
# check port pull up
self.assertTrue(isinstance(testentity.my_port_in2, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.my_port_in2.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_in2.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_in2_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_in2_connect.source, testentity.my_port_in2, "The connection's source is the pulled up port")
self.assertEqual(testentity.my_port_in2_connect.target, testentity.sub2.port_in, "The connection's target is the subentity's input port")
def test_pullup_two_individual_pullups_avoid_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
api.pullup(my_port_in1=self.sub1.port_in)
api.pullup(my_port_in2=self.sub2.port_in)
testentity = SubClass()
# check port pull up
self.assertTrue(isinstance(testentity.my_port_in1, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.my_port_in1.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_in1.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_in1_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_in1_connect.source, testentity.my_port_in1, "The connection's source is the pulled up port")
self.assertEqual(testentity.my_port_in1_connect.target, testentity.sub1.port_in, "The connection's target is the subentity's input port")
# check port pull up
self.assertTrue(isinstance(testentity.my_port_in2, crest.Input), "The entity pulled up port")
self.assertEqual(testentity.my_port_in2.value, testentity.sub1.port_in.value, "The pulled up port has the same value")
self.assertEqual(testentity.my_port_in2.resource, testentity.sub1.port_in.resource, "The pulled up port has the same resource")
# check influence
self.assertTrue(isinstance(testentity.my_port_in2_connect, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_port_in2_connect.source, testentity.my_port_in2, "The connection's source is the pulled up port")
self.assertEqual(testentity.my_port_in2_connect.target, testentity.sub2.port_in, "The connection's target is the subentity's input port")
class ConvenienceAPI_RelayTest(unittest.TestCase):
"""
These tests checks the api's relay function.
"""
def setUp(self):
"""Create an entity with subentities from which we can pullup and relay"""
res = crest.Resource("test", crest.REAL)
class TestSubEntity(crest.Entity):
state = current = crest.State()
port_in = crest.Input(res, 111)
port_in2 = crest.Input(res, 222)
port_out = crest.Output(res, 11111)
port_out2 = crest.Output(res, 22222)
class TestEntity(crest.Entity):
state = current = crest.State()
local = crest.Local(res, 9999)
local2 = crest.Local(res, 8888)
sub1 = TestSubEntity()
sub2 = TestSubEntity()
self.testclass = TestEntity
def test_single_relay(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( (self.sub1.port_out, self.sub2.port_in) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.sub1_port_out_TO_sub2_port_in, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.sub1_port_out_TO_sub2_port_in.source, testentity.sub1.port_out, "The connection's correctly set.")
self.assertEqual(testentity.sub1_port_out_TO_sub2_port_in.target, testentity.sub2.port_in, "The connection's target is correctly set.")
def test_single_named_relay(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( my_relay=(self.sub1.port_out, self.sub2.port_in) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.my_relay, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_relay.source, testentity.sub1.port_out, "The connection's source is correctly set.")
self.assertEqual(testentity.my_relay.target, testentity.sub2.port_in, "The connection's target is correctly set.")
def test_multiple_relay(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( (self.sub1.port_out, self.sub2.port_in),
(self.sub1.port_out2, self.sub2.port_in2) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.sub1_port_out_TO_sub2_port_in, crest.Influence), "The entity created an influence for the relayed port")
self.assertEqual(testentity.sub1_port_out_TO_sub2_port_in.source, testentity.sub1.port_out, "The connection's source is correctly set.")
self.assertEqual(testentity.sub1_port_out_TO_sub2_port_in.target, testentity.sub2.port_in, "The connection's target is correctly set.")
# check influence
self.assertTrue(isinstance(testentity.sub1_port_out2_TO_sub2_port_in2, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.sub1_port_out2_TO_sub2_port_in2.source, testentity.sub1.port_out2, "The connection's source is correctly set.")
self.assertEqual(testentity.sub1_port_out2_TO_sub2_port_in2.target, testentity.sub2.port_in2, "The connection's target correctly set.")
def test_multiple_named_relay(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( my_relay=(self.sub1.port_out, self.sub2.port_in),
my_relay2=(self.sub1.port_out2, self.sub2.port_in2) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.my_relay, crest.Influence), "The entity created an influence for the relayed port")
self.assertEqual(testentity.my_relay.source, testentity.sub1.port_out, "The connection's source is correctly set.")
self.assertEqual(testentity.my_relay.target, testentity.sub2.port_in, "The connection's target is correctly set.")
# check influence
self.assertTrue(isinstance(testentity.my_relay2, crest.Influence), "The entity created an influence for the pulled up port")
self.assertEqual(testentity.my_relay2.source, testentity.sub1.port_out2, "The connection's source is correctly set.")
self.assertEqual(testentity.my_relay2.target, testentity.sub2.port_in2, "The connection's target correctly set.")
def test_relay_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( (self.sub1.port_out, self.sub2.port_in),
(self.sub1.port_out, self.sub2.port_in))
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Error during relay. Cannot create influence. Name 'sub1_port_out_TO_sub2_port_in' already exists.")
def test_named_relay_name_clash(self):
class SubClass(self.testclass):
def __init__(self):
api.relay(my_relay=(self.sub1.port_out, self.sub2.port_in))
api.relay(my_relay=(self.sub1.port_out2, self.sub2.port_in2))
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Error during relay. Cannot create influence. Name 'my_relay' already exists.")
def test_source_is_not_port(self):
class SubClass(self.testclass):
def __init__(self):
api.relay(my_relay=(self.state, self.sub2.port_in))
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Source object 'state' is not a Port.")
def test_target_is_not_port(self):
class SubClass(self.testclass):
def __init__(self):
api.relay(my_relay=(self.sub1.port_out, self.state))
with self.assertRaises(ValueError) as context:
SubClass()
self.assertEqual(str(context.exception), "Target object 'state' is not a Port.")
def test_both_ports_in_entity(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( my_relay=(self.local, self.local2) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.my_relay, crest.Influence), "The entity created an influence for the relayed port")
self.assertEqual(testentity.my_relay.source, testentity.local, "The connection's source is correctly set.")
self.assertEqual(testentity.my_relay.target, testentity.local2, "The connection's target is correctly set.")
def test_source_port_in_subentity(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( my_relay=(self.sub1.port_out, self.local2) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.my_relay, crest.Influence), "The entity created an influence for the relayed port")
self.assertEqual(testentity.my_relay.source, testentity.sub1.port_out, "The connection's source is correctly set.")
self.assertEqual(testentity.my_relay.target, testentity.local2, "The connection's target is correctly set.")
def test_target_port_in_subentity(self):
class SubClass(self.testclass):
def __init__(self):
api.relay( my_relay=(self.local, self.sub1.port_in) )
testentity = SubClass()
# check influence
self.assertTrue(isinstance(testentity.my_relay, crest.Influence), "The entity created an influence for the relayed port")
self.assertEqual(testentity.my_relay.source, testentity.local, "The connection's source is correctly set.")
self.assertEqual(testentity.my_relay.target, testentity.sub1.port_in, "The connection's target is correctly set.")
def test_source_parent_is_None_throws_error(self):
class SubClass(self.testclass):
def __init__(self):
pass
local = crest.Local(crest.Resource("dummy", crest.REAL), 12345)
testentity = SubClass()
with self.assertRaises(ValueError) as context:
api.relay( my_relay=(local, testentity.sub1.port_in) )
self.assertEqual(str(context.exception), "Either the source or the target port are not inside an entity")
def test_target_parent_is_None_throws_error(self):
class SubClass(self.testclass):
def __init__(self):
pass
local = crest.Local(crest.Resource("dummy", crest.REAL), 12345)
testentity = SubClass()
with self.assertRaises(ValueError) as context:
api.relay( my_relay=(testentity.sub1.port_in, local) )
self.assertEqual(str(context.exception), "Either the source or the target port are not inside an entity")
| 52.009023
| 158
| 0.663477
| 4,295
| 34,586
| 5.140396
| 0.042375
| 0.030438
| 0.074735
| 0.032612
| 0.94601
| 0.937313
| 0.924721
| 0.918561
| 0.909004
| 0.902074
| 0
| 0.012967
| 0.246342
| 34,586
| 665
| 159
| 52.009023
| 0.834037
| 0.030388
| 0
| 0.738359
| 0
| 0.011086
| 0.18704
| 0.000928
| 0
| 0
| 0
| 0
| 0.31929
| 1
| 0.168514
| false
| 0.004435
| 0.008869
| 0
| 0.283814
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fb264320106b8eb6a6612ec115ceb60c233f5571
| 208
|
py
|
Python
|
data/__init__.py
|
XiaotaoChen/resnet.mxnet
|
a44b04d33d77ea4ab3e5b24644ec391214658b8e
|
[
"MIT"
] | null | null | null |
data/__init__.py
|
XiaotaoChen/resnet.mxnet
|
a44b04d33d77ea4ab3e5b24644ec391214658b8e
|
[
"MIT"
] | null | null | null |
data/__init__.py
|
XiaotaoChen/resnet.mxnet
|
a44b04d33d77ea4ab3e5b24644ec391214658b8e
|
[
"MIT"
] | null | null | null |
from .imagenet import imagenet_iterator
from .imagenet import multiple_imagenet_iterator
from .cifar10 import cifar10_iterator
from .cifar10 import cifar100_iterator
# from dali_imagenet import get_dali_iter
| 34.666667
| 48
| 0.875
| 28
| 208
| 6.214286
| 0.357143
| 0.275862
| 0.206897
| 0.287356
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048128
| 0.100962
| 208
| 5
| 49
| 41.6
| 0.882353
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
fb26c62f2146e4a5b537b7425a3468fc93694bef
| 63
|
py
|
Python
|
build/lib/arcus/azureml/version.py
|
Mcalewaert/arcus.azureml
|
ae6d8810dbf708f23c295bd3272cf0a2e655fa09
|
[
"MIT"
] | 2
|
2020-10-30T13:03:32.000Z
|
2021-11-23T08:29:17.000Z
|
build/lib/arcus/azureml/version.py
|
Mcalewaert/arcus.azureml
|
ae6d8810dbf708f23c295bd3272cf0a2e655fa09
|
[
"MIT"
] | 142
|
2020-03-12T12:50:37.000Z
|
2022-03-29T20:32:29.000Z
|
build/lib/arcus/azureml/version.py
|
Mcalewaert/arcus.azureml
|
ae6d8810dbf708f23c295bd3272cf0a2e655fa09
|
[
"MIT"
] | 4
|
2020-03-12T15:40:01.000Z
|
2021-08-05T13:46:31.000Z
|
import arcus
def output() -> str:
return arcus.__version__
| 15.75
| 28
| 0.714286
| 8
| 63
| 5.125
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 63
| 4
| 28
| 15.75
| 0.803922
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
34d9009f618fa3f673811b870a1a8d6ca6bef074
| 25,842
|
py
|
Python
|
automo/images.py
|
aliaafee/automo
|
53ef9398cb9a424dd081a8884cb306d1c691179d
|
[
"Unlicense"
] | 2
|
2019-05-07T06:01:33.000Z
|
2021-05-31T14:31:18.000Z
|
automo/images.py
|
aliaafee/automo
|
53ef9398cb9a424dd081a8884cb306d1c691179d
|
[
"Unlicense"
] | 1
|
2018-02-15T02:10:12.000Z
|
2021-06-04T04:13:50.000Z
|
automo/images.py
|
aliaafee/automo
|
53ef9398cb9a424dd081a8884cb306d1c691179d
|
[
"Unlicense"
] | null | null | null |
"""
Images used in the app, all images encoded in base 64
"""
import cStringIO
import base64
import wx
def bitmap_from_base64(str_base64):
""" Converts a base64 bitmap into a wx.Bitmap """
image = base64.b64decode(str_base64)
stream = cStringIO.StringIO(image)
return wx.BitmapFromImage(wx.ImageFromStream(stream))
icon_16_b64 = "AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAMQEAADEBAAAAAAAAAAAAACqqqq1+vr6//v7+//39/f//v7+//f39//29vb/8/Pz//n5+f/z8/P/+vr6//7+/v/29vb//v7+//7+/v/4+Pj/qqqqtfr6+v/+/v7//v7+//b29v/29vb/+/v7/9/f3//p6en/+/v7//T09P/5+fn/+fn5///////09PT/rKysyqmpqbX6+vr///////7+/v/09PT//v7+/+7u7v/Ozs7/09PT//f39//8/Pz/9vb2////////////7+/v/46OjoaZmZmX5eXl/vDw8P/w8PD/8vLy//j4+P/V1dX/y8vL/8vLy//e3t7/+/v7//Hx8f/09PT/8/Pz/9vb2/mEhIRtY2NjH4qKimeTk5N2mZmZgq6urqmqqqq+jIyM5pqamv+VlZX+jY2Ny7S0tLurq6ufn5+fgZqamn6JiYllWFhYFAAAAAAAAAAAPj4+ADAwMAxOTk41UFBQSGpqasiCgoL/e3t7/lxcXIhSUlI/RkZGJwcHBwMUFBQAAAAAAAAAAAAAAAAASEhIAAAAAAODg4OIq6ur7LCwsO6ysrL6ubm5/7e3t/+wsLD1sbGx7p+fn9tpaWlBd3d3AAAAAAAAAAAAR0dHAFFRUQA/Pz8imJiY0M3Nzf+7u7v/rKys/6ysrP+srKz/ra2t/8HBwf/BwcH/dnZ2gQAAAABISEgAAAAAAEdHRwAAAAACYGBglp6env7MzMz/nZ2d/35+fv+AgID/gICA/39/f/+qqqr/xcXF/3x8fNtISEgmUFBQAAAAAABISEgAGRkZBWdnZ6+kpKT/zc3N/728u/+xr67/rKys/62srP+ysa//wcHA/8bGxv+CgoLtTU1NM1NTUwAAAAAASEhIABgYGAVnZ2evpKSk/9LS0v/I1u3/u9Hz/9fY2v/U2uL/tc/1/9HZ5v/IyMf/goKC7U5OTjNTU1MAAAAAAEhISAAVFRUEZmZmraOjo//a3N7/W53+/yV8///S3u//q8n2/w9v//+Ru/r/0c/O/4CAgOxMTEwyUlJSAAAAAABHR0cA////AFVVVVyZmZnr1tbW/6fH9v+LuPv/19vi/8rX6v9/sfz/wdPv/8fGxf93d3exOjo6EU1NTQAAAAAAAAAAAEhISAAkJCQOm5ubxM3Nzf/W1dT/2djX/8/Pzv/R0dD/2tnY/9TT0v/AwMD/enp6caCgoAAAAAAAAAAAAAAAAABISEgAAAAAA4ODg4arq6vqrq6u662trfK1tbX/sbGx/K2tre2vr6/sn5+f2GlpaUB3d3cAAAAAAAAAAAAAAAAAAAAAAE9PTwBEREQOW1tbNGBgYDdcXFxmbm5u8WhoaM5bW1tFYGBgOVRUVCgqKioDMjIyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgBwAAwAcAAMADAACAAwAAgAMAAIADAACAAwAAwAMAAMAHAADABwAA4AcAAA=="
icon_big_b64 = "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAATEAAAExAE8zNSDAAAAB3RJTUUH4QINAyArohiKgQAADUpJREFUeNrtm2tsW0d2x38z9/LyIT5EUhQpWbQU2ZZsx91NkMR246Zx41iSkxTZRZvkU4IiH4p2UaAvLNCi2dYFikWxKPplWwQptosCLdwCyZdunNpSswGSbCIUDVrkZceRZatWRD2sBymKr3t57/QDRdmyREmkJDst9g8IEHhnzp35z5lzzpw5V3CXcPLkSVwuV4eU8neFEC8JIVqXH1mO41wBXhVC/PjixYvFuzUmAP1uvcjj8YSUUt91u92/1draauh65dVKKVc+nz8yNzf317Ztp4Fzd5MAsV0Bp06dwuVyCaXUZrJ6hBBvdnV17Y/H4whxq3m5XGZkZIR0Ov0m8Dxg1hywEEophW3b6u233942AQ1rwMDAgFRKdQIHlVL7AP8mXfZIKTt9Pt+qyQPouo7P5yOdTn8TeAVYqiVEKWUBU7quX+nr67s0NDSU3w4BDWnA2bNnxfDw8LPA73m93oebm5ubqiq9EaSUdHV10dTUtObZ5OQks7Ozm8pwHIelpSWVzWavOY7zj0qp14aGhqbuGgH9/f1CKXVa1/W/7e3t3f/oo48SCoXWrOq6LxMCl8uFlHLNs3K5TLlc3tIYLMvi0qVLvPfee/lSqfQa8L3BwcFcIwTUvQWUUu1CiD/o6enZ/9xzz2EYRiPv3TZaWlrw+Xy+wcHB3ykWixeAf29Ejqy3gxCiVwjxC8ePH79nk4fKdjpw4ACJRMIlhHi2YTkN9Il4vd6WaDR6zyZfRSAQIBgMopQ6eDcJ0DVN09fbx3cbmqZV7YnnbhLw/wq7EglqmkYgECASieByubBtm0wmQzqdplwuo5Ra00cIgWEYNDc3EwwGEUJgWRZzc3Pkcjls2773BDzzzDPCsiyDDdxnMBikra0Nv391XBQKhUgkEkxPT3Pz5s1VJGiaRjgcpqOjA03TVvWLRCIsLi6SSqXI5/PrkrfrBDz00EMiGo0+aFnW88Av1SKgqamJZDKJx+MBuwxX34eb18Afhd5fwfCG2LNnD47jrAQ9Ukqi0Sjt7e2VyS9OwegwFNLQdhiSDxIMBtF1nWvXrlEqldZ79X39/f3fkVK+cezYsZmzZ8/uHAGnTp0SmqY9LqX8ocfj6fV4PC6/378mmNE0jXg8jsfthvlxOP/n8MmbYBVA6tDxDfj2XyLvO0prayv5fJ58Po/X6yWRSKBpEi4NwU++B9Mj4JTB8MED34Jf+wE+X5COjg5GR0dXvdfv9xMKhdry+fwPLMs6OTw8/JtAeqsEaJs16Onp8Qgh/jQUCp3u7e3V4vE4sViMrq4uXC7XSrtQKERrayuyXISL34f3/w5KWSibYBVh7n/g5ij0nEQPtmBZFktLS8TjcYLBICzOwKvfhtTnlfZlE0o5+OqTCoH7T6AbbtLp9Cp7kMvlMAxDuN1uI5vN3m/b9vujo6MjWyVgUy8ghNCBQ8FgcNWE16iSrqPrOizNwqfnKyt4J67/B6Q+XxUSh0KhyrMvfgqz19f2sS344m1Ip5BSVshaO0aamppwu90IIe7f6uS3REBFvnBv2e+XS5CpcTaxChWCUOi6jpTyltGbv1FbZjELhTRCCGoduoQQ1fNIXTHBjsUBSqmKhTZ8ENu/fiNvM4STQMXFOY6DZVmVZ+1HqOlcAq0QaEUpVcsINowdI8A0zcpk/C3w8PMVIm6H0OBwH+w5guM4mKaJ4zgsLCxUnh94DLqPrxXs8sDDL0Awjm3bZLPZHSVgxwKhpaUl0uk0sVgM8fh3QHfDe69VDKHU4f4BeOpPINBKPpdbmXgmkyEajeLxhuClv4d/+wsY/RBsE3wRePy34fhLKATz8/O3NObrRoBSiunpaTweT8VQPfn7lZWbvwG+MMQPgJCYpsnk5CSmWcl6FQoFJiYmSCaTGG2H4Df+oeItChmIdlVUH1hcXGRqquG8x+4TAJVtMD4+TjweJxKJIJvbobl9haClbJbp6WkWFxdX9ctkMti2TTKZxOv1QuLW4a4aNE1PT285YXLPCAAoFouMj4+TSqUIh8MYhoFt26TTaUqlEo7jrOmjlCKbzXLlypUVDdI0jUKhwOLiYs3zw9eSAKismuM4zMzM1NXPtm1yuRy5XEPZrYbw8+PwbggtlUqkUinS6fS2ZXm9Xjo7Oyu24f8CAUopUqkUly9fXne/1wshBKZpcuTIEXYjC7XjEh3HIZ/P78jkoUJooVC4dwkRVTG/pXomtNMWeyXM3gBVwwvUdVO0FQ0oAx9nMhny+W3dQu0aqik30zQtpdR/19N3Uw0QQpSUUuey2ezjIyMj+10uF36/n2PHju2aYaoHExMTXL58mWKxWLYs6w3gv3aUgIsXLyrgnb6+vlP5fP55IcQzSqlfrnUbLKWkqakJTdN2ZN8KIfD5fDWPwfl8nmw2ewP4Q6XUhaGhobqCiC17gaGhoRvAX/X3938FPEaNs6sQgkQisRLUbBeGYZBMJjfzAOODg4NvNCJ/V+IAr9dLd3f3jmjAqqTJLqARAsq2bduO42y4JFLKXfHbt8O27arlb7isppERLhSLxbmVRMY9xNLSUjVBsuUk6LYJEEKMOI7zyfDwsKqe6e8FbNtmZGSEyclJC/jXRuU0VCEyMDDwlJTybw4fPnzfI488QigUYrMKkVqFEbdDKYVlWRsGPUopisUiIyMjvPvuu/lisfhj4I/uWoEEQLFYHDQM448/++yz746NjX0zHA7rG6XMAfbu3bvmuuxOmKa5cgVWC47jkMvlmJubu2nb9o+UUq+aptmwu2m4SuyJJ57QdF1PCiG+ARwGmms03QM8dejQoUhzc/OGMovFIlevXiWbzX4A/KxGsxLwlRDiPx3HuTo0NLTENtCwG3znnXdsYGz57ye12g0MDPyiUuooEKlD/E8HBwf/bDsT2yp+nhDZaYGnT58WUkoX4Ciltp3F7Ovr0zVNE5qmlc+fP7/jicFtE3D27Fk++OCDkBCiTQgRV0olgf3AvJTyn5bfUa+tkU8//bRh23ZYKfXrjuO0OI5zdWBg4Cul1CQwJaXMXrhwYduENGQEn3zySb+U8qCU8ohSqnd5wh1AeygUaotGo67p6Wkzl8udB7zAiUOHDgXrMIIfAx8DLW63+/Gurq6mVCplLi0tTSulxoEUMAp8BnzhOM64UmrdhIUQwpFS5qSUxQsXLtQmoK+vDylli1LqJPCsEKJHCLFeHZzQNK3JMAy/YRhNHo/He/DgQb2np4d9+/YRj8fRNI233nqLjz76aMWnJ5PJLbvBQqGw8tuJEycYGBigVCoxOzvL9evXGRsbY2xszJqamirYtp0vl8tmuVxeVxuW64pNy7KGgB9JKT8PBALW66+/voaATinlD6PR6Jl9+/bp0Wh03cCleqW9d+9eOjs7sSyLPXv2VKpCbkOpVOLLL79kO9Giz+eju7sbt9u96veZmRkKhQKBQIDZ2Vlu3rzJwsLCugGUbdvMzc3x6aefcvXq1evlcvkV4J8HBwcVLNuAM2fONDmO80oymfzVF198kQceeIBAILDpAJVSTExMkMvl1hDgdruJxWJMTEw0NHlN02hpaVm3GLNcLuPz+YhEIkQiEXp6ejaVd/36dc6dO3ffhx9++H3btn8G3IBlN+g4zhO6rj/98ssvc+LEiS1NHm7V/taK3CKRyLoFDVtBIBAgHA6vqUEul8uYponP56tLXldXFy+88AIdHR2dSqmXq7/LM2fOCODBSCTSevTo0bqPsF6vt+aNrWEYxGIxNguT74Su6yQSiXXPF5ZlYdt23TKFEHR3d5NMJhFCPHby5EkJFQ1wAc3RaFRr5Pzu9XqxbbsmCdVy1noQiUTWLamHigYIIRrKNVRLbIQQTe5lwyKpGELZaNbF5XKhaVrNbaBpGm1tbVteMZ/PRywWq/m8uvpbKc+vRQIg5PI/OxIKu1yuDUtX3G43d34mU4usWCy2xupXUb0k8Xg8O5Zt2hEpHo9nU3cXDoc3jQP8fj/Nzc01iXIch1KptC0N2BUC/H4/lmVtWL5iGAatra01t4KmabS3t2+YWFFKUS6XN02+3HUCNE1bXfFVA8FgkFrh8PIXIBv2dxxnpaj6a0VANQO8WQmLlJLW1tY1K+jz+djKBxiFQgFd19dokWmazMzM1HMhG3Ic53R/f/+3dkSXpJT4fD5mZmYoFosEAoF1BwoVe5FIJJiYmEAptWL47owk4ZbKV8tqM5nMuh9o2ba95UryQCBAPB4/APwL1HkcriYkDcNYdVlRrfh2u93kcjlSqRSapuH3+/F6vXi93lVWOxwOs7i4yOLiIoFAYI3hq16xFwoFcrkcjuPg8XiIxWJbjlJrob+/n+PHj0ullLtuAqp1Py0tLWsCFV3XVz52ME2TUqlEJpNhYWGhyvrKJF0uF9FolEKhsG7ENzU1tXK+iEQiuN1uDMPYEcufSCRIJBK3xl2vgM0qtqSUeDyelWqv+fn5NUGSEAKPx0M0Gl034jNNk5aWlg1d4k5hV3OCQoiVfX47bNtmYWGh5uSklCsWf7ex60nR9QgoFAoUi0XC4XBN4narJOZO/C9xjYSoRjH6ZwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMi0xM1QwMzozMjo0MyswNTowMGfbJmgAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDItMTNUMDM6MzI6NDMrMDU6MDAWhp7UAAAAAElFTkSuQmCC"
icon_robot_b64 = "iVBORw0KGgoAAAANSUhEUgAAAIgAAACNCAYAAABsdzLhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAEtwAABLcBtWiB2QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAABnjSURBVHic7Z15cFzFnce//ea+dIxGI48uy7pGlnEAAwFs1ojE0khGMlQtJkvWUAFyQLHFJutk2YQlZdgKOUjIbhFYygssRdhQjlMbsjbWgU2UBDAYTIKDD0mWdVjSSBpdI2nuea/3D2nGM57rjeaU/D5VqtI89evXM/NV969//etfAwICAgICAgICAgICAqsJkukG8KW1tbXE4/HcRCkt8F0jhHgIIZ9ZLJa/nDx50pPJ9q1Vsl4gu3fvllqt1icIId8DwEQo9hkh5IGOjo6P0tm2K4GsF4jJZHoSwPdlMhl0Oh1EIpH/b5RSLC4uYnZ2FgAuikSizx85cmQ8U21di4gz3YBo7NixIxfAd6VSKTZv3gyJRBK23ODgIMxmcxnLst8C8FhaG7nGidRlZwUSieQaABKtVhtRHABQVFTk+/Xz6WjXlUTKe5CGhgaxVCq9jRDSQAgpoZQq+d7LcVwJAIjF0ZsZ8PdrTCbTr+NonhOAGcD7Lpers7u72xnHvVcEKRWIyWTaAeB5ALXAks2QYvIA7F7JjVKpdLSpqWlvV1fXgSS3aVWTMiPVZDLdB+AVQoiovr4eV111FfLy8oKMTL5IpVJIpdKIf6eUwmazxV0vx3GYm5vD6dOn8dlnn/kE/HhnZ+fTcVe2RkmJQEwm0xYAx2UymfSee+5BTU1NKh6TVAYHB/H666/D4XBQQkhrR0fHkUy3KRtIlZH6AwDSO++8c1WIAwAqKipw1113AQChlD6T6fZkC0kXSFtbmw5Ao16vx+bNm5NdfUqpq6tDaWkpANQ3NjZek+n2ZANJF4jL5focAFF1dTUIyXo/XAjV1dUAAIZhrs1wU7KCpAuEYZgCAFCpVMmuOi2o1Wrfr4WZbEe2kHSBcByX1c43vlBK18T7SBThQxCIStYJRCwWg2ESbxbDMDE9sAKxyfgnyDAMSktLkZ+fH/SFUkrhcDgwMjKChYUFXnXpdDoYDIYQp5rb7YbFYsH4uLDQGy8ZFUheXh42bNgQtscghECpVKK2thYLCwvo7e2NWI9UKoXRaIzobZVKpSgpKYFer0dPTw9cLlfS3sNaJ2lDzM6dO9c3NzfvIYTs4lNeq9WiqqoqVBycN6SsRqPBVVddFbYesViMTZs2hRfHZXVJJBLU19dDLpfHbB8hZOPOnTvXxyy4xkmKQEwm0z+yLHueUvpLAF+OVV4sFqOiouLSBY8DOPwU8Hgl8LAE+Acl8HwbMHgpQEwmk6GysjKkro0bNwaL7ORB4Mc3Aw+LgUcUwA+uAz54DVheKGQYBkajkc/buo9l2Z7m5uZ/5VN4rRL/ytllNDU1fYkQ8pJEImFKSkqg0+mQn5+PyspKrFu3Luw9NTU1kMlkSy8cVuBnDcCJXwH2uaVrnBeY6AXe/2+gsAoo/RwAQKFQYHp6GizLAliyOQoKCi5V/OtvAr/5NjA7siQIygFWM/CXN4GpAeCaOwFC/IJaXFwMadvCwgJsNhtUKhXsdruY47gvVFVVne/v7/9rop/VaiThHoQQso9hGGzatAmlpaUoKipCUVFRREcZwzCBzijg198Chk6Gr5zzAr/8KjB53n+ppKTE/3uQAD/5DXDsPyI39IPXgHf/y/9Sr9eHLaZUKlFUVISysjLU19eDEAJCyBW7upuQQBoaGtQAalUqFRQKBa97cnNzL71YsAAfvh79Bo8T+MN/+l8GiivI7jj689gPf/tZ/698ptMB76u8paXlivSsJiQQmUymAcDEE+OhVAYElA1/ArA8disMXbJFfFNhsVh8aa2HcsDQx7HrmegBnJemzNFiTHz43hvLsuoYRdckGXaU8YwwCxOJxnFcwCsCcGzcz0yGQ26tk/ZPyOFwXHpRdi3A8Oh9yrf4f/V6l6auQQIhBCi/LnY9hVWAPMf/0m63x77nCiftApmbm7v0IqcIuO7u6DeIpcD2h/wvA2cebrf7UrkvPBr74QFlfEITiE7aBcJxXHD86D3PAcXhnWAgDPB3vwAMG/2XzGaz//cg1/mNfw/c8tXID95yF9DwiP/l9PR03G2/EsnIIDwwMHApwl1VADz2HtD0HUCzPPVkxEBtA/BP7wB/8zX/fVarFU7npZ0JFosFHk+AkbtnP3Dfy8GCKzIC9/wC+PoB/3DGsixGRkZS9fbWFBlZi3G5XLh48SLKy8uXLshzgL/9ydKPwwqIZYAk2B3udrtx/vz5kLrOnTuHTZs2LRmchADbHlj6cduXDFe5Jqg8pRQ9PT0pe29rjYyZ8RaLJbgn8aHIDRGHzWbD6dOnw9bjdrtx+vTp4J4EAKTKEHGwLItz584FG8oCUcnoau7MzAzm5uawfv165ObmhmzMdrlcGB0dDTZsw+B2u3Hq1CmsW7cOhYWFIf4Nr9cLi8WCsbGxlLyPtUzG40E4jsPAwACAJb+ETCYDy7LBMxSejI+P+w1XuVwOjuPg9Xov85kIxEPGBRIIx3FJ6/4DjVmBlSO4EgWiIghEICoZH2Iopejr68PIyEjoTCRJiMVi6PV61NfXr2jz+JVMxgUyMjISNd40GXg8HgwNDUEikaCuri6lz1prZHyImZmZSduzBPd6/GRcIOmcggrT3fhJSCAsy9qBtf3B+96bSCQKDWC9AkhIIEePHrUSQi4sLi6uSb+D3W73xYxcbG9vt2S6PZkgYSOVUvospfQXp0+fhsFg8Eerr9b1DqfTienpaTidTpjNZlBKcSUnlEnYBuns7HwBwI/dbrd3aGgIvb296O3t5W18pjOHCJ8Qw9nZWfT29mJ4eBgej4cSQp7bunXr82loXlaSDCOVdnZ2/gvDMFcTQh4B8Lt4bs7Pz09CE1LyrP8lhFzT0dHx6L59+9aukRWDpPlB2tvbzwA409TUNE0IuYPvfevXr4fNZsPo6GjKjF1CCAoLC1FbW8v7HkrpR52dnadS0qBVRMYdZQBQX1+P+vr6TDdDIAwZ94MIZDepyFHmAFZv1Liv3QzDCHsikAKBsCw7DACTk5PJrjot+AKOKKVDGW5KVpB0G2Tbtm2njh8/Pt7T07Nufn4eOTk5sW/KEux2O86ePQsAbpZluzPZlpaWFhnHcXWU0pTbiSKRiHM4HH3d3d0h3uJUpeJ+DMCPampqcO+9966KJXaO4/DGG2/gzJkzoJS+0NXV9Ujsu1KDyWTSAvgAQDrTVFtEItEtR44cCVpaT4k6GYb5d47jdvX19W19+eWX0draiuLi4lQ8KilMTEzg8OHDuHDhAgD0SSSSTCeNaQVQU1tbG5TuIlVMTEzgzJkzhSzL7gHw/cC/pUQg7e3tri9+8Yu7xGLxwaGhoduef/55aLXauBxVIpGIbyagIPr6+uIKPJqbmwsMA/hUJBLd8dZbb83G/eAkQghRUErR1NSE1tbWlD+vu7vb13OG5OZK2fh27Nix6X379u04fvz4HgAPzczM3DgzM8PbKBaLxcHZg3gyMDCwkiR1fyaEvKrRaF48ePBg/OH0a5iUGkDLLurXALzW0tIi83g8RXyeyTDMHwEk1LcyDFPt8Xii5pdgGIbm5uaOHzx4cFWsLI6OjqK9vR05OTlwuVy49dZbL+1OTBFp86S2t7e7AAzzKWsymRJ2orS3t18A7wQkqwOPx4OioiK0tbVhcnIShw4dwoMPPojJyUlIJBLk5+djcXERVqs1abaL4EldpdhsNv9BjwqFAr/97W/hdDrx5ptvJjXDdFasxQjwp6+vD6+++irGx8dx//33A1jKI7t9+3a8+OKLuOWWW/wJg33ZIC9Hp9NFTOJ3OUIPssqoqanBV77yFezevRvd3d3+6263G4QQv88p2sp4JOGEI2M9SEtLSxXLstcTQrYQQiSEkGfb29tTkrSjqanpKkLIQ5TSWULIxxKJ5OPDhw+PpuJZ6aKqqgonTpzA8PAwcnNzceLECTz00EM4cOAAiouLsXHjxtiV8CAtAmltbS1xu903EEKuB3A9gBs4jtP6osmWw/qampubn1x+zfts3UiYTKbdhBDKcRxDCHkOQKHveR6PByaTyQzgIwAfA/hIKpV+fOjQoalEn5tK8vPzg774xsZGWK1WWCwW7Nq1CzKZDHfccQfMZnPgYdMJEZdATCaTgeO4IkJILN+5nhByPSHkBkrp9R6PxxAYWqhSqVBTU4Pa2lrU1tbi0KFD+PTTTzdRSuM5FDkWByil/pDG1tZWGI1G9PX1obe3FxcuXDC43e5dAHYBS120yWQaBPARIeQUpZSPt80LYJJS+ueurq7Pktj2sOTm5gblmdXpdNDpdFHLJEpMgTQ0NKjlcvk3KaUPANgQT+pISinEYjG2b9+OLVu2oKioCAaDAQUFBUGxqHV1dXjppZeCxk3fMSHxolAoQkINcnJy8I1vfAMSiQSNjY0AlsbomZkZDA8Pw+l04t1338Wf/vSnCo/HU0EpjetwZkIImpqa/koI+efOzs6OuBvNE5ZlMT8/n3A9SqXyUir0GEQVSGNjYw3DMG9RSmvEYjGMRiO0Wm3UCtVqNYxGIwwGAwwGAwoLCzE4OAiWZf0HBl6OTqfDnj17MDExwavR0Qg39lZWVvqnhD4YhvHnlT99+jQefvhh7N27F/Pz87BarbBarRgfH49p0M3MzOCTTz7BmTNnNgM40tzc/HhHR8cPE34jYZicnMS7776bcD01NTW45hp+h3pGFEhTU5OeENIFoKKxsREPPPDAigOMfUn4o2EwGDAzM5P0Ddw5OTlR222z2UAphUqlAsMwyM/P95e/+uqreT1jz549+PDDD/HMM8+QxcXFp5ubmwc7OjreSMobCMBgMGD37hWdPL9ioo0XTwOouPPOO7F3796Eos81Gg28Xm/UL18kEq1oSIkGIQRlZWVRy/gcTolmXb7xxhvxxBNPgBACSulPd+/ezS95fZYT9lO5/fbb8wkh9+n1ejz44IMJP0SlUoEQEpwfNQxarRYajSZqmXgoKiqKeXiQw+HgPR7H4uqrr8a2bdsAoHhhYaElKZVmmLAC8Xg8twKQbN++PWTsXikSiSTs+SyXU15enpTNVFKpFAaDIWY5l8vF+6QKPmzduhUAQCndlrRKM0hYG4QQUgogqV2+QqHgtX9XLpdDr9cnbLCWlpbGHDYopXC73cEnUCRIYaH/1JDwpyklwMjICH7/+98nXE9dXR1uuOEGXmXDCoRSKieEJK33AJYEYrHw2/+cqMGqVqt52Uy+ZP7JHNYCRJn0OMvS0lLce++9ya42Kmlbi9FoNLzTWyZisBJCeMdILCwsQCwWr4qY2UyRNoEolUowDMPLDgFWbrDq9XreNoXD4eB1qNCVTFpXcyUSSVxntJSVlcVlsEokEl6GqQ+n05lUA3UtktbVXIVCEZdAFAoFCgsLeW/CKi0tjWu48Hq9STVQU83Y2Bjee++9hOuprq7Gtddey6ts2gXC95h1H8XFxZidnY1psKrV6pjLAIHY7XZwHBd8AmeWYzAY0NbWlnA98UScpVUgGo0GZrMZbreb99gvEolQUlKCwcHBiGXiMUx92Gw2iESiVWWDEEJ4nRqeTNJqgygUChBCeBuqPgoKCqL+p8djmPqw2+1RxeF2u4Uz7ZCBiDKZTAabzRbXcAAseVjPnj0bcr5MvIapj1gGqsViwcLCQiKJd7eaTKbA+JYcRPaNeAH8qrOz85crfViqSLtAlEolZmdnYbPZkJeXh4KCAl4OOYVCAZ1OF+Jsi8cwdTgcmJ6exvz8PDweT6DXMxWULf/wxbRjx46Pjx49ejZSgbm5uYgHK8VDSUkJKioqeJVNu0DKysqg1WoxPT2N6elpTE5OQiaTIS8vDzqdLuqXXVJSgtnZWX9AEB/D1OPx+A8ucjqdkEgkUKvVKCwsTMkUt7KyEs8995y/fbFQq9XYv38/3n77bcIwTBWAiALx7X1JlHjed1IFQilFb28vysvLozZCpVJBpVIBAObn5zE9PQ2LxYKJiQkoFArk5+eHRJ0BlwzWoaGhqIYpy7KwWCywWq1wuVwQi8XQaDQoKytL+bRWoVCgpia+Tfm+HpQQEnWjl0qlSnuqrqQLxOl0xpWMLicnBzk5OaCUwmq1YmpqCqOjo8jNzQ079Oh0OkxNTUGlUkUUodVqxeTkJHJzc1FcXJzUtZZU4LOrfALhOC6fEJLWFKGRyJqNU4QQ5OXlQSQSYWBgIKpdIpfLow4tvnn++vXrk97OVOATCKX05ebmZjultNgX3ZZpskYgPmI5xKampjA/P4916yKvpovFYlBKwbLsqliIk0gkvt5wHbDk4TUYDCHTcLfbnZQTK9RqNe9eNesEEu1LZVkW4+Pj0Gq1UR1Gvh7E4/GsCoG0trbipptu8r9mWRZdXV0h5ZI1iyktLeU9fc86gXi93oiBPqOjoyCExMxW5BueVkumxct9OzMzM2Gj6fV6PXbs2JGuZgHIwr25LMv6h4dA7HY7ZmdnYTAYYkaK+SLXUnXEWarJJg9u1gnEl1Wop6cnKMh5fHwcCoUipt9jZmYG58+fh1KpzPrZSyQSjbBPJtnTkmUUCgXq6uogl8vR39/vX+rnOC7mwtrY2BguXryI3Nxc1NTUJDVPRjrJphXmrPwEGYZBZWUlxsfHYTab/ZubIuH1ejEwMACn0+n31CaKWCxOakxuNNxud9D5OlKpFBKJBLOzsxgdDU1CQAiBWCwGwzDweDxwuVxgWXbFNpfZbI74t6wUiI9169ZBpVJhaGgILMuG3ZRss9kwODgIhmFQXV2dNPd5UVERPvjgA1RVVSWlvmi8+eabeOedd4KuFRYWwuPx4P333495P8uyOHXqVMKnfjEME2IZZ90QczkajQZGozHsf/PExAT6+/uhUChgNBqTvrbS0dGRllM5A3rHXgAnAUxYLBZ/WvBocByH8+fPJ+NIOJYQErLxPKt7EB8SiSTI/qCUYnBwEAsLC9Dr9VGdZuHgOM4/S/J11+FwOp14/fXX8eijj6688TzwCYRhmK+3t7f/YefOnZtZln1/YGBA7Rs2w/lznE4n+vv7fTv+z1FKf77SNohEoo/a29v/fPn1VSGQQJxOJwYHB+H1erFhw4aQmUpPT09IntRo9otYLMamTZsi/r2jowO7du3ivTy+Enzt45YXsY4cOfLX5ubmbZTS/zObzeunpqag1WqhUqkgFovhdrsxPz+P2dlZ370fikSiLx05ciTpBxCsKoE4HA709fVBKpVGHHYopdBoNMjNzQXDMCH/eQzD+KeRvjCAaHAch1deeQVPPfVUQm1nWdZviLrdbr+InU6nP8IucDW3o6PjVEtLyw0cx33b4/F8fWJiIi9MtSOEkBcsFstPT548mRKnz6oSiNvtRn5+fsz4U5lMxmsmw3cafOLECTz55JP+8r4v1Ov1+sd+l8vld8zZ7Xb/EBZHeKXL4/H0BV5YPor1sYaGhn+TSCRbGYapAWCglI4SQs7l5OT88eDBg/wz0q2AVSUQjUaT8szCEXAeP348nmjhRQC+/+g5QgillLIAfOmB3AB8XkA7IWSB47hXjh07FnZD8vIxHV3LP2llVQkkUx5GhmFqWJYtApaGAZZl55aveyQSySIA2Gw2R3d395o7XXpVCSRTOByOqe7u7pSk6Mx2st4PIpBZBIEIREUQiEBUBIEIRCVSCioKLEWHm81mqNXqsEvtNpstyGtJKYVMJsuqeAaBxIiUgqqXEIL9+/dj//79uPvuu8PmDD1w4ABOnQo+3v62227DY489lprW8iSebRcC0Qn7r97V1XWYELIXwDk+lRBCPqaUfpDUlq0QpVLpjyqLtsI5NTWFqampVRHUnEkijQW0o6PjWQCv8qmE47i9AL6WrEYlQnl5Oaqrq8GyLHp7ezE8PBzUo9jtdvT29mJsbAxqtTruXXBXGmvSUaZUKmE0GjE1NYXx8XGcOXMGhYWFsNvtWFhYgEKhQG1tbdpzbaxG1qRAfOh0Omi1WoyNjWFiYgISiQTl5eXIywu3MCoQjogC2bFjRzmWz1JhWRZWqxULCwvwer2Qy+UoKCgI7LpbCSH/k4b2xo3vWBG9Xr+qsgllC2EFsnzSQzeADfn5+TCbzRgbGwsqs5y0HmKxGF6v9zuEkOuiBeZkGkEcKyPESG1oaBAD+B2ADcXFxTAajWEjsiilyMnJwebNmyGXy0Ep/UIa2iuQZkIEIpfLdxNCbtJqtbwS68vlchiNxqxIVSCQfEIEQin9NiEE69ev5/2lK5XKpB2iJ5BdBAmkra1NB2CLRqOJewqY4nxfAhkiSCAej6cGiL71L5Ih6js0SGBtcfksxgAgrPvZbrejr68PTqcTer0eFRUVQYIIPPVZYO1wuQ0yA4RPm9DX1+dLX20dHx8PSUeZyN5QgewlSCBOp/MvALjLz2Z1Op2+nBUnAWwDgNnZ2aAy8eZgF1gdBAmku7t7DsAxu90Oq9Xqvx5wCFA/wzDnL7sGIPoOcYHVS7jV3J8AwIULF/xDTYCtEdZCnZiYiLlDTWB1EiKQzs7OowCedzqdOHv2bMwjxCYnJzEwMJCq9glkmLDxIDfffPOjAA7YbDZ8+umngSdQcpOTkxywtO2wp6cH/f39oJSyhJAV7ywXyF7CCmTfvn3c1NTUvQCe9nq97oAZy3vLm4RPOJ1OX+6MIQDNHMe9kpYWC6SViNHFJ0+e9HR2dj7OsmwNIeR7hJAvd3Z2vgAAUqn0dkrpdwkh9zMMY1welgTWIDEDho4ePToM4IeB1w4dOjQF4EepapRA9iDsTxCIiiAQgagIAhGIiiAQgagIAhGIyqrZ9qBUKoU9vxkgaRE+bW1tOrfbPQYgPfmr08dkZ2fnOkRYh1rrJK0HOXTo0FRzc/MDyzGtq/OYhcuglE4BeBxXqDgA4P8B/gSvjA1VatkAAAAASUVORK5CYII="
patient_16_b64 = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABoAAAAaAB+svaIAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAJASURBVDiNfZLBaxNBFMa/2Z1lk2yb0GgJXQLbLi2aSC20SA/VUw9S8A8QvYfizb/AS/8PQfTai1cPetPaa3OzYAuFymZldyaZnZ2djKcs6VodeJfhfb/H+75H8I/ned6m53lPi6JoxHH8AcCP2/rILX+1fr//bnd3d7/T6bSjKMLp6emv8/Pz4zRNXwEw8812Vb21tfX26Ojo+fr6esMYA6UUXNf1tNabnPM0z/Nv8/1WRb+4vb392Pd9QimFZVmwLAuEEDSbTbfRaLysDqwC/Ha73b66ukKSJBBCQEoJpRSUUnAc5251bVoB/Dw7O/u9trbWnEwmiOMYaZqCcw4AKIqCVT2oArLhcPi11+sFxhikaYo4jpEkCaSUejwef66u8JeJSZJ8uri4eGKM8YUQVhRFGI1G7PLy8iNj7BDA9H8AOwzDN2EYPjTG3ImiyFZKYWFhYeo4DjXG3BdCfAGgZoJ5Q0iv1zseDAbPWq0WHY/H4JyDMQbGGDjniKIIJycn36+vrw8AjIC5FIIgeD0YDA6CIKC2bYMQcqMAwHVd7OzsPFpeXn4/05WAbrf7YmVlxc2yDEVRQGsNrTWm02lZxhjYto3V1dW9er2+VwJc1723sbERcs7BOYcQAnmel/nPAwGg0+ksep53WMbYarX2fd9fYoxhdr5ZliHLMuR5XsJmAEIIarVatwRQSh9QSjEDFEWBPM9LiJQSUsobcVFKl0oAgNpkMgEhBMYYaK2hlIKUEkIIZFlWTi/NsywHAP4Aiw46nKC9Vf8AAAAASUVORK5CYII="
toolbar_add_b64 = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAE3wAABN8B/OvtQQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHvSURBVGiB7Zgxb9pAFMffwXHFWIIKfwQWLOGBpWo6RKTN1koZKvZmY27WjJmjdmPpF7AyJFXXpKJSq6gDg0GCha9gFSTL5HzmOkVKHLA4dIZKfb/xnf3+7y/73TsdAIIgCIIgyMaQLJJalvW5WCy+I4Q8AwCQUt6FYXjl+/5H3VraDVBKD1ut1kW73a48jLuu+6fX670XQtzo1MvpTAYAYJrmi0ajUUnGHcd5bprmS9162g1IKVfmTFvbFO0Jtw0a2DVoYNdQ5RcoPWSM7QFAftl6FEX7hDwdL4QQiKLodalUWqUZc85/CSGuVepRGmSWZX1qNpsflu3zD6nVasAYexTjnMNkMknNPxwOp/1+/4vv+yfr1qT0BQzDeJucsOvCGAPbtlOfsW27MhqNjgBgbQNKPZDL5Zb+NjrJ5/NqNWVVyLZQMrBYLOKsCrknjmMlDaUemM/n31zXPXYcJ5Mm9jxvGobhV5WalI/TlNI3jLFXsGIblVLudzqdg3q9/ig+Ho+h2+1+J4T8WJE65pz/VD1uK88BIcR12l5dLpdPpZQHybiUEgqFws1sNjtT1Uzj/2rifxE0sGvQQBJCyGKTtU3RbiAIgt+DwWCajHueNw2C4Fa3XiYXW9Vq9dwwjKPExdalyjEZQRAEQRBkC/wF7eqlh2Wm5EwAAAAASUVORK5CYII="
toolbar_add_24_b64 = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAF7gAABe4BUiVfeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAEYSURBVEiJ7ZLBSsQwEIYnqethoDF4aGlfZd9AVthn8Oaph0IfovTSq/gQi+AbLH2UllbQCiHQbXE8SKSWKlHWg9LvNDPJ/DOTCcDCggERN0KIQkq5R8SNbR6zvei6bh3HsQcAkGXZg1LKs8k7sS0AAKsgCN66Ysw6j3+jwI/49QKzoyLipeM4t0R0amKe57GRzYnoyficcz0Mw7XW+m6qNbtkKeU+iqJ1GIZWXZZlCXmeF23brqdnnz2R9e8aQdZCiLjlnN8AwMrEfN9nSZKcAQCkafpc1/VY8ND3/VXXdfdTrdkdaK13ALD70Aljj8ZumuZFKXX+xTTv/NNvOgcRDVVVGfdw9E4QcSuEKIQQBSJeHL3Awt/lFSmVTtspb/PdAAAAAElFTkSuQmCC"
toolbar_filter_24_b64 = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAF7gAABe4BUiVfeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFQSURBVEiJ7ZAxS8NAHMVfotBCSqlzZgehQ4cO0lkQ0bmfQTs7+AFcIw7Swa2C3bN0L1I/QCgZhMMUUVNSNc3lDDW9xEHtope2SkClb7q793//3+OAhf69JNF7Pp8/AbA+dYEkOcPhcA/A9TyANVVVL2u1WmEawDCMuNVqnVJKd7/ylwW5K9d1LcuyiuVyWTQDzjna7bYXBMG5aEYWZRljG81ms9/r9YTtdV1/9n3/bDweX8wLAIAHxth2vV5/opR+Mgkh6HQ6t77v7yfswFKSCaAfRRHpdrublUolK8tvfUajETRNe/Q8bwvA/U8A4JybYRiuOI5TLJVKWQBoNBrUtu3DMAz1afmkL5ooCIIDwzDij7tpmpwxdjRLdiYAgFiSpAng/RwnzM8N+LZ+FeCOEJJaEQBYVRTlplqtviiKMkgLUsjlcseZTGYnLcBCf1Cvn0+KwCHy/8AAAAAASUVORK5CYII="
toolbar_print_b64 = "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAADPwAAAz8BdDktJAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGmSURBVFiF7ZY9a8JQFIZfL+Zeg7EmCK2IUGKGDmJdC10M7VLo2q0/p7+kS4f+hQpuXYoOgltF/CpFKDGC9SvaoRUkRL3GWyzFZ8w5vOfh3nASYM+eHRNY15DP5+8opSd+wieTydA0zdtVPcF1IZTSc8Mwcn4EGo3G67qetQJzut0uarWaZy2TyYAQwm/mRyAajSKbzfoasgp/2gIRcgVukskkYrGYWIHfugJuAdu20Wq1uHrj8Tg0TRMroCgKDMPgCw1yx/ILEEJAKeUOFi6wi5fwFMBhoVDQ2u02V9icSqUCAGg2mzKASwA9ACUAI3ev57cgkUg8pNPp60gkomw0eQnD4XBcLpdf6vX6BYDPxZrXCRzpum7qui5k+A9SOBw+syzrxrbt+8WC1yZUZVmWBQ4HADDGApIkJdzP//Yq7vV6mM1mWw1gjIExtrnAdDpFp9PZajjwvcI3FbAHg8GAEHKQSqW2FpgzGo3gOM47j8BbtVp9VlX1SlEUIatvPB5Pi8ViybKsR3dt2T9hIBQK5SRJOhYh4DjOR7/ffwLQF5G3Z8//4gur7nqiXV2K4gAAAABJRU5ErkJggg=="
toolbar_print_all_b64 = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAE3wAABN8B/OvtQQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAOLSURBVGiB7Zg/SCNpGMafmUQykz9k9gyIxkAuHKismkILl4UgaLq1ORGVFEGLS6G4rthYHXoLwW6xsxUELRY7kYUs2ARFLRQsFcMYlUMz0YyOt5vMbLWy614ymfk+FSG/auD73ud9nsw37yQBKjwtDCUdDkAdJa37qACOii1aaXTgef6vQCDw3uv13tLQ+5GtrS1OkqSXAETa2nc4HI6JhYUF7SEIh8NnAPzFepPcAbcgCG+tVqtFVdVXa2trODk5AQBkMhkcHR3BZrOhsbERFovFsHh/fz/8fr/uPpIAfzQ3N0+OjY257i8EAgG0t7ebFl5dXUUymXzwAPD7/f/19fX9EoCUdDpd9l7DAerr6+ddLtcblmUt+/v7v4XDYQBAoVDA1dUVGIYBx3HgOM6oNCRJwvb2tqEawwF4nvcmEom62tpao6W69PT0GK5hSZum02ns7Ozg7OyMVMoUxAHm5uawu7uLyclJbG5uQlEUFAoFqKqKm5sbGh5LQuVFFgqFIIoirq+vkUqlsLS0BLvdjq6uLrS1tdFoURQqAVZWVrC3t4eRkRF4PB5omobz8/M781NTU8hkMr/URSIRhEIhot5UAgwPD2NgYACzs7MYHx9HLpcDy7IQRRE+nw/xeJxGm/+FOEAkEoHL5UJ1dTV6e3shSRJmZmbAMAwODw/h8/lo+CwKcYDW1ta7646Ojp/WWlpaSOV1IZ5CTw3xHZifn0cikTBVOz09jaamJqL+xAFisRhisRipjGme/RF69gGIj9Dt7S0URTFV63a7wbJknyFxgOXlZSSTSVO1ExMTaGhoIOpPHCAajSIajZLKmEY3AM/zr51O5we73e5iGEbL5/P1g4ODsFqpfAv5iePjY3R3d0OSJKiqitPTU92aki6qqqqCXq/34+joaA3P89SMloOmaVhfX4coiiV/spZ8ggRB+HtoaOjRzQMAwzDo7OyELMtVAHLF9umNgN89Hg9dZwYRBOFfAIVi63oBaP31aBqGYUr6ePYvsmcfoOxZmM1mcXl5+ZBeAAAcx6Gmpqbs/WUHSKVSODg4MGXKCG63m2oA7ftFMBhEMBg068s0qqqWHCR6z0A6m81StGOcXC73FUBREyUDyLIcX1xcPM/n89SNlcPGxsYXWZY/44eTcB/dOe90Ov90OBz/2Gy2F3jEqaWqak5RlE8XFxfvAHx5rL4VKlSoUKFCBSN8A5IDW+SOP8Q/AAAAAElFTkSuQmCC"
toolbar_print_census_b64 = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAE3wAABN8B/OvtQQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAJmSURBVGiB7Zexj9JQHMe/9SB3pSXUQEJCkEZuugH6Bzgx4ax/we0sxoHRweEGEuLC4OBI/AcuMTIYRhJWboAIoYh04QqkNcBBWycTNaHw+p4Yz/eZmvS918+37/1e+wAOh8Ph/M8IpB3S6fQ7WZafhkIhh7XMZDLxTNNUWY/7C+fn5x9Go5H3J8jlcl9IfR7QBppOp7RDUEEVQNd11Go1Vi6BoAqgqipSqRQrl0CEaDobhgFd1zEYDJDNZlGtVtHtdg/qe3JygkqlAkmSaBTIuVdF7DgOTNOkGYIaqiXU6/XQ6XSQSCRQKBRYORFBNQMXFxewLAv5fJ6VDzFUM3B9fQ3TNGHbNuLxOFERA0C5XEY2m6VRIOfeFfFisaAZghqqJTQej9FutxGNRlEsFlk5EUH9JTYMA7FYjJUPMVQzcHNzg3g8js1mAwC8iIMU8d4DjSiKT2RZfhOJRKKCIHgAHmUyGSkcDgd6AX4Mh8Ot4zifAWC1Wjnr9fr9bDa7AuDu6uMbIBwOa6qqfiyVSklRFBnr+uN5HhqNxrdms/nWNM2Xu9r5FrGiKK8uLy+PLg8AgiCgWCxKkUjkuV+7fbvQ40QiwVCLHEVRQgCUXff3BSA+9LNGEARfD+oz8d/mnw9w8IdsPp8f5b/n7OwMyWTy4PYHB9B1Hf1+P5AUCbFYjGkA78eFpmnQNC2oV2Bc1/XdSPbVwNf5fM5QhxzLsjYAdkr4BrBt+6per0+32y1zsUNotVp3tm1/wk8r4Xf27vOyLD+TJOn16enpQxxx13Jd11oul43b29sXAO6O9VwOh8PhcDgkfAeZHh+mbwhGIQAAAABJRU5ErkJggg=="
toolbar_print_list_b64 = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAE3wAABN8B/OvtQQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAMMSURBVGiB7ZhBT9pgGMf/JRAFSoDQhMQ4CXjRg/ZKsoPxxOJx+wJ61sQQDh532MGbWUI8zGSJFzM/gMkyDoueJDGc1FgViXVOLlAwFFCBPjstGctoKW/Hsq2/E0mftr8/fZ/37VvAxsbGxuZ/hjN7wvj4+Hue5184nc6O1TJ3d3ekKErE6ut2MTk5+fHm5oZ+BzMzM1/M+jhYA5VKJcOaRqOBXC6H4+NjaJrGessumALIsozNzU3DOkmSsL29jWw2i1QqBU3T0Gw2AQD1ep1FgS1AJBLB2NhYX7WCIGBqagrtdhsAkEwmcXBwgHQ6zaIAJ8vJxWIRsiyjUCggFothY2MD5+fnXTWiKCIej0OSJFQqFczNzcHhcGB1dRULCwvI5/NMAUwzSBPncjlKp9NERLS4uEiNRoOWl5dpd3eXtra2mJqYKUC73aZyuWwYQFEUury8JCKiQqFAkiTR2dkZEREdHh4yBWAaQhcXFzg5OYEgCJifn+9ZFwwGEQwGAQDRaLTrWDweZ1Fga+Lp6WnUajXMzs4ySbDA9AT29vagKApUVUUoFPplE+uxtraGWCzGomCef2ol7nQ6uL+/Z7kEM0xD6Pb2FkdHR/D5fEgkElY5mYJ5JS4Wi/D7/Vb5mIbpCZyeniIUCqHVagGA3cSDNLHhhsbtdj/nef6tx+PxcRxHAJ5NTEx4XS7XQH+AHtfX1+1Op5MHgIeHh87j4+OHSqWyDqDnO7huAJfLJUYikU8rKytht9ttsa4+RIRMJlPf399/pyhKqledbhMHAoHXS0tLQ5cHAI7jkEgkvB6P55VendEsFBUEwUIt8wQCASeAQK/jRgFMb/qthuM4XQ/mPfGf5q8P0PdCVq1Wh/LeMzo6inA43Hd93wFkWcbV1dVAUmbw+/2WBqDvP0RRhCiKg3oNjKZpuhOJUQ98rVarFuqYp1artQD0lNANoKrq+s7OTun7t5xhk81mn1RV/YwfRsLPGM7zPM+/9Hq9b0ZGRoIY4qylaVqt2WxmyuVyEsDTsO5rY2NjY2NjY4ZvrU6ZYqaTMBkAAAAASUVORK5CYII="
toolbar_print_one_b64 = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAE3wAABN8B/OvtQQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAALDSURBVGiB7Ze/TxphGMe/L2KU4wjXhIQFJE1jjIPewELShMXBpVO7mDjpKgO1Lk6N6UDcGjf+AFOdWFxKQuPkj8EBnEkgBMJwIuQOD9S7t1NNteHg7n3V2t5nepP3fd7n+733nufuBVxcXFxc/meI3YBIJJINBALvxsbGDN5ims3mjaIob3jve4/p6emDRqNBH4N4PF6xq8fDaqher+Ps7AzNZpN1K0cwG9jZ2UGxWMTGxgZOT0+h6zoMw4Bpmri6uuKh0RIvj02SySRqtRq63S6q1Sr29vYgCAIWFhYQj8d5pBgIFwO5XA6lUglra2sIhUKglEJRlDvxm5ubaLVaf8QtLy8jmUwy5eZiYHV1FUtLS9je3kY6nYaqqvB4PKjVaohGo8hkMjzS8OFhFyoWi7Tf71NKKT0+Pqbn5+dUVVWqaRotlUqP3oWYT2B+fv5unEgk7s3Nzc2xbj8U5i703DCfQDabRaFQcBS7tbWF2dlZVgn2+Oe+xM/NizfAXAO9Xg+6rjuKDQaD8HjYniGzgf39fRwdHTmKXV9fx8zMDKsEe/xtRTz0QuPz+d6KovhVEIQAIYQSQiJTU1Oi18vlL+QelUrlxjCMMgD0ej2j3+9/u7y8zAAwB8VYGhgfH5djsdj3VCoV9vl8nOVaQylFPp/vHh4eZlut1qdB6ywrSJKkzysrK08uHgAIIVhcXPQLgvDBat2wFvA6FApxlGUfSZK8AKRB88MM2L7084YQYqnjxX/IXryBkXthu91Gp9N5TC0AgMnJSYTD4ZHXj2ygWq2iXC47EmWHYDDI1QD9NZBlGbIsO9XlGNM0LRvJsBqot9ttjnLso6rqDYCBIiwNaJqW2d3dVW5vb7kLG4WTk5NrTdN+4Lc34SFD+7woiu/9fv+XiYmJV3jCrmWapqrrev7i4uIjgOunyuvi4uLi4uJih58q0ymC+eXeXgAAAABJRU5ErkJggg=="
toolbar_remove_b64 = "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAE3wAABN8B/OvtQQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAADcSURBVGiB7dQxCsIwFAbgZxICnTr0FIV26KirboJbdz2DF/ECXqCjzrrpmKEUeotCp9KSiKvg0icNiP7fnJf/PcgLEQAAAAAAAMB/mnELlFIrrfWciOTEvbhhGO7W2guniDVAFEWHLMu2SZKEvN7GqaqqNcYcm6bZj61RnIAgCNZ5nntpnogojuOwrusNEY0eQHAChBBTP5s3UkpWBmuAb8QawDn38NXIS4bjnGftQN/356IodmmaetmDsizbrutOnJpPvtGl1npBfr7Rm7X2OvG9AAAAAAAAAD/pCeo0OOVdZ+zEAAAAAElFTkSuQmCC"
toolbar_save_b64 = "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAADPwAAAz8BdDktJAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHzSURBVFiF7ZZNaxNRFIafTHuT1jBpnJCkHRWxgoaqi1bFDwoiuhDc6cKFLhVKwb+gfyC4d6W4cVtBgxsRhYqbgpWiqaJYLK2dpGG0TNN8zB03KhSd5k4YUHDe5T3vOe9zhzPDQKRIf1mxLWo6ieQJPZU6HBc9qaCD3bZs2fX1GdbsV8CCn6/X53yQvQeeUDhSKEhbm7h2NWg+9+7e4ZmXBuvzCh/mblJdvq0OkB26zvFzI4gEfY0Y+w8eCgwwkMtDeztkBvNUVy75AWh/7PbIIBKBQ32laX2+pfBSulME8O8DbDRbXQ2uN9T6/L4Dv1RuCYrFIkfHRonF1B7Y2/kyszUHsiEArBkmU06TqdIL8DwlAJIpyO5RsnYEAEDEwcirhQeUGgCQW3hNGrejry0ln/L7kNv0EAHqDqd2Zjg7frKjVUrJjfsPqAyPhQggXeKil4fPp5lfqqDhcfnMOLns71umaRo9SkN/+AN4mVuq8m73KOWhEWbelIO0hgOwSYovRHcA0n1PzWqEE9ENQM26xcvHj9hwNt1TuC1Y/YKoLGIMqG15J/ktoYe1eIXp0lNOXzz283Dywnksy0IIgWma6inN9a9+pa3+CaG/fxeZHSWSenJYa5ppw1DK+2itOnZcrwHgfKtiL09g27PqxJEi/U/6DgmjkMigHweKAAAAAElFTkSuQmCC"
| 574.266667
| 9,031
| 0.95666
| 903
| 25,842
| 27.335548
| 0.885936
| 0.02212
| 0.000567
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140242
| 0.00445
| 25,842
| 44
| 9,032
| 587.318182
| 0.819217
| 0.003715
| 0
| 0
| 0
| 0.619048
| 0.977926
| 0.977926
| 0
| 1
| 0
| 0
| 0
| 1
| 0.047619
| false
| 0
| 0.142857
| 0
| 0.238095
| 0.238095
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9b56452c71c0f80609d4226ce739a77fdfaa5c94
| 33,328
|
py
|
Python
|
tests/client/test_renderer.py
|
plastr/extrasolar-game
|
1aad5971556d498e3617afe75f27e2f4132d4668
|
[
"MIT",
"Unlicense"
] | null | null | null |
tests/client/test_renderer.py
|
plastr/extrasolar-game
|
1aad5971556d498e3617afe75f27e2f4132d4668
|
[
"MIT",
"Unlicense"
] | null | null | null |
tests/client/test_renderer.py
|
plastr/extrasolar-game
|
1aad5971556d498e3617afe75f27e2f4132d4668
|
[
"MIT",
"Unlicense"
] | null | null | null |
# Copyright (c) 2010-2011 Lazy 8 Studios, LLC.
# All rights reserved.
# Emulate the calls that the renderer would make to the Web Services module.
from front import Constants
from front.lib import db, utils
from front.data import scene
from front.models import chips
from front.tests import base
from front.tests.base import points
class TestRenderer(base.TestCase):
def setUp(self):
super(TestRenderer, self).setUp()
self.create_user('testuser@example.com', 'pw')
def test_next_target_and_processed_target(self):
# Create two unprocessed targets, six hours apart.
gamestate = self.get_gamestate()
rover = self.get_active_rover(gamestate)
create_target_url = str(rover['urls']['target'])
chips_result = self.create_target(
create_target_url, arrival_delta=base.SIX_HOURS, **points.FIRST_MOVE)
first_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
first_target_id = first_target['target_id']
chips_result = self.create_target(
create_target_url, arrival_delta=base.SIX_HOURS*2, **points.SECOND_MOVE)
second_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
second_target_id = second_target['target_id']
second_target_arrival = second_target['arrival_time']
# Both targets should be unprocessed and unlocked.
self._assert_target_id_processed_locked(
rover['rover_id'], first_target_id, processed=0, locked=False)
self._assert_target_id_processed_locked(
rover['rover_id'], second_target_id, processed=0, locked=False)
## Test processing the first target. Get the target info by making a next target request,
# verify it matches the expect target (the older target), then process the target.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, first_target_id)
# Verify the asset list looks correct.
self.assert_assets_equal(result, ["LANDER01", "ROVER_SHADOW"])
# There should be no more work to do, even though there is another unrendered target, because
# the render_at time has not arrived for that target.
result = self.renderer_service_next_target()
self.assertEqual(result, {'status': 'ok'})
# Verify the target starts unprocessed, with no target images and becomes processed and
# has the expected target images.
self._assert_target_id_processed_locked(rover_id, target_id, processed=0, locked=True)
self._assert_target_id_images(rover_id, target_id, images={})
# Emulate the renderer informing the web service that the target was processed.
result = self.renderer_service_processed_target(user_id, rover_id, target_id, first_target_arrival)
self.assertEqual(result, {'status': 'ok'})
# The target should now be processed and have images in the database.
self._assert_target_id_processed_locked(rover_id, target_id, processed=1, locked=False)
self._assert_target_id_images(rover_id, target_id, images=scene.TESTING.to_struct())
gamestate_target = self.get_targets_from_gamestate(self.get_gamestate())[-2]
# The processed flag and images should be hidden in the gamestate.
self.assertEqual(gamestate_target['target_id'], target_id)
self.assertEqual(gamestate_target['processed'], 0)
self.assertEqual(gamestate_target['images'], {})
# There should be custom map tiles available yet.
self.assertEqual(len(self.get_gamestate()['user']['map_tiles']), 0)
# Advance time to the chip arrival time.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the target changes should have been issued into the future.
chip = self.last_chip_for_path(['user', 'rovers', '*', 'targets', '*'])
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['target_id'], target_id)
self.assertEqual(chip['value']['processed'], 1)
# Species ID images are hidden from the client gamestate and should not be in chip.
self.assertEqual(chip['value']['images'], scene.TESTING.to_struct_for_client())
# A chip for the map tile changes should also have been issued into the future.
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertEqual(chip['action'], chips.ADD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], first_target_arrival)
# The map tile should now be available and not expired.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, first_target_arrival, None)
# There should be custom map tiles in the gamestate.
self.assertEqual(len(self.get_gamestate()['user']['map_tiles']), 2)
# The target in the gamestate should be processed now and have images.
gamestate_target = self.get_targets_from_gamestate(self.get_gamestate())[-2]
self.assertEqual(gamestate_target['target_id'], target_id)
self.assertEqual(gamestate_target['processed'], 1)
# Species ID images are hidden from the client gamestate.
self.assertEqual(gamestate_target['images'], scene.TESTING.to_struct_for_client())
# There should still be no more work to do as we advanced to within TARGET_DATA_LEEWAY_SECONDS, but not
# all the way to the render_at time of the second target.
result = self.renderer_service_next_target()
self.assertEqual(result, {'status': 'ok'})
# Now advance to the render_at time of the second target.
self.advance_now(seconds=Constants.TARGET_DATA_LEEWAY_SECONDS)
## Test processing a second target. First lock it, and try to get additional work
# which should return nothing and then move gametime forward 30 minutes and try
# again which should have expired the lock.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, second_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, second_target_id)
# Breaking the lock generates a warning log message.
self.expect_log('front.models.target', 'Breaking lock on Target.*')
# The last unprocessed target is locked so should be no more work.
result = self.renderer_service_next_target()
self.assertEqual(result, {'status': 'ok'})
# Advance time past the lock.
self.advance_now(minutes=30)
result = self.renderer_service_next_target()
# The lock should have expired so there should be the same work item again.
self.assertTrue(len(result) > 0)
(user_id, rover_id, target_id, second_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, second_target_id)
self._assert_target_id_processed_locked(rover_id, target_id, processed=0, locked=True)
self._assert_target_id_images(rover_id, target_id, images={})
result = self.renderer_service_processed_target(user_id, rover_id, target_id, second_target_arrival)
self.assertEqual(result, {'status': 'ok'})
self._assert_target_id_processed_locked(rover_id, target_id, processed=1, locked=False)
self._assert_target_id_images(rover_id, target_id, images=scene.TESTING.to_struct())
# The old map tile should still be available and set to expire.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, first_target_arrival, second_target_arrival)
# Advance time to the chip arrival time. (factoring in the time above to break the lock.)
self.advance_now(seconds=utils.in_seconds(hours=5, minutes=30))
# A chip for the map tile changes should also have been issued into the future.
chip = self.last_chip_for_path(['user', 'map_tiles', '*'], seconds_ago=utils.in_seconds(minutes=31))
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], second_target_arrival)
# The new map tile should still be available and set to not expire.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, second_target_arrival, None)
# There should be custom map tiles in the gamestate.
self.assertEqual(len(self.get_gamestate()['user']['map_tiles']), 2)
# There should be no more targets to process.
result = self.renderer_service_next_target()
self.assertEqual(result, {'status': 'ok'})
# Let some time go by before reprocessing
self.advance_now(minutes=30)
# Create one more target in the future and render it, but do not 'arrive' at its time yet so
# that there are future map tiles in the database.
chips_result = self.create_target(create_target_url, arrival_delta=base.SIX_HOURS, **points.THIRD_MOVE)
third_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
third_target_id = third_target['target_id']
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, third_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, third_target_id)
result = self.renderer_service_processed_target(user_id, rover_id, target_id, third_target_arrival)
self.assertEqual(result, {'status': 'ok'})
# The tiles in the gamestate should still be the ones from the second render.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, second_target_arrival, third_target_arrival)
## Set the second target as unprocessed to emulate the developers requesting that it needs
# to be rerendered. We need to make sure that if we try to process a target twice, the
# target_images and user_map_tiles get properly updated when a duplicate key is detected.
with db.commit_or_rollback(self.get_ctx()) as ctx:
with db.conn(ctx) as ctx:
user = self.get_logged_in_user(ctx=ctx)
reprocess_target = user.rovers.find_target_by_id(second_target_id)
reprocess_target.mark_for_rerender()
# Reprocess the second target. Make sure we got the expected target_id.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, redo_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, second_target_id)
# There should have been no ADD or MOD chip.
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertIsNone(chip)
# Verify the target is unprocessed and locked
self._assert_target_id_processed_locked(rover_id, target_id, processed=0, locked=True)
# Emulate the renderer informing the web service that the target was processed.
result = self.renderer_service_processed_target(user_id, rover_id, target_id, redo_target_arrival)
self.assertEqual(result, {'status': 'ok'})
# The target should now again be processed.
self._assert_target_id_processed_locked(rover_id, target_id, processed=1, locked=False)
# The old map tile should still be available and set to expire.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, second_target_arrival, third_target_arrival)
# Advance time to the third targets tile chip arrival time.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the map tile changes should also have been issued into the future.
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], third_target_arrival)
# The new map tile should still be available and set to not expire.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, third_target_arrival, None)
# There should be custom map tiles in the gamestate.
self.assertEqual(len(self.get_gamestate()['user']['map_tiles']), 2)
# There should be no more targets to process.
result = self.renderer_service_next_target()
self.assertEqual(result, {'status': 'ok'})
## The following two map tile out_of_order tests assert that the code in maptile creation handles targets
# being rendered out of order (not in the order they were created). This should never happen in the new renderer
# scheme where only the users next target is every rendered (filtering on render_at) but using rewind_now these
# two tests emulate the old render queue to make sure the maptile code continues to work should we ever go back
# to that queuing system.
def test_processed_target_out_of_order_first_map_tiles(self):
## Test that if the first targets to touch a tile area are processed out of order (which might happen with
## multiple rendering instances running) that the map tiles end up looking correct.
gamestate = self.get_gamestate()
rover = self.get_active_rover(gamestate)
create_target_url = str(rover['urls']['target'])
# Create two first targets.
chips_result = self.create_target(create_target_url, arrival_delta=base.SIX_HOURS, **points.FIRST_MOVE)
first_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
first_target_id = first_target['target_id']
chips_result = self.create_target(create_target_url, arrival_delta=base.SIX_HOURS*2, **points.SECOND_MOVE)
second_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
second_target_id = second_target['target_id']
# And advance to the render_at time of the last target (as if the renderer was severely backed up) so
# that they can be both processed at the same time, as the renderer used to work before render_at was added.
self.advance_now(seconds=base.SIX_HOURS)
# And process them 'out of order' to test the code in the map tile creation.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, first_target_id)
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, second_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, second_target_id)
# Now return the processed results out of order.
result = self.renderer_service_processed_target(user_id, rover_id, second_target_id, second_target_arrival)
self.assertEqual(result, {'status': 'ok'})
result = self.renderer_service_processed_target(user_id, rover_id, first_target_id, first_target_arrival)
self.assertEqual(result, {'status': 'ok'})
# Now rewind back to the start time of the first target, thus emulating how the renderer used to work,
# before render_at was added.
self.rewind_now(seconds=base.SIX_HOURS)
# There should be no visible map_tiles yet.
self.assertEqual(len(self.get_gamestate()['user']['map_tiles']), 0)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertIsNone(chip)
# Now advance to the leeway time before the first target.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the map tile changes should also have been issued into the future.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, first_target_arrival, second_target_arrival)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertEqual(chip['action'], chips.ADD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], first_target_arrival)
# Consume the leeway seconds.
self.advance_now(seconds=Constants.TARGET_DATA_LEEWAY_SECONDS)
# Now advance to the leeway time before the second target.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the map tile changes should also have been issued into the future.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, second_target_arrival, None)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
# Crucially, this should also be an ADD.
self.assertEqual(chip['action'], chips.ADD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], second_target_arrival)
# Consume the leeway seconds.
self.advance_now(seconds=Constants.TARGET_DATA_LEEWAY_SECONDS)
def test_processed_target_out_of_order_later_map_tiles(self):
## Test that if later targets are processed out of order (which might happen with multiple rendering instances
## running) that the map tiles end up looking correct.
gamestate = self.get_gamestate()
rover = self.get_active_rover(gamestate)
create_target_url = str(rover['urls']['target'])
# Render one target so that there are existing tiles for the test tile location (so that the targets being
# tested next are not the first tiles).
chips_result = self.create_target(create_target_url, arrival_delta=base.SIX_HOURS, **points.FIRST_MOVE)
first_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
first_target_id = first_target['target_id']
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, first_target_id)
result = self.renderer_service_processed_target(user_id, rover_id, target_id, first_target_arrival)
self.assertEqual(result, {'status': 'ok'})
# There should be no visible map_tiles yet.
self.assertEqual(len(self.get_gamestate()['user']['map_tiles']), 0)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertIsNone(chip)
# Advance to the leeway time just before arriving at the first target.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# Just arrived at the first target, so check that tile is active and there is an ADD chip.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, first_target_arrival, None)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertEqual(chip['action'], chips.ADD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], first_target_arrival)
# Consume the leeway seconds.
self.advance_now(seconds=Constants.TARGET_DATA_LEEWAY_SECONDS)
# Now create two targets.
chips_result = self.create_target(create_target_url, arrival_delta=base.SIX_HOURS, **points.SECOND_MOVE)
second_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
second_target_id = second_target['target_id']
chips_result = self.create_target(create_target_url, arrival_delta=base.SIX_HOURS*2, **points.THIRD_MOVE)
third_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
third_target_id = third_target['target_id']
# And advance to the render_at time of the last target (as if the renderer was severely backed up) so
# that they can be both processed at the same time, as the renderer used to work before render_at was added.
self.advance_now(seconds=base.SIX_HOURS)
# And process them 'out of order' to test the code in the map tile creation.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, second_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, second_target_id)
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, third_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, third_target_id)
# Now return the processed results out of order.
result = self.renderer_service_processed_target(user_id, rover_id, third_target_id, third_target_arrival)
self.assertEqual(result, {'status': 'ok'})
result = self.renderer_service_processed_target(user_id, rover_id, second_target_id, second_target_arrival)
self.assertEqual(result, {'status': 'ok'})
# Now rewind back to the start time of the first target, thus emulating how the renderer used to work,
# before render_at was added.
self.rewind_now(seconds=base.SIX_HOURS)
# Now move forward in time to each target's arrival time (minus the leeway) and make sure the tiles
# look correct.
# Now that there are more targets, the first targets tiles should now have an expiry_time.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, first_target_arrival, second_target_arrival)
# Now advance to the leeway time before the second target.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the map tile changes should also have been issued into the future.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, second_target_arrival, third_target_arrival)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], second_target_arrival)
# Consume the leeway seconds.
self.advance_now(seconds=Constants.TARGET_DATA_LEEWAY_SECONDS)
# Now advance to the leeway time before the third target.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the map tile changes should also have been issued into the future.
self._assert_map_tile_arrival_and_expire(base.TILE_KEY, third_target_arrival, None)
chip = self.last_chip_for_path(['user', 'map_tiles', '*'])
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['tile_key'], base.TILE_KEY)
self.assertEqual(chip['value']['arrival_time'], third_target_arrival)
# Consume the leeway seconds.
self.advance_now(seconds=Constants.TARGET_DATA_LEEWAY_SECONDS)
def test_renderer_service_classified(self):
# Create one unprocessed target, arriving in 6 hours.
gamestate = self.get_gamestate()
rover = self.get_active_rover(gamestate)
create_target_url = str(rover['urls']['target'])
chips_result = self.create_target(
create_target_url, arrival_delta=base.SIX_HOURS, **points.FIRST_MOVE)
first_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
first_target_id = first_target['target_id']
# Both targets should be unprocessed and unlocked and unclassified.
self._assert_target_id_processed_locked(
rover['rover_id'], first_target_id, processed=0, classified=0, locked=False)
## Test processing the first target. Get the target info by making a next target request,
# verify it matches the expect target (the older target), then process the target.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, first_target_id)
# Verify the target starts unprocessed, with no target images and becomes processed and
# has the expected target images.
self._assert_target_id_processed_locked(rover_id, target_id, processed=0, classified=0, locked=True)
self._assert_target_id_images(rover_id, target_id, images={})
# Emulate the renderer informing the web service that the target was processed and is classified.
result = self.renderer_service_processed_target(user_id, rover_id, target_id, first_target_arrival, classified=1)
self.assertEqual(result, {'status': 'ok'})
# The target should now be processed and have images in the database.
self._assert_target_id_processed_locked(rover_id, target_id, processed=1, classified=1, locked=False)
self._assert_target_id_images(rover_id, target_id, images=scene.TESTING.to_struct())
gamestate_target = self.get_targets_from_gamestate(self.get_gamestate())[-1]
# The processed and classified flags and images should be hidden in the gamestate.
self.assertEqual(gamestate_target['target_id'], target_id)
self.assertEqual(gamestate_target['processed'], 0)
self.assertEqual(gamestate_target['classified'], 0)
self.assertEqual(gamestate_target['images'], {})
# Advance time to chip arrival time.
self.advance_now(seconds=base.SIX_HOURS - Constants.TARGET_DATA_LEEWAY_SECONDS)
# A chip for the target changes should have been issued into the future.
chip = self.last_chip_for_path(['user', 'rovers', '*', 'targets', '*'])
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['target_id'], target_id)
self.assertEqual(chip['value']['processed'], 1)
self.assertEqual(chip['value']['classified'], 1)
# The target in the gamestate should be processed now and have images.
gamestate_target = self.get_targets_from_gamestate(self.get_gamestate())[-1]
self.assertEqual(gamestate_target['target_id'], target_id)
self.assertEqual(gamestate_target['processed'], 1)
self.assertEqual(chip['value']['classified'], 1)
def test_renderer_service_target_metadata(self):
# The RENDERER_METADATA values represent values which will be merged on top of the CLIENT_METADATA
# emulating the renderer performing a similar change.
CLIENT_METADATA = {'TGT_TEST_1': '', 'TGT_TEST_2': 'test_value', 'TGT_TEST_3': ''}
RENDERER_METADATA_CHANGES = {'TGT_TEST_3': 'value_set', 'TGT_TEST_4': 'new_value', 'TGT_TEST_5': ''}
# Create an unprocessed target.
chips_result = self.create_target(metadata=CLIENT_METADATA, **points.FIRST_MOVE)
first_target = self.last_chip_value_for_path(['user', 'rovers', '*', 'targets', '*'], chips_result)
first_target_id = first_target['target_id']
self.assertEqual(first_target['metadata'], CLIENT_METADATA)
# Verify the next target data looks correct.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertEqual(target_id, first_target_id)
self.assertEqual(metadata, CLIENT_METADATA)
# Emulate the renderer informing the web service that the target was processed and
# also merging the metadata changes it wants to make with the original values supplied.
RENDERER_METADATA = CLIENT_METADATA.copy()
RENDERER_METADATA.update(RENDERER_METADATA_CHANGES)
# But first, emulate the renderer attempting to delete a metadata key, which is not allowed.
DELETED_RENDERER_METADATA = RENDERER_METADATA.copy()
del DELETED_RENDERER_METADATA['TGT_TEST_1']
self.assertRaises(AssertionError, self.renderer_service_processed_target, user_id, rover_id,
target_id, first_target_arrival, metadata=DELETED_RENDERER_METADATA)
# And now render with the proper merged metadata.
result = self.renderer_service_processed_target(user_id, rover_id, target_id, first_target_arrival, metadata=RENDERER_METADATA)
self.assertEqual(result, {'status': 'ok'})
# The target should now be processed and have images in the database.
self._assert_target_id_processed_locked(rover_id, target_id, processed=1, locked=False)
self._assert_target_id_images(rover_id, target_id, images=scene.TESTING.to_struct())
gamestate_target = self.get_targets_from_gamestate(self.get_gamestate())[-1]
# The processed and classified flags and images should be hidden in the gamestate.
self.assertEqual(gamestate_target['target_id'], target_id)
self.assertEqual(gamestate_target['processed'], 0)
self.assertEqual(gamestate_target['images'], {})
# The metadata should now match the data returned by the renderer
self.assertEqual(gamestate_target['metadata'], RENDERER_METADATA)
# A MOD chip should have been sent immediately for the metadata field.
chip = self.last_chip_for_path(['user', 'rovers', '*', 'targets', '*'])
self.assertEqual(chip['action'], chips.MOD)
self.assertEqual(chip['value']['target_id'], target_id)
self.assertEqual(chip['value']['metadata'], RENDERER_METADATA)
def test_renderer_service_infrared(self):
# Starting rover might not have infrared capabilities so force it to be available and unlimited.
self.enable_capabilities_on_active_rover(['CAP_S1_CAMERA_INFRARED'])
# Schedule an infrared photo.
METADATA = {'TGT_FEATURE_INFRARED': ''}
self.create_target(metadata=METADATA, **points.FIRST_MOVE)
# Render the next target.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertTrue('TGT_FEATURE_INFRARED' in metadata)
# Emulate the renderer informing the web service that the target was processed.
result = self.renderer_service_processed_target(user_id, rover_id, target_id, first_target_arrival,
render_scene=scene.TESTING_INFRARED, metadata=METADATA)
self.assertEqual(result, {'status': 'ok'})
# Make sure the returned scene looks correct.
self._assert_target_id_images(rover_id, target_id, images=scene.TESTING_INFRARED.to_struct())
def test_renderer_service_panorama(self):
# Starting rover might not have panorama capabilities so force it to be available and unlimited.
self.enable_capabilities_on_active_rover(['CAP_S1_CAMERA_PANORAMA'])
# Schedule a panorama.
METADATA = {'TGT_FEATURE_PANORAMA': ''}
self.create_target(metadata=METADATA, **points.FIRST_MOVE)
# Render the next target.
result = self.renderer_service_next_target()
(user_id, rover_id, target_id, first_target_arrival, metadata) = self.renderer_decompose_next_target(result)
self.assertTrue('TGT_FEATURE_PANORAMA' in metadata)
# Emulate the renderer informing the web service that the target was processed.
result = self.renderer_service_processed_target(user_id, rover_id, target_id, first_target_arrival,
render_scene=scene.TESTING_PANORAMA, metadata=METADATA)
self.assertEqual(result, {'status': 'ok'})
# Make sure the returned scene looks correct.
self._assert_target_id_images(rover_id, target_id, images=scene.TESTING_PANORAMA.to_struct())
def test_renderer_service_no_auth(self):
self.assertRaises(AssertionError, self.renderer_service_next_target, auth_token="bogus_token")
# Verify the given target_id has the given processed value in the database.
def _assert_target_id_processed_locked(self, rover_id, target_id, processed, locked, classified=0):
user = self.get_logged_in_user()
target = user.rovers[rover_id].targets[target_id]
self.assertEqual(target.processed, processed)
self.assertEqual(target.classified, classified)
self.assertEqual(target.is_locked(), locked)
def _assert_target_id_images(self, rover_id, target_id, images):
user = self.get_logged_in_user()
target = user.rovers[rover_id].targets[target_id]
self.assertEqual(target.images, images)
def _assert_map_tile_arrival_and_expire(self, tile_key, arrival_time, expiry_time):
user = self.get_logged_in_user()
tile = user.map_tiles[tile_key]
self.assertEqual(arrival_time, tile.arrival_time)
if expiry_time is None:
self.assertEqual(tile.expiry_time, None)
else:
expiry_time_date = user.after_epoch_as_datetime(expiry_time)
self.assertEqual(tile.expiry_time, expiry_time_date)
| 62.646617
| 135
| 0.713244
| 4,518
| 33,328
| 4.988048
| 0.08278
| 0.049343
| 0.023074
| 0.029286
| 0.797036
| 0.781106
| 0.757233
| 0.744986
| 0.74006
| 0.732961
| 0
| 0.002759
| 0.195301
| 33,328
| 531
| 136
| 62.764595
| 0.837541
| 0.268543
| 0
| 0.729231
| 0
| 0
| 0.069256
| 0.001816
| 0
| 0
| 0
| 0
| 0.436923
| 1
| 0.036923
| false
| 0
| 0.018462
| 0
| 0.058462
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9ba7247203b167136fc01c5b99b8dfddf7395290
| 23,192
|
py
|
Python
|
services/traction/acapy_client/api/credential_definition_api.py
|
Open-Earth-Foundation/traction
|
908b555a7f408a88541b7692d3730e37a297c919
|
[
"Apache-2.0"
] | 12
|
2022-01-29T20:30:03.000Z
|
2022-03-29T11:46:14.000Z
|
services/traction/acapy_client/api/credential_definition_api.py
|
Open-Earth-Foundation/traction
|
908b555a7f408a88541b7692d3730e37a297c919
|
[
"Apache-2.0"
] | 38
|
2021-11-22T17:52:50.000Z
|
2022-03-31T17:52:00.000Z
|
services/traction/acapy_client/api/credential_definition_api.py
|
Open-Earth-Foundation/traction
|
908b555a7f408a88541b7692d3730e37a297c919
|
[
"Apache-2.0"
] | 9
|
2021-11-22T18:05:48.000Z
|
2022-03-29T11:25:08.000Z
|
"""
Aries Cloud Agent
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v0.7.2
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from acapy_client.api_client import ApiClient, Endpoint as _Endpoint
from acapy_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types,
)
from acapy_client.model.credential_definition_get_result import (
CredentialDefinitionGetResult,
)
from acapy_client.model.credential_definition_send_request import (
CredentialDefinitionSendRequest,
)
from acapy_client.model.credential_definitions_created_result import (
CredentialDefinitionsCreatedResult,
)
from acapy_client.model.txn_or_credential_definition_send_result import (
TxnOrCredentialDefinitionSendResult,
)
class CredentialDefinitionApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
self.credential_definitions_created_get_endpoint = _Endpoint(
settings={
"response_type": (CredentialDefinitionsCreatedResult,),
"auth": ["AuthorizationHeader"],
"endpoint_path": "/credential-definitions/created",
"operation_id": "credential_definitions_created_get",
"http_method": "GET",
"servers": None,
},
params_map={
"all": [
"cred_def_id",
"issuer_did",
"schema_id",
"schema_issuer_did",
"schema_name",
"schema_version",
],
"required": [],
"nullable": [],
"enum": [],
"validation": [
"cred_def_id",
"issuer_did",
"schema_id",
"schema_issuer_did",
"schema_version",
],
},
root_map={
"validations": {
("cred_def_id",): {
"regex": {
"pattern": r"^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$", # noqa: E501
},
},
("issuer_did",): {
"regex": {
"pattern": r"^(did:sov:)?[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}$", # noqa: E501
},
},
("schema_id",): {
"regex": {
"pattern": r"^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+$", # noqa: E501
},
},
("schema_issuer_did",): {
"regex": {
"pattern": r"^(did:sov:)?[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}$", # noqa: E501
},
},
("schema_version",): {
"regex": {
"pattern": r"^[0-9.]+$", # noqa: E501
},
},
},
"allowed_values": {},
"openapi_types": {
"cred_def_id": (str,),
"issuer_did": (str,),
"schema_id": (str,),
"schema_issuer_did": (str,),
"schema_name": (str,),
"schema_version": (str,),
},
"attribute_map": {
"cred_def_id": "cred_def_id",
"issuer_did": "issuer_did",
"schema_id": "schema_id",
"schema_issuer_did": "schema_issuer_did",
"schema_name": "schema_name",
"schema_version": "schema_version",
},
"location_map": {
"cred_def_id": "query",
"issuer_did": "query",
"schema_id": "query",
"schema_issuer_did": "query",
"schema_name": "query",
"schema_version": "query",
},
"collection_format_map": {},
},
headers_map={
"accept": ["application/json"],
"content_type": [],
},
api_client=api_client,
)
self.credential_definitions_cred_def_id_get_endpoint = _Endpoint(
settings={
"response_type": (CredentialDefinitionGetResult,),
"auth": ["AuthorizationHeader"],
"endpoint_path": "/credential-definitions/{cred_def_id}",
"operation_id": "credential_definitions_cred_def_id_get",
"http_method": "GET",
"servers": None,
},
params_map={
"all": [
"cred_def_id",
],
"required": [
"cred_def_id",
],
"nullable": [],
"enum": [],
"validation": [
"cred_def_id",
],
},
root_map={
"validations": {
("cred_def_id",): {
"regex": {
"pattern": r"^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$", # noqa: E501
},
},
},
"allowed_values": {},
"openapi_types": {
"cred_def_id": (str,),
},
"attribute_map": {
"cred_def_id": "cred_def_id",
},
"location_map": {
"cred_def_id": "path",
},
"collection_format_map": {},
},
headers_map={
"accept": ["application/json"],
"content_type": [],
},
api_client=api_client,
)
self.credential_definitions_cred_def_id_write_record_post_endpoint = _Endpoint(
settings={
"response_type": (CredentialDefinitionGetResult,),
"auth": ["AuthorizationHeader"],
"endpoint_path": "/credential-definitions/{cred_def_id}/write_record",
"operation_id": "credential_definitions_cred_def_id_write_record_post",
"http_method": "POST",
"servers": None,
},
params_map={
"all": [
"cred_def_id",
],
"required": [
"cred_def_id",
],
"nullable": [],
"enum": [],
"validation": [
"cred_def_id",
],
},
root_map={
"validations": {
("cred_def_id",): {
"regex": {
"pattern": r"^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$", # noqa: E501
},
},
},
"allowed_values": {},
"openapi_types": {
"cred_def_id": (str,),
},
"attribute_map": {
"cred_def_id": "cred_def_id",
},
"location_map": {
"cred_def_id": "path",
},
"collection_format_map": {},
},
headers_map={
"accept": ["application/json"],
"content_type": [],
},
api_client=api_client,
)
self.credential_definitions_post_endpoint = _Endpoint(
settings={
"response_type": (TxnOrCredentialDefinitionSendResult,),
"auth": ["AuthorizationHeader"],
"endpoint_path": "/credential-definitions",
"operation_id": "credential_definitions_post",
"http_method": "POST",
"servers": None,
},
params_map={
"all": [
"conn_id",
"create_transaction_for_endorser",
"body",
],
"required": [],
"nullable": [],
"enum": [],
"validation": [],
},
root_map={
"validations": {},
"allowed_values": {},
"openapi_types": {
"conn_id": (str,),
"create_transaction_for_endorser": (bool,),
"body": (CredentialDefinitionSendRequest,),
},
"attribute_map": {
"conn_id": "conn_id",
"create_transaction_for_endorser": "create_transaction_for_endorser",
},
"location_map": {
"conn_id": "query",
"create_transaction_for_endorser": "query",
"body": "body",
},
"collection_format_map": {},
},
headers_map={
"accept": ["application/json"],
"content_type": [],
},
api_client=api_client,
)
def credential_definitions_created_get(self, **kwargs):
"""Search for matching credential definitions that agent originated # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.credential_definitions_created_get(async_req=True)
>>> result = thread.get()
Keyword Args:
cred_def_id (str): Credential definition id. [optional]
issuer_did (str): Issuer DID. [optional]
schema_id (str): Schema identifier. [optional]
schema_issuer_did (str): Schema issuer DID. [optional]
schema_name (str): Schema name. [optional]
schema_version (str): Schema version. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
CredentialDefinitionsCreatedResult
If the method is called asynchronously, returns the request
thread.
"""
kwargs["async_req"] = kwargs.get("async_req", False)
kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True)
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
kwargs["_content_type"] = kwargs.get("_content_type")
kwargs["_host_index"] = kwargs.get("_host_index")
return self.credential_definitions_created_get_endpoint.call_with_http_info(
**kwargs
)
def credential_definitions_cred_def_id_get(self, cred_def_id, **kwargs):
"""Gets a credential definition from the ledger # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.credential_definitions_cred_def_id_get(cred_def_id, async_req=True)
>>> result = thread.get()
Args:
cred_def_id (str): Credential definition identifier
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
CredentialDefinitionGetResult
If the method is called asynchronously, returns the request
thread.
"""
kwargs["async_req"] = kwargs.get("async_req", False)
kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True)
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
kwargs["_content_type"] = kwargs.get("_content_type")
kwargs["_host_index"] = kwargs.get("_host_index")
kwargs["cred_def_id"] = cred_def_id
return self.credential_definitions_cred_def_id_get_endpoint.call_with_http_info(
**kwargs
)
def credential_definitions_cred_def_id_write_record_post(
self, cred_def_id, **kwargs
):
"""Writes a credential definition non-secret record to the wallet # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.credential_definitions_cred_def_id_write_record_post(cred_def_id, async_req=True)
>>> result = thread.get()
Args:
cred_def_id (str): Credential definition identifier
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
CredentialDefinitionGetResult
If the method is called asynchronously, returns the request
thread.
"""
kwargs["async_req"] = kwargs.get("async_req", False)
kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True)
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
kwargs["_content_type"] = kwargs.get("_content_type")
kwargs["_host_index"] = kwargs.get("_host_index")
kwargs["cred_def_id"] = cred_def_id
return self.credential_definitions_cred_def_id_write_record_post_endpoint.call_with_http_info(
**kwargs
)
def credential_definitions_post(self, **kwargs):
"""Sends a credential definition to the ledger # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.credential_definitions_post(async_req=True)
>>> result = thread.get()
Keyword Args:
conn_id (str): Connection identifier. [optional]
create_transaction_for_endorser (bool): Create Transaction For Endorser's signature. [optional]
body (CredentialDefinitionSendRequest): [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
TxnOrCredentialDefinitionSendResult
If the method is called asynchronously, returns the request
thread.
"""
kwargs["async_req"] = kwargs.get("async_req", False)
kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True)
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
kwargs["_content_type"] = kwargs.get("_content_type")
kwargs["_host_index"] = kwargs.get("_host_index")
return self.credential_definitions_post_endpoint.call_with_http_info(**kwargs)
| 44.685934
| 238
| 0.549026
| 2,254
| 23,192
| 5.370453
| 0.104703
| 0.026601
| 0.034201
| 0.027757
| 0.834366
| 0.815696
| 0.778934
| 0.763486
| 0.745064
| 0.733664
| 0
| 0.013279
| 0.357063
| 23,192
| 518
| 239
| 44.772201
| 0.798538
| 0.364997
| 0
| 0.550955
| 1
| 0.009554
| 0.312183
| 0.123918
| 0
| 0
| 0
| 0
| 0
| 1
| 0.015924
| false
| 0
| 0.025478
| 0
| 0.057325
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fd5845c59e3d42037db690124a1023b3a940160c
| 2,040
|
py
|
Python
|
Spiral Array.py
|
cacciatora/LintCode
|
8aef1c13346fef95f2a8710efc0447462506d534
|
[
"MIT"
] | null | null | null |
Spiral Array.py
|
cacciatora/LintCode
|
8aef1c13346fef95f2a8710efc0447462506d534
|
[
"MIT"
] | null | null | null |
Spiral Array.py
|
cacciatora/LintCode
|
8aef1c13346fef95f2a8710efc0447462506d534
|
[
"MIT"
] | null | null | null |
import copy
class Solution:
"""
@param n: a Integer
@return: a spiral array
"""
def spiralArray(self, n):
# write your code here
spiral = [[0 for col in range(n)] for row in range(n)]
spiral[0] = range(1,n+1)
if n % 2 :
i, j = (n-1)/2, (n-1)/2
current = n * n
spiral[i][j] = current
print(spiral)
for moves in range(1,n):
if moves % 2 :
for move in range(1,moves+1):
j -= 1
current -= 1
spiral[i][j] = current
for move in range(1,moves+1):
i += 1
current -= 1
spiral[i][j] =current
else:
for move in range(1, moves+1):
j += 1
current -= 1
spiral[i][j] = current
for move in range(1,moves+1):
i -= 1
current -= 1
spiral[i][j] = current
elif not n % 2 :
i, j = n/2 , n/2 - 1
current = n * n
spiral[i][j] = current
for moves in range(1,n):
if moves % 2 :
for move in range(1,moves+1):
j += 1
current -= 1
spiral[i][j] = current
for move in range(1,moves+1):
i -= 1
current -= 1
spiral[i][j] = current
else:
for move in range(1,moves+1):
j -= 1
current -= 1
spiral[i][j] = current
for move in range(1,moves+1):
i += 1
current -= 1
spiral[i][j] = current
return spiral
| 34.576271
| 62
| 0.326471
| 218
| 2,040
| 3.055046
| 0.165138
| 0.126126
| 0.12012
| 0.225225
| 0.726727
| 0.711712
| 0.711712
| 0.63964
| 0.63964
| 0.63964
| 0
| 0.056911
| 0.577941
| 2,040
| 59
| 63
| 34.576271
| 0.716609
| 0.031863
| 0
| 0.792453
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0
| 1
| 0.018868
| false
| 0
| 0.018868
| 0
| 0.075472
| 0.018868
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fd5dadf5cef5995940e07c0fe38a2632db00d850
| 61,737
|
py
|
Python
|
qgis_polygon.py
|
ismailsunni/scripts
|
723678f5db37b1e32756e8877d146bb06efce1a2
|
[
"MIT"
] | 2
|
2015-05-08T19:25:20.000Z
|
2015-05-30T07:09:14.000Z
|
qgis_polygon.py
|
ismailsunni/scripts
|
723678f5db37b1e32756e8877d146bb06efce1a2
|
[
"MIT"
] | null | null | null |
qgis_polygon.py
|
ismailsunni/scripts
|
723678f5db37b1e32756e8877d146bb06efce1a2
|
[
"MIT"
] | 1
|
2015-05-30T08:00:52.000Z
|
2015-05-30T08:00:52.000Z
|
# Declare polygon
poly_1_wkt = 'POLYGON((124.46672000000000935 -9.50772999999998092,124.46742000000006101 -9.50810999999993101,124.46815000000003693 -9.50854999999995698,124.46875999900009901 -9.50891000099994699,124.46939000000008946 -9.5091099999999642,124.47046000000011645 -9.50918999999993275,124.47179000000005544 -9.50945999999993319,124.47310000000004493 -9.50937999999996464,124.4744700000001103 -9.50940999999994574,124.47530000000006112 -9.50961999999992713,124.47591000000011263 -9.50969999999995252,124.47652000000005046 -9.50982999999996537,124.47710000000006403 -9.50986999999997806,124.47766000000001441 -9.50976999999994632,124.47779994600011833 -9.50973999999996522,124.47789000000011583 -9.50992999999994026,124.47931000000005497 -9.51027999999996609,124.48060000000009495 -9.51080999999993537,124.48198000000002139 -9.51141999999993004,124.48294999900008406 -9.51177999999993062,124.48619000000007873 -9.51283999999992602,124.49183000000004995 -9.51500999999996111,124.49317000000007738 -9.51513999999997395,124.49640000000010787 -9.51459999999997308,124.49660000000005766 -9.5141999999999598,124.50000000000011369 -9.51360999999997148,124.50084000000003925 -9.51359999999993988,124.50249000000007982 -9.51367999999996528,124.50304000000005544 -9.51364999999992733,124.50356000000010681 -9.51373999999992748,124.50436000000001968 -9.51395999999994046,124.50512000000003354 -9.5141999999999598,124.50581000000011045 -9.51442999999994754,124.50640000000009877 -9.51461999899993316,124.50692000000003645 -9.51465999999993528,124.50772000000006301 -9.51452999999997928,124.50896000000011554 -9.51437999999996009,124.50961000100005549 -9.5142399999999725,124.51053000000001703 -9.5142999999999347,124.51227000000005773 -9.51468999999997322,124.5160600000000386 -9.51602999999994381,124.51832000000001699 -9.51714999999995825,124.51923000000010688 -9.51779999999996562,124.51977000000010776 -9.51822999999996,124.52041000000008353 -9.51876999999996087,124.52079000000003361 -9.51882999999997992,124.52203000000008615 -9.51942999999994299,124.5232300000000123 -9.51937999999995554,124.52416000100004112 -9.51922999999993635,124.52494000000001506 -9.51923999999996795,124.52658000000008087 -9.51970999999997503,124.52878000100008649 -9.5203099999999381,124.53131999900006122 -9.52098999999992657,124.5320400000000518 -9.52118999999993321,124.53370000000006712 -9.52164999999996553,124.53388000000006741 -9.52170999999992773,124.53565000000003238 -9.5223599999999351,124.53731000000004769 -9.5233899999999494,124.53965000000005148 -9.52519999999992706,124.54038000000002739 -9.52585999999996602,124.541110000000117 -9.52633999999994785,124.54179000000010547 -9.52666005199995425,124.54184000000009291 -9.52681999999992968,124.54199000000005526 -9.52694999999994252,124.54219000000011874 -9.52701999999993632,124.54240000000004329 -9.52713999999997441,124.54249000000004344 -9.52728999999993675,124.54238000000009379 -9.52790999999996302,124.54243000000008124 -9.52802999999994427,124.54260000000010677 -9.52808000099997798,124.54299000000003161 -9.52813999999995076,124.54320000000006985 -9.5283799999999701,124.54312000000004446 -9.52850999999992609,124.54295000000001892 -9.52874999999994543,124.54281000000003132 -9.52902999999997746,124.54283000000009451 -9.52917999999993981,124.54292000000009466 -9.5293599999999401,124.54301000000009481 -9.52943999999996549,124.54323000000010779 -9.52950999999995929,124.5433100000000195 -9.52946999999994659,124.54349000000001979 -9.5293599999999401,124.54347000000007029 -9.5294299999999339,124.54340000000001965 -9.52972999999997228,124.54344000000003234 -9.52997999999996637,124.54364000000009582 -9.53042999999996709,124.54391000000009626 -9.53102999999993017,124.54393000000004577 -9.53115000099995768,124.54391000000009626 -9.53135999999994965,124.54378000000008342 -9.53158999999993739,124.54354000000000724 -9.53210999999993192,124.54368000000010852 -9.53237999999993235,124.54383000000007087 -9.53263999999995804,124.54398000000003321 -9.53296999999997752,124.54398000000003321 -9.53314999999997781,124.54379000000005817 -9.53362999999995964,124.54380000000003292 -9.53377999999997883,124.54386000000010881 -9.53389999999996007,124.54409000000009655 -9.53432999999995445,124.54417000000000826 -9.5345199999999295,124.54456000000004678 -9.53506999999996196,124.54485000000011041 -9.53514999999993051,124.54486000000008517 -9.53524999999996226,124.54485000000011041 -9.53535999999996875,124.54476000000011027 -9.53592999999995072,124.54484000000002197 -9.53608999999994467,124.54489000000000942 -9.53626999999994496,124.54493000000002212 -9.53648999999995794,124.54495000000008531 -9.53672999999997728,124.54504000000008546 -9.53695999999996502,124.54524000000003525 -9.53724999999997181,124.54564000100003796 -9.53763999999995349,124.54593000000011216 -9.53775999999993473,124.54600000000004911 -9.53776999999996633,124.54654000000004999 -9.53792999999996027,124.54670000000010077 -9.53808999999995422,124.54658000000006268 -9.53827999999992926,124.54645000000004984 -9.53838999999993575,124.54609000000004926 -9.53849999999994225,124.54590000000007421 -9.53856999999993604,124.54580000000009932 -9.53866999999996779,124.54580000000009932 -9.53884999999996808,124.5458700010000257 -9.5390699989999348,124.54605000000003656 -9.53921999999994341,124.54631000000006225 -9.53941999999995005,124.54666000000008808 -9.53965999999996939,124.54675000000008822 -9.53974999999996953,124.54699000000005071 -9.54009999999993852,124.54728999900009967 -9.5404999999999518,124.54748300400001426 -9.5406125459999771,124.54753000000005159 -9.54063999999993939,124.54756000000008953 -9.5415199999999345,124.54788000000007742 -9.54206999999996697,124.54807000000005246 -9.54234999999994216,124.5483400000000529 -9.54278999999996813,124.54853000000002794 -9.54301999999995587,124.54886000000010426 -9.54337999999995645,124.54903000000001612 -9.54360999999994419,124.54910000000006676 -9.54370999999997593,124.5491900000000669 -9.54390999999992573,124.54922000000010485 -9.54425999999995156,124.54924000000005435 -9.54451999999997724,124.5493900000000167 -9.54491999999993368,124.54949999900009061 -9.54520999999994046,124.54949999900009061 -9.54553999999995995,124.54946000000006734 -9.54587999999995418,124.54952000000002954 -9.54621999999994841,124.54959999900006551 -9.54645999999996775,124.54967000000010557 -9.54665999999997439,124.54968000000008033 -9.54680999999993674,124.5493300000000545 -9.54715999999996257,124.54877000000010412 -9.5475999999999317,124.54871000000002823 -9.54767999999995709,124.54857000000004064 -9.54785999999995738,124.5484000000000151 -9.54799999999994498,124.54821000000004005 -9.54820999899993694,124.54789000000005217 -9.54887999999994008,124.54774000000008982 -9.54945999999995365,124.54769000000010237 -9.54989999999997963,124.54759000000001379 -9.55045999999993001,124.54752000000007683 -9.55119999999993752,124.54756000000008953 -9.55165999999996984,124.54761000000007698 -9.55197999999995773,124.54773000000011507 -9.55235999999996466,124.5478500010000289 -9.55284999999997808,124.54790000000002692 -9.55344999999994116,124.54790000000002692 -9.55366999999995414,124.54790000000002692 -9.55396999999993568,124.54797000000007756 -9.55426999999997406,124.5481000000000904 -9.5545999999999367,124.54809000000011565 -9.55479999999994334,124.54803000000003976 -9.55488999999994348,124.54733000000010179 -9.55788999999992939,124.54689000000007582 -9.55889999299995452,124.54563000000007378 -9.55810999999994237,124.5451300000000856 -9.55790999999993574,124.54453000000000884 -9.5576399999999353,124.54421000000002095 -9.55747999899995193,124.54320000000006985 -9.55670999999995274,124.54185000000006767 -9.55546999999995705,124.54045999900006336 -9.5544699999999807,124.53961000000003878 -9.55409999999994852,124.53879000000006272 -9.55400999999994838,124.53817000000003645 -9.55410999999998012,124.53773000000001048 -9.55438999999995531,124.5372300000000223 -9.55495999999993728,124.53673000100002355 -9.55573999999995749,124.53559000000007018 -9.55710999999996602,124.53491000000008171 -9.5575099999999793,124.53419000000008054 -9.55761999999992895,124.53319000000010419 -9.55755999999996675,124.5320200000001023 -9.5574699999999666,124.53108000000008815 -9.55721999999997252,124.53019999900004677 -9.55688999999995303,124.52960000000007312 -9.55685999999997193,124.52909000000011019 -9.55696999999997843,124.52254000000004908 -9.55822999999998046,124.52078000000005886 -9.5584599999999682,124.51949000000001888 -9.5585599999999431,124.5188700000001063 -9.55880999999993719,124.51846000000011827 -9.55924999999996317,124.51746000000002823 -9.56164999999992915,124.51712000000009084 -9.56236999999993031,124.51678000000003976 -9.56280999999995629,124.51622000000008939 -9.56327999999996337,124.51540000000011332 -9.5637199999999325,124.51433000000008633 -9.56402999999994563,124.51327000100002351 -9.56403999999997723,124.51207000000010794 -9.56385999999997694,124.51088000000004286 -9.56345999999996366,124.50971000000004096 -9.56289999999995644,124.50861000000008971 -9.56215999999994892,124.50749000000007527 -9.56125999999994747,124.50640000000009877 -9.55985999999995784,124.50548000000003412 -9.55883999999997513,124.50476000000003296 -9.55837000099995748,124.50407000000006974 -9.55818999999996777,124.50325000000009368 -9.55810999999994237,124.50231000000007953 -9.55822999999998046,124.50118000000009033 -9.55872999999996864,124.50000000000011369 -9.55931999999995696,124.49722000000008393 -9.56012000099997294,124.49637000000006992 -9.56002006399995707,124.49429999900007715 -9.55977999999993244,124.49214000000006308 -9.55921999999992522,124.49212768100005633 -9.5592109489999757,124.49116000000003623 -9.5584999999999809,124.49076000000002296 -9.55814999999995507,124.49048000000004777 -9.55784999999997353,124.49012000000004718 -9.55747999899995193,124.49000000000000909 -9.55721999999997252,124.49000000000000909 -9.55708999999995967,124.49005000000011023 -9.55690999999995938,124.49022000000002208 -9.55675999999994019,124.49057000100003734 -9.55662999999992735,124.49093000000004849 -9.55645999999995865,124.49096000000008644 -9.55628999999993312,124.49076000000002296 -9.55606999999997697,124.49004000000002179 -9.55563999999992575,124.48949000000004617 -9.55523999999996931,124.48917000000005828 -9.55461999999994305,124.4888300000000072 -9.55379999999996699,124.48848000000009506 -9.55316999999996597,124.48795000000006894 -9.55253999999996495,124.48761000000001786 -9.55230999999997721,124.48722000000009302 -9.55221999999997706,124.48694000000011783 -9.55224999999995816,124.48666000000002896 -9.55237999999997101,124.48623000000009142 -9.55262999899997567,124.48599000000001524 -9.55273999999997159,124.48565000000007785 -9.55264999999997144,124.48555000000010295 -9.55260999999995875,124.48547000000007756 -9.5524899999999775,124.48542000000009011 -9.55238999999994576,124.48538999900006274 -9.55228999999997086,124.48534000000006472 -9.55210999999997057,124.4852900010000667 -9.55188999999995758,124.48527000000001408 -9.55167999999997619,124.48524000000008982 -9.55146999999993795,124.48520000000007713 -9.55123999999995021,124.48488000000008924 -9.55108999999993102,124.4847500000000764 -9.55107999999995627,124.48463000000003831 -9.55109999999996262,124.48455000000001291 -9.55123999999995021,124.48453000000006341 -9.55146999999993795,124.48460000000011405 -9.55190999999996393,124.4846900000001142 -9.55298999999996568,124.48456000000010135 -9.55335999999994101,124.48446000000001277 -9.553579999999954,124.48432000000002517 -9.55368999999996049,124.48418000000003758 -9.55366999999995414,124.48406000000011318 -9.55355999999994765,124.48399000000006254 -9.55342999999993481,124.4839200000000119 -9.55328999999994721,124.48384000100008961 -9.55308999999994057,124.48377000000004955 -9.55292999999994663,124.48349000000007436 -9.55221999999997706,124.48288000000002285 -9.5515199999999254,124.48229000000003452 -9.55116999999995642,124.48203000000000884 -9.5509800009999708,124.48201000000005934 -9.5505099999999743,124.48208000000010998 -9.55025999999998021,124.4821899990000702 -9.54996999999997342,124.48214000000007218 -9.54973999999992884,124.48198000000002139 -9.54948999999993475,124.48157000000003336 -9.54917999999997846,124.48106000000007043 -9.54886999999996533,124.4807100000000446 -9.54862999999994599,124.48060000000009495 -9.54843999899998153,124.48057000000005701 -9.54832999999996446,124.48058000000003176 -9.54814999999996417,124.4806500000000824 -9.54788999999993848,124.48073000000010779 -9.54768999999993184,124.48082000000010794 -9.54750999999993155,124.48096999900008086 -9.54736999999994396,124.48099000000001979 -9.54721999999998161,124.48099000000001979 -9.54702999999994972,124.48076000000003205 -9.54663999999996804,124.48016000000006898 -9.54598999999996067,124.47947000000010576 -9.54521999999997206,124.47895000000005439 -9.54469999999997754,124.47870000000011714 -9.5444899999999393,124.47854000000006636 -9.54443999999995185,124.47834000000011656 -9.54443999999995185,124.47817000000009102 -9.54450999999994565,124.47800000000006548 -9.54471999999992704,124.47790000000009059 -9.54493999999994003,124.47783000000003995 -9.54515999999995302,124.47773000000006505 -9.54527999999993426,124.47751000000005206 -9.54536999999993441,124.47719000000006417 -9.54527999999993426,124.47702001200002542 -9.54519999999996571,124.47686000000010154 -9.54498999999992748,124.47676000000001295 -9.54488999999995258,124.47668000000010124 -9.54457999899995002,124.47668000000010124 -9.5444499999999266,124.4767100000000255 -9.54430999999993901,124.47678000000007614 -9.54417999999992617,124.47686000000010154 -9.54402999999996382,124.47689000000002579 -9.54389999999995098,124.47694000000001324 -9.54373999999995704,124.47698000000002594 -9.54357999999996309,124.47700000000008913 -9.54331999999993741,124.47691000100007841 -9.54303999999996222,124.47687000000007629 -9.54281999999994923,124.47691000100007841 -9.54268999999993639,124.47704000000010183 -9.54263999999994894,124.47719000000006417 -9.54238999999995485,124.47725000000002638 -9.54228999999997995,124.47741000000007716 -9.54210999999997966,124.47729000000003907 -9.54188999999996668,124.47749000000010255 -9.54155999999994719,124.47759000000007745 -9.54142999999993435,124.4775800000001027 -9.54119999999994661,124.47756000000003951 -9.54105999999995902,124.47769000000005235 -9.54086999999992713,124.4778400000000147 -9.54064999999997099,124.47783000000003995 -9.54037999999997055,124.47756999900002484 -9.53967999999997573,124.47751000000005206 -9.5395099999999502,124.47727000000008957 -9.53901999999993677,124.47748000000001412 -9.5384799999999359,124.47753000000011525 -9.53831999999994196,124.47759000000007745 -9.5379799989999583,124.47766999900011342 -9.53765999999995984,124.47766000000001441 -9.53744999999997844,124.47738000000003922 -9.53696999999993977,124.47730000000001382 -9.53684999999995853,124.47711000000003878 -9.53658999999993284,124.47707000000002608 -9.53645999999997684,124.47699000000011438 -9.53621999999995751,124.47690000000011423 -9.53600999999997612,124.47686000000010154 -9.53580000099992731,124.4767900000000509 -9.53563999999994394,124.47681000000011409 -9.53555999999997539,124.47691000100007841 -9.53521999999998116,124.47713000000010197 -9.53477999899996576,124.47733000000005177 -9.53460999999992964,124.47751000000005206 -9.53442999999992935,124.4776400000000649 -9.53426999999993541,124.47785000000010314 -9.53416999999996051,124.47812000000010357 -9.53401999899995189,124.47814000000005308 -9.53395999999997912,124.47824000000002798 -9.53373999999996613,124.47902000000010503 -9.53315999999995256,124.47909000000004198 -9.53293999999993957,124.47891000000004169 -9.53285999999997102,124.4785300000000916 -9.53260000099993476,124.47813000000007833 -9.53228999999993221,124.47797000000002754 -9.53208999999992557,124.47766999900011342 -9.53128000099997053,124.47756999900002484 -9.53098999999997432,124.47732000000007702 -9.53051999999996724,124.47707000000002608 -9.53026999999997315,124.47697000000005119 -9.53018999999994776,124.47654000000011365 -9.53013999999996031,124.4756600000000617 -9.530309999999929,124.47547000000008666 -9.53032999999993535,124.47533000000009906 -9.53025999899995213,124.47516000100006295 -9.53012999999992871,124.47502000000008593 -9.53009999999994761,124.474770000000035 -9.530309999999929,124.47448000000008506 -9.53094999999996162,124.47436999900003229 -9.53128000099997053,124.47429000000011001 -9.5313499999999749,124.47416000000009717 -9.53136999999998125,124.47395000000005894 -9.53129999999993061,124.47387000000003354 -9.5312699999999495,124.47367000000008375 -9.53110999999995556,124.4735800000000836 -9.53092999999995527,124.47356000000002041 -9.53068999999993594,124.4736200000000963 -9.53047999999995454,124.47388000000000829 -9.53007999999994126,124.47396000000003369 -9.52990999999997257,124.47396000000003369 -9.52981999999997242,124.47398000000009688 -9.52957999999995309,124.4735400000000709 -9.52854999999993879,124.47344000000009601 -9.52834999999993215,124.47314000000005763 -9.52803999999997586,124.47304999900006806 -9.52798000099994624,124.47286000000008244 -9.52806999999995696,124.47258000000010725 -9.52823999999992566,124.47240000000010696 -9.52828999999996995,124.47229000000004362 -9.52825999999993201,124.47222000000010667 -9.52809999999993806,124.47222000000010667 -9.52790999999996302,124.47228000000006887 -9.52773999999993748,124.47245000000009441 -9.52754999999996244,124.47280000000000655 -9.52735999999993055,124.47304000000008273 -9.527279999999962,124.47310000000004493 -9.5272099999999682,124.47306000000003223 -9.52713999999997441,124.47239000100000794 -9.52697999999998046,124.47216000000003078 -9.52691999999996142,124.47200000000009368 -9.52678999999994858,124.47194000000001779 -9.52658999999994194,124.47204000000010637 -9.526429999999948,124.47222000000010667 -9.5263199999999415,124.47240000000010696 -9.5262499999999477,124.47248000000001866 -9.52616999999997915,124.47200000000009368 -9.52575999999993428,124.47178000000008069 -9.52561999999994669,124.47093693000010717 -9.52542536999993672,124.47129731000006814 -9.52470468599995002,124.47164033500007463 -9.52453317399994148,124.47192618900010075 -9.52338975699996126,124.47141165200002888 -9.52236068299993121,124.47049691900008384 -9.52184614599997303,124.46986804000005122 -9.52224634099997047,124.46986804000005122 -9.52201765799998157,124.46998238100002254 -9.52156029199994691,124.47032540600002903 -9.52150312099996654,124.4695821860000251 -9.5192734589999759,124.47038257700000941 -9.51938780099993664,124.47009672300009697 -9.51881609299994125,124.47066843100003553 -9.51835872599997401,124.46861028200009969 -9.51527150299995128,124.46866745300008006 -9.51504281999996238,124.46803857400004745 -9.51492847799994479,124.46786706200009576 -9.51361354899995604,124.46723818300006315 -9.51384223299993437,124.46655213300005016 -9.51361354899995604,124.46655213300005016 -9.51269881599995415,124.4671238410001024 -9.51241296199992803,124.46689515800005665 -9.51149822899992614,124.46580891300004623 -9.51172691299996131,124.465351546000079 -9.50995461799993791,124.46415095900010783 -9.50921139699994455,124.46397944700004246 -9.50812515199993413,124.46426530100006858 -9.50789646899994523,124.46460832600007507 -9.50806798099995376,124.46495135000009213 -9.50783929799996486,124.46528887900001337 -9.50705179499993847,124.46559000000002015 -9.5071599999999421,124.46598999900004401 -9.50743999999997413,124.46672000000000935 -9.50772999999998092))'
poly_2_wkt = 'MULTIPOLYGON(((124.50874635736144569 -9.51440584386754296,124.50896000000011554 -9.51437999999996009,124.50961000100005549 -9.5142399999999725,124.51053000000001703 -9.5142999999999347,124.51227000000005773 -9.51468999999997322,124.5160600000000386 -9.51602999999994381,124.51832000000001699 -9.51714999999995825,124.51923000000010688 -9.51779999999996562,124.51977000000010776 -9.51822999999996,124.52041000000008353 -9.51876999999996087,124.52079000000003361 -9.51882999999997992,124.52203000000008615 -9.51942999999994299,124.5232300000000123 -9.51937999999995554,124.52416000100004112 -9.51922999999993635,124.52494000000001506 -9.51923999999996795,124.52658000000008087 -9.51970999999997503,124.52878000100008649 -9.5203099999999381,124.53131999900006122 -9.52098999999992657,124.5320400000000518 -9.52118999999993321,124.53370000000006712 -9.52164999999996553,124.53388000000006741 -9.52170999999992773,124.53565000000003238 -9.5223599999999351,124.53731000000004769 -9.5233899999999494,124.53965000000005148 -9.52519999999992706,124.54038000000002739 -9.52585999999996602,124.541110000000117 -9.52633999999994785,124.54179000000010547 -9.52666005199995425,124.54184000000009291 -9.52681999999992968,124.54199000000005526 -9.52694999999994252,124.54219000000011874 -9.52701999999993632,124.54240000000004329 -9.52713999999997441,124.54249000000004344 -9.52728999999993675,124.54238000000009379 -9.52790999999996302,124.54243000000008124 -9.52802999999994427,124.54260000000010677 -9.52808000099997798,124.54299000000003161 -9.52813999999995076,124.54320000000006985 -9.5283799999999701,124.54312000000004446 -9.52850999999992609,124.54295000000001892 -9.52874999999994543,124.54281000000003132 -9.52902999999997746,124.54283000000009451 -9.52917999999993981,124.54292000000009466 -9.5293599999999401,124.54301000000009481 -9.52943999999996549,124.54323000000010779 -9.52950999999995929,124.5433100000000195 -9.52946999999994659,124.54349000000001979 -9.5293599999999401,124.54347000000007029 -9.5294299999999339,124.54340000000001965 -9.52972999999997228,124.54344000000003234 -9.52997999999996637,124.54364000000009582 -9.53042999999996709,124.54391000000009626 -9.53102999999993017,124.54393000000004577 -9.53115000099995768,124.54391000000009626 -9.53135999999994965,124.54378000000008342 -9.53158999999993739,124.54354000000000724 -9.53210999999993192,124.54368000000010852 -9.53237999999993235,124.54383000000007087 -9.53263999999995804,124.54398000000003321 -9.53296999999997752,124.54398000000003321 -9.53314999999997781,124.54379000000005817 -9.53362999999995964,124.54380000000003292 -9.53377999999997883,124.54386000000010881 -9.53389999999996007,124.54409000000009655 -9.53432999999995445,124.54417000000000826 -9.5345199999999295,124.54456000000004678 -9.53506999999996196,124.54485000000011041 -9.53514999999993051,124.54486000000008517 -9.53524999999996226,124.54485000000011041 -9.53535999999996875,124.54476000000011027 -9.53592999999995072,124.54484000000002197 -9.53608999999994467,124.54489000000000942 -9.53626999999994496,124.54493000000002212 -9.53648999999995794,124.54495000000008531 -9.53672999999997728,124.54504000000008546 -9.53695999999996502,124.54524000000003525 -9.53724999999997181,124.54564000100003796 -9.53763999999995349,124.54593000000011216 -9.53775999999993473,124.54600000000004911 -9.53776999999996633,124.54654000000004999 -9.53792999999996027,124.54670000000010077 -9.53808999999995422,124.54658000000006268 -9.53827999999992926,124.54645000000004984 -9.53838999999993575,124.54609000000004926 -9.53849999999994225,124.54590000000007421 -9.53856999999993604,124.54580000000009932 -9.53866999999996779,124.54580000000009932 -9.53884999999996808,124.5458700010000257 -9.5390699989999348,124.54605000000003656 -9.53921999999994341,124.54631000000006225 -9.53941999999995005,124.54666000000008808 -9.53965999999996939,124.54675000000008822 -9.53974999999996953,124.54699000000005071 -9.54009999999993852,124.54728999900009967 -9.5404999999999518,124.54748300400001426 -9.5406125459999771,124.54753000000005159 -9.54063999999993939,124.54756000000008953 -9.5415199999999345,124.54788000000007742 -9.54206999999996697,124.54807000000005246 -9.54234999999994216,124.5483400000000529 -9.54278999999996813,124.54853000000002794 -9.54301999999995587,124.54886000000010426 -9.54337999999995645,124.54903000000001612 -9.54360999999994419,124.54910000000006676 -9.54370999999997593,124.5491900000000669 -9.54390999999992573,124.54922000000010485 -9.54425999999995156,124.54924000000005435 -9.54451999999997724,124.5493900000000167 -9.54491999999993368,124.54949999900009061 -9.54520999999994046,124.54949999900009061 -9.54553999999995995,124.54946000000006734 -9.54587999999995418,124.54952000000002954 -9.54621999999994841,124.54959999900006551 -9.54645999999996775,124.54967000000010557 -9.54665999999997439,124.54968000000008033 -9.54680999999993674,124.5493300000000545 -9.54715999999996257,124.54877000000010412 -9.5475999999999317,124.54871000000002823 -9.54767999999995709,124.54857000000004064 -9.54785999999995738,124.5484000000000151 -9.54799999999994498,124.54821000000004005 -9.54820999899993694,124.54789000000005217 -9.54887999999994008,124.54774000000008982 -9.54945999999995365,124.54769000000010237 -9.54989999999997963,124.54759000000001379 -9.55045999999993001,124.54752000000007683 -9.55119999999993752,124.54756000000008953 -9.55165999999996984,124.54761000000007698 -9.55197999999995773,124.54773000000011507 -9.55235999999996466,124.5478500010000289 -9.55284999999997808,124.54790000000002692 -9.55344999999994116,124.54790000000002692 -9.55366999999995414,124.54790000000002692 -9.55396999999993568,124.54797000000007756 -9.55426999999997406,124.5481000000000904 -9.5545999999999367,124.54809000000011565 -9.55479999999994334,124.54803000000003976 -9.55488999999994348,124.54766965859980132 -9.5564343202867903,124.54718243742681238 -9.55632256720813622,124.5439338234542106 -9.55726944883746476,124.54320000000006985 -9.55670999999995274,124.54185000000006767 -9.55546999999995705,124.54045999900006336 -9.5544699999999807,124.53961000000003878 -9.55409999999994852,124.53879000000006272 -9.55400999999994838,124.53817000000003645 -9.55410999999998012,124.53773000000001048 -9.55438999999995531,124.5372300000000223 -9.55495999999993728,124.53673000100002355 -9.55573999999995749,124.53559000000007018 -9.55710999999996602,124.53491000000008171 -9.5575099999999793,124.53419000000008054 -9.55761999999992895,124.53319000000010419 -9.55755999999996675,124.5320200000001023 -9.5574699999999666,124.53108000000008815 -9.55721999999997252,124.53019999900004677 -9.55688999999995303,124.52960000000007312 -9.55685999999997193,124.52909000000011019 -9.55696999999997843,124.52254000000004908 -9.55822999999998046,124.52078000000005886 -9.5584599999999682,124.51949000000001888 -9.5585599999999431,124.5188700000001063 -9.55880999999993719,124.51846000000011827 -9.55924999999996317,124.51746000000002823 -9.56164999999992915,124.51712000000009084 -9.56236999999993031,124.51678000000003976 -9.56280999999995629,124.51622000000008939 -9.56327999999996337,124.51540000000011332 -9.5637199999999325,124.51433000000008633 -9.56402999999994563,124.51327000100002351 -9.56403999999997723,124.51207000000010794 -9.56385999999997694,124.51088000000004286 -9.56345999999996366,124.50971000000004096 -9.56289999999995644,124.50861000000008971 -9.56215999999994892,124.50749000000007527 -9.56125999999994747,124.50640000000009877 -9.55985999999995784,124.50548000000003412 -9.55883999999997513,124.50476000000003296 -9.55837000099995748,124.50407000000006974 -9.55818999999996777,124.50325000000009368 -9.55810999999994237,124.50231000000007953 -9.55822999999998046,124.50118000000009033 -9.55872999999996864,124.50000000000011369 -9.55931999999995696,124.49722000000008393 -9.56012000099997294,124.49637000000006992 -9.56002006399995707,124.49429999900007715 -9.55977999999993244,124.49214000000006308 -9.55921999999992522,124.49212768100005633 -9.5592109489999757,124.49116000000003623 -9.5584999999999809,124.49076000000002296 -9.55814999999995507,124.49048000000004777 -9.55784999999997353,124.49012000000004718 -9.55747999899995193,124.49000000000000909 -9.55721999999997252,124.49000000000000909 -9.55708999999995967,124.49005000000011023 -9.55690999999995938,124.49022000000002208 -9.55675999999994019,124.49057000100003734 -9.55662999999992735,124.49093000000004849 -9.55645999999995865,124.49096000000008644 -9.55628999999993312,124.49076000000002296 -9.55606999999997697,124.49004000000002179 -9.55563999999992575,124.48949000000004617 -9.55523999999996931,124.48917000000005828 -9.55461999999994305,124.4888300000000072 -9.55379999999996699,124.48848000000009506 -9.55316999999996597,124.48795000000006894 -9.55253999999996495,124.48761000000001786 -9.55230999999997721,124.48722000000009302 -9.55221999999997706,124.48694000000011783 -9.55224999999995816,124.48666000000002896 -9.55237999999997101,124.48623000000009142 -9.55262999899997567,124.48599000000001524 -9.55273999999997159,124.48565000000007785 -9.55264999999997144,124.48555000000010295 -9.55260999999995875,124.48547000000007756 -9.5524899999999775,124.48542000000009011 -9.55238999999994576,124.48538999900006274 -9.55228999999997086,124.48534000000006472 -9.55210999999997057,124.4852900010000667 -9.55188999999995758,124.48527000000001408 -9.55167999999997619,124.48524000000008982 -9.55146999999993795,124.48520000000007713 -9.55123999999995021,124.48488000000008924 -9.55108999999993102,124.4847500000000764 -9.55107999999995627,124.48463000000003831 -9.55109999999996262,124.48455000000001291 -9.55123999999995021,124.48453000000006341 -9.55146999999993795,124.48460000000011405 -9.55190999999996393,124.4846900000001142 -9.55298999999996568,124.48456000000010135 -9.55335999999994101,124.48446000000001277 -9.553579999999954,124.48432000000002517 -9.55368999999996049,124.48418000000003758 -9.55366999999995414,124.48406000000011318 -9.55355999999994765,124.48399000000006254 -9.55342999999993481,124.4839200000000119 -9.55328999999994721,124.48384000100008961 -9.55308999999994057,124.48377000000004955 -9.55292999999994663,124.48349000000007436 -9.55221999999997706,124.48288000000002285 -9.5515199999999254,124.48229000000003452 -9.55116999999995642,124.48203000000000884 -9.5509800009999708,124.48201000000005934 -9.5505099999999743,124.48208000000010998 -9.55025999999998021,124.4821899990000702 -9.54996999999997342,124.48214000000007218 -9.54973999999992884,124.48198000000002139 -9.54948999999993475,124.48157000000003336 -9.54917999999997846,124.48106000000007043 -9.54886999999996533,124.4807100000000446 -9.54862999999994599,124.48060000000009495 -9.54843999899998153,124.48057000000005701 -9.54832999999996446,124.48058000000003176 -9.54814999999996417,124.4806500000000824 -9.54788999999993848,124.48073000000010779 -9.54768999999993184,124.48082000000010794 -9.54750999999993155,124.48096999900008086 -9.54736999999994396,124.48099000000001979 -9.54721999999998161,124.48099000000001979 -9.54702999999994972,124.48076000000003205 -9.54663999999996804,124.48016000000006898 -9.54598999999996067,124.47947000000010576 -9.54521999999997206,124.47895000000005439 -9.54469999999997754,124.47870000000011714 -9.5444899999999393,124.47854000000006636 -9.54443999999995185,124.47834000000011656 -9.54443999999995185,124.47817000000009102 -9.54450999999994565,124.47800000000006548 -9.54471999999992704,124.47790000000009059 -9.54493999999994003,124.47783000000003995 -9.54515999999995302,124.47773000000006505 -9.54527999999993426,124.47751000000005206 -9.54536999999993441,124.47719000000006417 -9.54527999999993426,124.47702001200002542 -9.54519999999996571,124.47686000000010154 -9.54498999999992748,124.47676000000001295 -9.54488999999995258,124.47668000000010124 -9.54457999899995002,124.47668000000010124 -9.5444499999999266,124.4767100000000255 -9.54430999999993901,124.47678000000007614 -9.54417999999992617,124.47686000000010154 -9.54402999999996382,124.47689000000002579 -9.54389999999995098,124.47694000000001324 -9.54373999999995704,124.47698000000002594 -9.54357999999996309,124.47700000000008913 -9.54331999999993741,124.47691000100007841 -9.54303999999996222,124.47687000000007629 -9.54281999999994923,124.47691000100007841 -9.54268999999993639,124.47704000000010183 -9.54263999999994894,124.47719000000006417 -9.54238999999995485,124.47725000000002638 -9.54228999999997995,124.47741000000007716 -9.54210999999997966,124.47729000000003907 -9.54188999999996668,124.47749000000010255 -9.54155999999994719,124.47759000000007745 -9.54142999999993435,124.4775800000001027 -9.54119999999994661,124.47756000000003951 -9.54105999999995902,124.47769000000005235 -9.54086999999992713,124.4778400000000147 -9.54064999999997099,124.47783000000003995 -9.54037999999997055,124.47756999900002484 -9.53967999999997573,124.47751000000005206 -9.5395099999999502,124.47727000000008957 -9.53901999999993677,124.47748000000001412 -9.5384799999999359,124.47753000000011525 -9.53831999999994196,124.47759000000007745 -9.5379799989999583,124.47766999900011342 -9.53765999999995984,124.47766000000001441 -9.53744999999997844,124.47738000000003922 -9.53696999999993977,124.47730000000001382 -9.53684999999995853,124.47711000000003878 -9.53658999999993284,124.47707000000002608 -9.53645999999997684,124.47699000000011438 -9.53621999999995751,124.47690000000011423 -9.53600999999997612,124.47686000000010154 -9.53580000099992731,124.4767900000000509 -9.53563999999994394,124.47681000000011409 -9.53555999999997539,124.47691000100007841 -9.53521999999998116,124.47713000000010197 -9.53477999899996576,124.47733000000005177 -9.53460999999992964,124.47751000000005206 -9.53442999999992935,124.4776400000000649 -9.53426999999993541,124.47785000000010314 -9.53416999999996051,124.47812000000010357 -9.53401999899995189,124.47814000000005308 -9.53395999999997912,124.47824000000002798 -9.53373999999996613,124.47902000000010503 -9.53315999999995256,124.47909000000004198 -9.53293999999993957,124.47891000000004169 -9.53285999999997102,124.4785300000000916 -9.53260000099993476,124.47813000000007833 -9.53228999999993221,124.47797000000002754 -9.53208999999992557,124.47766999900011342 -9.53128000099997053,124.47756999900002484 -9.53098999999997432,124.47732000000007702 -9.53051999999996724,124.47707000000002608 -9.53026999999997315,124.47697000000005119 -9.53018999999994776,124.47654000000011365 -9.53013999999996031,124.4756600000000617 -9.530309999999929,124.47547000000008666 -9.53032999999993535,124.47533000000009906 -9.53025999899995213,124.47516000100006295 -9.53012999999992871,124.47502000000008593 -9.53009999999994761,124.474770000000035 -9.530309999999929,124.47448000000008506 -9.53094999999996162,124.47436999900003229 -9.53128000099997053,124.47429000000011001 -9.5313499999999749,124.47416000000009717 -9.53136999999998125,124.47395000000005894 -9.53129999999993061,124.47387000000003354 -9.5312699999999495,124.47367000000008375 -9.53110999999995556,124.4735800000000836 -9.53092999999995527,124.47356000000002041 -9.53068999999993594,124.4736200000000963 -9.53047999999995454,124.47388000000000829 -9.53007999999994126,124.47396000000003369 -9.52990999999997257,124.47396000000003369 -9.52981999999997242,124.47398000000009688 -9.52957999999995309,124.4735400000000709 -9.52854999999993879,124.47344000000009601 -9.52834999999993215,124.47322364586182175 -9.52812643405711057,124.47532132536767335 -9.52907982941325038,124.47745955803344486 -9.52943752022293289,124.47970283349438603 -9.52869857213141636,124.48086901136510107 -9.5267008641669424,124.48093510363062819 -9.52325709757940153,124.48175968886974374 -9.5209078599345407,124.48406358804935223 -9.52017880543918871,124.48699819695394808 -9.52041916360651364,124.4896375083612412 -9.52181144953004299,124.49341560992519362 -9.52527133496215406,124.49621593641846573 -9.52947770590411558,124.49919045238515025 -9.53270365192234159,124.50144746838698495 -9.5339022946556522,124.50106001576659764 -9.53498023619202506,124.50226825092032357 -9.53560784159570929,124.50208836627982123 -9.53424265892485501,124.5036723211812415 -9.53508385634256861,124.50792638367799725 -9.53573764571800631,124.51137508450283065 -9.535069875959584,124.51340562651024868 -9.53283852086795314,124.51404791155664498 -9.53055400566170086,124.51326470700459481 -9.52687583564247298,124.51132816755384169 -9.52232551563021978,124.50917914810398202 -9.51732718283207468,124.50874635736144569 -9.51440584386754296),(124.54628569984215858 -9.54801025963806538,124.54571076490148585 -9.54580087405478395,124.54232552428427994 -9.54537707612212927,124.54412215485253057 -9.54660034649451994,124.54485598369545585 -9.54764842790609336,124.54628569984215858 -9.54801025963806538),(124.51664129546621496 -9.53649374356174384,124.51615318195202065 -9.53536890072392218,124.51457545542264427 -9.53613465723283227,124.51664129546621496 -9.53649374356174384),(124.5337092858644894 -9.53649374356174384,124.53340177846268944 -9.53541361766381712,124.53261402548160675 -9.53619045865678849,124.5337092858644894 -9.53649374356174384),(124.48070868410145806 -9.53117829725506738,124.48040117669965809 -9.53009815452846887,124.47961342371841909 -9.53087500762465822,124.48070868410145806 -9.53117829725506738),(124.48879352165852197 -9.53295012189262359,124.48845103347355234 -9.53151603040759809,124.48564133091414874 -9.53057177179669246,124.48395945705296128 -9.531567344621374,124.48755271818944834 -9.53240194299954879,124.48879352165852197 -9.53295012189262359),(124.52831939415983697 -9.53117829725506738,124.52801188675803701 -9.53009815452846887,124.52722413377675537 -9.53087500762465822,124.52831939415983697 -9.53117829725506738),(124.52921770944388413 -9.53295012189262359,124.52891020204209838 -9.53186998477451475,124.52812244906093042 -9.53264683383704892,124.52921770944388413 -9.53295012189262359),(124.49238678279508008 -9.53560784159570929,124.49073536633997605 -9.53349792140385688,124.48930049628467032 -9.5350908120534239,124.49238678279508008 -9.53560784159570929),(124.48789520637447481 -9.54003732841202634,124.48820271377627478 -9.54111743966385539,124.48899046675748536 -9.54034060989554611,124.48789520637447481 -9.54003732841202634,124.48758769897267484 -9.53895721373820038,124.48679994599143583 -9.53973404665874547,124.48789520637447481 -9.54003732841202634),(124.52203118717100949 -9.5409232188701143,124.52172367976922374 -9.53984310700297478,124.52093592678798473 -9.54061993790493723,124.52203118717100949 -9.5409232188701143),(124.48789520637447481 -9.54623851326505424,124.48825502046456393 -9.54825167883297077,124.48906273113399834 -9.5467311946389195,124.48789520637447481 -9.54623851326505424,124.48789520637447481 -9.545352636623333,124.48699689109027133 -9.545352636623333,124.48629116201438194 -9.54397688466540828,124.48430194523793091 -9.54358087643032782,124.48370625759118013 -9.54281978667329867,124.47762239759109093 -9.54193319823120234,124.48036685386225031 -9.54421836078825869,124.48430194523793091 -9.54358087643032782,124.4850076743138203 -9.54495662998700212,124.48699689109027133 -9.545352636623333,124.48699689109027133 -9.54623851326505424,124.48789520637447481 -9.54623851326505424),(124.49418341336330229 -9.54269499287948797,124.49369529984907956 -9.54157017049974421,124.49211757331960371 -9.54233591308173068,124.49418341336330229 -9.54269499287948797),(124.50047162035214399 -9.545352636623333,124.49998350683792125 -9.54422782301531747,124.49840578030841698 -9.54499355962590101,124.50047162035214399 -9.545352636623333),(124.51304803432974211 -9.54712438760336468,124.51210094881587054 -9.54409983961368091,124.51082752220257532 -9.54644819491140595,124.51304803432974211 -9.54712438760336468),(124.53101434001220582 -9.54889612936887389,124.53058859427353866 -9.54813018525278245,124.52736888184504949 -9.54681073082109677,124.52807858600989732 -9.54850872385270222,124.53101434001220582 -9.54889612936887389),(124.54269243870568573 -9.55155372473608644,124.54056327138225413 -9.54936836879779349,124.53776069656848335 -9.55060427694941971,124.54269243870568573 -9.55155372473608644),(124.53640423171685825 -9.55243958524943082,124.53579554964132114 -9.55129998020811222,124.5333993659948959 -9.55205456278387999,124.53640423171685825 -9.55243958524943082)),((124.47297726477687263 -9.52801445385156498,124.47286000000008244 -9.52806999999995696,124.47258000000010725 -9.52823999999992566,124.47240000000010696 -9.52828999999996995,124.47229000000004362 -9.52825999999993201,124.47222000000010667 -9.52809999999993806,124.47222000000010667 -9.52790999999996302,124.47228000000006887 -9.52773999999993748,124.47233659192352206 -9.52767675020315963,124.47251515481458739 -9.52780442486914048,124.47297726477687263 -9.52801445385156498)))'
poly_3_wkt = 'POLYGON((124.50874635736144569 -9.51440584386754296,124.50896000000011554 -9.51437999999996009,124.50961000100005549 -9.5142399999999725,124.51053000000001703 -9.5142999999999347,124.51227000000005773 -9.51468999999997322,124.5160600000000386 -9.51602999999994381,124.51832000000001699 -9.51714999999995825,124.51923000000010688 -9.51779999999996562,124.51977000000010776 -9.51822999999996,124.52041000000008353 -9.51876999999996087,124.52079000000003361 -9.51882999999997992,124.52203000000008615 -9.51942999999994299,124.5232300000000123 -9.51937999999995554,124.52416000100004112 -9.51922999999993635,124.52494000000001506 -9.51923999999996795,124.52658000000008087 -9.51970999999997503,124.52878000100008649 -9.5203099999999381,124.53131999900006122 -9.52098999999992657,124.5320400000000518 -9.52118999999993321,124.53370000000006712 -9.52164999999996553,124.53388000000006741 -9.52170999999992773,124.53565000000003238 -9.5223599999999351,124.53731000000004769 -9.5233899999999494,124.53965000000005148 -9.52519999999992706,124.54038000000002739 -9.52585999999996602,124.541110000000117 -9.52633999999994785,124.54179000000010547 -9.52666005199995425,124.54184000000009291 -9.52681999999992968,124.54199000000005526 -9.52694999999994252,124.54219000000011874 -9.52701999999993632,124.54240000000004329 -9.52713999999997441,124.54249000000004344 -9.52728999999993675,124.54238000000009379 -9.52790999999996302,124.54243000000008124 -9.52802999999994427,124.54260000000010677 -9.52808000099997798,124.54299000000003161 -9.52813999999995076,124.54320000000006985 -9.5283799999999701,124.54312000000004446 -9.52850999999992609,124.54295000000001892 -9.52874999999994543,124.54281000000003132 -9.52902999999997746,124.54283000000009451 -9.52917999999993981,124.54292000000009466 -9.5293599999999401,124.54301000000009481 -9.52943999999996549,124.54323000000010779 -9.52950999999995929,124.5433100000000195 -9.52946999999994659,124.54349000000001979 -9.5293599999999401,124.54347000000007029 -9.5294299999999339,124.54340000000001965 -9.52972999999997228,124.54344000000003234 -9.52997999999996637,124.54364000000009582 -9.53042999999996709,124.54391000000009626 -9.53102999999993017,124.54393000000004577 -9.53115000099995768,124.54391000000009626 -9.53135999999994965,124.54378000000008342 -9.53158999999993739,124.54354000000000724 -9.53210999999993192,124.54368000000010852 -9.53237999999993235,124.54383000000007087 -9.53263999999995804,124.54398000000003321 -9.53296999999997752,124.54398000000003321 -9.53314999999997781,124.54379000000005817 -9.53362999999995964,124.54380000000003292 -9.53377999999997883,124.54386000000010881 -9.53389999999996007,124.54409000000009655 -9.53432999999995445,124.54417000000000826 -9.5345199999999295,124.54456000000004678 -9.53506999999996196,124.54485000000011041 -9.53514999999993051,124.54486000000008517 -9.53524999999996226,124.54485000000011041 -9.53535999999996875,124.54476000000011027 -9.53592999999995072,124.54484000000002197 -9.53608999999994467,124.54489000000000942 -9.53626999999994496,124.54493000000002212 -9.53648999999995794,124.54495000000008531 -9.53672999999997728,124.54504000000008546 -9.53695999999996502,124.54524000000003525 -9.53724999999997181,124.54564000100003796 -9.53763999999995349,124.54593000000011216 -9.53775999999993473,124.54600000000004911 -9.53776999999996633,124.54654000000004999 -9.53792999999996027,124.54670000000010077 -9.53808999999995422,124.54658000000006268 -9.53827999999992926,124.54645000000004984 -9.53838999999993575,124.54609000000004926 -9.53849999999994225,124.54590000000007421 -9.53856999999993604,124.54580000000009932 -9.53866999999996779,124.54580000000009932 -9.53884999999996808,124.5458700010000257 -9.5390699989999348,124.54605000000003656 -9.53921999999994341,124.54631000000006225 -9.53941999999995005,124.54666000000008808 -9.53965999999996939,124.54675000000008822 -9.53974999999996953,124.54699000000005071 -9.54009999999993852,124.54728999900009967 -9.5404999999999518,124.54748300400001426 -9.5406125459999771,124.54753000000005159 -9.54063999999993939,124.54756000000008953 -9.5415199999999345,124.54788000000007742 -9.54206999999996697,124.54807000000005246 -9.54234999999994216,124.5483400000000529 -9.54278999999996813,124.54853000000002794 -9.54301999999995587,124.54886000000010426 -9.54337999999995645,124.54903000000001612 -9.54360999999994419,124.54910000000006676 -9.54370999999997593,124.5491900000000669 -9.54390999999992573,124.54922000000010485 -9.54425999999995156,124.54924000000005435 -9.54451999999997724,124.5493900000000167 -9.54491999999993368,124.54949999900009061 -9.54520999999994046,124.54949999900009061 -9.54553999999995995,124.54946000000006734 -9.54587999999995418,124.54952000000002954 -9.54621999999994841,124.54959999900006551 -9.54645999999996775,124.54967000000010557 -9.54665999999997439,124.54968000000008033 -9.54680999999993674,124.5493300000000545 -9.54715999999996257,124.54877000000010412 -9.5475999999999317,124.54871000000002823 -9.54767999999995709,124.54857000000004064 -9.54785999999995738,124.5484000000000151 -9.54799999999994498,124.54821000000004005 -9.54820999899993694,124.54789000000005217 -9.54887999999994008,124.54774000000008982 -9.54945999999995365,124.54769000000010237 -9.54989999999997963,124.54759000000001379 -9.55045999999993001,124.54752000000007683 -9.55119999999993752,124.54756000000008953 -9.55165999999996984,124.54761000000007698 -9.55197999999995773,124.54773000000011507 -9.55235999999996466,124.5478500010000289 -9.55284999999997808,124.54790000000002692 -9.55344999999994116,124.54790000000002692 -9.55366999999995414,124.54790000000002692 -9.55396999999993568,124.54797000000007756 -9.55426999999997406,124.5481000000000904 -9.5545999999999367,124.54809000000011565 -9.55479999999994334,124.54803000000003976 -9.55488999999994348,124.54766965859980132 -9.5564343202867903,124.54718243742681238 -9.55632256720813622,124.5439338234542106 -9.55726944883746476,124.54320000000006985 -9.55670999999995274,124.54185000000006767 -9.55546999999995705,124.54045999900006336 -9.5544699999999807,124.53961000000003878 -9.55409999999994852,124.53879000000006272 -9.55400999999994838,124.53817000000003645 -9.55410999999998012,124.53773000000001048 -9.55438999999995531,124.5372300000000223 -9.55495999999993728,124.53673000100002355 -9.55573999999995749,124.53559000000007018 -9.55710999999996602,124.53491000000008171 -9.5575099999999793,124.53419000000008054 -9.55761999999992895,124.53319000000010419 -9.55755999999996675,124.5320200000001023 -9.5574699999999666,124.53108000000008815 -9.55721999999997252,124.53019999900004677 -9.55688999999995303,124.52960000000007312 -9.55685999999997193,124.52909000000011019 -9.55696999999997843,124.52254000000004908 -9.55822999999998046,124.52078000000005886 -9.5584599999999682,124.51949000000001888 -9.5585599999999431,124.5188700000001063 -9.55880999999993719,124.51846000000011827 -9.55924999999996317,124.51746000000002823 -9.56164999999992915,124.51712000000009084 -9.56236999999993031,124.51678000000003976 -9.56280999999995629,124.51622000000008939 -9.56327999999996337,124.51540000000011332 -9.5637199999999325,124.51433000000008633 -9.56402999999994563,124.51327000100002351 -9.56403999999997723,124.51207000000010794 -9.56385999999997694,124.51088000000004286 -9.56345999999996366,124.50971000000004096 -9.56289999999995644,124.50861000000008971 -9.56215999999994892,124.50749000000007527 -9.56125999999994747,124.50640000000009877 -9.55985999999995784,124.50548000000003412 -9.55883999999997513,124.50476000000003296 -9.55837000099995748,124.50407000000006974 -9.55818999999996777,124.50325000000009368 -9.55810999999994237,124.50231000000007953 -9.55822999999998046,124.50118000000009033 -9.55872999999996864,124.50000000000011369 -9.55931999999995696,124.49722000000008393 -9.56012000099997294,124.49637000000006992 -9.56002006399995707,124.49429999900007715 -9.55977999999993244,124.49214000000006308 -9.55921999999992522,124.49212768100005633 -9.5592109489999757,124.49116000000003623 -9.5584999999999809,124.49076000000002296 -9.55814999999995507,124.49048000000004777 -9.55784999999997353,124.49012000000004718 -9.55747999899995193,124.49000000000000909 -9.55721999999997252,124.49000000000000909 -9.55708999999995967,124.49005000000011023 -9.55690999999995938,124.49022000000002208 -9.55675999999994019,124.49057000100003734 -9.55662999999992735,124.49093000000004849 -9.55645999999995865,124.49096000000008644 -9.55628999999993312,124.49076000000002296 -9.55606999999997697,124.49004000000002179 -9.55563999999992575,124.48949000000004617 -9.55523999999996931,124.48917000000005828 -9.55461999999994305,124.4888300000000072 -9.55379999999996699,124.48848000000009506 -9.55316999999996597,124.48795000000006894 -9.55253999999996495,124.48761000000001786 -9.55230999999997721,124.48722000000009302 -9.55221999999997706,124.48694000000011783 -9.55224999999995816,124.48666000000002896 -9.55237999999997101,124.48623000000009142 -9.55262999899997567,124.48599000000001524 -9.55273999999997159,124.48565000000007785 -9.55264999999997144,124.48555000000010295 -9.55260999999995875,124.48547000000007756 -9.5524899999999775,124.48542000000009011 -9.55238999999994576,124.48538999900006274 -9.55228999999997086,124.48534000000006472 -9.55210999999997057,124.4852900010000667 -9.55188999999995758,124.48527000000001408 -9.55167999999997619,124.48524000000008982 -9.55146999999993795,124.48520000000007713 -9.55123999999995021,124.48488000000008924 -9.55108999999993102,124.4847500000000764 -9.55107999999995627,124.48463000000003831 -9.55109999999996262,124.48455000000001291 -9.55123999999995021,124.48453000000006341 -9.55146999999993795,124.48460000000011405 -9.55190999999996393,124.4846900000001142 -9.55298999999996568,124.48456000000010135 -9.55335999999994101,124.48446000000001277 -9.553579999999954,124.48432000000002517 -9.55368999999996049,124.48418000000003758 -9.55366999999995414,124.48406000000011318 -9.55355999999994765,124.48399000000006254 -9.55342999999993481,124.4839200000000119 -9.55328999999994721,124.48384000100008961 -9.55308999999994057,124.48377000000004955 -9.55292999999994663,124.48349000000007436 -9.55221999999997706,124.48288000000002285 -9.5515199999999254,124.48229000000003452 -9.55116999999995642,124.48203000000000884 -9.5509800009999708,124.48201000000005934 -9.5505099999999743,124.48208000000010998 -9.55025999999998021,124.4821899990000702 -9.54996999999997342,124.48214000000007218 -9.54973999999992884,124.48198000000002139 -9.54948999999993475,124.48157000000003336 -9.54917999999997846,124.48106000000007043 -9.54886999999996533,124.4807100000000446 -9.54862999999994599,124.48060000000009495 -9.54843999899998153,124.48057000000005701 -9.54832999999996446,124.48058000000003176 -9.54814999999996417,124.4806500000000824 -9.54788999999993848,124.48073000000010779 -9.54768999999993184,124.48082000000010794 -9.54750999999993155,124.48096999900008086 -9.54736999999994396,124.48099000000001979 -9.54721999999998161,124.48099000000001979 -9.54702999999994972,124.48076000000003205 -9.54663999999996804,124.48016000000006898 -9.54598999999996067,124.47947000000010576 -9.54521999999997206,124.47895000000005439 -9.54469999999997754,124.47870000000011714 -9.5444899999999393,124.47854000000006636 -9.54443999999995185,124.47834000000011656 -9.54443999999995185,124.47817000000009102 -9.54450999999994565,124.47800000000006548 -9.54471999999992704,124.47790000000009059 -9.54493999999994003,124.47783000000003995 -9.54515999999995302,124.47773000000006505 -9.54527999999993426,124.47751000000005206 -9.54536999999993441,124.47719000000006417 -9.54527999999993426,124.47702001200002542 -9.54519999999996571,124.47686000000010154 -9.54498999999992748,124.47676000000001295 -9.54488999999995258,124.47668000000010124 -9.54457999899995002,124.47668000000010124 -9.5444499999999266,124.4767100000000255 -9.54430999999993901,124.47678000000007614 -9.54417999999992617,124.47686000000010154 -9.54402999999996382,124.47689000000002579 -9.54389999999995098,124.47694000000001324 -9.54373999999995704,124.47698000000002594 -9.54357999999996309,124.47700000000008913 -9.54331999999993741,124.47691000100007841 -9.54303999999996222,124.47687000000007629 -9.54281999999994923,124.47691000100007841 -9.54268999999993639,124.47704000000010183 -9.54263999999994894,124.47719000000006417 -9.54238999999995485,124.47725000000002638 -9.54228999999997995,124.47741000000007716 -9.54210999999997966,124.47729000000003907 -9.54188999999996668,124.47749000000010255 -9.54155999999994719,124.47759000000007745 -9.54142999999993435,124.4775800000001027 -9.54119999999994661,124.47756000000003951 -9.54105999999995902,124.47769000000005235 -9.54086999999992713,124.4778400000000147 -9.54064999999997099,124.47783000000003995 -9.54037999999997055,124.47756999900002484 -9.53967999999997573,124.47751000000005206 -9.5395099999999502,124.47727000000008957 -9.53901999999993677,124.47748000000001412 -9.5384799999999359,124.47753000000011525 -9.53831999999994196,124.47759000000007745 -9.5379799989999583,124.47766999900011342 -9.53765999999995984,124.47766000000001441 -9.53744999999997844,124.47738000000003922 -9.53696999999993977,124.47730000000001382 -9.53684999999995853,124.47711000000003878 -9.53658999999993284,124.47707000000002608 -9.53645999999997684,124.47699000000011438 -9.53621999999995751,124.47690000000011423 -9.53600999999997612,124.47686000000010154 -9.53580000099992731,124.4767900000000509 -9.53563999999994394,124.47681000000011409 -9.53555999999997539,124.47691000100007841 -9.53521999999998116,124.47713000000010197 -9.53477999899996576,124.47733000000005177 -9.53460999999992964,124.47751000000005206 -9.53442999999992935,124.4776400000000649 -9.53426999999993541,124.47785000000010314 -9.53416999999996051,124.47812000000010357 -9.53401999899995189,124.47814000000005308 -9.53395999999997912,124.47824000000002798 -9.53373999999996613,124.47902000000010503 -9.53315999999995256,124.47909000000004198 -9.53293999999993957,124.47891000000004169 -9.53285999999997102,124.4785300000000916 -9.53260000099993476,124.47813000000007833 -9.53228999999993221,124.47797000000002754 -9.53208999999992557,124.47766999900011342 -9.53128000099997053,124.47756999900002484 -9.53098999999997432,124.47732000000007702 -9.53051999999996724,124.47707000000002608 -9.53026999999997315,124.47697000000005119 -9.53018999999994776,124.47654000000011365 -9.53013999999996031,124.4756600000000617 -9.530309999999929,124.47547000000008666 -9.53032999999993535,124.47533000000009906 -9.53025999899995213,124.47516000100006295 -9.53012999999992871,124.47502000000008593 -9.53009999999994761,124.474770000000035 -9.530309999999929,124.47448000000008506 -9.53094999999996162,124.47436999900003229 -9.53128000099997053,124.47429000000011001 -9.5313499999999749,124.47416000000009717 -9.53136999999998125,124.47395000000005894 -9.53129999999993061,124.47387000000003354 -9.5312699999999495,124.47367000000008375 -9.53110999999995556,124.4735800000000836 -9.53092999999995527,124.47356000000002041 -9.53068999999993594,124.4736200000000963 -9.53047999999995454,124.47388000000000829 -9.53007999999994126,124.47396000000003369 -9.52990999999997257,124.47396000000003369 -9.52981999999997242,124.47398000000009688 -9.52957999999995309,124.4735400000000709 -9.52854999999993879,124.47344000000009601 -9.52834999999993215,124.47322364586182175 -9.52812643405711057,124.47532132536767335 -9.52907982941325038,124.47745955803344486 -9.52943752022293289,124.47970283349438603 -9.52869857213141636,124.48086901136510107 -9.5267008641669424,124.48093510363062819 -9.52325709757940153,124.48175968886974374 -9.5209078599345407,124.48406358804935223 -9.52017880543918871,124.48699819695394808 -9.52041916360651364,124.4896375083612412 -9.52181144953004299,124.49341560992519362 -9.52527133496215406,124.49621593641846573 -9.52947770590411558,124.49919045238515025 -9.53270365192234159,124.50144746838698495 -9.5339022946556522,124.50106001576659764 -9.53498023619202506,124.50226825092032357 -9.53560784159570929,124.50208836627982123 -9.53424265892485501,124.5036723211812415 -9.53508385634256861,124.50792638367799725 -9.53573764571800631,124.51137508450283065 -9.535069875959584,124.51340562651024868 -9.53283852086795314,124.51404791155664498 -9.53055400566170086,124.51326470700459481 -9.52687583564247298,124.51132816755384169 -9.52232551563021978,124.50917914810398202 -9.51732718283207468,124.50874635736144569 -9.51440584386754296),(124.54628569984215858 -9.54801025963806538,124.54571076490148585 -9.54580087405478395,124.54232552428427994 -9.54537707612212927,124.54412215485253057 -9.54660034649451994,124.54485598369545585 -9.54764842790609336,124.54628569984215858 -9.54801025963806538),(124.51664129546621496 -9.53649374356174384,124.51615318195202065 -9.53536890072392218,124.51457545542264427 -9.53613465723283227,124.51664129546621496 -9.53649374356174384),(124.5337092858644894 -9.53649374356174384,124.53340177846268944 -9.53541361766381712,124.53261402548160675 -9.53619045865678849,124.5337092858644894 -9.53649374356174384),(124.48070868410145806 -9.53117829725506738,124.48040117669965809 -9.53009815452846887,124.47961342371841909 -9.53087500762465822,124.48070868410145806 -9.53117829725506738),(124.48879352165852197 -9.53295012189262359,124.48845103347355234 -9.53151603040759809,124.48564133091414874 -9.53057177179669246,124.48395945705296128 -9.531567344621374,124.48755271818944834 -9.53240194299954879,124.48879352165852197 -9.53295012189262359),(124.52831939415983697 -9.53117829725506738,124.52801188675803701 -9.53009815452846887,124.52722413377675537 -9.53087500762465822,124.52831939415983697 -9.53117829725506738),(124.52921770944388413 -9.53295012189262359,124.52891020204209838 -9.53186998477451475,124.52812244906093042 -9.53264683383704892,124.52921770944388413 -9.53295012189262359),(124.49238678279508008 -9.53560784159570929,124.49073536633997605 -9.53349792140385688,124.48930049628467032 -9.5350908120534239,124.49238678279508008 -9.53560784159570929),(124.48789520637447481 -9.54003732841202634,124.48820271377627478 -9.54111743966385539,124.48899046675748536 -9.54034060989554611,124.48789520637447481 -9.54003732841202634,124.48758769897267484 -9.53895721373820038,124.48679994599143583 -9.53973404665874547,124.48789520637447481 -9.54003732841202634),(124.52203118717100949 -9.5409232188701143,124.52172367976922374 -9.53984310700297478,124.52093592678798473 -9.54061993790493723,124.52203118717100949 -9.5409232188701143),(124.48789520637447481 -9.54623851326505424,124.48825502046456393 -9.54825167883297077,124.48906273113399834 -9.5467311946389195,124.48789520637447481 -9.54623851326505424,124.48789520637447481 -9.545352636623333,124.48699689109027133 -9.545352636623333,124.48629116201438194 -9.54397688466540828,124.48430194523793091 -9.54358087643032782,124.48370625759118013 -9.54281978667329867,124.47762239759109093 -9.54193319823120234,124.48036685386225031 -9.54421836078825869,124.48430194523793091 -9.54358087643032782,124.4850076743138203 -9.54495662998700212,124.48699689109027133 -9.545352636623333,124.48699689109027133 -9.54623851326505424,124.48789520637447481 -9.54623851326505424),(124.49418341336330229 -9.54269499287948797,124.49369529984907956 -9.54157017049974421,124.49211757331960371 -9.54233591308173068,124.49418341336330229 -9.54269499287948797),(124.50047162035214399 -9.545352636623333,124.49998350683792125 -9.54422782301531747,124.49840578030841698 -9.54499355962590101,124.50047162035214399 -9.545352636623333),(124.51304803432974211 -9.54712438760336468,124.51210094881587054 -9.54409983961368091,124.51082752220257532 -9.54644819491140595,124.51304803432974211 -9.54712438760336468),(124.53101434001220582 -9.54889612936887389,124.53058859427353866 -9.54813018525278245,124.52736888184504949 -9.54681073082109677,124.52807858600989732 -9.54850872385270222,124.53101434001220582 -9.54889612936887389),(124.54269243870568573 -9.55155372473608644,124.54056327138225413 -9.54936836879779349,124.53776069656848335 -9.55060427694941971,124.54269243870568573 -9.55155372473608644),(124.53640423171685825 -9.55243958524943082,124.53579554964132114 -9.55129998020811222,124.5333993659948959 -9.55205456278387999,124.53640423171685825 -9.55243958524943082))'
# Create layer
layer = QgsVectorLayer('Polygon', 'poly' , "memory")
pr = layer.dataProvider()
# Create first polygon
polygon_1 = QgsFeature()
polygon_geometry_1 = QgsGeometry.fromWkt(poly_1_wkt)
polygon_1.setGeometry(polygon_geometry_1)
pr.addFeatures([polygon_1])
polygon_2 = QgsFeature()
polygon_geometry_2 = QgsGeometry.fromWkt(poly_2_wkt)
polygon_2.setGeometry(polygon_geometry_2)
pr.addFeatures([polygon_2])
polygon_3 = QgsFeature()
polygon_geometry_3 = QgsGeometry.fromWkt(poly_3_wkt)
polygon_3.setGeometry(polygon_geometry_3)
pr.addFeatures([polygon_3])
layer.updateExtents()
QgsMapLayerRegistry.instance().addMapLayers([layer])
polygon_geometries = [polygon_geometry_1, polygon_geometry_2, polygon_geometry_3]
for i in range(len(polygon_geometries)):
print 'isMultipart: ', i + 1, polygon_geometries[i].isMultipart()
for i in range(len(polygon_geometries)):
for j in range(len(polygon_geometries)):
if i == j:
continue
print 'symDifference %s to %s' % (i + 1, j + 1)
temp = polygon_geometries[i].symDifference(polygon_geometries[j])
if not temp:
print 'None'
else:
print 'Not None'
# print temp.boundingBox().asWktPolygon()
| 1,371.933333
| 20,772
| 0.87957
| 5,818
| 61,737
| 9.325541
| 0.186662
| 0.005161
| 0.005419
| 0.004202
| 0.917373
| 0.91682
| 0.91682
| 0.915678
| 0.915678
| 0.915678
| 0
| 0.886708
| 0.025204
| 61,737
| 44
| 20,773
| 1,403.113636
| 0.014839
| 0.001442
| 0
| 0.0625
| 0
| 0.09375
| 0.982577
| 0.958633
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.125
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
b5c8e31d2bcf7d38a562601791a233c9a9da9349
| 112,410
|
py
|
Python
|
Geocoding_QA.py
|
jida-wang/georeferencing-ICOLD-dams-and-reservoirs
|
8a59d4712241e5f53d52d8f0e1b92d5829ba3f22
|
[
"MIT"
] | 3
|
2021-03-04T06:46:56.000Z
|
2021-05-21T19:59:57.000Z
|
Geocoding_QA.py
|
surf-hydro/georeferencing-ICOLD-dams-and-reservoirs
|
0c95286618ede725c19498e4eaf3b6e36cc5f304
|
[
"MIT"
] | null | null | null |
Geocoding_QA.py
|
surf-hydro/georeferencing-ICOLD-dams-and-reservoirs
|
0c95286618ede725c19498e4eaf3b6e36cc5f304
|
[
"MIT"
] | 1
|
2021-12-16T02:33:32.000Z
|
2021-12-16T02:33:32.000Z
|
# [Description] ------------------------------
# Module name "Geocoding_ICOLD_QA.py"
# This module loops through all geocoding solutions for each ICOLD WRD record (output of Geocoding_ICOLD.py)
# and rank them based on their corresponding QA levels (see Table 5 in Wang et al. (2021). For each unique
# ICOLD WRD record, the geocoding solution with the best possible rank is then written to the output with
# the associated QA label.
# Please note that if the best possible solution does not meet the baseline QA scenario as defined in
# Table 5 of Wang et al. (2021), this ICOLD WRD record will be filtered out and will not be written to the
# output.
# Reference: Wang, J., Walter, B.A., Yao, F., Song, C., Ding, M., Maroof, M.A.S., Zhu, J., Fan, C., Xin, A.,
# McAlister, J.M., Sikder, M.S., Sheng, Y., Allen, G.H., Crétaux, J.-F., and Wada, Y., 2021. GeoDAR:
# Georeferenced global dam and reservoir database for bridging attributes and geolocations. Earth System
# Science Data, in review.
# Script written by: Jida Wang, Kansas State University.
# Last update: March 4, 2021
# Contact: jidawang@ksu.edu; gdbruins@ucla.edu
#---------------------------------------------
# [Setup] -----------------------------------
# Inputs
# 1. geocoded_ICOLD: full path of the geocoded ICOLD WRD.
# This file is the output from Geocoding_ICOLD.py, which is then further expanded with additional address
# components from another round of reverse geocoding before being used here. See Wang et al. (2021) for methods.
geocoded_ICOLD = r"...\Geocoded_ICOLD_revgeo.xlsx"
# 2. country_lookup_table: full path of the lookup table for country ISO 3166-2 codes (file provided).
country_lookup_table = r'...\Countries_lookup.csv'
# 3. US_state_lookup_table: full path of the lookup table for the ISO 3166-2 codes for US states (file provided).
US_state_lookup_table = r'...\Countries_lookup.csv'
# 4. Korea_state_lookup_table: full path of the lookup table for South Korean provinces. Some of them are
# spelled differently in between ICOLD WRD and Google Maps.
Korea_state_lookup_table = r'...\Countries_lookup.csv'
# 5. geocoding_key: user-specific Google Maps API key.
# The API key can be created by following the instruction below:
# https://developers.google.com/maps/documentation/geocoding/get-api-key
geocoding_key = 'Google-Maps-API-Key'
# 6. similarity_threshold: numeric value for the minimum similarity score between two sequences (such as
# dam names from ICOLD WRD and the regional register) that were considered to be equivalent.
similarity_threshold = 5.0/6.0 #close to 85%, which is slightly more lenient than that used for geo-matching
# considering that the spelling variation in WRD and Google Maps (in different regions) could be more evident
# and the outputs from the geocoding API have already gone through a similarity measure.
# Output
# geocoded_ICOLD_QA: full path of the geocoded WRD records after QA filtering. If there are multiple geocoding
# solutions for the same original WRD record in geocoded_ICOLD, the solution with the best possible QA ranking
# will be selected. If the best possible QA ranking does not satisfy the minimum baseline QA scenario (see
# Table 5 in Wang et al. (2021)), this WRD record will not be written to the output.
geocoded_ICOLD_QA = r"...\Geocoded_ICOLD_QA.xlsx"
#---------------------------------------------
# [Script] -----------------------------------
# Import built-in functions and tools
import http, urllib, csv, json, unicodedata, sys, datetime, xlsxwriter, openpyxl
import statistics
from statistics import stdev
from difflib import SequenceMatcher
# Import customized functions (see Preparation and descriptions within "Georeferencing_functions.py").
from Georeferencing_functions import remove_accents, similar_v2, damname_similar_v2
print("----- Module Started -----")
print(datetime.datetime.now())
# Read country names and ISO codes
country_ISO_array = []
country_NAME_array = []
country_NAME_array_no_accent = []
with open(country_lookup_CSV, "r") as csvinput:
for row in csv.reader(csvinput, delimiter=','):
country_ISO_array.append((row[1]).lower().strip())
country_NAME_array.append((row[6]).lower().strip())
country_NAME_array_no_accent.append(remove_accents((row[6]).lower().strip())) #ICOLD NAMES
# Read US state names and ISO codes
state_ISO_array = []
state_NAME_array = []
with open(US_state_lookup_table, "r") as csvinput:
for row in csv.reader(csvinput, delimiter=','):
state_ISO_array.append((row[0]).lower().strip())
state_NAME_array.append((row[2]).lower().strip())
# Read names of South Korean provices used in ICOLD WRD and Google Maps
Korea_states_ICOLD = []
Korea_states_Google = []
with open(Korea_state_lookup_table, "r") as csvinput:
for row in csv.reader(csvinput, delimiter=','):
Korea_states_ICOLD.append((row[0]).lower().strip())
Korea_states_Google.append((row[1]).lower().strip())
# Define input spreadsheet (geocoded WRD) and output spreadsheets. ------------------------------------------
infile_obj = openpyxl.load_workbook(geocoded_ICOLD)
infile_sheet = infile_obj.active
outfile_obj = xlsxwriter.Workbook(geocoded_ICOLD_QA)
outfile_sheet = outfile_obj.add_worksheet("Geocoded-WRD-QA")
# Read original WRD records and their IDs (ICOLDIDs)
infile_rows = []
infile_ICOLDIDs = []
for each_row in infile_sheet:
row = []
for cell in each_row:
if cell.value == None:
row.append('')
else:
row.append(str(cell.value))
infile_rows.append(row)
infile_ICOLDIDs.append((row[0]).lower().strip())
# Loop through each geocoded ICOLD WRD record and determine their QA rank.
considered_IDs = [] # Initiate an array that will be gradually expanded by ICOLD IDs that have been evaluated.
outfile_sheet_row = 0
for ii in range(0, len(infile_ICOLDIDs)):
row = infile_rows[ii] # Read this ICOLD WRD record
this_ICOLDID = infile_ICOLDIDs[ii] # Retrieve this ICOLD WRD ID
if ii == 0: #header
# Write header to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(row + ['QA_rank']))
outfile_sheet_row = outfile_sheet_row + 1
else:
# Retrieve WRD attributes.
dam_name = row[23].lower().strip()
dam_other_name = row[26].lower().strip()
reservoir_name = row[31].lower().strip()
state_province = row[38].lower().strip()
town_original = row[24].lower().strip()
country = row[10].lower().strip()
country_index = [i for i, x in enumerate(country_NAME_array) if x == country]
this_country_ISO = country_ISO_array[country_index[0]]
if (this_ICOLDID not in considered_IDs): # If this WRD record has not been evaluated.
considered_IDs.append(this_ICOLDID)
# Modify country names for certain districts/territories which are considered as a country in Google Maps but part of another country in ICOLD WRD.
if state_province == 'taiwan': # In this example, Google considers Taiwan as a country, but ICOLD considers it as a province of China.
this_country_ISO = 'tw' # Unify the country name based on Google standard just for consistency.
country = 'taiwan'
# Similarly, unify the following to Google standard.
if state_province == 'hongkong':
this_country_ISO = 'hk'
country = 'hongkong'
if state_province == 'faroe islands':
this_country_ISO = 'fo'
country = 'faroe islands'
if state_province == 'greenland':
this_country_ISO = 'gl'
country = 'greenland'
if state_province == 'puerto rico':
this_country_ISO = 'pr'
country = 'puerto rico'
if state_province == 'reunion':
this_country_ISO = 're'
country = 'réunion'
if state_province == 'guadeloupe':
this_country_ISO = 'gp'
country = 'guadeloupe'
if state_province == 'martinique':
this_country_ISO = 'mq'
country = 'martinique'
if state_province == 'mayotte':
this_country_ISO = 'yt'
country = 'mayotte'
if state_province == 'isle of man':
this_country_ISO = 'im'
country = 'isle of man'
if state_province == 'jersey':
this_country_ISO = 'je'
country = 'jersey'
if state_province == 'guernsey':
this_country_ISO = 'gg'
country = 'guernsey'
if state_province == 'guam':
this_country_ISO = 'gu'
country = 'guam'
administrative_components = 'country:' + urllib.parse.quote(this_country_ISO) # Format the country component
# Modify state/province names in the following regions so that their spellings are more consistent with those in Google Maps.
if len(state_province)>=4:
if state_province[-4:] == '.ssr': # Indicating a state in the former Soviet Union
state_province = '' # Now an independent country
if state_province == 'former yugoslav rep. of macedonia' or state_province == 'mold.' or state_province == 'tadjik.' or \
state_province == 'ukr.' or state_province == 'ukraine' or state_province == 'uzbek.' or \
state_province == 'argentina / uruguay' or state_province == 'argentina/paraguay' or state_province == 'zambia / zimbabwe':
state_province = '' # Other similiar sitautions and probably mistakes in state/province assignments.
if state_province == 'daghest.': # Use full spelling
state_province = 'daghestan'
if '/' in state_province: # If containing two states, use the first state
state_province = (state_province.split('/')[0]).strip()
if country == 'ireland': # delete 'co.'
state_province = state_province[3:len(state_province)]
if country == 'finland':
# Provinces in WRD: ['e', 'm', 'n', 's', 'se', 'sw', 'w']. Not sure what they mean (Google does not use such provinces).
state_province = ''
if country == 'chile':
# Provinces in WRD: ['atamaca', 'i región', 'ii región', 'iii región', 'iv región', 'región metropolitana', 'v región', 'vi región', 'vii región', 'viii región']
if state_province == 'i región':
state_province = 'tarapacá region'
if state_province == 'ii región':
state_province = 'antofagasta region'
if state_province == 'iii región' or state_province == 'atacama':
state_province = 'atacama region'
if state_province == 'iv región':
state_province = 'coquimbo region'
# 'región metropolitana' is consistent.
if state_province == 'v región':
state_province = 'valparaiso region'
if state_province == 'vi región':
state_province = "o'higgins region"
if state_province == 'vii región':
state_province = "maule region"
if state_province == 'viii región':
state_province = "bío bío region"
if country == 'canada':
# Provinces in WRD: ['alta', 'bc', 'man', 'nb', 'nb,maine,usa', 'nfld', 'ns', 'nwt', 'ont', 'ont/que', 'qc', 'qc/ont', 'sask', 'yukon']
if state_province == 'alta':
state_province = 'ab'
if state_province == 'man':
state_province = 'mb'
if state_province == 'nfld':
state_province = 'nl'
if state_province == 'nwt':
state_province = 'nt'
if state_province == 'ont':
state_province = 'on'
#if state_province == 'ont/que':
# state_province = 'on'
#if state_province == 'qc/ont':
# state_province = 'qc'
if state_province == 'sask':
state_province = 'sk'
if state_province == 'yukon':
state_province = 'yt'
if state_province == 'nb,maine,usa':
state_province = 'nb'
if country == 'sri lanka':
# Provinces in WRD: ['', 'cp', 'ep', 'ncp', 'np', 'nwp', 'sab.p', 'sp', 'up', 'uva', 'wp']
if state_province == 'cp':
state_province = 'central province'
if state_province == 'ep':
state_province = 'eastern province'
if state_province == 'ncp':
state_province = 'north central province'
if state_province == 'np':
state_province = 'north province'
if state_province == 'nwp':
state_province = 'north western province'
if state_province == 'sab.p':
state_province = 'sabaragamuwa province'
if state_province == 'sp':
state_province = 'southern province'
if state_province == 'up':
state_province = 'uva province'
if state_province == 'uva':
state_province = 'uva province'
if state_province == 'wp':
state_province = 'western province'
if country == 'botswana':
# Provinces in WRD: ['central', 'kgatleng', 'ne', 'se'], in Google ['central district', 'kgatleng district', 'north-east district', 'south-east district']
if state_province == 'central':
state_province = 'central district'
if state_province == 'kgatleng':
state_province = 'kgatleng district'
if state_province == 'ne':
state_province = 'north-east district'
if state_province == 'se':
state_province = 'south-east district'
if country == 'australia':
# Provinces in WRD: ['australian capital territory', 'new south wales', 'new south west australiales', 'northern territory', \
#'nothern territory', 'queensland', 'south australia', 'tasmania', 'victoria', 'west australia'] #corrected below.
if state_province == 'new south west australiales':
state_province = 'new south wales'
if state_province == 'nothern territory':
state_province = 'northern territory'
if state_province == 'west australia':
state_province = 'western australia'
# Invalidate state/province names in WRD if the names appear to be country names (except the situations in the IF statement)
if state_province != '':
if state_province != 'taiwan' and state_province != 'hongkong' and state_province != 'faroe islands' \
and state_province != 'greenland' and state_province != 'puerto rico' \
and state_province != 'reunion' and state_province != 'guadeloupe' and state_province != 'martinique' and state_province != 'mayotte' \
and state_province != 'isle of man' and state_province != 'jersey' and state_province != 'guernsey' and state_province != 'guam' \
and ((state_province == 'niger' and this_country_ISO == 'ng') == False) and ((state_province == 'luxembourg' and this_country_ISO == 'be') == False) \
and ((state_province == 'georgia' and this_country_ISO == 'us') == False): # For the last case, "Georgia" can also be a country.
check_if_state_is_a_country_name = [i for i, x in enumerate(country_NAME_array_no_accent) if x == remove_accents(state_province)]
if len(check_if_state_is_a_country_name) > 0:
state_province = ''
# Modify province names in South Korea
if state_province != '' and (this_country_ISO == 'kr' or this_country_ISO == 'kp'):
state_index = [i for i, x in enumerate(Korea_states_ICOLD) if x == state_province]
state_province = Korea_states_Google[state_index[0]]
# Use ISO codes for US states in order to increase geocoding accuracy.
state_province_addr = state_province
if this_country_ISO == 'us':
state_index = [i for i, x in enumerate(state_NAME_array) if x == state_province]
if len(state_index)>0:
state_province_addr = state_ISO_array[state_index[0]]
# Formulate address inputs for geocoding (see Table 4 in Wang et al. (2021))
reservoir_norm = 1
if len(reservoir_name)>10:
if reservoir_name[-10:] == ' reservoir' or reservoir_name[:10] == 'reservoir ' or (' reservoir ' in reservoir_name):
reservoir_norm = 0
elif reservoir_name[-5:] == ' lake' or reservoir_name[:5] == 'lake ' or (' lake ' in reservoir_name):
reservoir_norm = 0
elif len(reservoir_name)>5:
if reservoir_name[-5:] == ' lake' or reservoir_name[:5] == 'lake ' or (' lake ' in reservoir_name):
reservoir_norm = 0
dam_norm = 1
if len(dam_name)>4:
if dam_name[-4:] == ' dam' or dam_name[:4] == 'dam ' or (' dam ' in dam_name):
dam_norm = 0
otherdam_norm = 1
if len(dam_other_name)>4:
if dam_other_name[-4:] == ' dam' or dam_other_name[:4] == 'dam ' or (' dam ' in dam_other_name):
otherdam_norm = 0
# Generate the address list (which contains different scenarios of formatted addresses)
Sc_list = []
if dam_name == '' and dam_other_name == '': # Only reservoir name exists
if reservoir_norm == 0:
if state_province != '':
Sc_list.append([reservoir_name, state_province_addr])
Sc_list.append([reservoir_name])
else: # Meaning there is no 'reservoir' in the name (reservoir_norm == 1)
if state_province != '':
Sc_list.append([reservoir_name+' reservoir', state_province_addr])
Sc_list.append([reservoir_name+' reservoir'])
if state_province != '':
Sc_list.append([reservoir_name+' dam', state_province_addr])
Sc_list.append([reservoir_name+' dam'])
if state_province != '':
Sc_list.append([reservoir_name+' lake', state_province_addr])
Sc_list.append([reservoir_name+' lake'])
Sc_list.append([reservoir_name])
elif dam_name == '' and reservoir_name == '': # Only dam_other_name exists
if otherdam_norm == 0:
if state_province != '':
Sc_list.append([dam_other_name, state_province_addr])
Sc_list.append([dam_other_name])
else:
if state_province != '':
Sc_list.append([dam_other_name+' dam', state_province_addr])
Sc_list.append([dam_other_name+' dam'])
if state_province != '':
Sc_list.append([dam_other_name+' reservoir', state_province_addr])
Sc_list.append([dam_other_name+' reservoir'])
if state_province != '':
Sc_list.append([dam_other_name+' lake', state_province_addr])
Sc_list.append([dam_other_name+' lake'])
Sc_list.append([dam_other_name])
elif dam_other_name == '' and reservoir_name == '': # Only dam_name exists
if dam_norm == 0:
if state_province != '':
Sc_list.append([dam_name, state_province_addr])
Sc_list.append([dam_name])
else:
if state_province != '':
Sc_list.append([dam_name+' dam', state_province_addr])
Sc_list.append([dam_name+' dam'])
if state_province != '':
Sc_list.append([dam_name+' reservoir', state_province_addr])
Sc_list.append([dam_name+' reservoir'])
if state_province != '':
Sc_list.append([dam_name+' lake', state_province_addr])
Sc_list.append([dam_name+' lake'])
Sc_list.append([dam_name])
elif dam_name != '' and dam_other_name != '' and reservoir_name == '':
if dam_norm == 0:
if state_province != '':
Sc_list.append([dam_name, state_province_addr])
Sc_list.append([dam_name])
else:
if state_province != '':
Sc_list.append([dam_name+' dam', state_province_addr])
Sc_list.append([dam_name+' dam'])
if otherdam_norm == 0:
if state_province != '':
Sc_list.append([dam_other_name, state_province_addr])
Sc_list.append([dam_other_name])
else:
if state_province != '':
Sc_list.append([dam_other_name+' dam', state_province_addr])
Sc_list.append([dam_other_name+' dam'])
if dam_norm == 1:
if state_province != '':
Sc_list.append([dam_name+' reservoir', state_province_addr])
Sc_list.append([dam_name+' reservoir'])
if otherdam_norm == 1:
if state_province != '':
Sc_list.append([dam_other_name+' reservoir', state_province_addr])
Sc_list.append([dam_other_name+' reservoir'])
if dam_norm == 1:
if state_province != '':
Sc_list.append([dam_name+' lake', state_province_addr])
Sc_list.append([dam_name+' lake'])
if otherdam_norm == 1:
if state_province != '':
Sc_list.append([dam_other_name+' lake', state_province_addr])
Sc_list.append([dam_other_name+' lake'])
if dam_norm == 1:
Sc_list.append([dam_name])
if otherdam_norm == 1:
Sc_list.append([dam_other_name])
elif dam_name != '' and dam_other_name == '' and reservoir_name != '':
if dam_norm == 0:
if state_province != '':
Sc_list.append([dam_name, state_province_addr])
Sc_list.append([dam_name])
else:
if state_province != '':
Sc_list.append([dam_name+' dam', state_province_addr])
Sc_list.append([dam_name+' dam'])
if reservoir_norm == 0:
if state_province != '':
Sc_list.append([reservoir_name, state_province_addr])
Sc_list.append([reservoir_name])
else:
if state_province != '':
Sc_list.append([reservoir_name+' reservoir', state_province_addr])
Sc_list.append([reservoir_name+' reservoir'])
if dam_norm == 1:
if state_province != '':
Sc_list.append([dam_name+' reservoir', state_province_addr])
Sc_list.append([dam_name+' reservoir'])
if reservoir_norm == 1:
if state_province != '':
Sc_list.append([reservoir_name+' dam', state_province_addr])
Sc_list.append([reservoir_name+' dam'])
if state_province != '':
Sc_list.append([reservoir_name+' lake', state_province_addr])
Sc_list.append([reservoir_name+' lake'])
if dam_norm == 1:
if state_province != '':
Sc_list.append([dam_name+' lake', state_province_addr])
Sc_list.append([dam_name+' lake'])
Sc_list.append([dam_name])
if reservoir_norm == 1:
Sc_list.append([reservoir_name])
elif dam_name == '' and dam_other_name != '' and reservoir_name != '':
if otherdam_norm == 0:
if state_province != '':
Sc_list.append([dam_other_name, state_province_addr])
Sc_list.append([dam_other_name])
else:
if state_province != '':
Sc_list.append([dam_other_name+' dam', state_province_addr])
Sc_list.append([dam_other_name+' dam'])
if reservoir_norm == 0:
if state_province != '':
Sc_list.append([reservoir_name, state_province_addr])
Sc_list.append([reservoir_name])
else:
if state_province != '':
Sc_list.append([reservoir_name+' reservoir', state_province_addr])
Sc_list.append([reservoir_name+' reservoir'])
if otherdam_norm == 1:
if state_province != '':
Sc_list.append([dam_other_name+' reservoir', state_province_addr])
Sc_list.append([dam_other_name+' reservoir'])
if reservoir_norm == 1:
if state_province != '':
Sc_list.append([reservoir_name+' dam', state_province_addr])
Sc_list.append([reservoir_name+' dam'])
if state_province != '':
Sc_list.append([reservoir_name+' lake', state_province_addr])
Sc_list.append([reservoir_name+' lake'])
if otherdam_norm == 1:
if state_province != '':
Sc_list.append([dam_other_name+' lake', state_province_addr])
Sc_list.append([dam_other_name+' lake'])
Sc_list.append([dam_other_name])
if reservoir_norm == 1:
Sc_list.append([reservoir_name])
elif dam_name != '' and dam_other_name != '' and reservoir_name != '':
if dam_norm == 0:
if state_province != '':
Sc_list.append([dam_name, state_province_addr])
Sc_list.append([dam_name])
else:
if state_province != '':
Sc_list.append([dam_name+' dam', state_province_addr])
Sc_list.append([dam_name+' dam'])
if otherdam_norm == 0:
if state_province != '':
Sc_list.append([dam_other_name, state_province_addr])
Sc_list.append([dam_other_name])
else:
if state_province != '':
Sc_list.append([dam_other_name+' dam', state_province_addr])
Sc_list.append([dam_other_name+' dam'])
if reservoir_norm == 0:
if state_province != '':
Sc_list.append([reservoir_name, state_province_addr])
Sc_list.append([reservoir_name])
else:
if state_province != '':
Sc_list.append([reservoir_name+' reservoir', state_province_addr])
Sc_list.append([reservoir_name+' reservoir'])
if dam_norm == 1:
if state_province != '':
Sc_list.append([dam_name+' reservoir', state_province_addr])
Sc_list.append([dam_name+' reservoir'])
if otherdam_norm == 1:
if state_province != '':
Sc_list.append([dam_other_name+' reservoir', state_province_addr])
Sc_list.append([dam_other_name+' reservoir'])
if reservoir_norm == 1:
if state_province != '':
Sc_list.append([reservoir_name+' dam', state_province_addr])
Sc_list.append([reservoir_name+' dam'])
if state_province != '':
Sc_list.append([reservoir_name+' lake', state_province_addr])
Sc_list.append([reservoir_name+' lake'])
if dam_norm == 1:
if state_province != '':
Sc_list.append([dam_name+' lake', state_province_addr])
Sc_list.append([dam_name+' lake'])
if otherdam_norm == 1:
if state_province != '':
Sc_list.append([dam_other_name+' lake', state_province_addr])
Sc_list.append([dam_other_name+' lake'])
if dam_norm == 1:
Sc_list.append([dam_name])
if otherdam_norm == 1:
Sc_list.append([dam_other_name])
if reservoir_norm == 1:
Sc_list.append([reservoir_name])
# Filter geocoding solutions for this ICOLD ID (WRD record)
# C1 (as in Table 5, Wang et al. (2021)): 1, 1.1, 1.2, 1.5 (here below)
# C2: 2, 2.5
# C3: 3, 3.5, 4, 4.5
# C4: 5, 5.5, 6, 6.5
# C5: 7, 7.5, 8, 8.5
if this_country_ISO != 'cn':
# If the country is not China, use a slightly adjusted order of the address scenario in QA ranking.
# Here we increase the iteration level of country name from level 3 (as used in geocoding) now to
# level 1. In other words, for each comibination of dam/reservoir name and state/province, we first
# include and then exclude the country name. This seems to lead to a more accurate geocoding result
# in a faster way. This decision was based on experimentations, and may not always reflect the cases
# all the time. Such details can be adjusted based on user discretion, and may not affect too much
# the overall result and conclusion.
Sc_list_cleaned = []
for this_scenario in Sc_list:
text_encoded_addr = ''
# Add ", " between each element to generate encoded_addr (searching SQL)
for this_element in this_scenario:
if this_element != '': # If this element is not blank
text_encoded_addr = text_encoded_addr + this_element + ', '
text_encoded_addr = text_encoded_addr[0 : len(text_encoded_addr)-2] # Delete the ending ', '
Sc_list_cleaned.append(text_encoded_addr)
# Retrieve all geocoded WRD records that share the same ICOLDID (this_ICOLDID)
same_ICOLDID_indices = [i for i, x in enumerate(infile_ICOLDIDs) if x == this_ICOLDID]
# Retrieve geocoding information for these records
local_addresses = []
local_encoded_addresses = []
local_match = []
local_scenarios = []
local_geocoded_dam_name = []
for ID_index in same_ICOLDID_indices:
local_addresses.append(infile_rows[ID_index][61])
local_encoded_addresses.append(infile_rows[ID_index][62])
local_match.append((infile_rows[ID_index][82]).lower().strip())
local_scenarios.append((infile_rows[ID_index][83]).lower().strip())
local_geocoded_dam_name.append((infile_rows[ID_index][90]).lower().strip())
# Rank QA levels of each of the geocoded results associated with the same ICOLD ID, and write the best one to the output.
good_passed = 0 # "0" meaning the best possible rank has not been reached.
GOOD_ICOLDID_indices = [] # Array containing indices for this QA rank.
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
if state_province != '' and town_original != '':
QA_rank = [1]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country in-state in-town' or x == 'in-country in-state in-town-2' \
or x == 'in-country in-state-2 in-town' or x == 'in-country in-state-2 in-town-2']
elif state_province != '' and town_original == '':
QA_rank = [1.1]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country in-state unknown-town' or x == 'in-country in-state-2 unknown-town']
elif state_province == '' and town_original != '':
QA_rank = [1.1]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country unknown-state in-town' or x == 'in-country unknown-state in-town-2']
elif state_province == '' and town_original == '':
QA_rank = [1.2]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country unknown-state unknown-town']
else:
GOOD_ICOLDID_indices_2 = []
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
# Check if records for this QA_rank exists or not.
if len(GOOD_ICOLDID_indices) > 0: # Meaning this QA_rank exists.
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1) # To lower the rank a little.
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1: # Name matches
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with the best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [1.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country in-state in-town' or \
x == 'in-country in-state in-town-2' or \
x == 'in-country in-state-2 in-town' or \
x == 'in-country in-state-2 in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1: #name match exists
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [2]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country in-state out-town' or \
x == 'in-country in-state unknown-town' or \
x == 'in-country in-state-2 out-town' or \
x == 'in-country in-state-2 unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [2.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country in-state out-town' or \
x == 'in-country in-state unknown-town' or \
x == 'in-country in-state-2 out-town' or \
x == 'in-country in-state-2 unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [3]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state in-town' or \
x == 'in-country unknown-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [3.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state in-town' or \
x == 'in-country unknown-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [4]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state in-town' or \
x == 'in-country out-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [4.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state in-town' or \
x == 'in-country out-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached. --------------------------------
QA_rank = [5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state out-town' or \
x == 'in-country unknown-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [5.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state out-town' or \
x == 'in-country unknown-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [6]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state out-town' or \
x == 'in-country out-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [6.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state out-town' or \
x == 'in-country out-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [7]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:16] == 'unknown-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [7.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:16] == 'unknown-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [8]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:12] == 'out-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [8.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:12] == 'out-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
if '&components=country:' in local_encoded_addresses[GOOD_ICOLDID_index]:
GOOD_local_addresses_rank.append(rank_index[0])
else:
GOOD_local_addresses_rank.append(rank_index[0]+0.1)
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
# The remaining geocoded records (QA_rank = 9) are considered to be unsuccessful and errorneous.
# They will not participate into manual quality control (QC).
QA_rank = [9]
else:
# If the country is China, use the original address order (as below) in QA ranking.
Sc_list_1 = []
for Sc_list_unit in Sc_list:
Sc_list_1.append(Sc_list_unit)
Sc_list_1_len = len(Sc_list_1)
for this_Sc_unit in Sc_list_1:
Sc_list.append(this_Sc_unit)
Sc_list_cleaned = []
for here_i in range(len(Sc_list)):
text_encoded_addr = ''
this_scenario = Sc_list[here_i]
for this_element in this_scenario:
if this_element != '': # If this element is not blank
text_encoded_addr = text_encoded_addr + this_element + ', '
# Delete the ending ', '
text_encoded_addr = text_encoded_addr[0 : len(text_encoded_addr)-2]
if here_i < Sc_list_1_len:
encoded_addr = urllib.parse.quote(text_encoded_addr) + '&components=' + administrative_components
else:
encoded_addr = urllib.parse.quote(text_encoded_addr)
Sc_list_cleaned.append(encoded_addr)
same_ICOLDID_indices = [i for i, x in enumerate(infile_ICOLDIDs) if x == this_ICOLDID]
local_addresses = []
local_match = []
local_scenarios = []
local_geocoded_dam_name = []
for ID_index in same_ICOLDID_indices:
local_addresses.append(infile_rows[ID_index][62])
local_match.append((infile_rows[ID_index][82]).lower().strip())
local_scenarios.append((infile_rows[ID_index][83]).lower().strip())
local_geocoded_dam_name.append((infile_rows[ID_index][90]).lower().strip())
# Rank QA levels of each of the geocoded results associated with the same ICOLD ID, and write the best one to the output.
good_passed = 0 # "0" meaning the best possible rank has not been reached.
GOOD_ICOLDID_indices = [] # Array containing indices for this QA rank.
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
if state_province != '' and town_original != '':
QA_rank = [1]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country in-state in-town' or x == 'in-country in-state in-town-2' \
or x == 'in-country in-state-2 in-town' or x == 'in-country in-state-2 in-town-2']
elif state_province != '' and town_original == '':
QA_rank = [1.1]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country in-state unknown-town' or x == 'in-country in-state-2 unknown-town']
elif state_province == '' and town_original != '':
QA_rank = [1.1]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country unknown-state in-town' or x == 'in-country unknown-state in-town-2']
elif state_province == '' and town_original == '':
QA_rank = [1.2]
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x == 'in-country unknown-state unknown-town']
else:
GOOD_ICOLDID_indices_2 = []
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
# Check if records for this QA_rank exists or not.
if len(GOOD_ICOLDID_indices) > 0: # Meaning this QA_rank exists.
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1: # Name matches
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with the best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [1.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country in-state in-town' or \
x == 'in-country in-state in-town-2' or \
x == 'in-country in-state-2 in-town' or \
x == 'in-country in-state-2 in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1: #name match exists
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [2]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country in-state out-town' or \
x == 'in-country in-state unknown-town' or \
x == 'in-country in-state-2 out-town' or \
x == 'in-country in-state-2 unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [2.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country in-state out-town' or \
x == 'in-country in-state unknown-town' or \
x == 'in-country in-state-2 out-town' or \
x == 'in-country in-state-2 unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [3]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state in-town' or \
x == 'in-country unknown-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [3.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state in-town' or \
x == 'in-country unknown-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [4]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state in-town' or \
x == 'in-country out-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [4.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state in-town' or \
x == 'in-country out-state in-town-2']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached. --------------------------------
QA_rank = [5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state out-town' or \
x == 'in-country unknown-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [5.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country unknown-state out-town' or \
x == 'in-country unknown-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [6]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state out-town' or \
x == 'in-country out-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [6.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if \
x == 'in-country out-state out-town' or \
x == 'in-country out-state unknown-town']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [7]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:16] == 'unknown-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [7.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:16] == 'unknown-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [8]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'complete-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:12] == 'out-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
QA_rank = [8.5]
GOOD_ICOLDID_indices_1 = [i for i, x in enumerate(local_match) if x == 'partial-match']
GOOD_ICOLDID_indices_2 = [i for i, x in enumerate(local_scenarios) if x[0:12] == 'out-country ']
GOOD_ICOLDID_indices = list(set(GOOD_ICOLDID_indices_1) & set(GOOD_ICOLDID_indices_2))
if len(GOOD_ICOLDID_indices) > 0:
GOOD_local_addresses_rank = []
GOOD_local_dam_name_pass = []
for GOOD_ICOLDID_index in GOOD_ICOLDID_indices:
rank_index = [i for i, x in enumerate(Sc_list_cleaned) if x == local_addresses[GOOD_ICOLDID_index]]
GOOD_local_addresses_rank.append(rank_index[0])
GOOD_local_dam_name_pass.append(damname_similar_v2(similarity_threshold, dam_name, dam_other_name, reservoir_name, local_geocoded_dam_name[GOOD_ICOLDID_index], this_country_ISO))
# Rank the indices based on GOOD_local_addresses_rank
ranked_indices = [i[0] for i in sorted(enumerate(GOOD_local_addresses_rank), key=lambda x:x[1])]
if max(GOOD_local_dam_name_pass) == 1:
good_passed = 1
for this_rank_index in ranked_indices:
if GOOD_local_dam_name_pass[this_rank_index] == 1:
final_index = same_ICOLDID_indices[GOOD_ICOLDID_indices[this_rank_index]]
# Write the result with this best address ranking to the output
outfile_sheet.write_row(outfile_sheet_row, 0, tuple(infile_rows[final_index] + QA_rank))
outfile_sheet_row = outfile_sheet_row + 1
break
if good_passed == 0: # Best possible rank not yet reached.
# The remaining geocoded records (QA_rank = 9) are considered to be unsuccessful and errorneous.
# They will not participate into manual quality control (QC).
QA_rank = [9]
# Close files
outfile_obj.close() # Save the output
infile_obj.close() # Release the input
print("----- Module Completed -----")
print(datetime.datetime.now())
| 75.040053
| 215
| 0.538707
| 12,732
| 112,410
| 4.417766
| 0.048618
| 0.073924
| 0.085125
| 0.056323
| 0.817715
| 0.807083
| 0.801874
| 0.795509
| 0.792113
| 0.788913
| 0
| 0.012772
| 0.384957
| 112,410
| 1,497
| 216
| 75.09018
| 0.800772
| 0.118299
| 0
| 0.814132
| 0
| 0
| 0.053552
| 0.001314
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.149002
| 0.00384
| null | null | 0.003072
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
1fae8c06111a0c5b03ab60e9159af5bd93fd04d8
| 31,187
|
py
|
Python
|
tests/test_unused_import.py
|
semakaratas/unimport
|
7fa133a539bbb457f861b50379e9af87a11e1df0
|
[
"MIT"
] | null | null | null |
tests/test_unused_import.py
|
semakaratas/unimport
|
7fa133a539bbb457f861b50379e9af87a11e1df0
|
[
"MIT"
] | null | null | null |
tests/test_unused_import.py
|
semakaratas/unimport
|
7fa133a539bbb457f861b50379e9af87a11e1df0
|
[
"MIT"
] | null | null | null |
import codeop
import lib2to3.fixer_util
import lib2to3.pgen2.token
import lib2to3.pytree
import os
import pathlib
import re
import unittest
from unimport.session import Session
class UnusedTestCase(unittest.TestCase):
maxDiff = None
include_star_import = False
def setUp(self):
self.session = Session(include_star_import=self.include_star_import)
def assertUnimportEqual(self, source, expected_nused_imports):
self.session.scanner.run_visit(source)
self.assertEqual(
expected_nused_imports,
list(self.session.scanner.get_unused_imports()),
)
self.session.scanner.clear()
class TestBuiltin(UnusedTestCase):
include_star_import = True
def test_ConnectionError(self):
source = (
"from x.y import ConnectionError\n"
"try:\n"
" pass\n"
"except ConnectionError:\n"
" pass\n"
)
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
def test_ValueError(self):
source = "from x import ValueError\n" "print(ValueError)\n"
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
def test_builtins(self):
source = (
"from builtins import next, object, range\n"
"__all__ = ['next', 'object']\n"
"for i in range(8):\n"
" pass\n"
)
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
class TestUnusedImport(UnusedTestCase):
include_star_import = True
def test__all__from_import(self):
# in this case this import is used
source = (
"from codeop import compile_command\n"
"__all__ = ['compile_command']"
)
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
def test__all__star(self):
# in this case this import is used
source = "from os import *\n" "__all__ = ['walk']"
expected_nused_imports = [
{
"lineno": 1,
"module": os,
"modules": ["__all__", "walk"],
"name": "os",
"star": True,
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test__all__star_unused(self):
# in this case this import is unused
source = "from os import *\n" "__all__ = ['test']"
expected_nused_imports = [
{
"lineno": 1,
"module": os,
"modules": ["__all__"],
"name": "os",
"star": True,
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_all_bin_op(self):
# NOTE no support.
for op in "/*-":
source = f"from os import *\n" "__all__ = ['w'{op}'alk']"
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
def test_all_list_comprehension(self):
# NOTE no support.
source = (
"from os import *\n"
"__all__ = [expression for item in ['os', 'walk']]"
)
expected_nused_imports = [
{
"lineno": 1,
"module": os,
"modules": ["__all__"],
"name": "os",
"star": True,
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_comma(self):
source = "from os import (\n" " waitpid,\n" " scandir,\n" ")\n"
expected_nused_imports = [
{
"lineno": 1,
"module": os,
"modules": [],
"name": "waitpid",
"star": False,
},
{
"lineno": 1,
"module": os,
"modules": [],
"name": "scandir",
"star": False,
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_module_used(self):
source = (
"from pathlib import Path\n" "CURRENT_DIR = Path('.').parent\n"
)
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
def test_module_unused(self):
source = "from pathlib import Path"
expected_nused_imports = [
{
"lineno": 1,
"module": pathlib,
"modules": [],
"name": "Path",
"star": False,
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_unknown_module_used(self):
source = "import x.y\n" "CURRENT_DIR = x.y('.').parent\n"
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
def test_unknown_module_unused(self):
source = (
"import x.y\n" "import d.f.a.s\n" "CURRENT_DIR = x.y('.').parent\n"
)
expected_nused_imports = [
{
"lineno": 2,
"module": None,
"modules": [],
"name": "d.f.a.s",
"star": False,
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_import_in_function(self):
source = (
"import t\n"
"from x import y, z\n\n"
"def function(f=t):\n"
" import x\n"
" return f\n"
"from i import t, ii\n"
"print(t)\n"
)
expected_nused_imports = [
{
"lineno": 2,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 7,
"name": "ii",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_import_after_usage(self):
source = "def function():\n" " print(os)\n" "import os\n"
expected_nused_imports = []
self.assertUnimportEqual(source, expected_nused_imports)
class TestStarImport(UnusedTestCase):
include_star_import = True
def test_unused(self):
source = "from os import *\n"
expected_nused_imports = [
{
"lineno": 1,
"module": os,
"name": "os",
"star": True,
"modules": [],
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_used(self):
source = "from os import *\n" "print(walk)\n"
expected_nused_imports = [
{
"lineno": 1,
"name": "os",
"star": True,
"module": os,
"modules": ["walk"],
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_used_and_unused(self):
source = (
"from lib2to3.fixer_util import *\n"
"from lib2to3.pytree import *\n"
"from lib2to3.pgen2 import token\n"
"BlankLine, FromImport, Leaf, Newline, Node\n"
"token.NAME, token.STAR\n"
)
expected_nused_imports = [
{
"lineno": 1,
"module": lib2to3.fixer_util,
"name": "lib2to3.fixer_util",
"star": True,
"modules": [
"BlankLine",
"FromImport",
"Leaf", #
"Newline",
"Node", #
"token", #
"token.NAME", #
"token.STAR", #
],
},
{
"lineno": 2,
"module": lib2to3.pytree,
"name": "lib2to3.pytree",
"star": True,
"modules": ["Leaf", "Node"],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_used_and_unused_2(self):
source = (
"from lib2to3.fixer_util import *\n"
"from lib2to3.pytree import *\n"
"from lib2to3.pgen2.token import *\n"
"BlankLine, FromImport, Leaf, Newline, Node\n"
"NAME, STAR\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "lib2to3.fixer_util",
"module": lib2to3.fixer_util,
"star": True,
"modules": [
"BlankLine",
"FromImport",
"Leaf", #
"Newline",
"Node", #
],
},
{
"lineno": 2,
"name": "lib2to3.pytree",
"module": lib2to3.pytree,
"star": True,
"modules": ["Leaf", "Node"],
},
{
"lineno": 3,
"name": "lib2to3.pgen2.token",
"star": True,
"module": lib2to3.pgen2.token,
"modules": ["NAME", "STAR"],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
class TestDuplicate(UnusedTestCase):
def test__all__(self):
source = (
"from codeop import compile_command\n"
"import compile_command\n"
"__all__ = ['compile_command']"
)
expected_nused_imports = [
{
"lineno": 1,
"module": codeop,
"modules": [],
"name": "compile_command",
"star": False,
}
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_full_unused(self):
source = (
"from x import y\n"
"from x import y\n"
"from t import x\n"
"import re\n"
"import ll\n"
"import ll\n"
"from c import e\n"
"import e\n"
)
expected_nused_imports = [
{
"lineno": 1,
"module": None,
"modules": [],
"name": "y",
"star": False,
},
{
"lineno": 2,
"module": None,
"modules": [],
"name": "y",
"star": False,
},
{
"lineno": 3,
"module": None,
"modules": [],
"name": "x",
"star": False,
},
{
"lineno": 4,
"module": re,
"modules": [],
"name": "re",
"star": False,
},
{
"lineno": 5,
"module": None,
"modules": [],
"name": "ll",
"star": False,
},
{
"lineno": 6,
"module": None,
"modules": [],
"name": "ll",
"star": False,
},
{
"lineno": 7,
"module": None,
"modules": [],
"name": "e",
"star": False,
},
{
"lineno": 8,
"module": None,
"modules": [],
"name": "e",
"star": False,
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_one_used(self):
source = (
"from x import y\n"
"from x import y\n"
"from t import x\n"
"import re\n"
"import ll\n"
"import ll\n"
"from c import e\n"
"import e\n"
"from pathlib import Path\n"
"from pathlib import Path\n"
"p = Path()"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "re",
"star": False,
"module": re,
"modules": [],
},
{
"lineno": 5,
"name": "ll",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 6,
"name": "ll",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 7,
"name": "e",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 8,
"name": "e",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 9,
"name": "Path",
"star": False,
"module": pathlib,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_two_used(self):
source = (
"from x import y\n"
"from x import y\n"
"from t import x\n"
"import re\n"
"import ll\n"
"import ll\n"
"from c import e\n"
"import e\n"
"from pathlib import Path\n"
"from pathlib import Path\n"
"p = Path()\n"
"print(ll)\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "re",
"star": False,
"module": re,
"modules": [],
},
{
"lineno": 5,
"name": "ll",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 7,
"name": "e",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 8,
"name": "e",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 9,
"name": "Path",
"star": False,
"module": pathlib,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_three_used(self):
source = (
"from x import y\n"
"from x import y\n"
"from t import x\n"
"import re\n"
"import ll\n"
"import ll\n"
"from c import e\n"
"import e\n"
"from pathlib import Path\n"
"from pathlib import Path\n"
"p = Path()\n"
"print(ll)\n"
"def function(e=e):pass\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "re",
"star": False,
"module": re,
"modules": [],
},
{
"lineno": 5,
"name": "ll",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 7,
"name": "e",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 9,
"name": "Path",
"star": False,
"module": pathlib,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_different_duplicate_unused(self):
source = "from x import z\n" "from y import z\n"
expected_nused_imports = [
{
"lineno": 1,
"module": None,
"modules": [],
"name": "z",
"star": False,
},
{
"lineno": 2,
"module": None,
"modules": [],
"name": "z",
"star": False,
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_different_duplicate_used(self):
source = "from x import z\n" "from y import z\n" "print(z)\n"
expected_nused_imports = [
{
"lineno": 1,
"module": None,
"modules": [],
"name": "z",
"star": False,
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_multi_duplicate(self):
source = "from x import y, z, t\n" "import t\n" "from l import t\n"
expected_nused_imports = [
{
"lineno": 1,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 1,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 1,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_multi_duplicate_one_used(self):
source = (
"from x import y, z, t\n"
"import t\n"
"from l import t\n"
"print(t)\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 1,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 1,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_one_used_bottom_multi_duplicate(self):
source = (
"import t\n"
"from l import t\n"
"from x import y, z, t\n"
"print(t)\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_two_multi_duplicate_one_used(self):
source = (
"import t\n"
"from l import t\n"
"from x import y, z, t\n"
"from i import t, ii\n"
"print(t)\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "ii",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_import_in_function(self):
source = (
"import t\n"
"from l import t\n"
"from x import y, z, t\n\n"
"def function(f=t):\n"
" import x\n"
" return f\n"
"from i import t, ii\n"
"print(t)\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 6,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 8,
"name": "ii",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_import_in_function_used_two_different(self):
source = (
"import t\n"
"print(t)\n\n"
"from l import t\n"
"from x import y, z, t\n\n"
"def function(f=t):\n"
" import x\n"
" return f\n"
"from i import t, ii\n"
"print(t)\n"
)
expected_nused_imports = [
{
"lineno": 4,
"name": "t",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "y",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 8,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 10,
"name": "ii",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
class TesAsImport(UnusedTestCase):
def test_as_import_all_unused_all_cases(self):
source = (
"from x import y as z\n"
"import x\n"
"from t import s as ss\n"
"from f import a as c, l as k, i as ii\n"
"from fo import (bar, i, x as z)\n"
"import le as x\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "ss",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "c",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "k",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "ii",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "bar",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "i",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 6,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
def test_as_import_one_used_in_function_all_cases(self):
source = (
"from x import y as z\n"
"import x\n"
"from t import s as ss\n"
"from f import a as c, l as k, i as ii\n"
"from fo import (bar, i, x as z)\n"
"import le as x\n"
"def x(t=x):pass\n"
)
expected_nused_imports = [
{
"lineno": 1,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 2,
"name": "x",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 3,
"name": "ss",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "c",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "k",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 4,
"name": "ii",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "bar",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "i",
"star": False,
"module": None,
"modules": [],
},
{
"lineno": 5,
"name": "z",
"star": False,
"module": None,
"modules": [],
},
]
self.assertUnimportEqual(source, expected_nused_imports)
| 27.746441
| 79
| 0.348735
| 2,342
| 31,187
| 4.50854
| 0.059351
| 0.079269
| 0.13202
| 0.127758
| 0.848186
| 0.843641
| 0.807747
| 0.754996
| 0.717019
| 0.709537
| 0
| 0.010004
| 0.522429
| 31,187
| 1,123
| 80
| 27.771149
| 0.698939
| 0.004297
| 0
| 0.664799
| 0
| 0
| 0.196102
| 0
| 0
| 0
| 0
| 0
| 0.033613
| 1
| 0.033613
| false
| 0.004669
| 0.186741
| 0
| 0.230626
| 0.012138
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1fbdf7642a047223a72d42d819fbe69ce82831ae
| 672
|
py
|
Python
|
libs/yowsup/yowsup/layers/protocol_media/protocolentities/__init__.py
|
akshitpradhan/TomHack
|
837226e7b38de1140c19bc2d478eeb9e379ed1fd
|
[
"MIT"
] | 22
|
2017-07-14T20:01:17.000Z
|
2022-03-08T14:22:39.000Z
|
libs/yowsup/yowsup/layers/protocol_media/protocolentities/__init__.py
|
akshitpradhan/TomHack
|
837226e7b38de1140c19bc2d478eeb9e379ed1fd
|
[
"MIT"
] | 6
|
2017-07-14T21:03:50.000Z
|
2021-06-10T19:08:32.000Z
|
libs/yowsup/yowsup/layers/protocol_media/protocolentities/__init__.py
|
akshitpradhan/TomHack
|
837226e7b38de1140c19bc2d478eeb9e379ed1fd
|
[
"MIT"
] | 13
|
2017-07-14T20:13:14.000Z
|
2020-11-12T08:06:05.000Z
|
from .message_media import MediaMessageProtocolEntity
from .message_media_downloadable import DownloadableMediaMessageProtocolEntity
from .message_media_downloadable_image import ImageDownloadableMediaMessageProtocolEntity
from .message_media_downloadable_audio import AudioDownloadableMediaMessageProtocolEntity
from .message_media_downloadable_video import VideoDownloadableMediaMessageProtocolEntity
from .message_media_location import LocationMediaMessageProtocolEntity
from .message_media_vcard import VCardMediaMessageProtocolEntity
from .iq_requestupload import RequestUploadIqProtocolEntity
from .iq_requestupload_result import ResultRequestUploadIqProtocolEntity
| 67.2
| 89
| 0.933036
| 55
| 672
| 11.054545
| 0.4
| 0.126645
| 0.184211
| 0.184211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053571
| 672
| 9
| 90
| 74.666667
| 0.955975
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
1fe1aec9c9772ecbb600ce43b6ce42d0c18efa97
| 14,628
|
py
|
Python
|
cnn/models/butterfly_conv.py
|
sfox14/butterfly
|
13cc15cee5bdb7adaf376219aaf20fab0459e9ef
|
[
"Apache-2.0"
] | 52
|
2020-08-05T08:32:24.000Z
|
2022-03-27T21:56:34.000Z
|
cnn/models/butterfly_conv.py
|
sfox14/butterfly
|
13cc15cee5bdb7adaf376219aaf20fab0459e9ef
|
[
"Apache-2.0"
] | 13
|
2020-09-14T23:34:32.000Z
|
2022-02-15T10:51:03.000Z
|
cnn/models/butterfly_conv.py
|
sfox14/butterfly
|
13cc15cee5bdb7adaf376219aaf20fab0459e9ef
|
[
"Apache-2.0"
] | 11
|
2020-10-15T07:03:25.000Z
|
2022-03-25T12:03:49.000Z
|
import torch
from torch import nn
import torch.nn.functional as F
from butterfly import Butterfly
from butterfly.butterfly import ButterflyBmm
from butterfly.butterfly_multiply import butterfly_mult_conv2d, butterfly_mult_conv2d_svd, bbt_mult_conv2d
import math
class Butterfly1x1Conv(Butterfly):
"""Product of log N butterfly factors, each is a block 2x2 of diagonal matrices.
"""
def forward(self, input):
"""
Parameters:
input: (batch, c, h, w) if real or (batch, c, h, w, 2) if complex
Return:
output: (batch, nstack * c, h, w) if real or (batch, nstack * c, h, w, 2) if complex
"""
# TODO: Only doing real for now
batch, c, h, w = input.shape
input_reshape = input.view(batch, c, h * w).transpose(1, 2).reshape(-1, c)
output = super().forward(input_reshape)
return output.view(batch, h * w, self.nstack * c).transpose(1, 2).view(batch, self.nstack * c, h, w)
class ButterflyConv2d(ButterflyBmm):
"""Product of log N butterfly factors, each is a block 2x2 of diagonal matrices.
Parameters:
in_channels: size of input
out_channels: size of output
kernel_size: int or (int, int)
stride: int or (int, int)
padding; int or (int, int)
dilation: int or (int, int)
**kwargs: args to ButterflyBmm, see Butterfly class
"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1,
padding=0, dilation=1, fused_unfold=False, **kwargs):
self.in_channels = in_channels
self.out_channels = out_channels
self.kernel_size = (kernel_size, kernel_size) if isinstance(kernel_size, int) else kernel_size
self.stride = (stride, stride) if isinstance(stride, int) else stride
self.padding = (padding, padding) if isinstance(padding, int) else padding
self.dilation = (dilation, dilation) if isinstance(dilation, int) else dilation
self.fused_unfold = fused_unfold
super().__init__(in_channels, out_channels, self.kernel_size[0] * self.kernel_size[1],
complex=False, **kwargs)
# Don't need bias for each of 9 matrices, only one bias is enough
if self.bias is not None:
self.bias_conv = nn.Parameter(self.bias[0].clone())
self.bias = None
def forward(self, input):
"""
Parameters:
input: (batch, c, h, w) if real or (batch, c, h, w, 2) if complex
Return:
output: (batch, nstack * c, h, w) if real or (batch, nstack * c, h, w, 2) if complex
"""
# TODO: Only doing real for now
batch, c, h, w = input.shape
h_out = (h + 2 * self.padding[0] - self.dilation[0] * (self.kernel_size[0] - 1) - 1) // self.stride[0] + 1
w_out = (h + 2 * self.padding[1] - self.dilation[1] * (self.kernel_size[1] - 1) - 1) // self.stride[1] + 1
# if not (self.fused_unfold and self.stride == (1, 1) and self.kernel_size[0] == self.kernel_size[1]
# and self.padding[0] == self.padding[1] and self.dilation == (1, 1) and c <= 1024 and input.is_cuda):
if True: # Not using fused unfolding for now to quickly try variants of butterfly
# unfold input into patches and call batch matrix multiply
input_patches = F.unfold(input, self.kernel_size, self.dilation, self.padding, self.stride).view(
batch, c, self.kernel_size[0] * self.kernel_size[1], h_out * w_out)
input = input_patches.permute(0, 3, 2, 1).reshape(batch * h_out * w_out, self.kernel_size[0] * self.kernel_size[1], c)
output = super().forward(input)
else:
batch_out = batch * h_out * w_out
if self.param == 'regular':
if self.nblocks == 0:
output = butterfly_mult_conv2d(self.twiddle, input, self.kernel_size[0],
self.padding[0], self.increasing_stride)
else:
output = bbt_mult_conv2d(self.twiddle, input, self.kernel_size[0], self.padding[0])
elif self.param == 'ortho':
c, s = torch.cos(self.twiddle), torch.sin(self.twiddle)
twiddle = torch.stack((torch.stack((c, -s), dim=-1),
torch.stack((s, c), dim=-1)), dim=-2)
output = butterfly_mult_conv2d(self.twiddle, input, self.kernel_size[0],
self.padding[0], self.increasing_stride)
elif self.param == 'svd':
with torch.no_grad(): # Projected SGD
self.twiddle[..., 1, :].clamp_(min=1 / self.max_gain_per_factor, max=self.max_gain_per_factor)
output = butterfly_mult_conv2d_svd(self.twiddle, input, self.kernel_size[0],
self.padding[0], self.increasing_stride)
output = super().post_process(input, output)
# combine matrix batches
output = output.mean(dim=1)
if hasattr(self, 'bias_conv'):
output = output + self.bias_conv
return output.view(batch, h_out * w_out, self.out_channels).transpose(1, 2).view(batch, self.out_channels, h_out, w_out)
class ButterflyConv2dBBT(nn.Module):
"""Product of log N butterfly factors, each is a block 2x2 of diagonal matrices.
Parameters:
in_channels: size of input
out_channels: size of output
kernel_size: int or (int, int)
stride: int or (int, int)
padding; int or (int, int)
dilation: int or (int, int)
bias: If set to False, the layer will not learn an additive bias.
Default: ``True``
nblocks: number of BBT blocks in the product
tied_weight: whether the weights in the butterfly factors are tied.
If True, will have 4N parameters, else will have 2 N log N parameters (not counting bias)
increasing_stride: whether to multiply with increasing stride (e.g. 1, 2, ..., n/2) or
decreasing stride (e.g., n/2, n/4, ..., 1).
Note that this only changes the order of multiplication, not how twiddle is stored.
In other words, twiddle[@log_stride] always stores the twiddle for @stride.
ortho_init: whether the weight matrix should be initialized to be orthogonal/unitary.
param: The parameterization of the 2x2 butterfly factors, either 'regular' or 'ortho' or 'svd'.
'ortho' and 'svd' only support real, not complex.
max_gain: (only for svd parameterization) controls the maximum and minimum singular values
of the whole BB^T matrix (not of each factor).
For example, max_gain=10.0 means that the singular values are in [0.1, 10.0].
"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, bias=True,
tied_weight=True, nblocks=1, ortho_init=False, param='regular', max_gain=10.0):
super().__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.kernel_size = (kernel_size, kernel_size) if isinstance(kernel_size, int) else kernel_size
self.stride = (stride, stride) if isinstance(stride, int) else stride
self.padding = (padding, padding) if isinstance(padding, int) else padding
self.dilation = (dilation, dilation) if isinstance(dilation, int) else dilation
self.nblocks = nblocks
max_gain_per_block = max_gain ** (1 / (2 * nblocks))
# layers = [ButterflyConv2d(in_channels, out_channels, self.kernel_size,
# self.stride, self.padding, self.dilation, bias=False,
# tied_weight=tied_weight, increasing_stride=False,
# ortho_init=ortho_init, param=param,
# max_gain=max_gain_per_block),
# ButterflyBmm(out_channels, out_channels,
# self.kernel_size[0] * self.kernel_size[1],
# False, bias if 0 == nblocks - 1 else False,
# tied_weight, increasing_stride=True,
# ortho_init=ortho_init, param=param,
# max_gain=max_gain_per_block)]
# for i in range(nblocks - 1):
layers = []
for i in range(nblocks):
layers.append(ButterflyBmm(in_channels if i == 0 else out_channels,
out_channels, self.kernel_size[0] *
self.kernel_size[1], False, False,
tied_weight, increasing_stride=False,
ortho_init=ortho_init, param=param,
max_gain=max_gain_per_block))
layers.append(ButterflyBmm(out_channels, out_channels,
self.kernel_size[0] *
self.kernel_size[1], False, bias if i == nblocks - 1 else False,
tied_weight, increasing_stride=True,
ortho_init=ortho_init, param=param,
max_gain=max_gain_per_block))
self.layers = nn.Sequential(*layers)
def forward(self, input):
"""
Parameters:
input: (batch, c, h, w) if real or (batch, c, h, w, 2) if complex
Return:
output: (batch, nstack * c, h, w) if real or (batch, nstack * c, h, w, 2) if complex
"""
# TODO: Only doing real for now
batch, c, h, w = input.shape
h_out = (h + 2 * self.padding[0] - self.dilation[0] * (self.kernel_size[0] - 1) - 1) // self.stride[0] + 1
w_out = (h + 2 * self.padding[1] - self.dilation[1] * (self.kernel_size[1] - 1) - 1) // self.stride[1] + 1
input_patches = F.unfold(input, self.kernel_size, self.dilation, self.padding, self.stride).view(batch, c, self.kernel_size[0] * self.kernel_size[1], h_out * w_out)
input_reshape = input_patches.permute(0, 3, 2, 1).reshape(batch * h_out * w_out, self.kernel_size[0] * self.kernel_size[1], c)
output = self.layers(input_reshape).mean(dim=1)
# output = self.layers(input).mean(dim=1)
return output.view(batch, h_out * w_out, self.out_channels).transpose(1, 2).view(batch, self.out_channels, h_out, w_out)
class ButterflyConv2dBBTBBT(nn.Module):
"""Product of log N butterfly factors, each is a block 2x2 of diagonal matrices.
Parameters:
in_channels: size of input
out_channels: size of output
kernel_size: int or (int, int)
stride: int or (int, int)
padding; int or (int, int)
dilation: int or (int, int)
bias: If set to False, the layer will not learn an additive bias.
Default: ``True``
tied_weight: whether the weights in the butterfly factors are tied.
If True, will have 4N parameters, else will have 2 N log N parameters (not counting bias)
increasing_stride: whether to multiply with increasing stride (e.g. 1, 2, ..., n/2) or
decreasing stride (e.g., n/2, n/4, ..., 1).
Note that this only changes the order of multiplication, not how twiddle is stored.
In other words, twiddle[@log_stride] always stores the twiddle for @stride.
ortho_init: whether the weight matrix should be initialized to be orthogonal/unitary.
param: The parameterization of the 2x2 butterfly factors, either 'regular' or 'ortho' or 'svd'.
'ortho' and 'svd' only support real, not complex.
max_gain: (only for svd parameterization) controls the maximum and minimum singular values
of the whole BB^T BB^T matrix (not of each factor).
For example, max_gain=10.0 means that the singular values are in [0.1, 10.0].
"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, bias=True,
tied_weight=True, ortho_init=False, param='regular', max_gain=10.0):
super().__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.kernel_size = (kernel_size, kernel_size) if isinstance(kernel_size, int) else kernel_size
self.stride = (stride, stride) if isinstance(stride, int) else stride
self.padding = (padding, padding) if isinstance(padding, int) else padding
self.dilation = (dilation, dilation) if isinstance(dilation, int) else dilation
self.layers = nn.Sequential(
ButterflyBmm(in_channels, out_channels, self.kernel_size[0] * self.kernel_size[1], False, False, tied_weight, increasing_stride=False, ortho_init=ortho_init, param=param, max_gain=max_gain ** (1 / 4)),
ButterflyBmm(out_channels, out_channels, self.kernel_size[0] * self.kernel_size[1], False, False, tied_weight, increasing_stride=True, ortho_init=ortho_init, param=param, max_gain=max_gain ** (1 / 4)),
ButterflyBmm(out_channels, out_channels, self.kernel_size[0] * self.kernel_size[1], False, False, tied_weight, increasing_stride=False, ortho_init=ortho_init, param=param, max_gain=max_gain ** (1 / 4)),
ButterflyBmm(out_channels, out_channels, self.kernel_size[0] * self.kernel_size[1], bias, False, tied_weight, increasing_stride=True, ortho_init=ortho_init, param=param, max_gain=max_gain ** (1 / 4))
)
def forward(self, input):
"""
Parameters:
input: (batch, c, h, w) if real or (batch, c, h, w, 2) if complex
Return:
output: (batch, nstack * c, h, w) if real or (batch, nstack * c, h, w, 2) if complex
"""
# TODO: Only doing real for now
batch, c, h, w = input.shape
h_out = (h + 2 * self.padding[0] - self.dilation[0] * (self.kernel_size[0] - 1) - 1) // self.stride[0] + 1
w_out = (h + 2 * self.padding[1] - self.dilation[1] * (self.kernel_size[1] - 1) - 1) // self.stride[1] + 1
input_patches = F.unfold(input, self.kernel_size, self.dilation, self.padding, self.stride).view(batch, c, self.kernel_size[0] * self.kernel_size[1], h_out * w_out)
input_reshape = input_patches.permute(0, 3, 2, 1).reshape(batch * h_out * w_out, self.kernel_size[0] * self.kernel_size[1], c)
output = self.layers(input_reshape).mean(dim=1)
return output.view(batch, h_out * w_out, self.out_channels).transpose(1, 2).view(batch, self.out_channels, h_out, w_out)
| 59.706122
| 214
| 0.610131
| 2,012
| 14,628
| 4.287276
| 0.096421
| 0.075354
| 0.076281
| 0.038256
| 0.822281
| 0.809413
| 0.801762
| 0.797705
| 0.794227
| 0.794227
| 0
| 0.021607
| 0.281788
| 14,628
| 244
| 215
| 59.95082
| 0.799448
| 0.357875
| 0
| 0.466667
| 0
| 0
| 0.00425
| 0
| 0
| 0
| 0
| 0.016393
| 0
| 1
| 0.058333
| false
| 0
| 0.058333
| 0
| 0.183333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1ff6e8c58910df896731d8db5c0aafb501b744ea
| 18,554
|
py
|
Python
|
coredis/commands/_key_spec.py
|
alisaifee/coredis
|
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
|
[
"MIT"
] | 9
|
2022-01-07T07:42:08.000Z
|
2022-03-21T15:54:09.000Z
|
coredis/commands/_key_spec.py
|
alisaifee/coredis
|
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
|
[
"MIT"
] | 30
|
2022-01-15T23:33:36.000Z
|
2022-03-30T22:39:53.000Z
|
coredis/commands/_key_spec.py
|
alisaifee/coredis
|
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
|
[
"MIT"
] | 3
|
2022-01-13T06:11:13.000Z
|
2022-02-21T11:19:33.000Z
|
from __future__ import annotations
from coredis.typing import Callable, ClassVar, Dict, Tuple, ValueT
class KeySpec:
READONLY: ClassVar[
Dict[bytes, Callable[[Tuple[ValueT, ...]], Tuple[ValueT, ...]]]
] = {
b"BITCOUNT": lambda args: ((args[1],)),
b"BITFIELD_RO": lambda args: ((args[1],)),
b"BITOP": lambda args: (args[3 : (len(args))]),
b"BITPOS": lambda args: ((args[1],)),
b"COPY": lambda args: ((args[1],)),
b"DUMP": lambda args: ((args[1],)),
b"EVALSHA_RO": lambda args: (args[3 : 3 + int(args[2])]),
b"EVAL_RO": lambda args: (args[3 : 3 + int(args[2])]),
b"EXISTS": lambda args: (args[1 : (len(args))]),
b"EXPIRETIME": lambda args: ((args[1],)),
b"FCALL_RO": lambda args: (args[3 : 3 + int(args[2])]),
b"GEODIST": lambda args: ((args[1],)),
b"GEOHASH": lambda args: ((args[1],)),
b"GEOPOS": lambda args: ((args[1],)),
b"GEORADIUS": lambda args: ((args[1],)),
b"GEORADIUSBYMEMBER": lambda args: ((args[1],)),
b"GEORADIUSBYMEMBER_RO": lambda args: ((args[1],)),
b"GEORADIUS_RO": lambda args: ((args[1],)),
b"GEOSEARCH": lambda args: ((args[1],)),
b"GEOSEARCHSTORE": lambda args: ((args[2],)),
b"GET": lambda args: ((args[1],)),
b"GETBIT": lambda args: ((args[1],)),
b"GETRANGE": lambda args: ((args[1],)),
b"HEXISTS": lambda args: ((args[1],)),
b"HGET": lambda args: ((args[1],)),
b"HGETALL": lambda args: ((args[1],)),
b"HKEYS": lambda args: ((args[1],)),
b"HLEN": lambda args: ((args[1],)),
b"HMGET": lambda args: ((args[1],)),
b"HRANDFIELD": lambda args: ((args[1],)),
b"HSCAN": lambda args: ((args[1],)),
b"HSTRLEN": lambda args: ((args[1],)),
b"HVALS": lambda args: ((args[1],)),
b"LCS": lambda args: (args[1:2]),
b"LINDEX": lambda args: ((args[1],)),
b"LLEN": lambda args: ((args[1],)),
b"LPOS": lambda args: ((args[1],)),
b"LRANGE": lambda args: ((args[1],)),
b"MEMORY USAGE": lambda args: ((args[1],)),
b"MGET": lambda args: (args[1 : (len(args))]),
b"OBJECT ENCODING": lambda args: ((args[1],)),
b"OBJECT FREQ": lambda args: ((args[1],)),
b"OBJECT IDLETIME": lambda args: ((args[1],)),
b"OBJECT REFCOUNT": lambda args: ((args[1],)),
b"PEXPIRETIME": lambda args: ((args[1],)),
b"PFMERGE": lambda args: (args[2 : (len(args))]),
b"PTTL": lambda args: ((args[1],)),
b"SCARD": lambda args: ((args[1],)),
b"SDIFF": lambda args: (args[1 : (len(args))]),
b"SDIFFSTORE": lambda args: (args[2 : (len(args))]),
b"SINTER": lambda args: (args[1 : (len(args))]),
b"SINTERCARD": lambda args: (args[2 : 2 + int(args[1])]),
b"SINTERSTORE": lambda args: (args[2 : (len(args))]),
b"SISMEMBER": lambda args: ((args[1],)),
b"SMEMBERS": lambda args: ((args[1],)),
b"SMISMEMBER": lambda args: ((args[1],)),
b"SORT": lambda args: ((args[1],)),
b"SORT_RO": lambda args: ((args[1],)),
b"SRANDMEMBER": lambda args: ((args[1],)),
b"SSCAN": lambda args: ((args[1],)),
b"STRLEN": lambda args: ((args[1],)),
b"SUBSTR": lambda args: ((args[1],)),
b"SUNION": lambda args: (args[1 : (len(args))]),
b"SUNIONSTORE": lambda args: (args[2 : (len(args))]),
b"TOUCH": lambda args: (args[1 : (len(args))]),
b"TTL": lambda args: ((args[1],)),
b"TYPE": lambda args: ((args[1],)),
b"XINFO CONSUMERS": lambda args: ((args[1],)),
b"XINFO GROUPS": lambda args: ((args[1],)),
b"XINFO STREAM": lambda args: ((args[1],)),
b"XLEN": lambda args: ((args[1],)),
b"XPENDING": lambda args: ((args[1],)),
b"XRANGE": lambda args: ((args[1],)),
b"XREAD": lambda args: (
(
(
lambda kwpos: tuple(
args[1 + kwpos : len(args) - (len(args) - (kwpos + 1)) // 2]
)
)(args.index(b"STREAMS", 1))
if b"STREAMS" in args
else ()
)
),
b"XREADGROUP": lambda args: (
(
(
lambda kwpos: tuple(
args[1 + kwpos : len(args) - (len(args) - (kwpos + 1)) // 2]
)
)(args.index(b"STREAMS", 4))
if b"STREAMS" in args
else ()
)
),
b"XREVRANGE": lambda args: ((args[1],)),
b"ZCARD": lambda args: ((args[1],)),
b"ZCOUNT": lambda args: ((args[1],)),
b"ZDIFF": lambda args: (args[2 : 2 + int(args[1])]),
b"ZDIFFSTORE": lambda args: (args[3 : 3 + int(args[2])]),
b"ZINTER": lambda args: (args[2 : 2 + int(args[1])]),
b"ZINTERCARD": lambda args: (args[2 : 2 + int(args[1])]),
b"ZINTERSTORE": lambda args: (args[3 : 3 + int(args[2])]),
b"ZLEXCOUNT": lambda args: ((args[1],)),
b"ZMSCORE": lambda args: ((args[1],)),
b"ZRANDMEMBER": lambda args: ((args[1],)),
b"ZRANGE": lambda args: ((args[1],)),
b"ZRANGEBYLEX": lambda args: ((args[1],)),
b"ZRANGEBYSCORE": lambda args: ((args[1],)),
b"ZRANGESTORE": lambda args: ((args[2],)),
b"ZRANK": lambda args: ((args[1],)),
b"ZREVRANGE": lambda args: ((args[1],)),
b"ZREVRANGEBYLEX": lambda args: ((args[1],)),
b"ZREVRANGEBYSCORE": lambda args: ((args[1],)),
b"ZREVRANK": lambda args: ((args[1],)),
b"ZSCAN": lambda args: ((args[1],)),
b"ZSCORE": lambda args: ((args[1],)),
b"ZUNION": lambda args: (args[2 : 2 + int(args[1])]),
b"ZUNIONSTORE": lambda args: (args[3 : 3 + int(args[2])]),
}
ALL: ClassVar[Dict[bytes, Callable[[Tuple[ValueT, ...]], Tuple[ValueT, ...]]]] = {
b"OBJECT": lambda args: ((args[2],)),
b"APPEND": lambda args: ((args[1],)),
b"BITFIELD": lambda args: ((args[1],)),
b"BLMOVE": lambda args: ((args[1],) + (args[2],)),
b"BLMPOP": lambda args: (args[3 : 3 + int(args[2])]),
b"BLPOP": lambda args: (args[1 : (len(args) - 1)]),
b"BRPOP": lambda args: (args[1 : (len(args) - 1)]),
b"BRPOPLPUSH": lambda args: ((args[1],) + (args[2],)),
b"BZMPOP": lambda args: (args[3 : 3 + int(args[2])]),
b"BZPOPMAX": lambda args: (args[1 : (len(args) - 1)]),
b"BZPOPMIN": lambda args: (args[1 : (len(args) - 1)]),
b"DECR": lambda args: ((args[1],)),
b"DECRBY": lambda args: ((args[1],)),
b"EVAL": lambda args: (args[3 : 3 + int(args[2])]),
b"EVALSHA": lambda args: (args[3 : 3 + int(args[2])]),
b"EXPIRE": lambda args: ((args[1],)),
b"EXPIREAT": lambda args: ((args[1],)),
b"FCALL": lambda args: (args[3 : 3 + int(args[2])]),
b"GEOADD": lambda args: ((args[1],)),
b"GETDEL": lambda args: ((args[1],)),
b"GETEX": lambda args: ((args[1],)),
b"GETSET": lambda args: ((args[1],)),
b"HDEL": lambda args: ((args[1],)),
b"HINCRBY": lambda args: ((args[1],)),
b"HINCRBYFLOAT": lambda args: ((args[1],)),
b"HMSET": lambda args: ((args[1],)),
b"HSET": lambda args: ((args[1],)),
b"HSETNX": lambda args: ((args[1],)),
b"INCR": lambda args: ((args[1],)),
b"INCRBY": lambda args: ((args[1],)),
b"INCRBYFLOAT": lambda args: ((args[1],)),
b"LINSERT": lambda args: ((args[1],)),
b"LMOVE": lambda args: ((args[1],) + (args[2],)),
b"LMPOP": lambda args: (args[2 : 2 + int(args[1])]),
b"LPOP": lambda args: ((args[1],)),
b"LPUSH": lambda args: ((args[1],)),
b"LPUSHX": lambda args: ((args[1],)),
b"LREM": lambda args: ((args[1],)),
b"LSET": lambda args: ((args[1],)),
b"LTRIM": lambda args: ((args[1],)),
b"MIGRATE": lambda args: (
(args[3],)
+ (
(lambda kwpos: tuple(args[1 + kwpos : len(args)]))(
len(args) - list(reversed(args)).index(b"KEYS", 1) - 1
)
if b"KEYS" in args
else ()
)
),
b"MOVE": lambda args: ((args[1],)),
b"PERSIST": lambda args: ((args[1],)),
b"PEXPIRE": lambda args: ((args[1],)),
b"PEXPIREAT": lambda args: ((args[1],)),
b"PFADD": lambda args: ((args[1],)),
b"PFCOUNT": lambda args: (args[1 : (len(args))]),
b"PFDEBUG": lambda args: ((args[2],)),
b"PFMERGE": lambda args: ((args[1],) + args[2 : (len(args))]),
b"RENAME": lambda args: ((args[1],) + (args[2],)),
b"RENAMENX": lambda args: ((args[1],) + (args[2],)),
b"RPOP": lambda args: ((args[1],)),
b"RPOPLPUSH": lambda args: ((args[1],) + (args[2],)),
b"RPUSH": lambda args: ((args[1],)),
b"RPUSHX": lambda args: ((args[1],)),
b"SADD": lambda args: ((args[1],)),
b"SET": lambda args: ((args[1],)),
b"SETBIT": lambda args: ((args[1],)),
b"SETRANGE": lambda args: ((args[1],)),
b"SINTERSTORE": lambda args: ((args[1],) + args[2 : (len(args))]),
b"SMOVE": lambda args: ((args[1],) + (args[2],)),
b"SPOP": lambda args: ((args[1],)),
b"SREM": lambda args: ((args[1],)),
b"XACK": lambda args: ((args[1],)),
b"XADD": lambda args: ((args[1],)),
b"XAUTOCLAIM": lambda args: ((args[1],)),
b"XCLAIM": lambda args: ((args[1],)),
b"XDEL": lambda args: ((args[1],)),
b"XGROUP CREATE": lambda args: ((args[1],)),
b"XGROUP CREATECONSUMER": lambda args: ((args[1],)),
b"XGROUP DELCONSUMER": lambda args: ((args[1],)),
b"XGROUP DESTROY": lambda args: ((args[1],)),
b"XGROUP SETID": lambda args: ((args[1],)),
b"XSETID": lambda args: ((args[1],)),
b"XTRIM": lambda args: ((args[1],)),
b"ZADD": lambda args: ((args[1],)),
b"ZINCRBY": lambda args: ((args[1],)),
b"ZMPOP": lambda args: (args[2 : 2 + int(args[1])]),
b"ZPOPMAX": lambda args: ((args[1],)),
b"ZPOPMIN": lambda args: ((args[1],)),
b"ZREM": lambda args: ((args[1],)),
b"ZREMRANGEBYLEX": lambda args: ((args[1],)),
b"ZREMRANGEBYRANK": lambda args: ((args[1],)),
b"ZREMRANGEBYSCORE": lambda args: ((args[1],)),
b"BITCOUNT": lambda args: ((args[1],)),
b"BITFIELD_RO": lambda args: ((args[1],)),
b"BITOP": lambda args: (args[3 : (len(args))] + (args[2],)),
b"BITPOS": lambda args: ((args[1],)),
b"COPY": lambda args: ((args[1],) + (args[2],)),
b"DUMP": lambda args: ((args[1],)),
b"EVALSHA_RO": lambda args: (args[3 : 3 + int(args[2])]),
b"EVAL_RO": lambda args: (args[3 : 3 + int(args[2])]),
b"EXISTS": lambda args: (args[1 : (len(args))]),
b"EXPIRETIME": lambda args: ((args[1],)),
b"FCALL_RO": lambda args: (args[3 : 3 + int(args[2])]),
b"GEODIST": lambda args: ((args[1],)),
b"GEOHASH": lambda args: ((args[1],)),
b"GEOPOS": lambda args: ((args[1],)),
b"GEORADIUS": lambda args: (
(args[1],)
+ (
(lambda kwpos: tuple((args[kwpos + 1],)))(args.index(b"STORE", 6))
if b"STORE" in args
else ()
)
+ (
(lambda kwpos: tuple((args[kwpos + 1],)))(args.index(b"STOREDIST", 6))
if b"STOREDIST" in args
else ()
)
),
b"GEORADIUSBYMEMBER": lambda args: (
(args[1],)
+ (
(lambda kwpos: tuple((args[kwpos + 1],)))(args.index(b"STORE", 5))
if b"STORE" in args
else ()
)
+ (
(lambda kwpos: tuple((args[kwpos + 1],)))(args.index(b"STOREDIST", 5))
if b"STOREDIST" in args
else ()
)
),
b"GEORADIUSBYMEMBER_RO": lambda args: ((args[1],)),
b"GEORADIUS_RO": lambda args: ((args[1],)),
b"GEOSEARCH": lambda args: ((args[1],)),
b"GEOSEARCHSTORE": lambda args: ((args[2],) + (args[1],)),
b"GET": lambda args: ((args[1],)),
b"GETBIT": lambda args: ((args[1],)),
b"GETRANGE": lambda args: ((args[1],)),
b"HEXISTS": lambda args: ((args[1],)),
b"HGET": lambda args: ((args[1],)),
b"HGETALL": lambda args: ((args[1],)),
b"HKEYS": lambda args: ((args[1],)),
b"HLEN": lambda args: ((args[1],)),
b"HMGET": lambda args: ((args[1],)),
b"HRANDFIELD": lambda args: ((args[1],)),
b"HSCAN": lambda args: ((args[1],)),
b"HSTRLEN": lambda args: ((args[1],)),
b"HVALS": lambda args: ((args[1],)),
b"LCS": lambda args: (args[1:2]),
b"LINDEX": lambda args: ((args[1],)),
b"LLEN": lambda args: ((args[1],)),
b"LPOS": lambda args: ((args[1],)),
b"LRANGE": lambda args: ((args[1],)),
b"MEMORY USAGE": lambda args: ((args[1],)),
b"MGET": lambda args: (args[1 : (len(args))]),
b"OBJECT ENCODING": lambda args: ((args[1],)),
b"OBJECT FREQ": lambda args: ((args[1],)),
b"OBJECT IDLETIME": lambda args: ((args[1],)),
b"OBJECT REFCOUNT": lambda args: ((args[1],)),
b"PEXPIRETIME": lambda args: ((args[1],)),
b"PTTL": lambda args: ((args[1],)),
b"SCARD": lambda args: ((args[1],)),
b"SDIFF": lambda args: (args[1 : (len(args))]),
b"SDIFFSTORE": lambda args: (args[2 : (len(args))] + (args[1],)),
b"SINTER": lambda args: (args[1 : (len(args))]),
b"SINTERCARD": lambda args: (args[2 : 2 + int(args[1])]),
b"SISMEMBER": lambda args: ((args[1],)),
b"SMEMBERS": lambda args: ((args[1],)),
b"SMISMEMBER": lambda args: ((args[1],)),
b"SORT": lambda args: ((args[1],)),
b"SORT_RO": lambda args: ((args[1],)),
b"SRANDMEMBER": lambda args: ((args[1],)),
b"SSCAN": lambda args: ((args[1],)),
b"STRLEN": lambda args: ((args[1],)),
b"SUBSTR": lambda args: ((args[1],)),
b"SUNION": lambda args: (args[1 : (len(args))]),
b"SUNIONSTORE": lambda args: (args[2 : (len(args))] + (args[1],)),
b"TOUCH": lambda args: (args[1 : (len(args))]),
b"TTL": lambda args: ((args[1],)),
b"TYPE": lambda args: ((args[1],)),
b"XINFO CONSUMERS": lambda args: ((args[1],)),
b"XINFO GROUPS": lambda args: ((args[1],)),
b"XINFO STREAM": lambda args: ((args[1],)),
b"XLEN": lambda args: ((args[1],)),
b"XPENDING": lambda args: ((args[1],)),
b"XRANGE": lambda args: ((args[1],)),
b"XREAD": lambda args: (
(
(
lambda kwpos: tuple(
args[1 + kwpos : len(args) - (len(args) - (kwpos + 1)) // 2]
)
)(args.index(b"STREAMS", 1))
if b"STREAMS" in args
else ()
)
),
b"XREADGROUP": lambda args: (
(
(
lambda kwpos: tuple(
args[1 + kwpos : len(args) - (len(args) - (kwpos + 1)) // 2]
)
)(args.index(b"STREAMS", 4))
if b"STREAMS" in args
else ()
)
),
b"XREVRANGE": lambda args: ((args[1],)),
b"ZCARD": lambda args: ((args[1],)),
b"ZCOUNT": lambda args: ((args[1],)),
b"ZDIFF": lambda args: (args[2 : 2 + int(args[1])]),
b"ZDIFFSTORE": lambda args: (args[3 : 3 + int(args[2])] + (args[1],)),
b"ZINTER": lambda args: (args[2 : 2 + int(args[1])]),
b"ZINTERCARD": lambda args: (args[2 : 2 + int(args[1])]),
b"ZINTERSTORE": lambda args: (args[3 : 3 + int(args[2])] + (args[1],)),
b"ZLEXCOUNT": lambda args: ((args[1],)),
b"ZMSCORE": lambda args: ((args[1],)),
b"ZRANDMEMBER": lambda args: ((args[1],)),
b"ZRANGE": lambda args: ((args[1],)),
b"ZRANGEBYLEX": lambda args: ((args[1],)),
b"ZRANGEBYSCORE": lambda args: ((args[1],)),
b"ZRANGESTORE": lambda args: ((args[2],) + (args[1],)),
b"ZRANK": lambda args: ((args[1],)),
b"ZREVRANGE": lambda args: ((args[1],)),
b"ZREVRANGEBYLEX": lambda args: ((args[1],)),
b"ZREVRANGEBYSCORE": lambda args: ((args[1],)),
b"ZREVRANK": lambda args: ((args[1],)),
b"ZSCAN": lambda args: ((args[1],)),
b"ZSCORE": lambda args: ((args[1],)),
b"ZUNION": lambda args: (args[2 : 2 + int(args[1])]),
b"ZUNIONSTORE": lambda args: (args[3 : 3 + int(args[2])] + (args[1],)),
b"MSET": lambda args: (args[1 : (len(args)) : 2]),
b"MSETNX": lambda args: (args[1 : (len(args)) : 2]),
b"PSETEX": lambda args: ((args[1],)),
b"RESTORE": lambda args: ((args[1],)),
b"RESTORE-ASKING": lambda args: ((args[1],)),
b"SETEX": lambda args: ((args[1],)),
b"SETNX": lambda args: ((args[1],)),
b"DEL": lambda args: (args[1 : (len(args))]),
b"SPUBLISH": lambda args: ((args[1],)),
b"SSUBSCRIBE": lambda args: (args[1 : (len(args))]),
b"SUNSUBSCRIBE": lambda args: (args[1 : (len(args))]),
b"UNLINK": lambda args: (args[1 : (len(args))]),
b"WATCH": lambda args: (args[1 : (len(args))]),
b"PUBLISH": lambda args: ((args[1],)),
b"EXPIREMEMBER": lambda args: ((args[1],)),
b"EXPIREMEMBERAT": lambda args: ((args[1],)),
b"PEXPIREMEMBERAT": lambda args: ((args[1],)),
b"KEYDB.HRENAME": lambda args: ((args[1],)),
b"KEYDB.MEXISTS": lambda args: (args[1:]),
b"OBJECT LASTMODIFIED": lambda args: ((args[1],)),
}
@classmethod
def extract_keys(
cls, arguments: Tuple[ValueT, ...], readonly_command: bool = False
) -> Tuple[ValueT, ...]:
if len(arguments) <= 1:
return ()
command = arguments[0]
if not isinstance(command, bytes):
command = str(command).encode("latin-1")
try:
if readonly_command and command in cls.READONLY:
return cls.READONLY[command](arguments)
else:
return cls.ALL[command](arguments)
except KeyError:
return ()
| 45.812346
| 86
| 0.478765
| 2,336
| 18,554
| 3.793664
| 0.109589
| 0.338524
| 0.467615
| 0.42654
| 0.86933
| 0.756601
| 0.722975
| 0.680998
| 0.657752
| 0.619838
| 0
| 0.031221
| 0.292228
| 18,554
| 404
| 87
| 45.925743
| 0.643619
| 0
| 0
| 0.545226
| 0
| 0
| 0.132963
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002513
| false
| 0
| 0.005025
| 0
| 0.025126
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1f1625e77c12b6a905551b498a0f80fdf36ce91a
| 6,355
|
py
|
Python
|
tests/unit/app/test_exceptions.py
|
datphan/moviecrab
|
e3bcff700b994388f1ded68d268a960b10d57a81
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit/app/test_exceptions.py
|
datphan/moviecrab
|
e3bcff700b994388f1ded68d268a960b10d57a81
|
[
"BSD-3-Clause"
] | null | null | null |
tests/unit/app/test_exceptions.py
|
datphan/moviecrab
|
e3bcff700b994388f1ded68d268a960b10d57a81
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""tests for app.exceptions"""
from tests.unit import UnitTestCase
from app.exceptions import (ApplicationException, BadRequestException, UnauthorizedException,
ForbiddenException, NotFoundException)
class ApplicationExceptionTestCase(UnitTestCase):
def test_init(self):
api_exception = ApplicationException('message')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, None)
self.assertEqual(api_exception.description, None)
self.assertEqual(api_exception.more_info, None)
self.assertEqual(api_exception.status_code, None)
api_exception = ApplicationException('message', 'E01')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
api_exception = ApplicationException('message', code='E01')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
api_exception = ApplicationException('message', 'E01', 'dev_message')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
self.assertEqual(api_exception.description, 'dev_message')
api_exception = ApplicationException('message', code='E01', description='dev_message')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
self.assertEqual(api_exception.description, 'dev_message')
api_exception = ApplicationException('message', 'E01', 'dev_message', 'more_info')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
self.assertEqual(api_exception.description, 'dev_message')
self.assertEqual(api_exception.more_info, 'more_info')
api_exception = ApplicationException('message', code='E01', description='dev_message',
more_info='more_info')
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
self.assertEqual(api_exception.description, 'dev_message')
self.assertEqual(api_exception.more_info, 'more_info')
api_exception = ApplicationException('message', 'E01', 'dev_message', 'more_info', 401)
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
self.assertEqual(api_exception.description, 'dev_message')
self.assertEqual(api_exception.more_info, 'more_info')
self.assertEqual(api_exception.status_code, 401)
api_exception = ApplicationException('message', code='E01', description='dev_message',
more_info='more_info', status_code=401)
self.assertEqual(api_exception.message, 'message')
self.assertEqual(api_exception.code, 'E01')
self.assertEqual(api_exception.description, 'dev_message')
self.assertEqual(api_exception.more_info, 'more_info')
self.assertEqual(api_exception.status_code, 401)
def test_to_json(self):
api_exception = ApplicationException('message')
result = {
'error': {
'code': None,
'message': 'message',
'description': None,
'more_info': None,
'errors': []
}
}
self.assertEqual(api_exception.to_json(), result)
api_exception = ApplicationException('message', status_code=402)
result = {
'error': {
'code': None,
'message': 'message',
'description': None,
'more_info': None,
'errors': [],
'status_code': 402
}
}
self.assertEqual(api_exception.to_json(), result)
api_exception = ApplicationException('message', code='E01', description='dev_message',
more_info='more_info', status_code=401)
result = {
'error': {
'code': 'E01',
'message': 'message',
'description': 'dev_message',
'more_info': 'more_info',
'errors': [],
'status_code': 401
}
}
self.assertEqual(api_exception.to_json(), result)
class BadRequestExceptionTestCase(UnitTestCase):
def test_init(self):
self.assertTrue(issubclass(BadRequestException, ApplicationException))
exception = BadRequestException('something wrong')
self.assertEqual(exception.message, 'something wrong',
'exception.message should be "something wrong"')
self.assertEqual(exception.status_code, 400,
'exception.status_code should be 400')
class UnauthorizedExceptionTestCase(UnitTestCase):
def test_init(self):
self.assertTrue(issubclass(UnauthorizedException, ApplicationException))
exception = UnauthorizedException('something wrong')
self.assertEqual(exception.message, 'something wrong',
'exception.message should be "something wrong"')
self.assertEqual(exception.status_code, 401,
'exception.status_code should be 401')
class ForbiddenExceptionTestCase(UnitTestCase):
def test_init(self):
self.assertTrue(issubclass(ForbiddenException, ApplicationException))
exception = ForbiddenException('something wrong')
self.assertEqual(exception.message, 'something wrong',
'exception.message should be "something wrong"')
self.assertEqual(exception.status_code, 403,
'exception.status_code should be 403')
class NotFoundExceptionTestCase(UnitTestCase):
def test_init(self):
self.assertTrue(issubclass(NotFoundException, ApplicationException))
exception = NotFoundException('something wrong')
self.assertEqual(exception.message, 'something wrong',
'exception.message should be "something wrong"')
self.assertEqual(exception.status_code, 404,
'exception.status_code should be 404')
| 41
| 95
| 0.636035
| 580
| 6,355
| 6.781034
| 0.093103
| 0.146453
| 0.16476
| 0.24714
| 0.819222
| 0.743199
| 0.723875
| 0.700483
| 0.648614
| 0.635393
| 0
| 0.018008
| 0.257278
| 6,355
| 154
| 96
| 41.266234
| 0.815254
| 0.007396
| 0
| 0.584746
| 0
| 0
| 0.167248
| 0.013329
| 0
| 0
| 0
| 0
| 0.40678
| 1
| 0.050847
| false
| 0
| 0.016949
| 0
| 0.110169
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1f31f0c9903a3e594736cdf1d00722070bf3ac27
| 7,382
|
py
|
Python
|
third_party/libSBML-5.9.0-Source/examples/python/fbc/fbc_example1.py
|
0u812/roadrunner
|
f464c2649e388fa1f5a015592b0b29b65cc84b4b
|
[
"Apache-2.0"
] | null | null | null |
third_party/libSBML-5.9.0-Source/examples/python/fbc/fbc_example1.py
|
0u812/roadrunner
|
f464c2649e388fa1f5a015592b0b29b65cc84b4b
|
[
"Apache-2.0"
] | null | null | null |
third_party/libSBML-5.9.0-Source/examples/python/fbc/fbc_example1.py
|
0u812/roadrunner
|
f464c2649e388fa1f5a015592b0b29b65cc84b4b
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
#
# @file fbc_example1.py
# @brief SBML FBC example
# @author Frank Bergmann
#
# This file is part of libSBML. Please visit http:# sbml.org for more
# information about SBML, and the latest version of libSBML.
#
from libsbml import *
sbmlns = SBMLNamespaces(3,1,"fbc",1);
# create the document
document = SBMLDocument(sbmlns);
# create the Model
model= document.createModel();
# create the Compartment
compartment = model.createCompartment();
compartment.setId("compartment");
compartment.setConstant(True);
compartment.setSize(1);
# create the Species
species = model.createSpecies();
species.setId("Node1");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node2");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node3");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node4");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node5");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node6");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node7");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node8");
species.setCompartment("compartment");
species.setBoundaryCondition(False);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node0");
species.setCompartment("compartment");
species.setBoundaryCondition(True);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
species = model.createSpecies();
species.setId("Node9");
species.setCompartment("compartment");
species.setBoundaryCondition(True);
species.setConstant(False);
species.setHasOnlySubstanceUnits(False);
# create reactions
reaction = model.createReaction();
reaction.setId("J0");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node0");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node1");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J1");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node1");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node2");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J2");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node2");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node3");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J3");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node1");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node4");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J4");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node4");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node3");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J5");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node3");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node5");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J6");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node5");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node6");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J7");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node6");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node7");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J8");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node5");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node8");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J9");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node8");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node7");
product.setStoichiometry(1);
product.setConstant(True);
reaction = model.createReaction();
reaction.setId("J10");
reaction.setReversible(False);
reaction.setFast(False);
reactant = reaction.createReactant();
reactant.setSpecies("Node7");
reactant.setStoichiometry(1);
reactant.setConstant(True);
product = reaction.createProduct();
product.setSpecies("Node9");
product.setStoichiometry(1);
product.setConstant(True);
# add FBC constraints
mplugin = model.getPlugin("fbc");
bound= mplugin.createFluxBound();
bound.setId("bound1");
bound.setReaction("J0");
bound.setOperation("equal");
bound.setValue(10);
objective = mplugin.createObjective();
objective.setId("obj1");
objective.setType("maximize");
mplugin.setActiveObjectiveId("obj1");
fluxObjective = objective.createFluxObjective();
fluxObjective.setReaction("J8");
fluxObjective.setCoefficient(1);
writeSBMLToFile(document,"fbc_example1.xml");
| 27.442379
| 72
| 0.760092
| 702
| 7,382
| 7.990028
| 0.155271
| 0.057764
| 0.052951
| 0.06864
| 0.82742
| 0.813692
| 0.805491
| 0.805491
| 0.805491
| 0.805491
| 0
| 0.011987
| 0.095909
| 7,382
| 268
| 73
| 27.544776
| 0.828439
| 0.047684
| 0
| 0.733645
| 0
| 0
| 0.05292
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.004673
| 0
| 0.004673
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1f4201f86bb9d7735918785fefbc399b7241c047
| 5,819
|
py
|
Python
|
rpython/translator/mu/test_impl/test_convop.py
|
wdv4758h/mu-client-pypy
|
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
|
[
"Apache-2.0",
"OpenSSL"
] | null | null | null |
rpython/translator/mu/test_impl/test_convop.py
|
wdv4758h/mu-client-pypy
|
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
|
[
"Apache-2.0",
"OpenSSL"
] | null | null | null |
rpython/translator/mu/test_impl/test_convop.py
|
wdv4758h/mu-client-pypy
|
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
|
[
"Apache-2.0",
"OpenSSL"
] | null | null | null |
from impl_test_util import impl_jit_test
def test_trunc(cmdopt):
def build_test_bundle(bldr, rmu):
"""
Builds the following test bundle.
.typedef @i64 = int<64>
.typedef @i32 = int<32>
.const @0x6d9f9c1d58324b55_i64 <@i64> = 0x6d9f9c1d58324b55
.funcsig @sig__i32 = () -> (@i32)
.funcdef @test_fnc VERSION @test_fnc_v1 <@sig__i32> {
@test_fnc_v1.blk0():
@test_fnc_v1.blk0.res = TRUNC <@i64 @i32> @0x6d9f9c1d58324b55_i64
RET @test_fnc_v1.blk0.res
}
:type bldr: rpython.rlib.rmu.MuIRBuilder
:type rmu: rpython.rlib.rmu
:return: (rmu.MuVM(), rmu.MuCtx, rmu.MuIRBuilder, MuID, MuID)
"""
i32 = bldr.gen_sym("@i32")
bldr.new_type_int(i32, 32)
i64 = bldr.gen_sym("@i64")
bldr.new_type_int(i64, 64)
c_0x6d9f9c1d58324b55_i64 = bldr.gen_sym("@0x6d9f9c1d58324b55_i64")
bldr.new_const_int(c_0x6d9f9c1d58324b55_i64, i64, 0x6d9f9c1d58324b55)
sig__i32 = bldr.gen_sym("@sig__i32")
bldr.new_funcsig(sig__i32, [], [i32])
test_fnc = bldr.gen_sym("@test_fnc")
bldr.new_func(test_fnc, sig__i32)
# function body
v1 = bldr.gen_sym("@test_fnc_v1")
blk0 = bldr.gen_sym("@test_fnc_v1.blk0")
res = bldr.gen_sym("@test_fnc_v1.blk0.res")
op_convop = bldr.gen_sym()
bldr.new_conv(op_convop, res, rmu.MuConvOptr.TRUNC, i64, i32, c_0x6d9f9c1d58324b55_i64)
op_ret = bldr.gen_sym()
bldr.new_ret(op_ret, [res])
bldr.new_bb(blk0, [], [], rmu.MU_NO_ID, [op_convop, op_ret])
bldr.new_func_ver(v1, test_fnc, [blk0])
return {
"@i32": i32,
"@i64": i64,
"test_fnc_sig": sig__i32,
"test_fnc": test_fnc,
"result_type": i32
}
res = impl_jit_test(cmdopt, build_test_bundle)
if cmdopt.run:
assert res == 0x58324b55
def test_sext(cmdopt):
def build_test_bundle(bldr, rmu):
"""
Builds the following test bundle.
.typedef @i32 = int<32>
.typedef @i64 = int<64>
.const @0xa8324b55_i32 <@i32> = 0xa8324b55
.funcsig @sig__i64 = () -> (@i64)
.funcdef @test_fnc VERSION @test_fnc_v1 <@sig__i64> {
@test_fnc_v1.blk0():
@test_fnc_v1.blk0.res = SEXT <@i32 @i64> @0xa8324b55_i32
RET @test_fnc_v1.blk0.res
}
:type bldr: rpython.rlib.rmu.MuIRBuilder
:type rmu: rpython.rlib.rmu
:return: (rmu.MuVM(), rmu.MuCtx, rmu.MuIRBuilder, MuID, MuID)
"""
i32 = bldr.gen_sym("@i32")
bldr.new_type_int(i32, 32)
i64 = bldr.gen_sym("@i64")
bldr.new_type_int(i64, 64)
c_0xa8324b55_i32 = bldr.gen_sym("@0xa8324b55_i32")
bldr.new_const_int(c_0xa8324b55_i32, i32, 0xa8324b55)
sig__i64 = bldr.gen_sym("@sig__i64")
bldr.new_funcsig(sig__i64, [], [i64])
test_fnc = bldr.gen_sym("@test_fnc")
bldr.new_func(test_fnc, sig__i64)
# function body
v1 = bldr.gen_sym("@test_fnc_v1")
blk0 = bldr.gen_sym("@test_fnc_v1.blk0")
res = bldr.gen_sym("@test_fnc_v1.blk0.res")
op_convop = bldr.gen_sym()
bldr.new_conv(op_convop, res, rmu.MuConvOptr.SEXT, i32, i64, c_0xa8324b55_i32)
op_ret = bldr.gen_sym()
bldr.new_ret(op_ret, [res])
bldr.new_bb(blk0, [], [], rmu.MU_NO_ID, [op_convop, op_ret])
bldr.new_func_ver(v1, test_fnc, [blk0])
return {
"@i32": i32,
"@i64": i64,
"test_fnc_sig": sig__i64,
"test_fnc": test_fnc,
"result_type": i64
}
res = impl_jit_test(cmdopt, build_test_bundle)
if cmdopt.run:
assert res == 0xffffffffa8324b55
def test_zext(cmdopt):
def build_test_bundle(bldr, rmu):
"""
Builds the following test bundle.
.typedef @i32 = int<32>
.typedef @i64 = int<64>
.const @0xa8324b55_i32 <@i32> = 0xa8324b55
.funcsig @sig__i64 = () -> (@i64)
.funcdef @test_fnc VERSION @test_fnc_v1 <@sig__i64> {
@test_fnc_v1.blk0():
@test_fnc_v1.blk0.res = ZEXT <@i32 @i64> @0xa8324b55_i32
RET @test_fnc_v1.blk0.res
}
:type bldr: rpython.rlib.rmu.MuIRBuilder
:type rmu: rpython.rlib.rmu
:return: (rmu.MuVM(), rmu.MuCtx, rmu.MuIRBuilder, MuID, MuID)
"""
i32 = bldr.gen_sym("@i32")
bldr.new_type_int(i32, 32)
i64 = bldr.gen_sym("@i64")
bldr.new_type_int(i64, 64)
c_0xa8324b55_i32 = bldr.gen_sym("@0xa8324b55_i32")
bldr.new_const_int(c_0xa8324b55_i32, i32, 0xa8324b55)
sig__i64 = bldr.gen_sym("@sig__i64")
bldr.new_funcsig(sig__i64, [], [i64])
test_fnc = bldr.gen_sym("@test_fnc")
bldr.new_func(test_fnc, sig__i64)
# function body
v1 = bldr.gen_sym("@test_fnc_v1")
blk0 = bldr.gen_sym("@test_fnc_v1.blk0")
res = bldr.gen_sym("@test_fnc_v1.blk0.res")
op_convop = bldr.gen_sym()
bldr.new_conv(op_convop, res, rmu.MuConvOptr.ZEXT, i32, i64, c_0xa8324b55_i32)
op_ret = bldr.gen_sym()
bldr.new_ret(op_ret, [res])
bldr.new_bb(blk0, [], [], rmu.MU_NO_ID, [op_convop, op_ret])
bldr.new_func_ver(v1, test_fnc, [blk0])
return {
"@i32": i32,
"@i64": i64,
"test_fnc_sig": sig__i64,
"test_fnc": test_fnc,
"result_type": i64
}
res = impl_jit_test(cmdopt, build_test_bundle)
if cmdopt.run:
assert res == 0x00000000a8324b55
| 35.699387
| 95
| 0.569686
| 770
| 5,819
| 3.968831
| 0.087013
| 0.103076
| 0.098168
| 0.076571
| 0.858966
| 0.85373
| 0.845877
| 0.845877
| 0.835079
| 0.825589
| 0
| 0.127183
| 0.301426
| 5,819
| 163
| 96
| 35.699387
| 0.6246
| 0.272384
| 0
| 0.787234
| 0
| 0
| 0.10271
| 0.022194
| 0
| 0
| 0.021677
| 0
| 0.031915
| 1
| 0.06383
| false
| 0
| 0.010638
| 0
| 0.106383
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1f71243752e00cd2d867722d91394cd00789e761
| 292
|
py
|
Python
|
andhra/config.py
|
Jalend15/electoral_rolls
|
da170c6d07c5d5f19fdc88ab4b72359da2d31661
|
[
"MIT"
] | null | null | null |
andhra/config.py
|
Jalend15/electoral_rolls
|
da170c6d07c5d5f19fdc88ab4b72359da2d31661
|
[
"MIT"
] | null | null | null |
andhra/config.py
|
Jalend15/electoral_rolls
|
da170c6d07c5d5f19fdc88ab4b72359da2d31661
|
[
"MIT"
] | 2
|
2021-08-24T05:57:38.000Z
|
2021-08-24T09:13:22.000Z
|
ANDHRA_TRACK_DIR = '/Users/jalend15/PycharmProjects/electoral_rolls/andhra/andhra_pdfs'
ANDHRA_PDF_ENGLISH_DIR = '/Users/jalend15/PycharmProjects/electoral_rolls/andhra/andhra_pdfs/english'
ANDHRA_PDF_TELUGU_DIR = '/Users/jalend15/PycharmProjects/electoral_rolls/andhra/andhra_pdfs/telugu'
| 48.666667
| 101
| 0.863014
| 37
| 292
| 6.432432
| 0.324324
| 0.10084
| 0.201681
| 0.390756
| 0.768908
| 0.768908
| 0.768908
| 0.768908
| 0.768908
| 0
| 0
| 0.021352
| 0.037671
| 292
| 6
| 102
| 48.666667
| 0.825623
| 0
| 0
| 0
| 0
| 0
| 0.734483
| 0.734483
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2f055ffd170aa70d84bb0c8b2ccb36531771c1ab
| 29
|
py
|
Python
|
catprinter/__init__.py
|
thyme4soup/catprinter
|
9f4e2acbc0f4fb48e7132e0848201c74aa5a66ee
|
[
"MIT"
] | null | null | null |
catprinter/__init__.py
|
thyme4soup/catprinter
|
9f4e2acbc0f4fb48e7132e0848201c74aa5a66ee
|
[
"MIT"
] | null | null | null |
catprinter/__init__.py
|
thyme4soup/catprinter
|
9f4e2acbc0f4fb48e7132e0848201c74aa5a66ee
|
[
"MIT"
] | null | null | null |
from catprinter import print
| 14.5
| 28
| 0.862069
| 4
| 29
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 1
| 29
| 29
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
2f1a585a2d0161218124df07993f8c1eb7e97ce9
| 154
|
py
|
Python
|
python/common/fileIO/__init__.py
|
CountZer0/PipelineConstructionSet
|
0aa73a8a63c72989b2d1c677efd78dad4388d335
|
[
"BSD-3-Clause"
] | 21
|
2015-04-27T05:01:36.000Z
|
2021-11-22T13:45:14.000Z
|
python/common/fileIO/__init__.py
|
0xb1dd1e/PipelineConstructionSet
|
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
|
[
"BSD-3-Clause"
] | null | null | null |
python/common/fileIO/__init__.py
|
0xb1dd1e/PipelineConstructionSet
|
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
|
[
"BSD-3-Clause"
] | 7
|
2015-04-11T11:37:19.000Z
|
2020-05-22T09:49:04.000Z
|
"""
Import file utilities modules
*Author:*
* Jason.Parks, jason@continuityai.com, 1/8/14 4:46 PM
"""
print "common.fileIO.__init__ imported"
| 19.25
| 58
| 0.675325
| 21
| 154
| 4.761905
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0.181818
| 154
| 8
| 59
| 19.25
| 0.738095
| 0
| 0
| 0
| 0
| 0
| 0.738095
| 0.52381
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 1
| null | null | 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
2f63fc5a81bac6f4d9c7ca1dac8ebe6d2f442d84
| 19,674
|
py
|
Python
|
chul/tests/test_updates.py
|
Jenks18/mfl_api
|
ecbb8954053be06bbcac7e1132811d73534c78d9
|
[
"MIT"
] | 19
|
2015-04-16T09:37:08.000Z
|
2022-02-10T11:50:30.000Z
|
chul/tests/test_updates.py
|
Jenks18/mfl_api
|
ecbb8954053be06bbcac7e1132811d73534c78d9
|
[
"MIT"
] | 125
|
2015-03-26T14:05:49.000Z
|
2020-05-14T08:16:50.000Z
|
chul/tests/test_updates.py
|
Jenks18/mfl_api
|
ecbb8954053be06bbcac7e1132811d73534c78d9
|
[
"MIT"
] | 39
|
2015-04-15T09:17:33.000Z
|
2022-03-28T18:08:16.000Z
|
from django.core.urlresolvers import reverse
from common.tests.test_views import LoginMixin
from common.models import ContactType, Contact
from rest_framework.test import APITestCase
from model_mommy import mommy
from facilities.models import Facility
from ..models import (
CommunityHealthUnit,
ChuUpdateBuffer,
Status,
CommunityHealthWorker,
CommunityHealthUnitContact)
class TestCHUpdatesApproval(LoginMixin, APITestCase):
def setUp(self):
self.url = reverse("api:chul:community_health_units_list")
self.approve_url = reverse("api:chul:chu_updatebufers_list")
super(TestCHUpdatesApproval, self).setUp()
def test_updates_chu_not_approved(self):
chu = mommy.make(CommunityHealthUnit)
name = 'Some Name'
data = {
"name": name,
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(chu_refetched.name, name)
self.assertEquals(0, ChuUpdateBuffer.objects.count())
def test_updates_chu_approved(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
name = 'Some Name'
data = {
"name": name,
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertNotEquals(chu_refetched.name, name)
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertIsNotNone(update.basic)
self.assertIsNone(update.contacts)
self.assertIsNone(update.workers)
def test_update_and_approve_basic_details(self):
facility = mommy.make(Facility)
status = mommy.make(Status)
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
name = 'Some Name'
data = {
"name": name,
"facility": str(facility.id),
"status": str(status.id)
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertNotEquals(chu_refetched.name, name)
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertIsNotNone(update.basic)
self.assertIsNone(update.contacts)
self.assertIsNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(chu_refetched.name, name)
self.assertEquals(chu_refetched.facility, facility)
self.assertEquals(chu_refetched.status, status)
def test_update_and_approve_chews(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
chews = [
{
"first_name": "Chew wa kwanza",
"last_name": "Jina ya pili",
},
{
"first_name": "Chew wa pili",
"last_name": "Jina ya pili ya chew wa pili",
}
]
data = {
'health_unit_workers': chews
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(0, CommunityHealthWorker.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertEquals(update.basic, '{}')
self.assertIsNone(update.contacts)
self.assertIsNotNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(2, CommunityHealthWorker.objects.filter(
health_unit=chu_refetched).count())
def test_update_contacts(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
contact_type = mommy.make(ContactType)
contact_type_2 = mommy.make(ContactType)
contacts = [
{
"contact_type": str(contact_type.id),
"contact": "385235725"
},
{
"contact_type": str(contact_type_2.id),
"contact": "385235725"
}
]
data = {
'contacts': contacts
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(0, CommunityHealthUnitContact.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertEquals(update.basic, '{}')
self.assertIsNotNone(update.contacts)
self.assertIsNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthUnitContact.objects.count())
self.assertEquals(2, CommunityHealthUnitContact.objects.filter(
health_unit=chu_refetched).count())
def test_all_updates_combined(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
contact_type = mommy.make(ContactType)
contact_type_2 = mommy.make(ContactType)
name = 'Jina mpya'
contacts = [
{
"contact_type": str(contact_type.id),
"contact": "385235725"
},
{
"contact_type": str(contact_type_2.id),
"contact": "385235725"
}
]
chews = [
{
"first_name": "Chew wa kwanza",
"last_name": "Jina ya pili",
},
{
"first_name": "Chew wa pili",
"last_name": "Jina ya pili ya chew wa pili",
}
]
date_established = "2015-09-23"
date_operational = "2015-10-25"
data = {
'contacts': contacts,
'health_unit_workers': chews,
'name': name,
'date_established': date_established,
'date_operational': date_operational
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(0, CommunityHealthUnitContact.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertIsNotNone(update.basic)
self.assertIsNotNone(update.contacts)
self.assertIsNotNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthUnitContact.objects.count())
self.assertEquals(2, CommunityHealthUnitContact.objects.filter(
health_unit=chu_refetched).count())
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(2, CommunityHealthWorker.objects.filter(
health_unit=chu_refetched).count())
self.assertEquals(name, chu_refetched.name)
self.assertEquals(
date_established,
chu_refetched.date_established.isoformat())
self.assertEquals(
date_operational, chu_refetched.date_operational.isoformat())
def test_reject_updates(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
contact_type = mommy.make(ContactType)
contact_type_2 = mommy.make(ContactType)
name = 'Jina mpya'
contacts = [
{
"contact_type": str(contact_type.id),
"contact": "385235725"
},
{
"contact_type": str(contact_type_2.id),
"contact": "385235725"
}
]
chews = [
{
"first_name": "Chew wa kwanza",
"last_name": "Jina ya pili",
},
{
"first_name": "Chew wa pili",
"last_name": "Jina ya pili ya chew wa pili",
}
]
date_established = "2015-09-23"
date_operational = "2015-10-25"
data = {
'contacts': contacts,
'health_unit_workers': chews,
'name': name,
'date_established': date_established,
'date_operational': date_operational
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(0, CommunityHealthUnitContact.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertIsNotNone(update.basic)
self.assertIsNotNone(update.contacts)
self.assertIsNotNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_rejected": False
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(0, CommunityHealthUnitContact.objects.count())
self.assertEquals(0, CommunityHealthUnitContact.objects.filter(
health_unit=chu_refetched).count())
self.assertEquals(0, CommunityHealthWorker.objects.count())
self.assertEquals(0, CommunityHealthWorker.objects.filter(
health_unit=chu_refetched).count())
self.assertNotEquals(name, chu_refetched.name)
self.assertNotEquals(date_established, chu_refetched.date_established)
self.assertNotEquals(date_operational, chu_refetched.date_operational)
def test_approve_chew_updates_with_ids(self):
chu = mommy.make(CommunityHealthUnit)
chew_1 = mommy.make(CommunityHealthWorker, health_unit=chu)
chew_2 = mommy.make(CommunityHealthWorker, health_unit=chu)
chu.is_approved = True
chu.save()
chews = [
{
"first_name": "Chew wa kwanza",
"last_name": "Jina ya pili",
"id": str(chew_1.id),
'is_incharge': True,
},
{
"first_name": "Chew wa pili",
"last_name": "Jina ya pili ya chew wa pili",
'is_incharge': False,
"id": str(chew_2.id)
}
]
data = {
'health_unit_workers': chews
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertEquals(update.basic, '{}')
self.assertIsNone(update.contacts)
self.assertIsNotNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(2, CommunityHealthWorker.objects.filter(
health_unit=chu_refetched).count())
def test_approve_chew_updates_with_ids_no_id_no_and_is_incharge(self):
chu = mommy.make(CommunityHealthUnit)
chew_1 = mommy.make(CommunityHealthWorker, health_unit=chu)
chew_2 = mommy.make(CommunityHealthWorker, health_unit=chu)
chu.is_approved = True
chu.save()
chews = [
{
"first_name": "Chew wa kwanza",
"last_name": "Jina ya pili",
"id": str(chew_1.id),
},
{
"first_name": "Chew wa pili",
"last_name": "Jina ya pili ya chew wa pili",
"id": str(chew_2.id)
}
]
data = {
'health_unit_workers': chews
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertEquals(update.basic, '{}')
self.assertIsNone(update.contacts)
self.assertIsNotNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(2, CommunityHealthWorker.objects.filter(
health_unit=chu_refetched).count())
def test_approve_chew_updates_without_ids(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
chews = [
{
"first_name": "Chew wa kwanza",
"last_name": "Jina ya pili",
'is_incharge': True,
},
{
"first_name": "Chew wa pili",
"last_name": "Jina ya pili ya chew wa pili",
'is_incharge': False,
}
]
data = {
'health_unit_workers': chews
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertEquals(update.basic, '{}')
self.assertIsNone(update.contacts)
self.assertIsNotNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthWorker.objects.count())
self.assertEquals(2, CommunityHealthWorker.objects.filter(
health_unit=chu_refetched).count())
def test_contacts_with_ids(self):
chu = mommy.make(CommunityHealthUnit)
chu.is_approved = True
chu.save()
contact_type = mommy.make(ContactType)
contact_type_2 = mommy.make(ContactType)
contact_1 = mommy.make(
Contact, contact="3852357254", contact_type=contact_type)
contact_2 = mommy.make(
Contact, contact="385235725", contact_type=contact_type_2)
chu_contact_1 = mommy.make(
CommunityHealthUnitContact, health_unit=chu, contact=contact_1)
chu_contact_2 = mommy.make(
CommunityHealthUnitContact, health_unit=chu, contact=contact_2)
contacts = [
{
"contact_type": str(contact_type.id),
"contact": "3852357254",
"contact_type_name": contact_type.name,
"contact_id": str(contact_1.id),
"id": str(chu_contact_1.id)
},
{
"contact_type": str(contact_type_2.id),
"contact": "385235725",
"contact_type_name": contact_type_2.name,
"contact_id": str(contact_2.id),
"id": str(chu_contact_2.id)
}
]
data = {
'contacts': contacts
}
url = self.url + "{}/".format(chu.id)
response = self.client.patch(url, data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthUnitContact.objects.count())
self.assertEquals(1, ChuUpdateBuffer.objects.count())
update = ChuUpdateBuffer.objects.all()[0]
self.assertIsNotNone(update.health_unit)
self.assertEquals(update.basic, '{}')
self.assertIsNotNone(update.contacts)
self.assertIsNone(update.workers)
approve_update_url = self.approve_url + "{}/".format(update.id)
approve_data = {
"is_approved": True
}
response = self.client.patch(approve_update_url, approve_data)
self.assertEquals(200, response.status_code)
chu_refetched = CommunityHealthUnit.objects.get(id=chu.id)
self.assertEquals(2, CommunityHealthUnitContact.objects.count())
self.assertEquals(2, CommunityHealthUnitContact.objects.filter(
health_unit=chu_refetched).count())
| 38.500978
| 78
| 0.609434
| 1,989
| 19,674
| 5.850176
| 0.055807
| 0.097628
| 0.051564
| 0.039532
| 0.90495
| 0.885442
| 0.866535
| 0.862839
| 0.844276
| 0.832932
| 0
| 0.018394
| 0.281539
| 19,674
| 510
| 79
| 38.576471
| 0.804811
| 0
| 0
| 0.719486
| 0
| 0
| 0.078479
| 0.003355
| 0
| 0
| 0
| 0
| 0.235546
| 1
| 0.025696
| false
| 0
| 0.014989
| 0
| 0.042827
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2f6aba83bacf0a33a44da07f67ca51863d4794df
| 16,528
|
py
|
Python
|
tests/test_instruction_packet.py
|
PMGrobotics/pyax12
|
a5d53094ab7dd8c2cace1ac3d3fa1f86cc13c28c
|
[
"MIT"
] | 15
|
2015-08-21T19:37:32.000Z
|
2021-12-11T08:40:27.000Z
|
tests/test_instruction_packet.py
|
lvic/pyAX12andMX64
|
c759b0524079bc57ae3c89d276cd01f9d92c86cf
|
[
"MIT"
] | 7
|
2015-08-26T20:57:22.000Z
|
2020-06-29T11:41:36.000Z
|
tests/test_instruction_packet.py
|
lvic/pyAX12andMX64
|
c759b0524079bc57ae3c89d276cd01f9d92c86cf
|
[
"MIT"
] | 8
|
2017-10-19T03:21:13.000Z
|
2021-03-25T11:03:33.000Z
|
#!/usr/bin/env python3
# -*- coding : utf-8 -*-
# PyAX-12
# The MIT License
#
# Copyright (c) 2010,2015 Jeremie DECOCK (http://www.jdhp.org)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
"""
This module contains unit tests for the "InstructionPacket" class.
"""
import pyax12.packet as pk
import pyax12.instruction_packet as ip
import unittest
class TestInstructionPacket(unittest.TestCase):
"""
Contains unit tests for the "InstructionPacket" class.
"""
# Test the "dynamixel_id" argument ########################################
def test_wrong_id_type(self):
"""Check that the instanciation of InstructionPacket fails when the
argument "dynamixel_id" has a wrong type."""
# Check with None
dynamixel_id = None # wrong id
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with float
dynamixel_id = 1.0 # wrong id
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with string
dynamixel_id = "hi" # wrong id
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with tuple
dynamixel_id = () # wrong id
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_id_value(self):
"""Check that the instanciation of InstructionPacket fails when the
argument "dynamixel_id" has a wrong value (too low or too high)."""
# Too high
dynamixel_id = 0xff # wrong id
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Too low
dynamixel_id = -1 # wrong id
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# # TODO: should it be considered as an actual error or can it be neglected?
# def test_wrong_id_value_sync_write(self):
# """Check that the instanciation of InstructionPacket fails when the
# argument "dynamixel_id" has a wrong value (the SYNC_WRITE
# instruction expects the broadcast id)."""
#
# dynamixel_id = 1 # wrong id (must be 0xfe)
# instruction = ip.SYNC_WRITE
# params = (pk.LED, 1, 1, 1)
#
# with self.assertRaises(ValueError):
# ip.InstructionPacket(dynamixel_id, instruction, params)
# Test the "instruction" argument #########################################
def test_wrong_instruction_type(self):
"""Check that the instanciation of InstructionPacket fails when the
argument "instruction" has a wrong type."""
# Check with None
dynamixel_id = 1
instruction = None # wrong instruction
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with float
dynamixel_id = 1
instruction = 1.0 # wrong instruction
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with string
dynamixel_id = 1
instruction = "hi" # wrong instruction
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with tuple
dynamixel_id = 1
instruction = () # wrong instruction
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_instruction_value(self):
"""Check that the instanciation of InstructionPacket fails when the
argument "instruction" has a wrong value."""
dynamixel_id = 1
instruction = 1000 # wrong instruction
params = (pk.PRESENT_TEMPERATURE, 0x01)
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Test the "parameters" argument ##########################################
def test_wrong_params_type(self):
"""Check that the instanciation of InstructionPacket fails when the
argument "parameters" has a wrong type."""
# Check with a float.
dynamixel_id = 1
instruction = ip.READ_DATA
params = 1.0 # wrong type
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with a string.
dynamixel_id = 1
instruction = ip.READ_DATA
params = "hello world" # wrong type
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with an integer.
# There is no instruction which take only one parameter (some take 0
# parameters, some take 2 or more parameters but none take 1
# parameter).
dynamixel_id = 1
instruction = ip.PING
params = 1
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_good_params_type(self):
"""Check that the instanciation of InstructionPacket doesn't fail when
the argument "parameters" has a right type."""
# Check with None (some instructions like "PING" doesn't take any
# parameter)
dynamixel_id = 1
instruction = ip.PING
params = None # wrong type
try:
ip.InstructionPacket(dynamixel_id, instruction, params)
except (TypeError, ValueError):
self.fail("Encountered an unexpected exception.")
# Check with a tuple
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01)
try:
ip.InstructionPacket(dynamixel_id, instruction, params)
except (TypeError, ValueError):
self.fail("Encountered an unexpected exception.")
# Check with a list
dynamixel_id = 1
instruction = ip.READ_DATA
params = [pk.PRESENT_TEMPERATURE, 0x01]
try:
ip.InstructionPacket(dynamixel_id, instruction, params)
except (TypeError, ValueError):
self.fail("Encountered an unexpected exception.")
# Check with a bytes string
dynamixel_id = 1
instruction = ip.READ_DATA
params = bytes((pk.PRESENT_TEMPERATURE, 0x01))
try:
ip.InstructionPacket(dynamixel_id, instruction, params)
except (TypeError, ValueError):
self.fail("Encountered an unexpected exception.")
# Check with a bytearray
dynamixel_id = 1
instruction = ip.READ_DATA
params = bytearray((pk.PRESENT_TEMPERATURE, 0x01))
try:
ip.InstructionPacket(dynamixel_id, instruction, params)
except (TypeError, ValueError):
self.fail("Encountered an unexpected exception.")
def test_wrong_params_items_type(self):
"""Check that the instanciation of InstructionPacket fails when the
"parameters" items type is wrong."""
# Check with None
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, None) # wrong value
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with float
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 1.0) # wrong value
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with string
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, "hi") # wrong value
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Check with tuple
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, ()) # wrong value
with self.assertRaises(TypeError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_params_items_value(self):
"""Check that the instanciation of InstructionPacket fails when the
"parameters" items type is value."""
# Too high value
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0xffff) # wrong value
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Too low value
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, -1) # wrong value
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_ping(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (greater than 0 for the PING
instruction)."""
# Too high
dynamixel_id = 1
instruction = ip.PING
params = (0x00, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_read(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (for the READ_DATA instruction)."""
# Too high
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 0x01, 0x00) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Too low
dynamixel_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_write(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (for the WRITE_DATA instruction)."""
# Too low
dynamixel_id = 1
instruction = ip.WRITE_DATA
params = (pk.LED, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_reg_write(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (for the REG_WRITE instruction)."""
# Too low
dynamixel_id = 1
instruction = ip.REG_WRITE
params = (pk.LED, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_action(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (greater than 0 for the ACTION
instruction)."""
# Too high
dynamixel_id = 1
instruction = ip.ACTION
params = (0x00, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_reset(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (greater than 0 for the RESET
instruction)."""
# Too high
dynamixel_id = 1
instruction = ip.RESET
params = (0x00, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
def test_wrong_num_params_sync_write(self):
"""Check that the instanciation of InstructionPacket fails when the
number of paramaters is wrong (for the SYNC_WRITE instruction)."""
# Too low (1)
dynamixel_id = 0xfe
instruction = ip.SYNC_WRITE
params = (pk.LED, ) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Too low (2)
dynamixel_id = 0xfe
instruction = ip.SYNC_WRITE
params = (pk.LED, 1) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Too low (3)
dynamixel_id = 0xfe
instruction = ip.SYNC_WRITE
params = (pk.LED, 1, 1) # wrong nb of params
with self.assertRaises(ValueError):
ip.InstructionPacket(dynamixel_id, instruction, params)
# Full examples ###########################################################
def test_example1(self):
"""Check the example 1 from the Dynamixel user guide: "Setting the ID
of a connected Dynamixel actuator to 1" (p.20)."""
dxl_id = pk.BROADCAST_ID
instruction = ip.WRITE_DATA
params = (pk.ID, 1)
instruction_packet = ip.InstructionPacket(dxl_id, instruction, params)
expected_str = "ff ff fe 04 03 03 01 f6"
self.assertEqual(instruction_packet.to_printable_string(), expected_str)
def test_example2(self):
"""Check the example 2 from the Dynamixel user guide: "Reading the
internal temperature of the Dynamixel actuator with an ID of 1"
(p.20)."""
dxl_id = 1
instruction = ip.READ_DATA
params = (pk.PRESENT_TEMPERATURE, 1)
instruction_packet = ip.InstructionPacket(dxl_id, instruction, params)
expected_str = "ff ff 01 04 02 2b 01 cc"
self.assertEqual(instruction_packet.to_printable_string(), expected_str)
def test_example3(self):
"""Check the example 3 from the Dynamixel user guide: "Obtaining the
status packet of the Dynamixel actuator with an ID of 1" (p.22) i.e.
PING the Dynamixel #1."""
dxl_id = 1
instruction = ip.PING
params = ()
instruction_packet = ip.InstructionPacket(dxl_id, instruction, params)
expected_str = "ff ff 01 02 01 fb"
self.assertEqual(instruction_packet.to_printable_string(), expected_str)
if __name__ == '__main__':
unittest.main()
| 34.505219
| 80
| 0.630506
| 1,852
| 16,528
| 5.50216
| 0.137689
| 0.082041
| 0.072718
| 0.105986
| 0.805005
| 0.785967
| 0.773602
| 0.761923
| 0.726791
| 0.695976
| 0
| 0.01551
| 0.286121
| 16,528
| 478
| 81
| 34.577406
| 0.848123
| 0.320305
| 0
| 0.726872
| 0
| 0
| 0.025179
| 0
| 0
| 0
| 0.009583
| 0.002092
| 0.145374
| 1
| 0.079295
| false
| 0
| 0.013216
| 0
| 0.096916
| 0.013216
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2f7f3c25ccb751d7e276b0bdaa3648a8069896e6
| 3,811
|
py
|
Python
|
eqb/scripts/hmac-sha256.py
|
cryptotechguru/tesseract
|
9b64c61483710c94390404c3d920c1059cbfcda7
|
[
"MIT"
] | null | null | null |
eqb/scripts/hmac-sha256.py
|
cryptotechguru/tesseract
|
9b64c61483710c94390404c3d920c1059cbfcda7
|
[
"MIT"
] | 45
|
2019-02-05T17:17:18.000Z
|
2019-07-20T17:21:02.000Z
|
eqb/scripts/hmac-sha256.py
|
cryptotechguru/tesseract
|
9b64c61483710c94390404c3d920c1059cbfcda7
|
[
"MIT"
] | 6
|
2019-02-01T12:30:48.000Z
|
2019-03-01T20:33:14.000Z
|
#!/usr/bin/env python
# Generate test data for crypto_tests/hmac_sha3_testvectors
import hashlib
import hmac
def TestHMACSHA256(key, message, expected):
m = hmac.new(bytearray.fromhex(key), bytearray.fromhex(message), hashlib.sha256)
result = m.hexdigest()
print(key, message)
print(expected)
print(result, result == expected)
print()
TestHMACSHA256("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b",
"4869205468657265",
"b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7")
TestHMACSHA256("4a656665",
"7768617420646f2079612077616e7420666f72206e6f7468696e673f",
"5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843")
TestHMACSHA256("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
"dddddddddddddddddddddddddddddddddddd",
"773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe")
TestHMACSHA256("0102030405060708090a0b0c0d0e0f10111213141516171819",
"cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd"
"cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
"82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b")
TestHMACSHA256("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaa",
"54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a"
"65204b6579202d2048617368204b6579204669727374",
"60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54")
TestHMACSHA256("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaa",
"5468697320697320612074657374207573696e672061206c6172676572207468"
"616e20626c6f636b2d73697a65206b657920616e642061206c61726765722074"
"68616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565"
"647320746f20626520686173686564206265666f7265206265696e6720757365"
"642062792074686520484d414320616c676f726974686d2e",
"9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2")
#// Test case with key length 63 bytes.
TestHMACSHA256("4a6566654a6566654a6566654a6566654a6566654a6566654a6566654a656665"
"4a6566654a6566654a6566654a6566654a6566654a6566654a6566654a6566",
"7768617420646f2079612077616e7420666f72206e6f7468696e673f",
"9de4b546756c83516720a4ad7fe7bdbeac4298c6fdd82b15f895a6d10b0769a6")
#// Test case with key length 64 bytes.
TestHMACSHA256("4a6566654a6566654a6566654a6566654a6566654a6566654a6566654a656665"
"4a6566654a6566654a6566654a6566654a6566654a6566654a6566654a656665",
"7768617420646f2079612077616e7420666f72206e6f7468696e673f",
"528c609a4c9254c274585334946b7c2661bad8f1fc406b20f6892478d19163dd")
#// Test case with key length 65 bytes.
TestHMACSHA256("4a6566654a6566654a6566654a6566654a6566654a6566654a6566654a656665"
"4a6566654a6566654a6566654a6566654a6566654a6566654a6566654a656665"
"4a",
"7768617420646f2079612077616e7420666f72206e6f7468696e673f",
"d06af337f359a2330deffb8e3cbe4b5b7aa8ca1f208528cdbd245d5dc63c4483")
| 59.546875
| 84
| 0.773025
| 122
| 3,811
| 24.122951
| 0.540984
| 0.260958
| 0.260958
| 0.015291
| 0.20897
| 0.187564
| 0
| 0
| 0
| 0
| 0
| 0.449312
| 0.17948
| 3,811
| 64
| 85
| 59.546875
| 0.491845
| 0.05038
| 0
| 0.309091
| 1
| 0
| 0.684371
| 0.673859
| 0
| 0
| 0
| 0
| 0
| 1
| 0.018182
| false
| 0
| 0.036364
| 0
| 0.054545
| 0.072727
| 0
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
85d070c4ac18a762e7c0c4642a9c37d2f616484e
| 588
|
py
|
Python
|
lists_slicing_protists.py
|
julencosme/python-crash-course
|
6b37d7346e235273c266110932207cd67ce4eb0e
|
[
"MIT"
] | null | null | null |
lists_slicing_protists.py
|
julencosme/python-crash-course
|
6b37d7346e235273c266110932207cd67ce4eb0e
|
[
"MIT"
] | null | null | null |
lists_slicing_protists.py
|
julencosme/python-crash-course
|
6b37d7346e235273c266110932207cd67ce4eb0e
|
[
"MIT"
] | null | null | null |
protists_chlorophyta = ["volvox", "actinastrum", "hydrodictyon", "spirogyra"]
print("The first three items in the list are:")
for protist in protists_chlorophyta[:3]:
print(protist.title())
protists_chlorophyta = ["volvox", "actinastrum", "hydrodictyon", "spirogyra"]
print("The items in the middle of the list are:")
for protist in protists_chlorophyta[1:3]:
print(protist.title())
protists_chlorophyta = ["volvox", "actinastrum", "hydrodictyon", "spirogyra"]
print("The last three items in the list are:")
for protist in protists_chlorophyta[-3:]:
print(protist.title())
| 36.75
| 77
| 0.731293
| 74
| 588
| 5.72973
| 0.297297
| 0.268868
| 0.176887
| 0.254717
| 0.933962
| 0.933962
| 0.933962
| 0.933962
| 0.683962
| 0.683962
| 0
| 0.007767
| 0.12415
| 588
| 15
| 78
| 39.2
| 0.815534
| 0
| 0
| 0.5
| 0
| 0
| 0.389456
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
c8387d86da85605282bd29843e7873e685bf8274
| 148
|
py
|
Python
|
spider/concurrent/__init__.py
|
Foristkirito/PSpider
|
1393576180e25cdc59b495d1988afef38962758f
|
[
"BSD-2-Clause"
] | 1,894
|
2016-10-17T17:11:18.000Z
|
2022-03-30T19:20:04.000Z
|
spider/concurrent/__init__.py
|
yiyuebitian/PSpider
|
7cb5b073d37499392d562ef9a112df085729f963
|
[
"BSD-2-Clause"
] | 32
|
2016-11-30T08:47:39.000Z
|
2022-02-20T04:46:10.000Z
|
spider/concurrent/__init__.py
|
yiyuebitian/PSpider
|
7cb5b073d37499392d562ef9a112df085729f963
|
[
"BSD-2-Clause"
] | 638
|
2016-10-18T01:23:27.000Z
|
2022-03-21T07:05:30.000Z
|
# _*_ coding: utf-8 _*_
"""
define ThreadPool as WebSpider
"""
from .threads_inst import TPEnum
from .threads_pool import ThreadPool as WebSpider
| 16.444444
| 49
| 0.756757
| 19
| 148
| 5.578947
| 0.684211
| 0.226415
| 0.396226
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008
| 0.155405
| 148
| 8
| 50
| 18.5
| 0.84
| 0.358108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
c09caf5aa86e63d6dddd085bfcaee6b5ac7f6648
| 27,534
|
py
|
Python
|
HLC/dense_rewardDDPG_HER.py
|
LM095/Multi-Subtask-DRL-for-Pick-and-Place-Task
|
b0fd58e086289adf1cc3930431db09c985c498bf
|
[
"MIT"
] | 5
|
2021-02-15T19:54:38.000Z
|
2021-06-21T15:41:42.000Z
|
HLC/dense_rewardDDPG_HER.py
|
LM095/DRL-for-Pick-and-Place-Task-subtasks
|
b0fd58e086289adf1cc3930431db09c985c498bf
|
[
"MIT"
] | 1
|
2021-11-14T09:36:25.000Z
|
2021-11-14T11:22:51.000Z
|
HLC/dense_rewardDDPG_HER.py
|
LM095/Multi-Subtask-DRL-for-Pick-and-Place-Task
|
b0fd58e086289adf1cc3930431db09c985c498bf
|
[
"MIT"
] | 1
|
2021-06-21T15:41:43.000Z
|
2021-06-21T15:41:43.000Z
|
import gym
import random
import numpy as np
import argparse
from arguments import get_args
from actorcritic import Actor, second, act, actor
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import torch.optim as optim
import torch.cuda
import matplotlib.pyplot as plt
from torch.distributions import Normal
import os
import random
import torch.nn as nn
from itertools import count
import time
import csv
def ensure_shared_grads(model, shared_model):
for param, shared_param in zip(model.parameters(),shared_model.parameters()):
if shared_param.grad is not None:
return
shared_param._grad = param.grad
# process the inputs
def process_inputs(o, g, o_mean, o_std, g_mean, g_std, args):
o_clip = np.clip(o, -args.clip_obs, args.clip_obs)
g_clip = np.clip(g, -args.clip_obs, args.clip_obs)
o_norm = np.clip((o_clip - o_mean) / (o_std), -args.clip_range, args.clip_range)
g_norm = np.clip((g_clip - g_mean) / (g_std), -args.clip_range, args.clip_range)
inputs = np.concatenate([o_norm, g_norm])
inputs = torch.tensor(inputs, dtype=torch.float32)
return inputs
def train(rank, args, shared_model, counter, lock, optimizer=None):
args2 = get_args()
# load the model param
model_path_approach = args2.save_dir + args2.env_name + '/approach.pt'
o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, model_approach = torch.load(model_path_approach, map_location=lambda storage, loc: storage)
model_path_manipulate = args2.save_dir + args2.env_name + '/manipulate.pt'
o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, model_manipulate = torch.load(model_path_manipulate, map_location=lambda storage, loc: storage)
model_path_retract = args2.save_dir + args2.env_name + '/retract.pt'
o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, model_retract = torch.load(model_path_retract, map_location=lambda storage, loc: storage)
FloatTensor = torch.cuda.FloatTensor if args.use_cuda else torch.FloatTensor
env = gym.make("FetchPickAndPlace-v1")
env2 = gym.wrappers.FlattenDictWrapper(env, dict_keys=['observation', 'desired_goal'])
observation = env.reset()
env_params = {'obs': observation['observation'].shape[0],
'goal': observation['desired_goal'].shape[0],
'action': env.action_space.shape[0],
'action_max': env.action_space.high[0],
}
hlc = Actor()
# create the actor network
actor_network_approach = actor(env_params)
actor_network_approach.load_state_dict(model_approach)
actor_network_approach.eval()
actor_network_manipulate = actor(env_params)
actor_network_manipulate.load_state_dict(model_manipulate)
actor_network_manipulate.eval()
actor_network_retract = actor(env_params)
actor_network_retract.load_state_dict(model_retract)
actor_network_retract.eval()
if args.use_cuda:
hlc.cuda()
for p in hlc.fc1.parameters():
p.requires_grad = False
for p in hlc.fc2.parameters():
p.requires_grad = False
if optimizer is None:
optimizer = optim.Adam(shared_model.parameters(), lr=args.lr)
hlc.train()
done = True
for num_iter in count():
with lock:
counter.value += 1
#print(num_iter, counter.value)
observation = env.reset()
goal = observation['desired_goal']
objectPos = observation['observation'][3:6]
object_rel_pos = observation['observation'][6:9]
object_oriented_goal = object_rel_pos.copy()
object_oriented_goal[2] += 0.03 # first make the gripper go slightly above the object
timeStep = 0 #count the total number of timesteps
grip_pos = -object_rel_pos + objectPos
object_pos_goal = objectPos.copy()
if grip_pos[0] > objectPos[0]:
object_pos_goal[0] += 0.003
else:
object_pos_goal[0] -= 0.003
if grip_pos[1] > objectPos[1]:
object_pos_goal[1] += 0.002
else:
object_pos_goal[1] -= 0.002
object_pos_goal[2] -= -0.031
if rank == 0:
if num_iter % args.save_interval == 0 and num_iter > 0:
#print ("Saving model at :" + args.save_path)
torch.save(shared_model.state_dict(), args.save_path1)
if num_iter % (args.save_interval * 2.5) == 0 and num_iter > 0 and rank == 1: # Second saver in-case first processes crashes
#print ("Saving model for process 1 at :" + args.save_path)
torch.save(shared_model.state_dict(), args.save_path1)
hlc.load_state_dict(shared_model.state_dict())
values, log_probs, rewards, entropies = [], [], [], []
if done:
cx = Variable(torch.zeros(1, 32)).type(FloatTensor)
hx = Variable(torch.zeros(1, 32)).type(FloatTensor)
else:
cx = Variable(cx.data).type(FloatTensor)
hx = Variable(hx.data).type(FloatTensor)
state_inp = torch.from_numpy(env2.observation(observation)).type(FloatTensor)
#criterion = nn.MSELoss()
value, y, (hx, cx) = hlc(state_inp, hx, cx)
prob = F.softmax(y)
log_prob = F.log_softmax(y, dim=-1)
act_model = prob.max(-1, keepdim=True)[1].data
entropy = -(log_prob * prob).sum(-1, keepdim=True)
log_prob = log_prob.gather(-1, Variable(act_model))
action_out = act_model.to(torch.device("cpu"))
#action_out = torch.tensor([[0]])
entropies.append(entropy), log_probs.append(log_prob), values.append(value)
#print(action_out)
obs = observation["observation"]
observation_new = observation
while np.linalg.norm(grip_pos - object_pos_goal) >= 0.031 and timeStep <= 20:
actions = [0, 0, 0, 0]
if action_out == 0:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, object_pos_goal, o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, args2)
pi = actor_network_approach(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
elif action_out == 1:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, objectPos, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args2)
pi = actor_network_manipulate(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
else:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, goal, o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, args2)
pi = actor_network_retract(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
actions[3] = 0.05
observation_new, _, _, info = env.step(actions)
obs = observation_new["observation"]
g = observation_new["desired_goal"]
objectPos_new = observation_new["observation"][3:6]
object_rel_pos_new = observation_new["observation"][6:9]
objectPos = objectPos_new
grip_pos_new = -object_rel_pos_new.copy() + objectPos_new.copy()
grip_pos = grip_pos_new
object_oriented_goal = object_rel_pos_new
#print('timestep: {},reward eval: {}'.format(timeStep, reward))
timeStep += 1
state_inp = torch.from_numpy(env2.observation(observation_new)).type(FloatTensor)
if timeStep >= 21:
reward = torch.Tensor([-1.0]).type(FloatTensor)
break
if action_out == 0 and timeStep <= 21:
reward = torch.Tensor([1.0]).type(FloatTensor)
rewards.append(reward)
value, y, (hx, cx) = hlc(state_inp, hx, cx)
prob = F.softmax(y)
log_prob = F.log_softmax(y, dim=-1)
act_model = prob.max(-1, keepdim=True)[1].data
entropy = -(log_prob * prob).sum(-1, keepdim=True)
log_prob = log_prob.gather(-1, Variable(act_model))
action_out = act_model.to(torch.device("cpu"))
entropies.append(entropy), log_probs.append(log_prob), values.append(value)
#action_out = torch.tensor([[1]])
while np.linalg.norm(grip_pos - objectPos) >= 0.015 and timeStep < env._max_episode_steps:
actions = [0, 0, 0, 0]
if action_out == 0:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, object_pos_goal, o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, args2)
pi = actor_network_approach(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
elif action_out == 1:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, objectPos, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args2)
pi = actor_network_manipulate(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
else:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, goal, o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, args2)
pi = actor_network_retract(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
actions[3] = -0.01
observation_new, _, _, info = env.step(actions)
obs = observation_new["observation"]
objectPos = observation_new["observation"][3:6]
object_rel_pos = observation_new["observation"][6:9]
grip_pos_new = -object_rel_pos + objectPos
grip_pos = grip_pos_new
timeStep += 1
state_inp = torch.from_numpy(env2.observation(observation_new)).type(FloatTensor)
if timeStep >= env._max_episode_steps:
reward = torch.Tensor([-1.0]).type(FloatTensor)
break
if timeStep < env._max_episode_steps:
reward = torch.Tensor([1.0]).type(FloatTensor)
rewards.append(reward)
value, y, (hx, cx) = hlc(state_inp, hx, cx)
prob = F.softmax(y)
log_prob = F.log_softmax(y, dim=-1)
act_model = prob.max(-1, keepdim=True)[1].data
entropy = -(log_prob * prob).sum(-1, keepdim=True)
log_prob = log_prob.gather(-1, Variable(act_model))
action_out = act_model.to(torch.device("cpu"))
entropies.append(entropy), log_probs.append(log_prob), values.append(value)
#action_out = torch.tensor([[2]])
while np.linalg.norm(goal - objectPos) >= 0.01 and timeStep < env._max_episode_steps:
actions = [0, 0, 0, 0]
if action_out == 0:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, object_pos_goal, o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, args2)
pi = actor_network_approach(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
elif action_out == 1:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, objectPos, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args2)
pi = actor_network_manipulate(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
else:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, goal, o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, args2)
pi = actor_network_retract(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
actions[3] = -0.01
# put actions into the environment
observation_new, _, _, info = env.step(actions)
obs = observation_new['observation']
#inputs = process_inputs(obs, g, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args)
timeStep += 1
state_inp = torch.from_numpy(env2.observation(observation_new)).type(FloatTensor)
objectPos = observation_new['observation'][3:6]
object_rel_pos = observation_new['observation'][6:9]
if timeStep >= env._max_episode_steps:
break
while True: #limit the number of timesteps in the episode to a fixed duration
#env.render()
action = [0, 0, 0, 0]
action[3] = -0.01 # keep the gripper closed
obsDataNew, reward, done, info = env.step(action)
timeStep += 1
objectPos = obsDataNew['observation'][3:6]
object_rel_pos = obsDataNew['observation'][6:9]
if timeStep >= env._max_episode_steps: break
if info['is_success'] == 1.0:
reward = torch.Tensor([1.0]).type(FloatTensor)
else:
reward = torch.Tensor([-1.0]).type(FloatTensor)
rewards.append(reward)
R = torch.zeros(1, 1)
values.append(Variable(R).type(FloatTensor))
policy_loss = 0
value_loss = 0
R = Variable(R).type(FloatTensor)
gae = torch.zeros(1, 1).type(FloatTensor)
for i in reversed(range(len(rewards))):
R = args.gamma * R + rewards[i]
advantage = R - values[i]
value_loss = value_loss + 0.5 * advantage.pow(2)
delta_t = rewards[i] + args.gamma * values[i + 1].data - values[i].data
gae = gae * args.gamma * args.tau + delta_t
policy_loss = policy_loss - log_probs[i] * Variable(gae).type(FloatTensor)
total_loss = policy_loss + args.value_loss_coef * value_loss
optimizer.zero_grad()
(total_loss).backward(retain_graph=True)
torch.nn.utils.clip_grad_norm_(hlc.parameters(), args.max_grad_norm)
ensure_shared_grads(hlc, shared_model)
optimizer.step()
def test(rank, args, shared_model, counter):
args2 = get_args()
# load the model param
model_path_approach = args2.save_dir + args2.env_name + '/approach.pt'
o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, model_approach = torch.load(model_path_approach, map_location=lambda storage, loc: storage)
model_path_manipulate = args2.save_dir + args2.env_name + '/manipulate.pt'
o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, model_manipulate = torch.load(model_path_manipulate, map_location=lambda storage, loc: storage)
model_path_retract = args2.save_dir + args2.env_name + '/retract.pt'
o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, model_retract = torch.load(model_path_retract, map_location=lambda storage, loc: storage)
FloatTensor = torch.cuda.FloatTensor if args.use_cuda else torch.FloatTensor
env = gym.make("FetchPickAndPlace-v1")
env2 = gym.wrappers.FlattenDictWrapper(env, dict_keys=['observation', 'desired_goal'])
observation = env.reset()
env_params = {'obs': observation['observation'].shape[0],
'goal': observation['desired_goal'].shape[0],
'action': env.action_space.shape[0],
'action_max': env.action_space.high[0],
}
hlc = Actor()
# create the actor network
actor_network_approach = actor(env_params)
actor_network_approach.load_state_dict(model_approach)
actor_network_approach.eval()
actor_network_manipulate = actor(env_params)
actor_network_manipulate.load_state_dict(model_manipulate)
actor_network_manipulate.eval()
actor_network_retract = actor(env_params)
actor_network_retract.load_state_dict(model_retract)
actor_network_retract.eval()
if args.use_cuda:
hlc.cuda()
done = True
savefile = os.getcwd() + '/train/mario_curves.csv'
title = ['No. episodes', 'No. of success']
with open(savefile, 'a', newline='') as sfile:
writer = csv.writer(sfile)
writer.writerow(title)
hlc.eval()
while True:
hlc.load_state_dict(shared_model.state_dict())
hlc.eval()
ep_num = 0
success = 0
num_ep = counter.value
while ep_num < 50:
ep_num +=1
observation = env.reset()
#lastObs = observation
goal = observation['desired_goal']
objectPos = observation['observation'][3:6]
object_rel_pos = observation['observation'][6:9]
object_oriented_goal = object_rel_pos.copy()
object_oriented_goal[2] += 0.03 # first make the gripper go slightly above the object
timeStep = 0
grip_pos = -object_rel_pos + objectPos
object_pos_goal = objectPos.copy()
if grip_pos[0] > objectPos[0]:
object_pos_goal[0] += 0.003
else:
object_pos_goal[0] -= 0.003
if grip_pos[1] > objectPos[1]:
object_pos_goal[1] += 0.002
else:
object_pos_goal[1] -= 0.002
object_pos_goal[2] -= -0.031
if done:
cx = Variable(torch.zeros(1, 32)).type(FloatTensor)
hx = Variable(torch.zeros(1, 32)).type(FloatTensor)
else:
cx = Variable(cx.data).type(FloatTensor)
hx = Variable(hx.data).type(FloatTensor)
state_inp = torch.from_numpy(env2.observation(observation)).type(FloatTensor)
value, y, (hx, cx) = hlc(state_inp, hx, cx)
prob = F.softmax(y)
act_model = prob.max(-1, keepdim=True)[1].data
action_out = act_model.to(torch.device("cpu"))
obs = observation["observation"]
while np.linalg.norm(grip_pos - object_pos_goal) >= 0.031 and timeStep <= 20:
#env.render()
actions = [0, 0, 0, 0]
if action_out == 0:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, object_pos_goal, o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, args2)
pi = actor_network_approach(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
elif action_out == 1:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, objectPos, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args2)
pi = actor_network_manipulate(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
else:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, goal, o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, args2)
pi = actor_network_retract(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
actions[3] = 0.05
observation_new, _, _, info = env.step(actions)
obs = observation_new["observation"]
g = observation_new["desired_goal"]
objectPos_new = observation_new["observation"][3:6]
object_rel_pos_new = observation_new["observation"][6:9]
objectPos = objectPos_new
grip_pos_new = -object_rel_pos_new + objectPos_new
grip_pos = grip_pos_new
object_oriented_goal = object_rel_pos_new
#print('timestep: {},reward eval: {}'.format(timeStep, reward))
timeStep += 1
state_inp = torch.from_numpy(env2.observation(observation_new)).type(FloatTensor)
value, y, (hx, cx) = hlc(state_inp, hx, cx)
prob = F.softmax(y)
act_model = prob.max(-1, keepdim=True)[1].data
action_out = act_model.to(torch.device("cpu"))
while np.linalg.norm(grip_pos - objectPos) >= 0.015 and timeStep < env._max_episode_steps:
#env.render()
actions = [0, 0, 0, 0]
if action_out == 0:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, object_pos_goal, o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, args2)
pi = actor_network_approach(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
elif action_out == 1:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, objectPos, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args2)
pi = actor_network_manipulate(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
else:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, goal, o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, args2)
pi = actor_network_retract(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
actions[3] = -0.01
observation_new, _, _, info = env.step(actions)
obs = observation_new["observation"]
objectPos = observation_new["observation"][3:6]
object_rel_pos = observation_new["observation"][6:9]
grip_pos_new = -object_rel_pos + objectPos
grip_pos = grip_pos_new
timeStep += 1
state_inp = torch.from_numpy(env2.observation(observation_new)).type(FloatTensor)
if timeStep >= env._max_episode_steps:
break
value, y, (hx, cx) = hlc(state_inp, hx, cx)
prob = F.softmax(y)
act_model = prob.max(-1, keepdim=True)[1].data
action_out = act_model.to(torch.device("cpu"))
while np.linalg.norm(goal - objectPos) >= 0.01 and timeStep < env._max_episode_steps:
#env.render()
actions = [0, 0, 0, 0]
if action_out == 0:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, object_pos_goal, o_mean_approach, o_std_approach, g_mean_approach, g_std_approach, args2)
pi = actor_network_approach(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
elif action_out == 1:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, objectPos, o_mean_manipulate, o_std_manipulate, g_mean_manipulate, g_std_manipulate, args2)
pi = actor_network_manipulate(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
else:
with torch.no_grad():
#input_tensor = _preproc_inputs(obs, objectPos)
input_tensor = process_inputs(obs, goal, o_mean_retract, o_std_retract, g_mean_retract, g_std_retract, args2)
pi = actor_network_retract(input_tensor)
# convert the actions
actions = pi.detach().cpu().numpy().squeeze()
actions[3] = -0.01
# put actions into the environment
observation_new, _, _, info = env.step(actions)
obs = observation_new['observation']
timeStep += 1
state_inp = torch.from_numpy(env2.observation(observation_new)).type(FloatTensor)
objectPos = observation_new['observation'][3:6]
object_rel_pos = observation_new['observation'][6:9]
if timeStep >= env._max_episode_steps:
break
while True: #limit the number of timesteps in the episode to a fixed duration
#env.render()
action = [0, 0, 0, 0]
action[3] = -0.01 # keep the gripper closed
obsDataNew, reward, done, info = env.step(action)
timeStep += 1
objectPos = obsDataNew['observation'][3:6]
object_rel_pos = obsDataNew['observation'][6:9]
if timeStep >= env._max_episode_steps: break
if info['is_success'] == 1.0:
success +=1
if ep_num % 49==0:
print("num episodes {}, success {}".format(num_ep, success*2))
data = [counter.value, success*2]
with open(savefile, 'a', newline='') as sfile:
writer = csv.writer(sfile)
writer.writerows([data])
#time.sleep(15)
| 44.770732
| 173
| 0.578485
| 3,220
| 27,534
| 4.671429
| 0.081677
| 0.039489
| 0.02872
| 0.01795
| 0.860457
| 0.850419
| 0.84417
| 0.837721
| 0.832934
| 0.829079
| 0
| 0.019582
| 0.321167
| 27,534
| 614
| 174
| 44.843648
| 0.785191
| 0.085567
| 0
| 0.807339
| 0
| 0
| 0.028835
| 0.000916
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009174
| false
| 0
| 0.043578
| 0
| 0.057339
| 0.002294
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c0a7df68d19a9bdbb2b43ed2d150ffbb6e43d448
| 66
|
py
|
Python
|
test/completion/import_tree/recurse_class2.py
|
mrclary/jedi
|
803c3cb271ead297c4fe3ca916b54ed05a623459
|
[
"MIT"
] | 4,213
|
2015-01-02T15:43:22.000Z
|
2022-03-31T16:15:01.000Z
|
test/completion/import_tree/recurse_class2.py
|
mrclary/jedi
|
803c3cb271ead297c4fe3ca916b54ed05a623459
|
[
"MIT"
] | 1,392
|
2015-01-02T18:43:39.000Z
|
2022-03-27T18:43:59.000Z
|
test/completion/import_tree/recurse_class2.py
|
PeterJCLaw/jedi
|
070f191f550990c23220d7f209df076178307cf6
|
[
"MIT"
] | 525
|
2015-01-02T19:07:31.000Z
|
2022-03-13T02:03:20.000Z
|
from . import recurse_class1
class C(recurse_class1.C):
pass
| 13.2
| 28
| 0.742424
| 10
| 66
| 4.7
| 0.7
| 0.553191
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0.181818
| 66
| 4
| 29
| 16.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
c0ad1f20597303658147f4b1b8943c49719bc184
| 76
|
py
|
Python
|
test/io_/video/test_video_reader.py
|
ControlNet/tensorneko
|
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
|
[
"MIT"
] | 9
|
2021-05-23T17:38:09.000Z
|
2021-12-30T19:12:12.000Z
|
test/io_/video/test_video_reader.py
|
ControlNet/tensorneko
|
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
|
[
"MIT"
] | null | null | null |
test/io_/video/test_video_reader.py
|
ControlNet/tensorneko
|
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
|
[
"MIT"
] | null | null | null |
import unittest
class TestVideoReader(unittest.TestCase):
pass # TODO
| 12.666667
| 41
| 0.763158
| 8
| 76
| 7.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.171053
| 76
| 5
| 42
| 15.2
| 0.920635
| 0.052632
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
c0dc6589f9d70873de1367313e06dcd99af7c134
| 4,293
|
py
|
Python
|
test/modules/test_misc.py
|
Ghost-Proxy/Voluspa
|
ba16065cc270b744a1eb302142fdd3b21a698505
|
[
"MIT"
] | null | null | null |
test/modules/test_misc.py
|
Ghost-Proxy/Voluspa
|
ba16065cc270b744a1eb302142fdd3b21a698505
|
[
"MIT"
] | 12
|
2020-06-11T02:11:27.000Z
|
2022-02-10T01:30:49.000Z
|
test/modules/test_misc.py
|
Ghost-Proxy/Voluspa
|
ba16065cc270b744a1eb302142fdd3b21a698505
|
[
"MIT"
] | 1
|
2020-06-15T19:59:06.000Z
|
2020-06-15T19:59:06.000Z
|
from unittest import TestCase
from modules.misc import merge_dicts
class DictMergeTestCase(TestCase):
def test_merges_dicts(self):
a = {
'a': 1,
'b': {
'b1': 2,
'b2': 3,
},
}
b = {
'a': 1,
'b': {
'b1': 4,
},
}
assert merge_dicts(a, b)['a'] == 1
assert merge_dicts(a, b)['b']['b2'] == 3
assert merge_dicts(a, b)['b']['b1'] == 4
def test_inserts_new_keys(self):
"""Will it insert new keys by default?"""
a = {
'a': 1,
'b': {
'b1': 2,
'b2': 3,
},
}
b = {
'a': 1,
'b': {
'b1': 4,
'b3': 5
},
'c': 6,
}
assert merge_dicts(a, b)['a'] == 1
assert merge_dicts(a, b)['b']['b2'] == 3
assert merge_dicts(a, b)['b']['b1'] == 4
assert merge_dicts(a, b)['b']['b3'] == 5
assert merge_dicts(a, b)['c'] == 6
def test_does_not_insert_None_when_skip_none(self):
"""Will skip keys merging keys that have none values"""
a = {
'a': 1,
'b': {
'b1': 2,
'b2': 3,
},
'c': 4
}
b = {
'a': 1,
'b': {
'b1': 4,
'b2': None,
},
'c': None,
'd': None,
'e': {
'e1': None
}
}
print(merge_dicts(a, b, skip_none=True))
assert merge_dicts(a, b, skip_none=True)['a'] == 1
assert merge_dicts(a, b, skip_none=True)['b']['b1'] == 4
assert merge_dicts(a, b, skip_none=True)['b']['b2'] == 3
assert merge_dicts(a, b, skip_none=True)['c'] == 4
try:
assert merge_dicts(a, b, skip_none=True)['d'] is None
except KeyError:
pass
else:
raise Exception('None value was added when it should not have been')
def test_does_not_insert_new_keys(self):
"""Will it avoid inserting new keys when required?"""
a = {
'a': 1,
'b': {
'b1': 2,
'b2': 3,
},
}
b = {
'a': 1,
'b': {
'b1': 4,
'b3': 5,
},
'c': 6,
}
assert merge_dicts(a, b, add_keys=False)['a'] == 1
assert merge_dicts(a, b, add_keys=False)['b']['b2'] == 3
assert merge_dicts(a, b, add_keys=False)['b']['b1'] == 4
try:
assert merge_dicts(a, b, add_keys=False)['b']['b3'] == 5
except KeyError:
pass
else:
raise Exception('New keys added when they should not be')
def test_does_not_insert_None_when_skip_none_or_add_new_keys(self):
"""Will skip keys merging keys that have none values"""
a = {
'a': 1,
'b': {
'b1': 2,
'b2': 3,
},
'c': 4
}
b = {
'a': 1,
'b': {
'b1': 4,
'b2': None,
'b3': 5,
},
'c': None,
'd': None,
'e': {
'e1': None
}
}
print(merge_dicts(a, b, add_keys=False, skip_none=True))
assert merge_dicts(a, b, add_keys=False, skip_none=True)['a'] == 1
assert merge_dicts(a, b, add_keys=False, skip_none=True)['b']['b1'] == 4
assert merge_dicts(a, b, add_keys=False, skip_none=True)['b']['b2'] == 3
assert merge_dicts(a, b, add_keys=False, skip_none=True)['c'] == 4
try:
assert merge_dicts(a, b, add_keys=False, skip_none=True)['d'] is None
except KeyError:
pass
else:
raise Exception('None value was added when it should not have been')
try:
assert merge_dicts(a, b, add_keys=False, skip_none=True)['b']['b3'] == 5
except KeyError:
pass
else:
raise Exception('New keys added when they should not be')
| 27.170886
| 84
| 0.407174
| 513
| 4,293
| 3.255361
| 0.136452
| 0.155689
| 0.164671
| 0.179641
| 0.88024
| 0.837126
| 0.836527
| 0.836527
| 0.800599
| 0.756886
| 0
| 0.036836
| 0.443513
| 4,293
| 157
| 85
| 27.343949
| 0.662202
| 0.042628
| 0
| 0.635037
| 0
| 0
| 0.072634
| 0
| 0
| 0
| 0
| 0
| 0.167883
| 1
| 0.036496
| false
| 0.029197
| 0.014599
| 0
| 0.058394
| 0.014599
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c0f9ad56c765d35657f1a5ce86873c3e696ff315
| 2,645
|
py
|
Python
|
p3_collab-compet/model.py
|
TobiasSunderdiek/my-udacity-deep-reinforcement-learning-solutions
|
14931252a0b14247ad926e3507dad19dcb811896
|
[
"MIT"
] | null | null | null |
p3_collab-compet/model.py
|
TobiasSunderdiek/my-udacity-deep-reinforcement-learning-solutions
|
14931252a0b14247ad926e3507dad19dcb811896
|
[
"MIT"
] | 8
|
2020-09-28T17:40:06.000Z
|
2022-02-10T04:50:48.000Z
|
p3_collab-compet/model.py
|
TobiasSunderdiek/my-udacity-deep-reinforcement-learning-solutions
|
14931252a0b14247ad926e3507dad19dcb811896
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
class Actor(nn.Module):
""" I got this from the description in the paper: https://arxiv.org/pdf/1509.02971.pdf
and from here: https://github.com/udacity/deep-reinforcement-learning/blob/master/ddpg-pendulum/model.py#L12
"""
def __init__(self, input_size, action_size, hyperparameter, seed):
super().__init__()
# I got using a seed from here: https://github.com/udacity/deep-reinforcement-learning/blob/master/ddpg-pendulum/model.py#L26
# and added it as I did not use a seed in my implementation
# Changes from udacity code review: In my first implementation I assigned the seed to a class variable(but never used it) and the
# udacity code review suggests me to remove this class variable as I do not need it in my implementation
torch.manual_seed(seed)
self.fc_1 = nn.Linear(input_size, 400)
self.fc_2 = nn.Linear(400, 300)
self.fc_3 = nn.Linear(300, action_size)
nn.init.uniform_(self.fc_3.weight, -3*10e-3, 3*10e-3)
nn.init.uniform_(self.fc_3.bias, -3*10e-3, 3*10e-3)
def forward(self, input):
x = F.leaky_relu(self.fc_1(input))
x = F.leaky_relu(self.fc_2(x))
x = torch.tanh(self.fc_3(x))
return x
class Critic(nn.Module):
""" I got this from the description in the paper: https://arxiv.org/pdf/1509.02971.pdf
and copied it from here: https://github.com/udacity/deep-reinforcement-learning/blob/master/ddpg-pendulum/model.py#L44
"""
def __init__(self, input_size, action_size, hyperparameter, seed):
super().__init__()
# I got using a seed from here: https://github.com/udacity/deep-reinforcement-learning/blob/master/ddpg-pendulum/model.py#L58
# and added it as I did not use a seed in my implementation
# Changes from udacity code review: In my first implementation I assigned the seed to a class variable(but never used it) and the
# udacity code review suggests me to remove this class variable as I do not need it in my implementation
torch.manual_seed(seed)
self.fc_1 = nn.Linear(input_size, 400)
self.fc_2 = nn.Linear(400+action_size, 300)
self.fc_3 = nn.Linear(300, 1) #todo understand why map to 1
nn.init.uniform_(self.fc_3.weight, -3*10e-3, 3*10e-3)
nn.init.uniform_(self.fc_3.bias, -3*10e-3, 3*10e-3)
def forward(self, input, action):
x = F.leaky_relu(self.fc_1(input))
x = torch.cat((x, action), dim=1)
x = F.leaky_relu(self.fc_2(x))
x = self.fc_3(x)
return x
| 50.865385
| 137
| 0.671456
| 440
| 2,645
| 3.922727
| 0.227273
| 0.05562
| 0.032445
| 0.044032
| 0.899768
| 0.899768
| 0.882387
| 0.858053
| 0.858053
| 0.807648
| 0
| 0.048745
| 0.216635
| 2,645
| 52
| 138
| 50.865385
| 0.784266
| 0.471078
| 0
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019231
| 0
| 1
| 0.125
| false
| 0
| 0.09375
| 0
| 0.34375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c0fa461d9122f5e0b53bc36a0deee590842d7c60
| 139
|
py
|
Python
|
django_base/test.py
|
Windsooon/youtube-channels
|
83ee3215cc5dff3dfd01979a7b5440d701029456
|
[
"MIT"
] | 10
|
2017-11-12T19:14:36.000Z
|
2019-08-05T08:07:55.000Z
|
django_base/test.py
|
Windsooon/youtube-channels
|
83ee3215cc5dff3dfd01979a7b5440d701029456
|
[
"MIT"
] | 3
|
2020-02-11T22:03:33.000Z
|
2021-06-10T19:56:27.000Z
|
django_base/test.py
|
Windsooon/youtube-channels
|
83ee3215cc5dff3dfd01979a7b5440d701029456
|
[
"MIT"
] | 1
|
2019-12-26T19:30:21.000Z
|
2019-12-26T19:30:21.000Z
|
class A(object):
def __init__(self):
pass
def _internal_use(self):
pass
def __method_name(self):
pass
| 15.444444
| 28
| 0.568345
| 17
| 139
| 4.117647
| 0.647059
| 0.342857
| 0.314286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.345324
| 139
| 8
| 29
| 17.375
| 0.769231
| 0
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0.428571
| 0
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
8d012d7d34d3cc1268c5bd937ddcb2af2c1c4c4c
| 308,389
|
gyp
|
Python
|
webkit/webkit.gyp
|
zachlatta/chromium
|
c4625eefca763df86471d798ee5a4a054b4716ae
|
[
"BSD-3-Clause"
] | 1
|
2021-09-24T22:49:10.000Z
|
2021-09-24T22:49:10.000Z
|
webkit/webkit.gyp
|
changbai1980/chromium
|
c4625eefca763df86471d798ee5a4a054b4716ae
|
[
"BSD-3-Clause"
] | null | null | null |
webkit/webkit.gyp
|
changbai1980/chromium
|
c4625eefca763df86471d798ee5a4a054b4716ae
|
[
"BSD-3-Clause"
] | null | null | null |
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'feature_defines': [
'ENABLE_CHANNEL_MESSAGING=1',
'ENABLE_DATABASE=1',
'ENABLE_DATAGRID=1',
'ENABLE_DASHBOARD_SUPPORT=0',
'ENABLE_JAVASCRIPT_DEBUGGER=0',
'ENABLE_JSC_MULTIPLE_THREADS=0',
'ENABLE_ICONDATABASE=0',
'ENABLE_XSLT=1',
'ENABLE_XPATH=1',
'ENABLE_SVG=1',
'ENABLE_SVG_ANIMATION=1',
'ENABLE_SVG_AS_IMAGE=1',
'ENABLE_SVG_USE=1',
'ENABLE_SVG_FOREIGN_OBJECT=1',
'ENABLE_SVG_FONTS=1',
'ENABLE_VIDEO=1',
'ENABLE_WORKERS=1',
],
'non_feature_defines': [
'BUILDING_CHROMIUM__=1',
'USE_GOOGLE_URL_LIBRARY=1',
'USE_SYSTEM_MALLOC=1',
],
'webcore_include_dirs': [
'../third_party/WebKit/WebCore/accessibility',
'../third_party/WebKit/WebCore/accessibility/chromium',
'../third_party/WebKit/WebCore/bindings/v8',
'../third_party/WebKit/WebCore/bindings/v8/custom',
'../third_party/WebKit/WebCore/css',
'../third_party/WebKit/WebCore/dom',
'../third_party/WebKit/WebCore/dom/default',
'../third_party/WebKit/WebCore/editing',
'../third_party/WebKit/WebCore/history',
'../third_party/WebKit/WebCore/html',
'../third_party/WebKit/WebCore/inspector',
'../third_party/WebKit/WebCore/loader',
'../third_party/WebKit/WebCore/loader/appcache',
'../third_party/WebKit/WebCore/loader/archive',
'../third_party/WebKit/WebCore/loader/icon',
'../third_party/WebKit/WebCore/page',
'../third_party/WebKit/WebCore/page/animation',
'../third_party/WebKit/WebCore/page/chromium',
'../third_party/WebKit/WebCore/platform',
'../third_party/WebKit/WebCore/platform/animation',
'../third_party/WebKit/WebCore/platform/chromium',
'../third_party/WebKit/WebCore/platform/graphics',
'../third_party/WebKit/WebCore/platform/graphics/chromium',
'../third_party/WebKit/WebCore/platform/graphics/opentype',
'../third_party/WebKit/WebCore/platform/graphics/skia',
'../third_party/WebKit/WebCore/platform/graphics/transforms',
'../third_party/WebKit/WebCore/platform/image-decoders',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp',
'../third_party/WebKit/WebCore/platform/image-decoders/gif',
'../third_party/WebKit/WebCore/platform/image-decoders/ico',
'../third_party/WebKit/WebCore/platform/image-decoders/jpeg',
'../third_party/WebKit/WebCore/platform/image-decoders/png',
'../third_party/WebKit/WebCore/platform/image-decoders/skia',
'../third_party/WebKit/WebCore/platform/image-decoders/xbm',
'../third_party/WebKit/WebCore/platform/image-encoders/skia',
'../third_party/WebKit/WebCore/platform/network',
'../third_party/WebKit/WebCore/platform/network/chromium',
'../third_party/WebKit/WebCore/platform/sql',
'../third_party/WebKit/WebCore/platform/text',
'../third_party/WebKit/WebCore/plugins',
'../third_party/WebKit/WebCore/rendering',
'../third_party/WebKit/WebCore/rendering/style',
'../third_party/WebKit/WebCore/storage',
'../third_party/WebKit/WebCore/svg',
'../third_party/WebKit/WebCore/svg/animation',
'../third_party/WebKit/WebCore/svg/graphics',
'../third_party/WebKit/WebCore/workers',
'../third_party/WebKit/WebCore/xml',
],
'conditions': [
['OS=="linux"', {
'non_feature_defines': [
# Mozilla on Linux effectively uses uname -sm, but when running
# 32-bit x86 code on an x86_64 processor, it uses
# "Linux i686 (x86_64)". Matching that would require making a
# run-time determination.
'WEBCORE_NAVIGATOR_PLATFORM="Linux i686"',
],
}],
['OS=="mac"', {
'non_feature_defines': [
# Ensure that only Leopard features are used when doing the Mac build.
'BUILDING_ON_LEOPARD',
# Match Safari and Mozilla on Mac x86.
'WEBCORE_NAVIGATOR_PLATFORM="MacIntel"',
],
'webcore_include_dirs+': [
# platform/graphics/cg and mac needs to come before
# platform/graphics/chromium so that the Mac build picks up the
# version of ImageBufferData.h in the cg directory and
# FontPlatformData.h in the mac directory. The + prepends this
# directory to the list.
# TODO(port): This shouldn't need to be prepended.
# TODO(port): Eliminate dependency on platform/graphics/mac and
# related directories.
# platform/graphics/cg may need to stick around, though.
'../third_party/WebKit/WebCore/platform/graphics/cg',
'../third_party/WebKit/WebCore/platform/graphics/mac',
],
'webcore_include_dirs': [
# TODO(port): Eliminate dependency on platform/mac and related
# directories.
'../third_party/WebKit/WebCore/loader/archive/cf',
'../third_party/WebKit/WebCore/platform/mac',
'../third_party/WebKit/WebCore/platform/text/mac',
],
}],
['OS=="win"', {
'non_feature_defines': [
'CRASH=__debugbreak',
# Match Safari and Mozilla on Windows.
'WEBCORE_NAVIGATOR_PLATFORM="Win32"',
],
'webcore_include_dirs': [
'../third_party/WebKit/WebCore/page/win',
'../third_party/WebKit/WebCore/platform/graphics/win',
'../third_party/WebKit/WebCore/platform/text/win',
'../third_party/WebKit/WebCore/platform/win',
],
}],
],
},
'includes': [
'../build/common.gypi',
],
'targets': [
{
# Currently, builders assume webkit.sln builds test_shell on windows.
# We should change this, but for now allows trybot runs.
# for now.
'target_name': 'pull_in_test_shell',
'type': 'none',
'conditions': [
['OS=="win"', {
'dependencies': [
'tools/test_shell/test_shell.gyp:*',
'activex_shim_dll/activex_shim_dll.gyp:*',
],
}],
],
},
{
# This target creates config.h suitable for a WebKit-V8 build and
# copies a few other files around as needed.
'target_name': 'config',
'type': 'none',
'msvs_guid': '2E2D3301-2EC4-4C0F-B889-87073B30F673',
'actions': [
{
'action_name': 'config.h',
'inputs': [
'config.h.in',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit/config.h',
],
# TODO(bradnelson): npapi.h, npruntime.h, npruntime_priv.h, and
# stdint.h shouldn't be in the SHARED_INTERMEDIATE_DIR, it's very
# global.
'action': ['python', 'build/action_jsconfig.py', 'v8', '<(SHARED_INTERMEDIATE_DIR)/webkit', '<@(_inputs)'],
'conditions': [
['OS=="win"', {
'inputs': [
'../third_party/WebKit/WebCore/bridge/npapi.h',
'../third_party/WebKit/WebCore/bridge/npruntime.h',
'../third_party/WebKit/WebCore/bindings/v8/npruntime_priv.h',
'../third_party/WebKit/JavaScriptCore/os-win32/stdint.h',
],
}],
],
},
],
'direct_dependent_settings': {
'defines': [
'<@(feature_defines)',
'<@(non_feature_defines)',
],
# Always prepend the directory containing config.h. This is important,
# because WebKit/JavaScriptCore has a config.h in it too. The JSC
# config.h shouldn't be used, and its directory winds up in
# include_dirs in wtf and its dependents. If the directory containing
# the real config.h weren't prepended, other targets might wind up
# picking up the wrong config.h, which can result in build failures or
# even random runtime problems due to different components being built
# with different configurations.
#
# The rightmost + is present because this direct_dependent_settings
# section gets merged into the (nonexistent) target_defaults one,
# eating the rightmost +.
'include_dirs++': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
},
'conditions': [
['OS=="win"', {
'dependencies': ['../build/win/system.gyp:cygwin'],
'direct_dependent_settings': {
'defines': [
'__STD_C',
'_CRT_SECURE_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
],
'include_dirs': [
'../third_party/WebKit/JavaScriptCore/os-win32',
'build/JavaScriptCore',
],
},
}],
],
},
{
'target_name': 'wtf',
'type': '<(library)',
'msvs_guid': 'AA8A5A85-592B-4357-BC60-E0E91E026AF6',
'dependencies': [
'config',
'../third_party/icu38/icu38.gyp:icui18n',
'../third_party/icu38/icu38.gyp:icuuc',
],
'include_dirs': [
'../third_party/WebKit/JavaScriptCore',
'../third_party/WebKit/JavaScriptCore/wtf',
'../third_party/WebKit/JavaScriptCore/wtf/unicode',
],
'sources': [
'../third_party/WebKit/JavaScriptCore/wtf/chromium/ChromiumThreading.h',
'../third_party/WebKit/JavaScriptCore/wtf/chromium/MainThreadChromium.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/gtk/MainThreadGtk.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/mac/MainThreadMac.mm',
'../third_party/WebKit/JavaScriptCore/wtf/qt/MainThreadQt.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/Collator.h',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/CollatorDefault.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/UTF8.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/UTF8.h',
'../third_party/WebKit/JavaScriptCore/wtf/unicode/Unicode.h',
'../third_party/WebKit/JavaScriptCore/wtf/win/MainThreadWin.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/wx/MainThreadWx.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/ASCIICType.h',
'../third_party/WebKit/JavaScriptCore/wtf/AVLTree.h',
'../third_party/WebKit/JavaScriptCore/wtf/AlwaysInline.h',
'../third_party/WebKit/JavaScriptCore/wtf/Assertions.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/Assertions.h',
'../third_party/WebKit/JavaScriptCore/wtf/ByteArray.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/ByteArray.h',
'../third_party/WebKit/JavaScriptCore/wtf/CurrentTime.h',
'../third_party/WebKit/JavaScriptCore/wtf/CrossThreadRefCounted.h',
'../third_party/WebKit/JavaScriptCore/wtf/DateMath.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/DateMath.h',
'../third_party/WebKit/JavaScriptCore/wtf/Deque.h',
'../third_party/WebKit/JavaScriptCore/wtf/DisallowCType.h',
'../third_party/WebKit/JavaScriptCore/wtf/FastMalloc.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/FastMalloc.h',
'../third_party/WebKit/JavaScriptCore/wtf/Forward.h',
'../third_party/WebKit/JavaScriptCore/wtf/GOwnPtr.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/GOwnPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/GetPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashCountedSet.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashFunctions.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashIterators.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashMap.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashSet.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashTable.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/HashTable.h',
'../third_party/WebKit/JavaScriptCore/wtf/HashTraits.h',
'../third_party/WebKit/JavaScriptCore/wtf/ListHashSet.h',
'../third_party/WebKit/JavaScriptCore/wtf/ListRefPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/Locker.h',
'../third_party/WebKit/JavaScriptCore/wtf/MainThread.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/MainThread.h',
'../third_party/WebKit/JavaScriptCore/wtf/MallocZoneSupport.h',
'../third_party/WebKit/JavaScriptCore/wtf/MathExtras.h',
'../third_party/WebKit/JavaScriptCore/wtf/MessageQueue.h',
'../third_party/WebKit/JavaScriptCore/wtf/Noncopyable.h',
'../third_party/WebKit/JavaScriptCore/wtf/NotFound.h',
'../third_party/WebKit/JavaScriptCore/wtf/OwnArrayPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/OwnPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/OwnPtrCommon.h',
'../third_party/WebKit/JavaScriptCore/wtf/OwnPtrWin.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/PassOwnPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/PassRefPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/Platform.h',
'../third_party/WebKit/JavaScriptCore/wtf/PtrAndFlags.h',
'../third_party/WebKit/JavaScriptCore/wtf/RandomNumber.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/RandomNumber.h',
'../third_party/WebKit/JavaScriptCore/wtf/RandomNumberSeed.h',
'../third_party/WebKit/JavaScriptCore/wtf/RefCounted.h',
'../third_party/WebKit/JavaScriptCore/wtf/RefCountedLeakCounter.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/RefCountedLeakCounter.h',
'../third_party/WebKit/JavaScriptCore/wtf/RefPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/RefPtrHashMap.h',
'../third_party/WebKit/JavaScriptCore/wtf/RetainPtr.h',
'../third_party/WebKit/JavaScriptCore/wtf/StdLibExtras.h',
'../third_party/WebKit/JavaScriptCore/wtf/StringExtras.h',
'../third_party/WebKit/JavaScriptCore/wtf/TCPackedCache.h',
'../third_party/WebKit/JavaScriptCore/wtf/TCPageMap.h',
'../third_party/WebKit/JavaScriptCore/wtf/TCSpinLock.h',
'../third_party/WebKit/JavaScriptCore/wtf/TCSystemAlloc.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/TCSystemAlloc.h',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadSpecific.h',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadSpecificWin.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/Threading.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/Threading.h',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadingGtk.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadingNone.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadingPthreads.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadingQt.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/ThreadingWin.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/TypeTraits.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/TypeTraits.h',
'../third_party/WebKit/JavaScriptCore/wtf/UnusedParam.h',
'../third_party/WebKit/JavaScriptCore/wtf/Vector.h',
'../third_party/WebKit/JavaScriptCore/wtf/VectorTraits.h',
'../third_party/WebKit/JavaScriptCore/wtf/dtoa.cpp',
'../third_party/WebKit/JavaScriptCore/wtf/dtoa.h',
'build/precompiled_webkit.cc',
'build/precompiled_webkit.h',
],
'sources!': [
# GLib/GTK, even though its name doesn't really indicate.
'../third_party/WebKit/JavaScriptCore/wtf/GOwnPtr.cpp',
],
'sources/': [
['exclude', '(Default|Gtk|Mac|None|Qt|Win|Wx)\\.(cpp|mm)$'],
],
'direct_dependent_settings': {
'include_dirs': [
'../third_party/WebKit/JavaScriptCore',
'../third_party/WebKit/JavaScriptCore/wtf',
],
},
'export_dependent_settings': [
'config',
'../third_party/icu38/icu38.gyp:icui18n',
'../third_party/icu38/icu38.gyp:icuuc',
],
'configurations': {
'Debug': {
'msvs_precompiled_header': 'build/precompiled_webkit.h',
'msvs_precompiled_source': 'build/precompiled_webkit.cc',
},
},
'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706],
'conditions': [
['OS=="win"', {
'sources/': [
['exclude', 'ThreadingPthreads\\.cpp$'],
['include', 'Thread(ing|Specific)Win\\.cpp$']
],
'include_dirs': [
'build',
'../third_party/WebKit/JavaScriptCore/kjs',
'../third_party/WebKit/JavaScriptCore/API',
# These 3 do not seem to exist.
'../third_party/WebKit/JavaScriptCore/bindings',
'../third_party/WebKit/JavaScriptCore/bindings/c',
'../third_party/WebKit/JavaScriptCore/bindings/jni',
'pending',
'pending/wtf',
],
'include_dirs!': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
}, { # OS != "win"
'sources!': [
'build/precompiled_webkit.cc',
'build/precompiled_webkit.h',
],
}],
['OS=="linux"', {
'defines': ['WTF_USE_PTHREADS=1'],
'direct_dependent_settings': {
'defines': ['WTF_USE_PTHREADS=1'],
},
}],
],
},
{
'target_name': 'pcre',
'type': '<(library)',
'dependencies': [
'config',
'wtf',
],
'msvs_guid': '49909552-0B0C-4C14-8CF6-DB8A2ADE0934',
'actions': [
{
'action_name': 'dftables',
'inputs': [
'../third_party/WebKit/JavaScriptCore/pcre/dftables',
],
'outputs': [
'<(INTERMEDIATE_DIR)/chartables.c',
],
'action': ['perl', '-w', '<@(_inputs)', '<@(_outputs)'],
},
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',
],
'sources': [
'../third_party/WebKit/JavaScriptCore/pcre/pcre.h',
'../third_party/WebKit/JavaScriptCore/pcre/pcre_compile.cpp',
'../third_party/WebKit/JavaScriptCore/pcre/pcre_exec.cpp',
'../third_party/WebKit/JavaScriptCore/pcre/pcre_internal.h',
'../third_party/WebKit/JavaScriptCore/pcre/pcre_tables.cpp',
'../third_party/WebKit/JavaScriptCore/pcre/pcre_ucp_searchfuncs.cpp',
'../third_party/WebKit/JavaScriptCore/pcre/pcre_xclass.cpp',
'../third_party/WebKit/JavaScriptCore/pcre/ucpinternal.h',
'../third_party/WebKit/JavaScriptCore/pcre/ucptable.cpp',
],
'sources!': [
# ucptable.cpp is #included by pcre_ucp_searchfunchs.cpp and is not
# intended to be compiled directly.
'../third_party/WebKit/JavaScriptCore/pcre/ucptable.cpp',
],
'export_dependent_settings': [
'wtf',
],
'conditions': [
['OS=="win"', {
'dependencies': ['../build/win/system.gyp:cygwin'],
}],
],
},
{
'target_name': 'webcore',
'type': '<(library)',
'msvs_guid': '1C16337B-ACF3-4D03-AA90-851C5B5EADA6',
'dependencies': [
'config',
'pcre',
'wtf',
'../build/temp_gyp/googleurl.gyp:googleurl',
'../skia/skia.gyp:skia',
'../third_party/libjpeg/libjpeg.gyp:libjpeg',
'../third_party/libpng/libpng.gyp:libpng',
'../third_party/libxml/libxml.gyp:libxml',
'../third_party/libxslt/libxslt.gyp:libxslt',
'../third_party/npapi/npapi.gyp:npapi',
'../third_party/sqlite/sqlite.gyp:sqlite',
],
'actions': [
# Actions to build derived sources.
{
'action_name': 'CSSPropertyNames',
'inputs': [
'../third_party/WebKit/WebCore/css/makeprop.pl',
'../third_party/WebKit/WebCore/css/CSSPropertyNames.in',
'../third_party/WebKit/WebCore/css/SVGCSSPropertyNames.in',
],
'outputs': [
'<(INTERMEDIATE_DIR)/CSSPropertyNames.cpp',
'<(SHARED_INTERMEDIATE_DIR)/webkit/CSSPropertyNames.h',
],
'action': ['python', 'build/action_csspropertynames.py', '<@(_outputs)', '--', '<@(_inputs)'],
},
{
'action_name': 'CSSValueKeywords',
'inputs': [
'../third_party/WebKit/WebCore/css/makevalues.pl',
'../third_party/WebKit/WebCore/css/CSSValueKeywords.in',
'../third_party/WebKit/WebCore/css/SVGCSSValueKeywords.in',
],
'outputs': [
'<(INTERMEDIATE_DIR)/CSSValueKeywords.c',
'<(SHARED_INTERMEDIATE_DIR)/webkit/CSSValueKeywords.h',
],
'action': ['python', 'build/action_cssvaluekeywords.py', '<@(_outputs)', '--', '<@(_inputs)'],
},
{
'action_name': 'HTMLNames',
'inputs': [
'../third_party/WebKit/WebCore/dom/make_names.pl',
'../third_party/WebKit/WebCore/html/HTMLTagNames.in',
'../third_party/WebKit/WebCore/html/HTMLAttributeNames.in',
],
'outputs': [
'<(INTERMEDIATE_DIR)/HTMLNames.cpp',
'<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLNames.h',
'<(INTERMEDIATE_DIR)/HTMLElementFactory.cpp',
# Pass --wrapperFactory to make_names to get these (JSC build?)
#'<(INTERMEDIATE_DIR)/JSHTMLElementWrapperFactory.cpp',
#'<(INTERMEDIATE_DIR)/JSHTMLElementWrapperFactory.h',
],
'action': ['python', 'build/action_makenames.py', '<@(_outputs)', '--', '<@(_inputs)', '--', '--factory', '--extraDefines', '<(feature_defines)'],
'process_outputs_as_sources': 1,
},
{
'action_name': 'SVGNames',
'inputs': [
'../third_party/WebKit/WebCore/dom/make_names.pl',
'../third_party/WebKit/WebCore/svg/svgtags.in',
'../third_party/WebKit/WebCore/svg/svgattrs.in',
],
'outputs': [
'<(INTERMEDIATE_DIR)/SVGNames.cpp',
'<(INTERMEDIATE_DIR)/SVGNames.h',
'<(INTERMEDIATE_DIR)/SVGElementFactory.cpp',
'<(INTERMEDIATE_DIR)/SVGElementFactory.h',
# Pass --wrapperFactory to make_names to get these (JSC build?)
#'<(INTERMEDIATE_DIR)/JSSVGElementWrapperFactory.cpp',
#'<(INTERMEDIATE_DIR)/JSSVGElementWrapperFactory.h',
],
'action': ['python', 'build/action_makenames.py', '<@(_outputs)', '--', '<@(_inputs)', '--', '--factory', '--extraDefines', '<(feature_defines)'],
'process_outputs_as_sources': 1,
},
{
'action_name': 'UserAgentStyleSheets',
'inputs': [
'../third_party/WebKit/WebCore/css/make-css-file-arrays.pl',
'../third_party/WebKit/WebCore/css/html.css',
'../third_party/WebKit/WebCore/css/quirks.css',
'../third_party/WebKit/WebCore/css/view-source.css',
'../third_party/WebKit/WebCore/css/themeChromiumLinux.css',
'../third_party/WebKit/WebCore/css/themeWin.css',
'../third_party/WebKit/WebCore/css/themeWinQuirks.css',
'../third_party/WebKit/WebCore/css/svg.css',
'../third_party/WebKit/WebCore/css/mediaControls.css',
'../third_party/WebKit/WebCore/css/mediaControlsChromium.css',
],
'outputs': [
'<(INTERMEDIATE_DIR)/UserAgentStyleSheets.h',
'<(INTERMEDIATE_DIR)/UserAgentStyleSheetsData.cpp',
],
'action': ['python', 'build/action_useragentstylesheets.py', '<@(_outputs)', '--', '<@(_inputs)'],
'process_outputs_as_sources': 1,
},
{
'action_name': 'XLinkNames',
'inputs': [
'../third_party/WebKit/WebCore/dom/make_names.pl',
'../third_party/WebKit/WebCore/svg/xlinkattrs.in',
],
'outputs': [
'<(INTERMEDIATE_DIR)/XLinkNames.cpp',
'<(INTERMEDIATE_DIR)/XLinkNames.h',
],
'action': ['python', 'build/action_makenames.py', '<@(_outputs)', '--', '<@(_inputs)', '--', '--extraDefines', '<(feature_defines)'],
'process_outputs_as_sources': 1,
},
{
'action_name': 'XMLNames',
'inputs': [
'../third_party/WebKit/WebCore/dom/make_names.pl',
'../third_party/WebKit/WebCore/xml/xmlattrs.in',
],
'outputs': [
'<(INTERMEDIATE_DIR)/XMLNames.cpp',
'<(INTERMEDIATE_DIR)/XMLNames.h',
],
'action': ['python', 'build/action_makenames.py', '<@(_outputs)', '--', '<@(_inputs)', '--', '--extraDefines', '<(feature_defines)'],
'process_outputs_as_sources': 1,
},
{
'action_name': 'tokenizer',
'inputs': [
'../third_party/WebKit/WebCore/css/maketokenizer',
'../third_party/WebKit/WebCore/css/tokenizer.flex',
],
'outputs': [
'<(INTERMEDIATE_DIR)/tokenizer.cpp',
],
'action': ['python', 'build/action_maketokenizer.py', '<@(_outputs)', '--', '<@(_inputs)'],
},
],
'rules': [
# Rules to build derived sources.
{
'rule_name': 'bison',
'extension': 'y',
'outputs': [
'<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).cpp',
'<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).h'
],
'action': ['python', 'build/rule_bison.py', '<(RULE_INPUT_PATH)', '<(INTERMEDIATE_DIR)'],
'process_outputs_as_sources': 1,
},
{
'rule_name': 'gperf',
'extension': 'gperf',
# gperf output is only ever #included by other source files. As
# such, process_outputs_as_sources is off. Some gperf output is
# #included as *.c and some as *.cpp. Since there's no way to tell
# which one will be needed in a rule definition, declare both as
# outputs. The harness script will generate one file and copy it to
# the other.
#
# This rule places outputs in SHARED_INTERMEDIATE_DIR because glue
# needs access to HTMLEntityNames.c.
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit/<(RULE_INPUT_ROOT).c',
'<(SHARED_INTERMEDIATE_DIR)/webkit/<(RULE_INPUT_ROOT).cpp',
],
'action': ['python', 'build/rule_gperf.py', '<(RULE_INPUT_PATH)', '<(SHARED_INTERMEDIATE_DIR)/webkit'],
'process_outputs_as_sources': 0,
},
# Rule to build generated JavaScript (V8) bindings from .idl source.
{
'rule_name': 'binding',
'extension': 'idl',
'msvs_external_rule': 1,
'inputs': [
'../third_party/WebKit/WebCore/bindings/scripts/generate-bindings.pl',
'../third_party/WebKit/WebCore/bindings/scripts/CodeGenerator.pm',
'../third_party/WebKit/WebCore/bindings/scripts/CodeGeneratorV8.pm',
'../third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm',
'../third_party/WebKit/WebCore/bindings/scripts/IDLStructure.pm',
],
'outputs': [
'<(INTERMEDIATE_DIR)/bindings/V8<(RULE_INPUT_ROOT).cpp',
'<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8<(RULE_INPUT_ROOT).h',
],
'variables': {
'generator_include_dirs': [
'--include', '../third_party/WebKit/WebCore/css',
'--include', '../third_party/WebKit/WebCore/dom',
'--include', '../third_party/WebKit/WebCore/html',
'--include', '../third_party/WebKit/WebCore/page',
'--include', '../third_party/WebKit/WebCore/plugins',
'--include', '../third_party/WebKit/WebCore/svg',
'--include', '../third_party/WebKit/WebCore/xml',
],
},
'action': ['python', 'build/rule_binding.py', '<(RULE_INPUT_PATH)', '<(INTERMEDIATE_DIR)/bindings', '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings', '--', '<@(_inputs)', '--', '--defines', '<(feature_defines) LANGUAGE_JAVASCRIPT V8_BINDING', '--generator', 'V8', '<@(generator_include_dirs)'],
# They are included by DerivedSourcesAllInOne.cpp instead.
'process_outputs_as_sources': 0,
'message': 'Generating binding from <(RULE_INPUT_PATH)',
},
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',
'<(SHARED_INTERMEDIATE_DIR)/webkit',
'<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
'port/bindings/v8',
'<@(webcore_include_dirs)',
],
'sources': [
# bison rule
'../third_party/WebKit/WebCore/css/CSSGrammar.y',
'../third_party/WebKit/WebCore/xml/XPathGrammar.y',
# gperf rule
'../third_party/WebKit/WebCore/html/DocTypeStrings.gperf',
'../third_party/WebKit/WebCore/html/HTMLEntityNames.gperf',
'../third_party/WebKit/WebCore/platform/ColorData.gperf',
# binding rule
# I've put every .idl in the WebCore tree into this list. There are
# exclude patterns and lists that follow to pluck out the few to not
# build.
'../third_party/WebKit/WebCore/css/CSSCharsetRule.idl',
'../third_party/WebKit/WebCore/css/CSSFontFaceRule.idl',
'../third_party/WebKit/WebCore/css/CSSImportRule.idl',
'../third_party/WebKit/WebCore/css/CSSMediaRule.idl',
'../third_party/WebKit/WebCore/css/CSSPageRule.idl',
'../third_party/WebKit/WebCore/css/CSSPrimitiveValue.idl',
'../third_party/WebKit/WebCore/css/CSSRule.idl',
'../third_party/WebKit/WebCore/css/CSSRuleList.idl',
'../third_party/WebKit/WebCore/css/CSSStyleDeclaration.idl',
'../third_party/WebKit/WebCore/css/CSSStyleRule.idl',
'../third_party/WebKit/WebCore/css/CSSStyleSheet.idl',
'../third_party/WebKit/WebCore/css/CSSUnknownRule.idl',
'../third_party/WebKit/WebCore/css/CSSValue.idl',
'../third_party/WebKit/WebCore/css/CSSValueList.idl',
'../third_party/WebKit/WebCore/css/CSSVariablesDeclaration.idl',
'../third_party/WebKit/WebCore/css/CSSVariablesRule.idl',
'../third_party/WebKit/WebCore/css/Counter.idl',
'../third_party/WebKit/WebCore/css/MediaList.idl',
'../third_party/WebKit/WebCore/css/RGBColor.idl',
'../third_party/WebKit/WebCore/css/Rect.idl',
'../third_party/WebKit/WebCore/css/StyleSheet.idl',
'../third_party/WebKit/WebCore/css/StyleSheetList.idl',
'../third_party/WebKit/WebCore/css/WebKitCSSKeyframeRule.idl',
'../third_party/WebKit/WebCore/css/WebKitCSSKeyframesRule.idl',
'../third_party/WebKit/WebCore/css/WebKitCSSMatrix.idl',
'../third_party/WebKit/WebCore/css/WebKitCSSTransformValue.idl',
'../third_party/WebKit/WebCore/dom/Attr.idl',
'../third_party/WebKit/WebCore/dom/CDATASection.idl',
'../third_party/WebKit/WebCore/dom/CharacterData.idl',
'../third_party/WebKit/WebCore/dom/ClientRect.idl',
'../third_party/WebKit/WebCore/dom/ClientRectList.idl',
'../third_party/WebKit/WebCore/dom/Clipboard.idl',
'../third_party/WebKit/WebCore/dom/Comment.idl',
'../third_party/WebKit/WebCore/dom/DOMCoreException.idl',
'../third_party/WebKit/WebCore/dom/DOMImplementation.idl',
'../third_party/WebKit/WebCore/dom/Document.idl',
'../third_party/WebKit/WebCore/dom/DocumentFragment.idl',
'../third_party/WebKit/WebCore/dom/DocumentType.idl',
'../third_party/WebKit/WebCore/dom/Element.idl',
'../third_party/WebKit/WebCore/dom/Entity.idl',
'../third_party/WebKit/WebCore/dom/EntityReference.idl',
'../third_party/WebKit/WebCore/dom/Event.idl',
'../third_party/WebKit/WebCore/dom/EventException.idl',
'../third_party/WebKit/WebCore/dom/EventListener.idl',
'../third_party/WebKit/WebCore/dom/EventTarget.idl',
'../third_party/WebKit/WebCore/dom/KeyboardEvent.idl',
'../third_party/WebKit/WebCore/dom/MessageChannel.idl',
'../third_party/WebKit/WebCore/dom/MessageEvent.idl',
'../third_party/WebKit/WebCore/dom/MessagePort.idl',
'../third_party/WebKit/WebCore/dom/MouseEvent.idl',
'../third_party/WebKit/WebCore/dom/MutationEvent.idl',
'../third_party/WebKit/WebCore/dom/NamedNodeMap.idl',
'../third_party/WebKit/WebCore/dom/Node.idl',
'../third_party/WebKit/WebCore/dom/NodeFilter.idl',
'../third_party/WebKit/WebCore/dom/NodeIterator.idl',
'../third_party/WebKit/WebCore/dom/NodeList.idl',
'../third_party/WebKit/WebCore/dom/Notation.idl',
'../third_party/WebKit/WebCore/dom/OverflowEvent.idl',
'../third_party/WebKit/WebCore/dom/ProcessingInstruction.idl',
'../third_party/WebKit/WebCore/dom/ProgressEvent.idl',
'../third_party/WebKit/WebCore/dom/Range.idl',
'../third_party/WebKit/WebCore/dom/RangeException.idl',
'../third_party/WebKit/WebCore/dom/Text.idl',
'../third_party/WebKit/WebCore/dom/TextEvent.idl',
'../third_party/WebKit/WebCore/dom/TreeWalker.idl',
'../third_party/WebKit/WebCore/dom/UIEvent.idl',
'../third_party/WebKit/WebCore/dom/WebKitAnimationEvent.idl',
'../third_party/WebKit/WebCore/dom/WebKitTransitionEvent.idl',
'../third_party/WebKit/WebCore/dom/WheelEvent.idl',
'../third_party/WebKit/WebCore/html/CanvasGradient.idl',
'../third_party/WebKit/WebCore/html/CanvasPattern.idl',
'../third_party/WebKit/WebCore/html/CanvasPixelArray.idl',
'../third_party/WebKit/WebCore/html/CanvasRenderingContext2D.idl',
'../third_party/WebKit/WebCore/html/DataGridColumn.idl',
'../third_party/WebKit/WebCore/html/DataGridColumnList.idl',
'../third_party/WebKit/WebCore/html/File.idl',
'../third_party/WebKit/WebCore/html/FileList.idl',
'../third_party/WebKit/WebCore/html/HTMLAnchorElement.idl',
'../third_party/WebKit/WebCore/html/HTMLAppletElement.idl',
'../third_party/WebKit/WebCore/html/HTMLAreaElement.idl',
'../third_party/WebKit/WebCore/html/HTMLAudioElement.idl',
'../third_party/WebKit/WebCore/html/HTMLBRElement.idl',
'../third_party/WebKit/WebCore/html/HTMLBaseElement.idl',
'../third_party/WebKit/WebCore/html/HTMLBaseFontElement.idl',
'../third_party/WebKit/WebCore/html/HTMLBlockquoteElement.idl',
'../third_party/WebKit/WebCore/html/HTMLBodyElement.idl',
'../third_party/WebKit/WebCore/html/HTMLButtonElement.idl',
'../third_party/WebKit/WebCore/html/HTMLCanvasElement.idl',
'../third_party/WebKit/WebCore/html/HTMLCollection.idl',
'../third_party/WebKit/WebCore/html/HTMLDListElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDataGridCellElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDataGridColElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDataGridElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDataGridRowElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDirectoryElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDivElement.idl',
'../third_party/WebKit/WebCore/html/HTMLDocument.idl',
'../third_party/WebKit/WebCore/html/HTMLElement.idl',
'../third_party/WebKit/WebCore/html/HTMLEmbedElement.idl',
'../third_party/WebKit/WebCore/html/HTMLFieldSetElement.idl',
'../third_party/WebKit/WebCore/html/HTMLFontElement.idl',
'../third_party/WebKit/WebCore/html/HTMLFormElement.idl',
'../third_party/WebKit/WebCore/html/HTMLFrameElement.idl',
'../third_party/WebKit/WebCore/html/HTMLFrameSetElement.idl',
'../third_party/WebKit/WebCore/html/HTMLHRElement.idl',
'../third_party/WebKit/WebCore/html/HTMLHeadElement.idl',
'../third_party/WebKit/WebCore/html/HTMLHeadingElement.idl',
'../third_party/WebKit/WebCore/html/HTMLHtmlElement.idl',
'../third_party/WebKit/WebCore/html/HTMLIFrameElement.idl',
'../third_party/WebKit/WebCore/html/HTMLImageElement.idl',
'../third_party/WebKit/WebCore/html/HTMLInputElement.idl',
'../third_party/WebKit/WebCore/html/HTMLIsIndexElement.idl',
'../third_party/WebKit/WebCore/html/HTMLLIElement.idl',
'../third_party/WebKit/WebCore/html/HTMLLabelElement.idl',
'../third_party/WebKit/WebCore/html/HTMLLegendElement.idl',
'../third_party/WebKit/WebCore/html/HTMLLinkElement.idl',
'../third_party/WebKit/WebCore/html/HTMLMapElement.idl',
'../third_party/WebKit/WebCore/html/HTMLMarqueeElement.idl',
'../third_party/WebKit/WebCore/html/HTMLMediaElement.idl',
'../third_party/WebKit/WebCore/html/HTMLMenuElement.idl',
'../third_party/WebKit/WebCore/html/HTMLMetaElement.idl',
'../third_party/WebKit/WebCore/html/HTMLModElement.idl',
'../third_party/WebKit/WebCore/html/HTMLOListElement.idl',
'../third_party/WebKit/WebCore/html/HTMLObjectElement.idl',
'../third_party/WebKit/WebCore/html/HTMLOptGroupElement.idl',
'../third_party/WebKit/WebCore/html/HTMLOptionElement.idl',
'../third_party/WebKit/WebCore/html/HTMLOptionsCollection.idl',
'../third_party/WebKit/WebCore/html/HTMLParagraphElement.idl',
'../third_party/WebKit/WebCore/html/HTMLParamElement.idl',
'../third_party/WebKit/WebCore/html/HTMLPreElement.idl',
'../third_party/WebKit/WebCore/html/HTMLQuoteElement.idl',
'../third_party/WebKit/WebCore/html/HTMLScriptElement.idl',
'../third_party/WebKit/WebCore/html/HTMLSelectElement.idl',
'../third_party/WebKit/WebCore/html/HTMLSourceElement.idl',
'../third_party/WebKit/WebCore/html/HTMLStyleElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTableCaptionElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTableCellElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTableColElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTableElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTableRowElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTableSectionElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTextAreaElement.idl',
'../third_party/WebKit/WebCore/html/HTMLTitleElement.idl',
'../third_party/WebKit/WebCore/html/HTMLUListElement.idl',
'../third_party/WebKit/WebCore/html/HTMLVideoElement.idl',
'../third_party/WebKit/WebCore/html/ImageData.idl',
'../third_party/WebKit/WebCore/html/MediaError.idl',
'../third_party/WebKit/WebCore/html/TextMetrics.idl',
'../third_party/WebKit/WebCore/html/TimeRanges.idl',
'../third_party/WebKit/WebCore/html/VoidCallback.idl',
'../third_party/WebKit/WebCore/inspector/InspectorController.idl',
'../third_party/WebKit/WebCore/inspector/JavaScriptCallFrame.idl',
'../third_party/WebKit/WebCore/loader/appcache/DOMApplicationCache.idl',
'../third_party/WebKit/WebCore/page/AbstractView.idl',
'../third_party/WebKit/WebCore/page/BarInfo.idl',
'../third_party/WebKit/WebCore/page/Console.idl',
'../third_party/WebKit/WebCore/page/DOMSelection.idl',
'../third_party/WebKit/WebCore/page/DOMWindow.idl',
'../third_party/WebKit/WebCore/page/Geolocation.idl',
'../third_party/WebKit/WebCore/page/Geoposition.idl',
'../third_party/WebKit/WebCore/page/History.idl',
'../third_party/WebKit/WebCore/page/Location.idl',
'../third_party/WebKit/WebCore/page/Navigator.idl',
'../third_party/WebKit/WebCore/page/PositionCallback.idl',
'../third_party/WebKit/WebCore/page/PositionError.idl',
'../third_party/WebKit/WebCore/page/PositionErrorCallback.idl',
'../third_party/WebKit/WebCore/page/Screen.idl',
'../third_party/WebKit/WebCore/page/WebKitPoint.idl',
'../third_party/WebKit/WebCore/page/WorkerNavigator.idl',
'../third_party/WebKit/WebCore/plugins/MimeType.idl',
'../third_party/WebKit/WebCore/plugins/MimeTypeArray.idl',
'../third_party/WebKit/WebCore/plugins/Plugin.idl',
'../third_party/WebKit/WebCore/plugins/PluginArray.idl',
'../third_party/WebKit/WebCore/storage/Database.idl',
'../third_party/WebKit/WebCore/storage/SQLError.idl',
'../third_party/WebKit/WebCore/storage/SQLResultSet.idl',
'../third_party/WebKit/WebCore/storage/SQLResultSetRowList.idl',
'../third_party/WebKit/WebCore/storage/SQLTransaction.idl',
'../third_party/WebKit/WebCore/storage/Storage.idl',
'../third_party/WebKit/WebCore/storage/StorageEvent.idl',
'../third_party/WebKit/WebCore/svg/ElementTimeControl.idl',
'../third_party/WebKit/WebCore/svg/SVGAElement.idl',
'../third_party/WebKit/WebCore/svg/SVGAltGlyphElement.idl',
'../third_party/WebKit/WebCore/svg/SVGAngle.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimateColorElement.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimateElement.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimateTransformElement.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedAngle.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedBoolean.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedEnumeration.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedInteger.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedLength.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedLengthList.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedNumber.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedNumberList.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPathData.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPoints.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPreserveAspectRatio.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedRect.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedString.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedTransformList.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimationElement.idl',
'../third_party/WebKit/WebCore/svg/SVGCircleElement.idl',
'../third_party/WebKit/WebCore/svg/SVGClipPathElement.idl',
'../third_party/WebKit/WebCore/svg/SVGColor.idl',
'../third_party/WebKit/WebCore/svg/SVGComponentTransferFunctionElement.idl',
'../third_party/WebKit/WebCore/svg/SVGCursorElement.idl',
'../third_party/WebKit/WebCore/svg/SVGDefinitionSrcElement.idl',
'../third_party/WebKit/WebCore/svg/SVGDefsElement.idl',
'../third_party/WebKit/WebCore/svg/SVGDescElement.idl',
'../third_party/WebKit/WebCore/svg/SVGDocument.idl',
'../third_party/WebKit/WebCore/svg/SVGElement.idl',
'../third_party/WebKit/WebCore/svg/SVGElementInstance.idl',
'../third_party/WebKit/WebCore/svg/SVGElementInstanceList.idl',
'../third_party/WebKit/WebCore/svg/SVGEllipseElement.idl',
'../third_party/WebKit/WebCore/svg/SVGException.idl',
'../third_party/WebKit/WebCore/svg/SVGExternalResourcesRequired.idl',
'../third_party/WebKit/WebCore/svg/SVGFEBlendElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEColorMatrixElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEComponentTransferElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFECompositeElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEDiffuseLightingElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEDisplacementMapElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEDistantLightElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEFloodElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEFuncAElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEFuncBElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEFuncGElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEFuncRElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEGaussianBlurElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEImageElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEMergeElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEMergeNodeElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEOffsetElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFEPointLightElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFESpecularLightingElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFESpotLightElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFETileElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFETurbulenceElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFilterElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.idl',
'../third_party/WebKit/WebCore/svg/SVGFitToViewBox.idl',
'../third_party/WebKit/WebCore/svg/SVGFontElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFontFaceElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFontFaceFormatElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFontFaceNameElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFontFaceSrcElement.idl',
'../third_party/WebKit/WebCore/svg/SVGFontFaceUriElement.idl',
'../third_party/WebKit/WebCore/svg/SVGForeignObjectElement.idl',
'../third_party/WebKit/WebCore/svg/SVGGElement.idl',
'../third_party/WebKit/WebCore/svg/SVGGlyphElement.idl',
'../third_party/WebKit/WebCore/svg/SVGGradientElement.idl',
'../third_party/WebKit/WebCore/svg/SVGHKernElement.idl',
'../third_party/WebKit/WebCore/svg/SVGImageElement.idl',
'../third_party/WebKit/WebCore/svg/SVGLangSpace.idl',
'../third_party/WebKit/WebCore/svg/SVGLength.idl',
'../third_party/WebKit/WebCore/svg/SVGLengthList.idl',
'../third_party/WebKit/WebCore/svg/SVGLineElement.idl',
'../third_party/WebKit/WebCore/svg/SVGLinearGradientElement.idl',
'../third_party/WebKit/WebCore/svg/SVGLocatable.idl',
'../third_party/WebKit/WebCore/svg/SVGMarkerElement.idl',
'../third_party/WebKit/WebCore/svg/SVGMaskElement.idl',
'../third_party/WebKit/WebCore/svg/SVGMatrix.idl',
'../third_party/WebKit/WebCore/svg/SVGMetadataElement.idl',
'../third_party/WebKit/WebCore/svg/SVGMissingGlyphElement.idl',
'../third_party/WebKit/WebCore/svg/SVGNumber.idl',
'../third_party/WebKit/WebCore/svg/SVGNumberList.idl',
'../third_party/WebKit/WebCore/svg/SVGPaint.idl',
'../third_party/WebKit/WebCore/svg/SVGPathElement.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSeg.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegArcAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegArcRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegClosePath.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubicAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubicRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubicSmoothRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadraticRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoHorizontalAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoHorizontalRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoVerticalAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoVerticalRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegList.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegMovetoAbs.idl',
'../third_party/WebKit/WebCore/svg/SVGPathSegMovetoRel.idl',
'../third_party/WebKit/WebCore/svg/SVGPatternElement.idl',
'../third_party/WebKit/WebCore/svg/SVGPoint.idl',
'../third_party/WebKit/WebCore/svg/SVGPointList.idl',
'../third_party/WebKit/WebCore/svg/SVGPolygonElement.idl',
'../third_party/WebKit/WebCore/svg/SVGPolylineElement.idl',
'../third_party/WebKit/WebCore/svg/SVGPreserveAspectRatio.idl',
'../third_party/WebKit/WebCore/svg/SVGRadialGradientElement.idl',
'../third_party/WebKit/WebCore/svg/SVGRect.idl',
'../third_party/WebKit/WebCore/svg/SVGRectElement.idl',
'../third_party/WebKit/WebCore/svg/SVGRenderingIntent.idl',
'../third_party/WebKit/WebCore/svg/SVGSVGElement.idl',
'../third_party/WebKit/WebCore/svg/SVGScriptElement.idl',
'../third_party/WebKit/WebCore/svg/SVGSetElement.idl',
'../third_party/WebKit/WebCore/svg/SVGStopElement.idl',
'../third_party/WebKit/WebCore/svg/SVGStringList.idl',
'../third_party/WebKit/WebCore/svg/SVGStylable.idl',
'../third_party/WebKit/WebCore/svg/SVGStyleElement.idl',
'../third_party/WebKit/WebCore/svg/SVGSwitchElement.idl',
'../third_party/WebKit/WebCore/svg/SVGSymbolElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTRefElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTSpanElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTests.idl',
'../third_party/WebKit/WebCore/svg/SVGTextContentElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTextElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTextPathElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTextPositioningElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTitleElement.idl',
'../third_party/WebKit/WebCore/svg/SVGTransform.idl',
'../third_party/WebKit/WebCore/svg/SVGTransformList.idl',
'../third_party/WebKit/WebCore/svg/SVGTransformable.idl',
'../third_party/WebKit/WebCore/svg/SVGURIReference.idl',
'../third_party/WebKit/WebCore/svg/SVGUnitTypes.idl',
'../third_party/WebKit/WebCore/svg/SVGUseElement.idl',
'../third_party/WebKit/WebCore/svg/SVGViewElement.idl',
'../third_party/WebKit/WebCore/svg/SVGViewSpec.idl',
'../third_party/WebKit/WebCore/svg/SVGZoomAndPan.idl',
'../third_party/WebKit/WebCore/svg/SVGZoomEvent.idl',
'../third_party/WebKit/WebCore/workers/Worker.idl',
'../third_party/WebKit/WebCore/workers/WorkerContext.idl',
'../third_party/WebKit/WebCore/workers/WorkerLocation.idl',
'../third_party/WebKit/WebCore/xml/DOMParser.idl',
'../third_party/WebKit/WebCore/xml/XMLHttpRequest.idl',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestException.idl',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestProgressEvent.idl',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestUpload.idl',
'../third_party/WebKit/WebCore/xml/XMLSerializer.idl',
'../third_party/WebKit/WebCore/xml/XPathEvaluator.idl',
'../third_party/WebKit/WebCore/xml/XPathException.idl',
'../third_party/WebKit/WebCore/xml/XPathExpression.idl',
'../third_party/WebKit/WebCore/xml/XPathNSResolver.idl',
'../third_party/WebKit/WebCore/xml/XPathResult.idl',
'../third_party/WebKit/WebCore/xml/XSLTProcessor.idl',
'port/bindings/v8/UndetectableHTMLCollection.idl',
# This file includes all the .cpp files generated from the above idl.
'../third_party/WebKit/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp',
# V8 bindings not generated from .idl source.
'../third_party/WebKit/WebCore/bindings/v8/custom/V8AttrCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CanvasPixelArrayCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8ClientRectListCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomBinding.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomBinding.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomVoidCallback.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomXPathNSResolver.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8CustomXPathNSResolver.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8DatabaseCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8DocumentLocationCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8DOMParserConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8DocumentCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8ElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8EventCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLAudioElementConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLDataGridElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLFormElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLIFrameElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLImageElementConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLInputElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLOptionElementConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLSelectElementCollectionCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8InspectorControllerCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8LocationCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8MessageChannelConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8MessagePortCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NamedNodesCollection.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NamedNodesCollection.h',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NavigatorCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NodeCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NodeFilterCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NodeIteratorCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8NodeListCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8SVGElementInstanceCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8SVGMatrixCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8StyleSheetListCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8TreeWalkerCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8WorkerCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8XMLHttpRequestConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8XMLHttpRequestCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8XMLSerializerConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8XPathEvaluatorConstructor.cpp',
'../third_party/WebKit/WebCore/bindings/v8/custom/V8XSLTProcessorCustom.cpp',
'../third_party/WebKit/WebCore/bindings/v8/DOMObjectsInclude.h',
'../third_party/WebKit/WebCore/bindings/v8/ScheduledAction.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScheduledAction.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptCachedFrameData.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptCallFrame.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptCallFrame.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptCallStack.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptCallStack.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptController.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptController.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptFunctionCall.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptFunctionCall.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptInstance.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptInstance.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptObject.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptObject.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptObjectQuarantine.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptObjectQuarantine.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptScope.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptScope.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptSourceCode.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptState.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptState.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptString.h',
'../third_party/WebKit/WebCore/bindings/v8/ScriptValue.cpp',
'../third_party/WebKit/WebCore/bindings/v8/ScriptValue.h',
'../third_party/WebKit/WebCore/bindings/v8/V8AbstractEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8AbstractEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/V8Binding.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8Binding.h',
'../third_party/WebKit/WebCore/bindings/v8/V8Collection.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8Collection.h',
'../third_party/WebKit/WebCore/bindings/v8/V8DOMMap.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8DOMMap.h',
'../third_party/WebKit/WebCore/bindings/v8/V8DOMWrapper.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8DOMWrapper.h',
'../third_party/WebKit/WebCore/bindings/v8/V8EventListenerList.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8EventListenerList.h',
'../third_party/WebKit/WebCore/bindings/v8/V8GCController.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8GCController.h',
'../third_party/WebKit/WebCore/bindings/v8/V8Helpers.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8Helpers.h',
'../third_party/WebKit/WebCore/bindings/v8/V8Index.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8Index.h',
'../third_party/WebKit/WebCore/bindings/v8/V8IsolatedWorld.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8IsolatedWorld.h',
'../third_party/WebKit/WebCore/bindings/v8/V8LazyEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8LazyEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/V8NodeFilterCondition.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8NodeFilterCondition.h',
'../third_party/WebKit/WebCore/bindings/v8/V8ObjectEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8ObjectEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/V8Proxy.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8Proxy.h',
'../third_party/WebKit/WebCore/bindings/v8/V8SVGPODTypeWrapper.h',
'../third_party/WebKit/WebCore/bindings/v8/V8Utilities.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8Utilities.h',
'../third_party/WebKit/WebCore/bindings/v8/V8WorkerContextEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8WorkerContextEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/V8WorkerContextObjectEventListener.cpp',
'../third_party/WebKit/WebCore/bindings/v8/V8WorkerContextObjectEventListener.h',
'../third_party/WebKit/WebCore/bindings/v8/WorkerContextExecutionProxy.h',
'../third_party/WebKit/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp',
'../third_party/WebKit/WebCore/bindings/v8/WorkerScriptController.h',
'../third_party/WebKit/WebCore/bindings/v8/WorkerScriptController.cpp',
'../third_party/WebKit/WebCore/bindings/v8/npruntime.cpp',
'../third_party/WebKit/WebCore/bindings/v8/npruntime_impl.h',
'../third_party/WebKit/WebCore/bindings/v8/npruntime_internal.h',
'../third_party/WebKit/WebCore/bindings/v8/npruntime_priv.h',
'extensions/v8/gc_extension.cc',
'extensions/v8/gc_extension.h',
'extensions/v8/gears_extension.cc',
'extensions/v8/gears_extension.h',
'extensions/v8/interval_extension.cc',
'extensions/v8/interval_extension.h',
'extensions/v8/playback_extension.cc',
'extensions/v8/playback_extension.h',
'extensions/v8/profiler_extension.cc',
'extensions/v8/profiler_extension.h',
'extensions/v8/benchmarking_extension.cc',
'extensions/v8/benchmarking_extension.h',
'port/bindings/v8/RGBColor.cpp',
'port/bindings/v8/RGBColor.h',
'port/bindings/v8/NPV8Object.cpp',
'port/bindings/v8/NPV8Object.h',
'port/bindings/v8/V8NPUtils.cpp',
'port/bindings/v8/V8NPUtils.h',
'port/bindings/v8/V8NPObject.cpp',
'port/bindings/v8/V8NPObject.h',
# This list contains every .cpp, .h, .m, and .mm file in the
# subdirectories of ../third_party/WebKit/WebCore, excluding the
# ForwardingHeaders, bindings, bridge, icu, and wml subdirectories.
# Exclusions are handled in the sources! and sources/ sections that
# follow, some within conditions sections.
'../third_party/WebKit/WebCore/accessibility/AXObjectCache.cpp',
'../third_party/WebKit/WebCore/accessibility/AXObjectCache.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityARIAGrid.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityARIAGrid.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityARIAGridCell.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityARIAGridCell.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityARIAGridRow.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityARIAGridRow.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityImageMapLink.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityImageMapLink.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityList.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityList.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityListBox.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityListBox.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityListBoxOption.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityListBoxOption.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityObject.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityObject.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityRenderObject.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityRenderObject.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTable.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTable.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableCell.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableCell.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableColumn.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableColumn.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableHeaderContainer.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableHeaderContainer.h',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableRow.cpp',
'../third_party/WebKit/WebCore/accessibility/AccessibilityTableRow.h',
'../third_party/WebKit/WebCore/accessibility/chromium/AXObjectCacheChromium.cpp',
'../third_party/WebKit/WebCore/accessibility/chromium/AccessibilityObjectChromium.cpp',
'../third_party/WebKit/WebCore/accessibility/chromium/AccessibilityObjectWrapper.h',
'../third_party/WebKit/WebCore/accessibility/gtk/AXObjectCacheAtk.cpp',
'../third_party/WebKit/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp',
'../third_party/WebKit/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp',
'../third_party/WebKit/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.h',
'../third_party/WebKit/WebCore/accessibility/qt/AccessibilityObjectQt.cpp',
'../third_party/WebKit/WebCore/accessibility/mac/AXObjectCacheMac.mm',
'../third_party/WebKit/WebCore/accessibility/mac/AccessibilityObjectMac.mm',
'../third_party/WebKit/WebCore/accessibility/mac/AccessibilityObjectWrapper.h',
'../third_party/WebKit/WebCore/accessibility/mac/AccessibilityObjectWrapper.mm',
'../third_party/WebKit/WebCore/accessibility/win/AXObjectCacheWin.cpp',
'../third_party/WebKit/WebCore/accessibility/win/AccessibilityObjectWin.cpp',
'../third_party/WebKit/WebCore/accessibility/win/AccessibilityObjectWrapperWin.h',
'../third_party/WebKit/WebCore/accessibility/wx/AccessibilityObjectWx.cpp',
'../third_party/WebKit/WebCore/css/CSSBorderImageValue.cpp',
'../third_party/WebKit/WebCore/css/CSSBorderImageValue.h',
'../third_party/WebKit/WebCore/css/CSSCanvasValue.cpp',
'../third_party/WebKit/WebCore/css/CSSCanvasValue.h',
'../third_party/WebKit/WebCore/css/CSSCharsetRule.cpp',
'../third_party/WebKit/WebCore/css/CSSCharsetRule.h',
'../third_party/WebKit/WebCore/css/CSSComputedStyleDeclaration.cpp',
'../third_party/WebKit/WebCore/css/CSSComputedStyleDeclaration.h',
'../third_party/WebKit/WebCore/css/CSSCursorImageValue.cpp',
'../third_party/WebKit/WebCore/css/CSSCursorImageValue.h',
'../third_party/WebKit/WebCore/css/CSSFontFace.cpp',
'../third_party/WebKit/WebCore/css/CSSFontFace.h',
'../third_party/WebKit/WebCore/css/CSSFontFaceRule.cpp',
'../third_party/WebKit/WebCore/css/CSSFontFaceRule.h',
'../third_party/WebKit/WebCore/css/CSSFontFaceSource.cpp',
'../third_party/WebKit/WebCore/css/CSSFontFaceSource.h',
'../third_party/WebKit/WebCore/css/CSSFontFaceSrcValue.cpp',
'../third_party/WebKit/WebCore/css/CSSFontFaceSrcValue.h',
'../third_party/WebKit/WebCore/css/CSSFontSelector.cpp',
'../third_party/WebKit/WebCore/css/CSSFontSelector.h',
'../third_party/WebKit/WebCore/css/CSSFunctionValue.cpp',
'../third_party/WebKit/WebCore/css/CSSFunctionValue.h',
'../third_party/WebKit/WebCore/css/CSSGradientValue.cpp',
'../third_party/WebKit/WebCore/css/CSSGradientValue.h',
'../third_party/WebKit/WebCore/css/CSSHelper.cpp',
'../third_party/WebKit/WebCore/css/CSSHelper.h',
'../third_party/WebKit/WebCore/css/CSSImageGeneratorValue.cpp',
'../third_party/WebKit/WebCore/css/CSSImageGeneratorValue.h',
'../third_party/WebKit/WebCore/css/CSSImageValue.cpp',
'../third_party/WebKit/WebCore/css/CSSImageValue.h',
'../third_party/WebKit/WebCore/css/CSSImportRule.cpp',
'../third_party/WebKit/WebCore/css/CSSImportRule.h',
'../third_party/WebKit/WebCore/css/CSSInheritedValue.cpp',
'../third_party/WebKit/WebCore/css/CSSInheritedValue.h',
'../third_party/WebKit/WebCore/css/CSSInitialValue.cpp',
'../third_party/WebKit/WebCore/css/CSSInitialValue.h',
'../third_party/WebKit/WebCore/css/CSSMediaRule.cpp',
'../third_party/WebKit/WebCore/css/CSSMediaRule.h',
'../third_party/WebKit/WebCore/css/CSSMutableStyleDeclaration.cpp',
'../third_party/WebKit/WebCore/css/CSSMutableStyleDeclaration.h',
'../third_party/WebKit/WebCore/css/CSSNamespace.h',
'../third_party/WebKit/WebCore/css/CSSPageRule.cpp',
'../third_party/WebKit/WebCore/css/CSSPageRule.h',
'../third_party/WebKit/WebCore/css/CSSParser.cpp',
'../third_party/WebKit/WebCore/css/CSSParser.h',
'../third_party/WebKit/WebCore/css/CSSParserValues.cpp',
'../third_party/WebKit/WebCore/css/CSSParserValues.h',
'../third_party/WebKit/WebCore/css/CSSPrimitiveValue.cpp',
'../third_party/WebKit/WebCore/css/CSSPrimitiveValue.h',
'../third_party/WebKit/WebCore/css/CSSPrimitiveValueMappings.h',
'../third_party/WebKit/WebCore/css/CSSProperty.cpp',
'../third_party/WebKit/WebCore/css/CSSProperty.h',
'../third_party/WebKit/WebCore/css/CSSPropertyLonghand.cpp',
'../third_party/WebKit/WebCore/css/CSSPropertyLonghand.h',
'../third_party/WebKit/WebCore/css/CSSQuirkPrimitiveValue.h',
'../third_party/WebKit/WebCore/css/CSSReflectValue.cpp',
'../third_party/WebKit/WebCore/css/CSSReflectValue.h',
'../third_party/WebKit/WebCore/css/CSSReflectionDirection.h',
'../third_party/WebKit/WebCore/css/CSSRule.cpp',
'../third_party/WebKit/WebCore/css/CSSRule.h',
'../third_party/WebKit/WebCore/css/CSSRuleList.cpp',
'../third_party/WebKit/WebCore/css/CSSRuleList.h',
'../third_party/WebKit/WebCore/css/CSSSegmentedFontFace.cpp',
'../third_party/WebKit/WebCore/css/CSSSegmentedFontFace.h',
'../third_party/WebKit/WebCore/css/CSSSelector.cpp',
'../third_party/WebKit/WebCore/css/CSSSelector.h',
'../third_party/WebKit/WebCore/css/CSSSelectorList.cpp',
'../third_party/WebKit/WebCore/css/CSSSelectorList.h',
'../third_party/WebKit/WebCore/css/CSSStyleDeclaration.cpp',
'../third_party/WebKit/WebCore/css/CSSStyleDeclaration.h',
'../third_party/WebKit/WebCore/css/CSSStyleRule.cpp',
'../third_party/WebKit/WebCore/css/CSSStyleRule.h',
'../third_party/WebKit/WebCore/css/CSSStyleSelector.cpp',
'../third_party/WebKit/WebCore/css/CSSStyleSelector.h',
'../third_party/WebKit/WebCore/css/CSSStyleSheet.cpp',
'../third_party/WebKit/WebCore/css/CSSStyleSheet.h',
'../third_party/WebKit/WebCore/css/CSSTimingFunctionValue.cpp',
'../third_party/WebKit/WebCore/css/CSSTimingFunctionValue.h',
'../third_party/WebKit/WebCore/css/CSSUnicodeRangeValue.cpp',
'../third_party/WebKit/WebCore/css/CSSUnicodeRangeValue.h',
'../third_party/WebKit/WebCore/css/CSSUnknownRule.h',
'../third_party/WebKit/WebCore/css/CSSValue.h',
'../third_party/WebKit/WebCore/css/CSSValueList.cpp',
'../third_party/WebKit/WebCore/css/CSSValueList.h',
'../third_party/WebKit/WebCore/css/CSSVariableDependentValue.cpp',
'../third_party/WebKit/WebCore/css/CSSVariableDependentValue.h',
'../third_party/WebKit/WebCore/css/CSSVariablesDeclaration.cpp',
'../third_party/WebKit/WebCore/css/CSSVariablesDeclaration.h',
'../third_party/WebKit/WebCore/css/CSSVariablesRule.cpp',
'../third_party/WebKit/WebCore/css/CSSVariablesRule.h',
'../third_party/WebKit/WebCore/css/Counter.h',
'../third_party/WebKit/WebCore/css/DashboardRegion.h',
'../third_party/WebKit/WebCore/css/FontFamilyValue.cpp',
'../third_party/WebKit/WebCore/css/FontFamilyValue.h',
'../third_party/WebKit/WebCore/css/FontValue.cpp',
'../third_party/WebKit/WebCore/css/FontValue.h',
'../third_party/WebKit/WebCore/css/MediaFeatureNames.cpp',
'../third_party/WebKit/WebCore/css/MediaFeatureNames.h',
'../third_party/WebKit/WebCore/css/MediaList.cpp',
'../third_party/WebKit/WebCore/css/MediaList.h',
'../third_party/WebKit/WebCore/css/MediaQuery.cpp',
'../third_party/WebKit/WebCore/css/MediaQuery.h',
'../third_party/WebKit/WebCore/css/MediaQueryEvaluator.cpp',
'../third_party/WebKit/WebCore/css/MediaQueryEvaluator.h',
'../third_party/WebKit/WebCore/css/MediaQueryExp.cpp',
'../third_party/WebKit/WebCore/css/MediaQueryExp.h',
'../third_party/WebKit/WebCore/css/Pair.h',
'../third_party/WebKit/WebCore/css/Rect.h',
'../third_party/WebKit/WebCore/css/SVGCSSComputedStyleDeclaration.cpp',
'../third_party/WebKit/WebCore/css/SVGCSSParser.cpp',
'../third_party/WebKit/WebCore/css/SVGCSSStyleSelector.cpp',
'../third_party/WebKit/WebCore/css/ShadowValue.cpp',
'../third_party/WebKit/WebCore/css/ShadowValue.h',
'../third_party/WebKit/WebCore/css/StyleBase.cpp',
'../third_party/WebKit/WebCore/css/StyleBase.h',
'../third_party/WebKit/WebCore/css/StyleList.cpp',
'../third_party/WebKit/WebCore/css/StyleList.h',
'../third_party/WebKit/WebCore/css/StyleSheet.cpp',
'../third_party/WebKit/WebCore/css/StyleSheet.h',
'../third_party/WebKit/WebCore/css/StyleSheetList.cpp',
'../third_party/WebKit/WebCore/css/StyleSheetList.h',
'../third_party/WebKit/WebCore/css/WebKitCSSKeyframeRule.cpp',
'../third_party/WebKit/WebCore/css/WebKitCSSKeyframeRule.h',
'../third_party/WebKit/WebCore/css/WebKitCSSKeyframesRule.cpp',
'../third_party/WebKit/WebCore/css/WebKitCSSKeyframesRule.h',
'../third_party/WebKit/WebCore/css/WebKitCSSMatrix.cpp',
'../third_party/WebKit/WebCore/css/WebKitCSSMatrix.h',
'../third_party/WebKit/WebCore/css/WebKitCSSTransformValue.cpp',
'../third_party/WebKit/WebCore/css/WebKitCSSTransformValue.h',
'../third_party/WebKit/WebCore/dom/default/PlatformMessagePortChannel.cpp',
'../third_party/WebKit/WebCore/dom/default/PlatformMessagePortChannel.h',
'../third_party/WebKit/WebCore/dom/ActiveDOMObject.cpp',
'../third_party/WebKit/WebCore/dom/ActiveDOMObject.h',
'../third_party/WebKit/WebCore/dom/Attr.cpp',
'../third_party/WebKit/WebCore/dom/Attr.h',
'../third_party/WebKit/WebCore/dom/Attribute.cpp',
'../third_party/WebKit/WebCore/dom/Attribute.h',
'../third_party/WebKit/WebCore/dom/BeforeTextInsertedEvent.cpp',
'../third_party/WebKit/WebCore/dom/BeforeTextInsertedEvent.h',
'../third_party/WebKit/WebCore/dom/BeforeUnloadEvent.cpp',
'../third_party/WebKit/WebCore/dom/BeforeUnloadEvent.h',
'../third_party/WebKit/WebCore/dom/CDATASection.cpp',
'../third_party/WebKit/WebCore/dom/CDATASection.h',
'../third_party/WebKit/WebCore/dom/CSSMappedAttributeDeclaration.cpp',
'../third_party/WebKit/WebCore/dom/CSSMappedAttributeDeclaration.h',
'../third_party/WebKit/WebCore/dom/CharacterData.cpp',
'../third_party/WebKit/WebCore/dom/CharacterData.h',
'../third_party/WebKit/WebCore/dom/CheckedRadioButtons.cpp',
'../third_party/WebKit/WebCore/dom/CheckedRadioButtons.h',
'../third_party/WebKit/WebCore/dom/ChildNodeList.cpp',
'../third_party/WebKit/WebCore/dom/ChildNodeList.h',
'../third_party/WebKit/WebCore/dom/ClassNames.cpp',
'../third_party/WebKit/WebCore/dom/ClassNames.h',
'../third_party/WebKit/WebCore/dom/ClassNodeList.cpp',
'../third_party/WebKit/WebCore/dom/ClassNodeList.h',
'../third_party/WebKit/WebCore/dom/ClientRect.cpp',
'../third_party/WebKit/WebCore/dom/ClientRect.h',
'../third_party/WebKit/WebCore/dom/ClientRectList.cpp',
'../third_party/WebKit/WebCore/dom/ClientRectList.h',
'../third_party/WebKit/WebCore/dom/Clipboard.cpp',
'../third_party/WebKit/WebCore/dom/Clipboard.h',
'../third_party/WebKit/WebCore/dom/ClipboardAccessPolicy.h',
'../third_party/WebKit/WebCore/dom/ClipboardEvent.cpp',
'../third_party/WebKit/WebCore/dom/ClipboardEvent.h',
'../third_party/WebKit/WebCore/dom/Comment.cpp',
'../third_party/WebKit/WebCore/dom/Comment.h',
'../third_party/WebKit/WebCore/dom/ContainerNode.cpp',
'../third_party/WebKit/WebCore/dom/ContainerNode.h',
'../third_party/WebKit/WebCore/dom/ContainerNodeAlgorithms.h',
'../third_party/WebKit/WebCore/dom/DOMCoreException.h',
'../third_party/WebKit/WebCore/dom/DOMImplementation.cpp',
'../third_party/WebKit/WebCore/dom/DOMImplementation.h',
'../third_party/WebKit/WebCore/dom/DocPtr.h',
'../third_party/WebKit/WebCore/dom/Document.cpp',
'../third_party/WebKit/WebCore/dom/Document.h',
'../third_party/WebKit/WebCore/dom/DocumentFragment.cpp',
'../third_party/WebKit/WebCore/dom/DocumentFragment.h',
'../third_party/WebKit/WebCore/dom/DocumentMarker.h',
'../third_party/WebKit/WebCore/dom/DocumentType.cpp',
'../third_party/WebKit/WebCore/dom/DocumentType.h',
'../third_party/WebKit/WebCore/dom/DynamicNodeList.cpp',
'../third_party/WebKit/WebCore/dom/DynamicNodeList.h',
'../third_party/WebKit/WebCore/dom/EditingText.cpp',
'../third_party/WebKit/WebCore/dom/EditingText.h',
'../third_party/WebKit/WebCore/dom/Element.cpp',
'../third_party/WebKit/WebCore/dom/Element.h',
'../third_party/WebKit/WebCore/dom/ElementRareData.h',
'../third_party/WebKit/WebCore/dom/Entity.cpp',
'../third_party/WebKit/WebCore/dom/Entity.h',
'../third_party/WebKit/WebCore/dom/EntityReference.cpp',
'../third_party/WebKit/WebCore/dom/EntityReference.h',
'../third_party/WebKit/WebCore/dom/Event.cpp',
'../third_party/WebKit/WebCore/dom/Event.h',
'../third_party/WebKit/WebCore/dom/EventException.h',
'../third_party/WebKit/WebCore/dom/EventListener.h',
'../third_party/WebKit/WebCore/dom/EventNames.cpp',
'../third_party/WebKit/WebCore/dom/EventNames.h',
'../third_party/WebKit/WebCore/dom/EventTarget.cpp',
'../third_party/WebKit/WebCore/dom/EventTarget.h',
'../third_party/WebKit/WebCore/dom/ExceptionBase.cpp',
'../third_party/WebKit/WebCore/dom/ExceptionBase.h',
'../third_party/WebKit/WebCore/dom/ExceptionCode.cpp',
'../third_party/WebKit/WebCore/dom/ExceptionCode.h',
'../third_party/WebKit/WebCore/dom/InputElement.cpp',
'../third_party/WebKit/WebCore/dom/InputElement.h',
'../third_party/WebKit/WebCore/dom/KeyboardEvent.cpp',
'../third_party/WebKit/WebCore/dom/KeyboardEvent.h',
'../third_party/WebKit/WebCore/dom/MappedAttribute.cpp',
'../third_party/WebKit/WebCore/dom/MappedAttribute.h',
'../third_party/WebKit/WebCore/dom/MappedAttributeEntry.h',
'../third_party/WebKit/WebCore/dom/MessageChannel.cpp',
'../third_party/WebKit/WebCore/dom/MessageChannel.h',
'../third_party/WebKit/WebCore/dom/MessageEvent.cpp',
'../third_party/WebKit/WebCore/dom/MessageEvent.h',
'../third_party/WebKit/WebCore/dom/MessagePort.cpp',
'../third_party/WebKit/WebCore/dom/MessagePort.h',
'../third_party/WebKit/WebCore/dom/MessagePortChannel.cpp',
'../third_party/WebKit/WebCore/dom/MessagePortChannel.h',
'../third_party/WebKit/WebCore/dom/MouseEvent.cpp',
'../third_party/WebKit/WebCore/dom/MouseEvent.h',
'../third_party/WebKit/WebCore/dom/MouseRelatedEvent.cpp',
'../third_party/WebKit/WebCore/dom/MouseRelatedEvent.h',
'../third_party/WebKit/WebCore/dom/MutationEvent.cpp',
'../third_party/WebKit/WebCore/dom/MutationEvent.h',
'../third_party/WebKit/WebCore/dom/NameNodeList.cpp',
'../third_party/WebKit/WebCore/dom/NameNodeList.h',
'../third_party/WebKit/WebCore/dom/NamedAttrMap.cpp',
'../third_party/WebKit/WebCore/dom/NamedAttrMap.h',
'../third_party/WebKit/WebCore/dom/NamedMappedAttrMap.cpp',
'../third_party/WebKit/WebCore/dom/NamedMappedAttrMap.h',
'../third_party/WebKit/WebCore/dom/NamedNodeMap.h',
'../third_party/WebKit/WebCore/dom/Node.cpp',
'../third_party/WebKit/WebCore/dom/Node.h',
'../third_party/WebKit/WebCore/dom/NodeFilter.cpp',
'../third_party/WebKit/WebCore/dom/NodeFilter.h',
'../third_party/WebKit/WebCore/dom/NodeFilterCondition.cpp',
'../third_party/WebKit/WebCore/dom/NodeFilterCondition.h',
'../third_party/WebKit/WebCore/dom/NodeIterator.cpp',
'../third_party/WebKit/WebCore/dom/NodeIterator.h',
'../third_party/WebKit/WebCore/dom/NodeList.h',
'../third_party/WebKit/WebCore/dom/NodeRareData.h',
'../third_party/WebKit/WebCore/dom/NodeRenderStyle.h',
'../third_party/WebKit/WebCore/dom/NodeWithIndex.h',
'../third_party/WebKit/WebCore/dom/Notation.cpp',
'../third_party/WebKit/WebCore/dom/Notation.h',
'../third_party/WebKit/WebCore/dom/OptionElement.cpp',
'../third_party/WebKit/WebCore/dom/OptionElement.h',
'../third_party/WebKit/WebCore/dom/OptionGroupElement.cpp',
'../third_party/WebKit/WebCore/dom/OptionGroupElement.h',
'../third_party/WebKit/WebCore/dom/OverflowEvent.cpp',
'../third_party/WebKit/WebCore/dom/OverflowEvent.h',
'../third_party/WebKit/WebCore/dom/Position.cpp',
'../third_party/WebKit/WebCore/dom/Position.h',
'../third_party/WebKit/WebCore/dom/PositionIterator.cpp',
'../third_party/WebKit/WebCore/dom/PositionIterator.h',
'../third_party/WebKit/WebCore/dom/ProcessingInstruction.cpp',
'../third_party/WebKit/WebCore/dom/ProcessingInstruction.h',
'../third_party/WebKit/WebCore/dom/ProgressEvent.cpp',
'../third_party/WebKit/WebCore/dom/ProgressEvent.h',
'../third_party/WebKit/WebCore/dom/QualifiedName.cpp',
'../third_party/WebKit/WebCore/dom/QualifiedName.h',
'../third_party/WebKit/WebCore/dom/Range.cpp',
'../third_party/WebKit/WebCore/dom/Range.h',
'../third_party/WebKit/WebCore/dom/RangeBoundaryPoint.h',
'../third_party/WebKit/WebCore/dom/RangeException.h',
'../third_party/WebKit/WebCore/dom/RegisteredEventListener.cpp',
'../third_party/WebKit/WebCore/dom/RegisteredEventListener.h',
'../third_party/WebKit/WebCore/dom/ScriptElement.cpp',
'../third_party/WebKit/WebCore/dom/ScriptElement.h',
'../third_party/WebKit/WebCore/dom/ScriptExecutionContext.cpp',
'../third_party/WebKit/WebCore/dom/ScriptExecutionContext.h',
'../third_party/WebKit/WebCore/dom/SelectElement.cpp',
'../third_party/WebKit/WebCore/dom/SelectElement.h',
'../third_party/WebKit/WebCore/dom/SelectorNodeList.cpp',
'../third_party/WebKit/WebCore/dom/SelectorNodeList.h',
'../third_party/WebKit/WebCore/dom/StaticNodeList.cpp',
'../third_party/WebKit/WebCore/dom/StaticNodeList.h',
'../third_party/WebKit/WebCore/dom/StaticStringList.cpp',
'../third_party/WebKit/WebCore/dom/StaticStringList.h',
'../third_party/WebKit/WebCore/dom/StyleElement.cpp',
'../third_party/WebKit/WebCore/dom/StyleElement.h',
'../third_party/WebKit/WebCore/dom/StyledElement.cpp',
'../third_party/WebKit/WebCore/dom/StyledElement.h',
'../third_party/WebKit/WebCore/dom/TagNodeList.cpp',
'../third_party/WebKit/WebCore/dom/TagNodeList.h',
'../third_party/WebKit/WebCore/dom/Text.cpp',
'../third_party/WebKit/WebCore/dom/Text.h',
'../third_party/WebKit/WebCore/dom/TextEvent.cpp',
'../third_party/WebKit/WebCore/dom/TextEvent.h',
'../third_party/WebKit/WebCore/dom/Tokenizer.h',
'../third_party/WebKit/WebCore/dom/Traversal.cpp',
'../third_party/WebKit/WebCore/dom/Traversal.h',
'../third_party/WebKit/WebCore/dom/TreeWalker.cpp',
'../third_party/WebKit/WebCore/dom/TreeWalker.h',
'../third_party/WebKit/WebCore/dom/UIEvent.cpp',
'../third_party/WebKit/WebCore/dom/UIEvent.h',
'../third_party/WebKit/WebCore/dom/UIEventWithKeyState.cpp',
'../third_party/WebKit/WebCore/dom/UIEventWithKeyState.h',
'../third_party/WebKit/WebCore/dom/WebKitAnimationEvent.cpp',
'../third_party/WebKit/WebCore/dom/WebKitAnimationEvent.h',
'../third_party/WebKit/WebCore/dom/WebKitTransitionEvent.cpp',
'../third_party/WebKit/WebCore/dom/WebKitTransitionEvent.h',
'../third_party/WebKit/WebCore/dom/WheelEvent.cpp',
'../third_party/WebKit/WebCore/dom/WheelEvent.h',
'../third_party/WebKit/WebCore/dom/XMLTokenizer.cpp',
'../third_party/WebKit/WebCore/dom/XMLTokenizer.h',
'../third_party/WebKit/WebCore/dom/XMLTokenizerLibxml2.cpp',
'../third_party/WebKit/WebCore/dom/XMLTokenizerScope.cpp',
'../third_party/WebKit/WebCore/dom/XMLTokenizerScope.h',
'../third_party/WebKit/WebCore/dom/XMLTokenizerQt.cpp',
'../third_party/WebKit/WebCore/editing/android/EditorAndroid.cpp',
'../third_party/WebKit/WebCore/editing/chromium/EditorChromium.cpp',
'../third_party/WebKit/WebCore/editing/mac/EditorMac.mm',
'../third_party/WebKit/WebCore/editing/mac/SelectionControllerMac.mm',
'../third_party/WebKit/WebCore/editing/qt/EditorQt.cpp',
'../third_party/WebKit/WebCore/editing/wx/EditorWx.cpp',
'../third_party/WebKit/WebCore/editing/AppendNodeCommand.cpp',
'../third_party/WebKit/WebCore/editing/AppendNodeCommand.h',
'../third_party/WebKit/WebCore/editing/ApplyStyleCommand.cpp',
'../third_party/WebKit/WebCore/editing/ApplyStyleCommand.h',
'../third_party/WebKit/WebCore/editing/BreakBlockquoteCommand.cpp',
'../third_party/WebKit/WebCore/editing/BreakBlockquoteCommand.h',
'../third_party/WebKit/WebCore/editing/CompositeEditCommand.cpp',
'../third_party/WebKit/WebCore/editing/CompositeEditCommand.h',
'../third_party/WebKit/WebCore/editing/CreateLinkCommand.cpp',
'../third_party/WebKit/WebCore/editing/CreateLinkCommand.h',
'../third_party/WebKit/WebCore/editing/DeleteButton.cpp',
'../third_party/WebKit/WebCore/editing/DeleteButton.h',
'../third_party/WebKit/WebCore/editing/DeleteButtonController.cpp',
'../third_party/WebKit/WebCore/editing/DeleteButtonController.h',
'../third_party/WebKit/WebCore/editing/DeleteFromTextNodeCommand.cpp',
'../third_party/WebKit/WebCore/editing/DeleteFromTextNodeCommand.h',
'../third_party/WebKit/WebCore/editing/DeleteSelectionCommand.cpp',
'../third_party/WebKit/WebCore/editing/DeleteSelectionCommand.h',
'../third_party/WebKit/WebCore/editing/EditAction.h',
'../third_party/WebKit/WebCore/editing/EditCommand.cpp',
'../third_party/WebKit/WebCore/editing/EditCommand.h',
'../third_party/WebKit/WebCore/editing/Editor.cpp',
'../third_party/WebKit/WebCore/editing/Editor.h',
'../third_party/WebKit/WebCore/editing/EditorCommand.cpp',
'../third_party/WebKit/WebCore/editing/EditorDeleteAction.h',
'../third_party/WebKit/WebCore/editing/EditorInsertAction.h',
'../third_party/WebKit/WebCore/editing/FormatBlockCommand.cpp',
'../third_party/WebKit/WebCore/editing/FormatBlockCommand.h',
'../third_party/WebKit/WebCore/editing/HTMLInterchange.cpp',
'../third_party/WebKit/WebCore/editing/HTMLInterchange.h',
'../third_party/WebKit/WebCore/editing/IndentOutdentCommand.cpp',
'../third_party/WebKit/WebCore/editing/IndentOutdentCommand.h',
'../third_party/WebKit/WebCore/editing/InsertIntoTextNodeCommand.cpp',
'../third_party/WebKit/WebCore/editing/InsertIntoTextNodeCommand.h',
'../third_party/WebKit/WebCore/editing/InsertLineBreakCommand.cpp',
'../third_party/WebKit/WebCore/editing/InsertLineBreakCommand.h',
'../third_party/WebKit/WebCore/editing/InsertListCommand.cpp',
'../third_party/WebKit/WebCore/editing/InsertListCommand.h',
'../third_party/WebKit/WebCore/editing/InsertNodeBeforeCommand.cpp',
'../third_party/WebKit/WebCore/editing/InsertNodeBeforeCommand.h',
'../third_party/WebKit/WebCore/editing/InsertParagraphSeparatorCommand.cpp',
'../third_party/WebKit/WebCore/editing/InsertParagraphSeparatorCommand.h',
'../third_party/WebKit/WebCore/editing/InsertTextCommand.cpp',
'../third_party/WebKit/WebCore/editing/InsertTextCommand.h',
'../third_party/WebKit/WebCore/editing/JoinTextNodesCommand.cpp',
'../third_party/WebKit/WebCore/editing/JoinTextNodesCommand.h',
'../third_party/WebKit/WebCore/editing/MergeIdenticalElementsCommand.cpp',
'../third_party/WebKit/WebCore/editing/MergeIdenticalElementsCommand.h',
'../third_party/WebKit/WebCore/editing/ModifySelectionListLevel.cpp',
'../third_party/WebKit/WebCore/editing/ModifySelectionListLevel.h',
'../third_party/WebKit/WebCore/editing/MoveSelectionCommand.cpp',
'../third_party/WebKit/WebCore/editing/MoveSelectionCommand.h',
'../third_party/WebKit/WebCore/editing/RemoveCSSPropertyCommand.cpp',
'../third_party/WebKit/WebCore/editing/RemoveCSSPropertyCommand.h',
'../third_party/WebKit/WebCore/editing/RemoveFormatCommand.cpp',
'../third_party/WebKit/WebCore/editing/RemoveFormatCommand.h',
'../third_party/WebKit/WebCore/editing/RemoveNodeCommand.cpp',
'../third_party/WebKit/WebCore/editing/RemoveNodeCommand.h',
'../third_party/WebKit/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp',
'../third_party/WebKit/WebCore/editing/RemoveNodePreservingChildrenCommand.h',
'../third_party/WebKit/WebCore/editing/ReplaceNodeWithSpanCommand.cpp',
'../third_party/WebKit/WebCore/editing/ReplaceNodeWithSpanCommand.h',
'../third_party/WebKit/WebCore/editing/ReplaceSelectionCommand.cpp',
'../third_party/WebKit/WebCore/editing/ReplaceSelectionCommand.h',
'../third_party/WebKit/WebCore/editing/SelectionController.cpp',
'../third_party/WebKit/WebCore/editing/SelectionController.h',
'../third_party/WebKit/WebCore/editing/SetNodeAttributeCommand.cpp',
'../third_party/WebKit/WebCore/editing/SetNodeAttributeCommand.h',
'../third_party/WebKit/WebCore/editing/SmartReplace.cpp',
'../third_party/WebKit/WebCore/editing/SmartReplace.h',
'../third_party/WebKit/WebCore/editing/SmartReplaceCF.cpp',
'../third_party/WebKit/WebCore/editing/SmartReplaceICU.cpp',
'../third_party/WebKit/WebCore/editing/SplitElementCommand.cpp',
'../third_party/WebKit/WebCore/editing/SplitElementCommand.h',
'../third_party/WebKit/WebCore/editing/SplitTextNodeCommand.cpp',
'../third_party/WebKit/WebCore/editing/SplitTextNodeCommand.h',
'../third_party/WebKit/WebCore/editing/SplitTextNodeContainingElementCommand.cpp',
'../third_party/WebKit/WebCore/editing/SplitTextNodeContainingElementCommand.h',
'../third_party/WebKit/WebCore/editing/TextAffinity.h',
'../third_party/WebKit/WebCore/editing/TextGranularity.h',
'../third_party/WebKit/WebCore/editing/TextIterator.cpp',
'../third_party/WebKit/WebCore/editing/TextIterator.h',
'../third_party/WebKit/WebCore/editing/TypingCommand.cpp',
'../third_party/WebKit/WebCore/editing/TypingCommand.h',
'../third_party/WebKit/WebCore/editing/UnlinkCommand.cpp',
'../third_party/WebKit/WebCore/editing/UnlinkCommand.h',
'../third_party/WebKit/WebCore/editing/VisiblePosition.cpp',
'../third_party/WebKit/WebCore/editing/VisiblePosition.h',
'../third_party/WebKit/WebCore/editing/VisibleSelection.cpp',
'../third_party/WebKit/WebCore/editing/VisibleSelection.h',
'../third_party/WebKit/WebCore/editing/WrapContentsInDummySpanCommand.cpp',
'../third_party/WebKit/WebCore/editing/WrapContentsInDummySpanCommand.h',
'../third_party/WebKit/WebCore/editing/htmlediting.cpp',
'../third_party/WebKit/WebCore/editing/htmlediting.h',
'../third_party/WebKit/WebCore/editing/markup.cpp',
'../third_party/WebKit/WebCore/editing/markup.h',
'../third_party/WebKit/WebCore/editing/visible_units.cpp',
'../third_party/WebKit/WebCore/editing/visible_units.h',
'../third_party/WebKit/WebCore/history/mac/HistoryItemMac.mm',
'../third_party/WebKit/WebCore/history/BackForwardList.cpp',
'../third_party/WebKit/WebCore/history/BackForwardList.h',
'../third_party/WebKit/WebCore/history/BackForwardListChromium.cpp',
'../third_party/WebKit/WebCore/history/CachedFrame.cpp',
'../third_party/WebKit/WebCore/history/CachedFrame.h',
'../third_party/WebKit/WebCore/history/CachedFramePlatformData.h',
'../third_party/WebKit/WebCore/history/CachedPage.cpp',
'../third_party/WebKit/WebCore/history/CachedPage.h',
'../third_party/WebKit/WebCore/history/HistoryItem.cpp',
'../third_party/WebKit/WebCore/history/HistoryItem.h',
'../third_party/WebKit/WebCore/history/PageCache.cpp',
'../third_party/WebKit/WebCore/history/PageCache.h',
'../third_party/WebKit/WebCore/html/CanvasGradient.cpp',
'../third_party/WebKit/WebCore/html/CanvasGradient.h',
'../third_party/WebKit/WebCore/html/CanvasPattern.cpp',
'../third_party/WebKit/WebCore/html/CanvasPattern.h',
'../third_party/WebKit/WebCore/html/CanvasPixelArray.cpp',
'../third_party/WebKit/WebCore/html/CanvasPixelArray.h',
'../third_party/WebKit/WebCore/html/CanvasRenderingContext2D.cpp',
'../third_party/WebKit/WebCore/html/CanvasRenderingContext2D.h',
'../third_party/WebKit/WebCore/html/CanvasStyle.cpp',
'../third_party/WebKit/WebCore/html/CanvasStyle.h',
'../third_party/WebKit/WebCore/html/CollectionCache.cpp',
'../third_party/WebKit/WebCore/html/CollectionCache.h',
'../third_party/WebKit/WebCore/html/CollectionType.h',
'../third_party/WebKit/WebCore/html/DataGridColumn.cpp',
'../third_party/WebKit/WebCore/html/DataGridColumn.h',
'../third_party/WebKit/WebCore/html/DOMDataGridDataSource.cpp',
'../third_party/WebKit/WebCore/html/DOMDataGridDataSource.h',
'../third_party/WebKit/WebCore/html/DataGridColumnList.cpp',
'../third_party/WebKit/WebCore/html/DataGridColumnList.h',
'../third_party/WebKit/WebCore/html/File.cpp',
'../third_party/WebKit/WebCore/html/File.h',
'../third_party/WebKit/WebCore/html/FileList.cpp',
'../third_party/WebKit/WebCore/html/FileList.h',
'../third_party/WebKit/WebCore/html/FormDataList.cpp',
'../third_party/WebKit/WebCore/html/FormDataList.h',
'../third_party/WebKit/WebCore/html/HTMLAnchorElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLAnchorElement.h',
'../third_party/WebKit/WebCore/html/HTMLAppletElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLAppletElement.h',
'../third_party/WebKit/WebCore/html/HTMLAreaElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLAreaElement.h',
'../third_party/WebKit/WebCore/html/HTMLAudioElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLAudioElement.h',
'../third_party/WebKit/WebCore/html/HTMLBRElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLBRElement.h',
'../third_party/WebKit/WebCore/html/HTMLBaseElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLBaseElement.h',
'../third_party/WebKit/WebCore/html/HTMLBaseFontElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLBaseFontElement.h',
'../third_party/WebKit/WebCore/html/HTMLBlockquoteElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLBlockquoteElement.h',
'../third_party/WebKit/WebCore/html/HTMLBodyElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLBodyElement.h',
'../third_party/WebKit/WebCore/html/HTMLButtonElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLButtonElement.h',
'../third_party/WebKit/WebCore/html/HTMLCanvasElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLCanvasElement.h',
'../third_party/WebKit/WebCore/html/HTMLCollection.cpp',
'../third_party/WebKit/WebCore/html/HTMLCollection.h',
'../third_party/WebKit/WebCore/html/HTMLDListElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDListElement.h',
'../third_party/WebKit/WebCore/html/HTMLDataGridCellElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDataGridCellElement.h',
'../third_party/WebKit/WebCore/html/HTMLDataGridColElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDataGridColElement.h',
'../third_party/WebKit/WebCore/html/HTMLDataGridElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDataGridElement.h',
'../third_party/WebKit/WebCore/html/HTMLDataGridRowElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDataGridRowElement.h',
'../third_party/WebKit/WebCore/html/HTMLDirectoryElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDirectoryElement.h',
'../third_party/WebKit/WebCore/html/HTMLDivElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLDivElement.h',
'../third_party/WebKit/WebCore/html/HTMLDocument.cpp',
'../third_party/WebKit/WebCore/html/HTMLDocument.h',
'../third_party/WebKit/WebCore/html/HTMLElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLElement.h',
'../third_party/WebKit/WebCore/html/HTMLEmbedElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLEmbedElement.h',
'../third_party/WebKit/WebCore/html/HTMLFieldSetElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFieldSetElement.h',
'../third_party/WebKit/WebCore/html/HTMLFontElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFontElement.h',
'../third_party/WebKit/WebCore/html/HTMLFormCollection.cpp',
'../third_party/WebKit/WebCore/html/HTMLFormCollection.h',
'../third_party/WebKit/WebCore/html/HTMLFormControlElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFormControlElement.h',
'../third_party/WebKit/WebCore/html/HTMLFormElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFormElement.h',
'../third_party/WebKit/WebCore/html/HTMLFrameElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFrameElement.h',
'../third_party/WebKit/WebCore/html/HTMLFrameElementBase.cpp',
'../third_party/WebKit/WebCore/html/HTMLFrameElementBase.h',
'../third_party/WebKit/WebCore/html/HTMLFrameOwnerElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFrameOwnerElement.h',
'../third_party/WebKit/WebCore/html/HTMLFrameSetElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLFrameSetElement.h',
'../third_party/WebKit/WebCore/html/HTMLHRElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLHRElement.h',
'../third_party/WebKit/WebCore/html/HTMLHeadElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLHeadElement.h',
'../third_party/WebKit/WebCore/html/HTMLHeadingElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLHeadingElement.h',
'../third_party/WebKit/WebCore/html/HTMLHtmlElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLHtmlElement.h',
'../third_party/WebKit/WebCore/html/HTMLIFrameElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLIFrameElement.h',
'../third_party/WebKit/WebCore/html/HTMLImageElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLImageElement.h',
'../third_party/WebKit/WebCore/html/HTMLImageLoader.cpp',
'../third_party/WebKit/WebCore/html/HTMLImageLoader.h',
'../third_party/WebKit/WebCore/html/HTMLInputElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLInputElement.h',
'../third_party/WebKit/WebCore/html/HTMLIsIndexElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLIsIndexElement.h',
'../third_party/WebKit/WebCore/html/HTMLKeygenElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLKeygenElement.h',
'../third_party/WebKit/WebCore/html/HTMLLIElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLLIElement.h',
'../third_party/WebKit/WebCore/html/HTMLLabelElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLLabelElement.h',
'../third_party/WebKit/WebCore/html/HTMLLegendElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLLegendElement.h',
'../third_party/WebKit/WebCore/html/HTMLLinkElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLLinkElement.h',
'../third_party/WebKit/WebCore/html/HTMLMapElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLMapElement.h',
'../third_party/WebKit/WebCore/html/HTMLMarqueeElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLMarqueeElement.h',
'../third_party/WebKit/WebCore/html/HTMLMediaElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLMediaElement.h',
'../third_party/WebKit/WebCore/html/HTMLMenuElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLMenuElement.h',
'../third_party/WebKit/WebCore/html/HTMLMetaElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLMetaElement.h',
'../third_party/WebKit/WebCore/html/HTMLModElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLModElement.h',
'../third_party/WebKit/WebCore/html/HTMLNameCollection.cpp',
'../third_party/WebKit/WebCore/html/HTMLNameCollection.h',
'../third_party/WebKit/WebCore/html/HTMLOListElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLOListElement.h',
'../third_party/WebKit/WebCore/html/HTMLObjectElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLObjectElement.h',
'../third_party/WebKit/WebCore/html/HTMLOptGroupElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLOptGroupElement.h',
'../third_party/WebKit/WebCore/html/HTMLOptionElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLOptionElement.h',
'../third_party/WebKit/WebCore/html/HTMLOptionsCollection.cpp',
'../third_party/WebKit/WebCore/html/HTMLOptionsCollection.h',
'../third_party/WebKit/WebCore/html/HTMLParagraphElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLParagraphElement.h',
'../third_party/WebKit/WebCore/html/HTMLParamElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLParamElement.h',
'../third_party/WebKit/WebCore/html/HTMLParser.cpp',
'../third_party/WebKit/WebCore/html/HTMLParser.h',
'../third_party/WebKit/WebCore/html/HTMLParserErrorCodes.cpp',
'../third_party/WebKit/WebCore/html/HTMLParserErrorCodes.h',
'../third_party/WebKit/WebCore/html/HTMLPlugInElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLPlugInElement.h',
'../third_party/WebKit/WebCore/html/HTMLPlugInImageElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLPlugInImageElement.h',
'../third_party/WebKit/WebCore/html/HTMLPreElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLPreElement.h',
'../third_party/WebKit/WebCore/html/HTMLQuoteElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLQuoteElement.h',
'../third_party/WebKit/WebCore/html/HTMLScriptElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLScriptElement.h',
'../third_party/WebKit/WebCore/html/HTMLSelectElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLSelectElement.h',
'../third_party/WebKit/WebCore/html/HTMLSourceElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLSourceElement.h',
'../third_party/WebKit/WebCore/html/HTMLStyleElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLStyleElement.h',
'../third_party/WebKit/WebCore/html/HTMLTableCaptionElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableCaptionElement.h',
'../third_party/WebKit/WebCore/html/HTMLTableCellElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableCellElement.h',
'../third_party/WebKit/WebCore/html/HTMLTableColElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableColElement.h',
'../third_party/WebKit/WebCore/html/HTMLTableElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableElement.h',
'../third_party/WebKit/WebCore/html/HTMLTablePartElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTablePartElement.h',
'../third_party/WebKit/WebCore/html/HTMLTableRowElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableRowElement.h',
'../third_party/WebKit/WebCore/html/HTMLTableRowsCollection.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableRowsCollection.h',
'../third_party/WebKit/WebCore/html/HTMLTableSectionElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTableSectionElement.h',
'../third_party/WebKit/WebCore/html/HTMLTextAreaElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTextAreaElement.h',
'../third_party/WebKit/WebCore/html/HTMLTitleElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLTitleElement.h',
'../third_party/WebKit/WebCore/html/HTMLTokenizer.cpp',
'../third_party/WebKit/WebCore/html/HTMLTokenizer.h',
'../third_party/WebKit/WebCore/html/HTMLUListElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLUListElement.h',
'../third_party/WebKit/WebCore/html/HTMLVideoElement.cpp',
'../third_party/WebKit/WebCore/html/HTMLVideoElement.h',
'../third_party/WebKit/WebCore/html/HTMLViewSourceDocument.cpp',
'../third_party/WebKit/WebCore/html/HTMLViewSourceDocument.h',
'../third_party/WebKit/WebCore/html/ImageData.cpp',
'../third_party/WebKit/WebCore/html/ImageData.h',
'../third_party/WebKit/WebCore/html/MediaError.h',
'../third_party/WebKit/WebCore/html/PreloadScanner.cpp',
'../third_party/WebKit/WebCore/html/PreloadScanner.h',
'../third_party/WebKit/WebCore/html/TextMetrics.h',
'../third_party/WebKit/WebCore/html/TimeRanges.cpp',
'../third_party/WebKit/WebCore/html/TimeRanges.h',
'../third_party/WebKit/WebCore/html/VoidCallback.h',
'../third_party/WebKit/WebCore/inspector/InspectorClient.h',
'../third_party/WebKit/WebCore/inspector/ConsoleMessage.cpp',
'../third_party/WebKit/WebCore/inspector/ConsoleMessage.h',
'../third_party/WebKit/WebCore/inspector/InspectorController.cpp',
'../third_party/WebKit/WebCore/inspector/InspectorController.h',
'../third_party/WebKit/WebCore/inspector/InspectorDatabaseResource.cpp',
'../third_party/WebKit/WebCore/inspector/InspectorDatabaseResource.h',
'../third_party/WebKit/WebCore/inspector/InspectorDOMStorageResource.cpp',
'../third_party/WebKit/WebCore/inspector/InspectorDOMStorageResource.h',
'../third_party/WebKit/WebCore/inspector/InspectorFrontend.cpp',
'../third_party/WebKit/WebCore/inspector/InspectorFrontend.h',
'../third_party/WebKit/WebCore/inspector/InspectorJSONObject.cpp',
'../third_party/WebKit/WebCore/inspector/InspectorJSONObject.h',
'../third_party/WebKit/WebCore/inspector/InspectorResource.cpp',
'../third_party/WebKit/WebCore/inspector/InspectorResource.h',
'../third_party/WebKit/WebCore/inspector/JavaScriptCallFrame.cpp',
'../third_party/WebKit/WebCore/inspector/JavaScriptCallFrame.h',
'../third_party/WebKit/WebCore/inspector/JavaScriptDebugListener.h',
'../third_party/WebKit/WebCore/inspector/JavaScriptDebugServer.cpp',
'../third_party/WebKit/WebCore/inspector/JavaScriptDebugServer.h',
'../third_party/WebKit/WebCore/inspector/JavaScriptProfile.cpp',
'../third_party/WebKit/WebCore/inspector/JavaScriptProfile.h',
'../third_party/WebKit/WebCore/inspector/JavaScriptProfileNode.cpp',
'../third_party/WebKit/WebCore/inspector/JavaScriptProfileNode.h',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCache.cpp',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCache.h',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCacheGroup.cpp',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCacheGroup.h',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCacheResource.cpp',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCacheResource.h',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCacheStorage.cpp',
'../third_party/WebKit/WebCore/loader/appcache/ApplicationCacheStorage.h',
'../third_party/WebKit/WebCore/loader/appcache/DOMApplicationCache.cpp',
'../third_party/WebKit/WebCore/loader/appcache/DOMApplicationCache.h',
'../third_party/WebKit/WebCore/loader/appcache/ManifestParser.cpp',
'../third_party/WebKit/WebCore/loader/appcache/ManifestParser.h',
'../third_party/WebKit/WebCore/loader/archive/cf/LegacyWebArchive.cpp',
'../third_party/WebKit/WebCore/loader/archive/cf/LegacyWebArchive.h',
'../third_party/WebKit/WebCore/loader/archive/cf/LegacyWebArchiveMac.mm',
'../third_party/WebKit/WebCore/loader/archive/Archive.h',
'../third_party/WebKit/WebCore/loader/archive/ArchiveFactory.cpp',
'../third_party/WebKit/WebCore/loader/archive/ArchiveFactory.h',
'../third_party/WebKit/WebCore/loader/archive/ArchiveResource.cpp',
'../third_party/WebKit/WebCore/loader/archive/ArchiveResource.h',
'../third_party/WebKit/WebCore/loader/archive/ArchiveResourceCollection.cpp',
'../third_party/WebKit/WebCore/loader/archive/ArchiveResourceCollection.h',
'../third_party/WebKit/WebCore/loader/icon/IconDatabase.cpp',
'../third_party/WebKit/WebCore/loader/icon/IconDatabase.h',
'../third_party/WebKit/WebCore/loader/icon/IconDatabaseClient.h',
'../third_party/WebKit/WebCore/loader/icon/IconDatabaseNone.cpp',
'../third_party/WebKit/WebCore/loader/icon/IconFetcher.cpp',
'../third_party/WebKit/WebCore/loader/icon/IconFetcher.h',
'../third_party/WebKit/WebCore/loader/icon/IconLoader.cpp',
'../third_party/WebKit/WebCore/loader/icon/IconLoader.h',
'../third_party/WebKit/WebCore/loader/icon/IconRecord.cpp',
'../third_party/WebKit/WebCore/loader/icon/IconRecord.h',
'../third_party/WebKit/WebCore/loader/icon/PageURLRecord.cpp',
'../third_party/WebKit/WebCore/loader/icon/PageURLRecord.h',
'../third_party/WebKit/WebCore/loader/mac/DocumentLoaderMac.cpp',
'../third_party/WebKit/WebCore/loader/mac/LoaderNSURLExtras.h',
'../third_party/WebKit/WebCore/loader/mac/LoaderNSURLExtras.mm',
'../third_party/WebKit/WebCore/loader/mac/ResourceLoaderMac.mm',
'../third_party/WebKit/WebCore/loader/win/DocumentLoaderWin.cpp',
'../third_party/WebKit/WebCore/loader/win/FrameLoaderWin.cpp',
'../third_party/WebKit/WebCore/loader/Cache.cpp',
'../third_party/WebKit/WebCore/loader/Cache.h',
'../third_party/WebKit/WebCore/loader/CachePolicy.h',
'../third_party/WebKit/WebCore/loader/CachedCSSStyleSheet.cpp',
'../third_party/WebKit/WebCore/loader/CachedCSSStyleSheet.h',
'../third_party/WebKit/WebCore/loader/CachedFont.cpp',
'../third_party/WebKit/WebCore/loader/CachedFont.h',
'../third_party/WebKit/WebCore/loader/CachedImage.cpp',
'../third_party/WebKit/WebCore/loader/CachedImage.h',
'../third_party/WebKit/WebCore/loader/CachedResource.cpp',
'../third_party/WebKit/WebCore/loader/CachedResource.h',
'../third_party/WebKit/WebCore/loader/CachedResourceClient.h',
'../third_party/WebKit/WebCore/loader/CachedResourceClientWalker.cpp',
'../third_party/WebKit/WebCore/loader/CachedResourceClientWalker.h',
'../third_party/WebKit/WebCore/loader/CachedResourceHandle.cpp',
'../third_party/WebKit/WebCore/loader/CachedResourceHandle.h',
'../third_party/WebKit/WebCore/loader/CachedScript.cpp',
'../third_party/WebKit/WebCore/loader/CachedScript.h',
'../third_party/WebKit/WebCore/loader/CachedXBLDocument.cpp',
'../third_party/WebKit/WebCore/loader/CachedXBLDocument.h',
'../third_party/WebKit/WebCore/loader/CachedXSLStyleSheet.cpp',
'../third_party/WebKit/WebCore/loader/CachedXSLStyleSheet.h',
'../third_party/WebKit/WebCore/loader/CrossOriginAccessControl.cpp',
'../third_party/WebKit/WebCore/loader/CrossOriginAccessControl.h',
'../third_party/WebKit/WebCore/loader/CrossOriginPreflightResultCache.cpp',
'../third_party/WebKit/WebCore/loader/CrossOriginPreflightResultCache.h',
'../third_party/WebKit/WebCore/loader/DocLoader.cpp',
'../third_party/WebKit/WebCore/loader/DocLoader.h',
'../third_party/WebKit/WebCore/loader/DocumentLoader.cpp',
'../third_party/WebKit/WebCore/loader/DocumentLoader.h',
'../third_party/WebKit/WebCore/loader/DocumentThreadableLoader.cpp',
'../third_party/WebKit/WebCore/loader/DocumentThreadableLoader.h',
'../third_party/WebKit/WebCore/loader/EmptyClients.h',
'../third_party/WebKit/WebCore/loader/FTPDirectoryDocument.cpp',
'../third_party/WebKit/WebCore/loader/FTPDirectoryDocument.h',
'../third_party/WebKit/WebCore/loader/FTPDirectoryParser.cpp',
'../third_party/WebKit/WebCore/loader/FTPDirectoryParser.h',
'../third_party/WebKit/WebCore/loader/FormState.cpp',
'../third_party/WebKit/WebCore/loader/FormState.h',
'../third_party/WebKit/WebCore/loader/FrameLoader.cpp',
'../third_party/WebKit/WebCore/loader/FrameLoader.h',
'../third_party/WebKit/WebCore/loader/FrameLoaderClient.h',
'../third_party/WebKit/WebCore/loader/FrameLoaderTypes.h',
'../third_party/WebKit/WebCore/loader/ImageDocument.cpp',
'../third_party/WebKit/WebCore/loader/ImageDocument.h',
'../third_party/WebKit/WebCore/loader/ImageLoader.cpp',
'../third_party/WebKit/WebCore/loader/ImageLoader.h',
'../third_party/WebKit/WebCore/loader/MainResourceLoader.cpp',
'../third_party/WebKit/WebCore/loader/MainResourceLoader.h',
'../third_party/WebKit/WebCore/loader/MediaDocument.cpp',
'../third_party/WebKit/WebCore/loader/MediaDocument.h',
'../third_party/WebKit/WebCore/loader/NavigationAction.cpp',
'../third_party/WebKit/WebCore/loader/NavigationAction.h',
'../third_party/WebKit/WebCore/loader/NetscapePlugInStreamLoader.cpp',
'../third_party/WebKit/WebCore/loader/NetscapePlugInStreamLoader.h',
'../third_party/WebKit/WebCore/loader/PluginDocument.cpp',
'../third_party/WebKit/WebCore/loader/PluginDocument.h',
'../third_party/WebKit/WebCore/loader/ProgressTracker.cpp',
'../third_party/WebKit/WebCore/loader/ProgressTracker.h',
'../third_party/WebKit/WebCore/loader/Request.cpp',
'../third_party/WebKit/WebCore/loader/Request.h',
'../third_party/WebKit/WebCore/loader/ResourceLoader.cpp',
'../third_party/WebKit/WebCore/loader/ResourceLoader.h',
'../third_party/WebKit/WebCore/loader/SubresourceLoader.cpp',
'../third_party/WebKit/WebCore/loader/SubresourceLoader.h',
'../third_party/WebKit/WebCore/loader/SubresourceLoaderClient.h',
'../third_party/WebKit/WebCore/loader/SubstituteData.h',
'../third_party/WebKit/WebCore/loader/SubstituteResource.h',
'../third_party/WebKit/WebCore/loader/TextDocument.cpp',
'../third_party/WebKit/WebCore/loader/TextDocument.h',
'../third_party/WebKit/WebCore/loader/TextResourceDecoder.cpp',
'../third_party/WebKit/WebCore/loader/TextResourceDecoder.h',
'../third_party/WebKit/WebCore/loader/ThreadableLoader.cpp',
'../third_party/WebKit/WebCore/loader/ThreadableLoader.h',
'../third_party/WebKit/WebCore/loader/ThreadableLoaderClient.h',
'../third_party/WebKit/WebCore/loader/ThreadableLoaderClientWrapper.h',
'../third_party/WebKit/WebCore/loader/UserStyleSheetLoader.cpp',
'../third_party/WebKit/WebCore/loader/UserStyleSheetLoader.h',
'../third_party/WebKit/WebCore/loader/WorkerThreadableLoader.cpp',
'../third_party/WebKit/WebCore/loader/WorkerThreadableLoader.h',
'../third_party/WebKit/WebCore/loader/loader.cpp',
'../third_party/WebKit/WebCore/loader/loader.h',
'../third_party/WebKit/WebCore/page/animation/AnimationBase.cpp',
'../third_party/WebKit/WebCore/page/animation/AnimationBase.h',
'../third_party/WebKit/WebCore/page/animation/AnimationController.cpp',
'../third_party/WebKit/WebCore/page/animation/AnimationController.h',
'../third_party/WebKit/WebCore/page/animation/AnimationControllerPrivate.h',
'../third_party/WebKit/WebCore/page/animation/CompositeAnimation.cpp',
'../third_party/WebKit/WebCore/page/animation/CompositeAnimation.h',
'../third_party/WebKit/WebCore/page/animation/ImplicitAnimation.cpp',
'../third_party/WebKit/WebCore/page/animation/ImplicitAnimation.h',
'../third_party/WebKit/WebCore/page/animation/KeyframeAnimation.cpp',
'../third_party/WebKit/WebCore/page/animation/KeyframeAnimation.h',
'../third_party/WebKit/WebCore/page/chromium/ChromeClientChromium.h',
'../third_party/WebKit/WebCore/page/chromium/DragControllerChromium.cpp',
'../third_party/WebKit/WebCore/page/chromium/EventHandlerChromium.cpp',
'../third_party/WebKit/WebCore/page/chromium/FrameChromium.cpp',
'../third_party/WebKit/WebCore/page/chromium/FrameChromium.h',
'../third_party/WebKit/WebCore/page/gtk/DragControllerGtk.cpp',
'../third_party/WebKit/WebCore/page/gtk/EventHandlerGtk.cpp',
'../third_party/WebKit/WebCore/page/gtk/FrameGtk.cpp',
'../third_party/WebKit/WebCore/page/mac/ChromeMac.mm',
'../third_party/WebKit/WebCore/page/mac/DragControllerMac.mm',
'../third_party/WebKit/WebCore/page/mac/EventHandlerMac.mm',
'../third_party/WebKit/WebCore/page/mac/FrameMac.mm',
'../third_party/WebKit/WebCore/page/mac/PageMac.cpp',
'../third_party/WebKit/WebCore/page/mac/WebCoreFrameView.h',
'../third_party/WebKit/WebCore/page/mac/WebCoreKeyboardUIMode.h',
'../third_party/WebKit/WebCore/page/mac/WebCoreViewFactory.h',
'../third_party/WebKit/WebCore/page/mac/WebCoreViewFactory.m',
'../third_party/WebKit/WebCore/page/mac/WebDashboardRegion.h',
'../third_party/WebKit/WebCore/page/mac/WebDashboardRegion.m',
'../third_party/WebKit/WebCore/page/qt/DragControllerQt.cpp',
'../third_party/WebKit/WebCore/page/qt/EventHandlerQt.cpp',
'../third_party/WebKit/WebCore/page/qt/FrameQt.cpp',
'../third_party/WebKit/WebCore/page/win/DragControllerWin.cpp',
'../third_party/WebKit/WebCore/page/win/EventHandlerWin.cpp',
'../third_party/WebKit/WebCore/page/win/FrameCGWin.cpp',
'../third_party/WebKit/WebCore/page/win/FrameCairoWin.cpp',
'../third_party/WebKit/WebCore/page/win/FrameWin.cpp',
'../third_party/WebKit/WebCore/page/win/FrameWin.h',
'../third_party/WebKit/WebCore/page/win/PageWin.cpp',
'../third_party/WebKit/WebCore/page/wx/DragControllerWx.cpp',
'../third_party/WebKit/WebCore/page/wx/EventHandlerWx.cpp',
'../third_party/WebKit/WebCore/page/BarInfo.cpp',
'../third_party/WebKit/WebCore/page/BarInfo.h',
'../third_party/WebKit/WebCore/page/Chrome.cpp',
'../third_party/WebKit/WebCore/page/Chrome.h',
'../third_party/WebKit/WebCore/page/ChromeClient.h',
'../third_party/WebKit/WebCore/page/Console.cpp',
'../third_party/WebKit/WebCore/page/Console.h',
'../third_party/WebKit/WebCore/page/ContextMenuClient.h',
'../third_party/WebKit/WebCore/page/ContextMenuController.cpp',
'../third_party/WebKit/WebCore/page/ContextMenuController.h',
'../third_party/WebKit/WebCore/page/Coordinates.cpp',
'../third_party/WebKit/WebCore/page/DOMSelection.cpp',
'../third_party/WebKit/WebCore/page/DOMSelection.h',
'../third_party/WebKit/WebCore/page/DOMTimer.cpp',
'../third_party/WebKit/WebCore/page/DOMTimer.h',
'../third_party/WebKit/WebCore/page/DOMWindow.cpp',
'../third_party/WebKit/WebCore/page/DOMWindow.h',
'../third_party/WebKit/WebCore/page/DragActions.h',
'../third_party/WebKit/WebCore/page/DragClient.h',
'../third_party/WebKit/WebCore/page/DragController.cpp',
'../third_party/WebKit/WebCore/page/DragController.h',
'../third_party/WebKit/WebCore/page/EditorClient.h',
'../third_party/WebKit/WebCore/page/EventHandler.cpp',
'../third_party/WebKit/WebCore/page/EventHandler.h',
'../third_party/WebKit/WebCore/page/FocusController.cpp',
'../third_party/WebKit/WebCore/page/FocusController.h',
'../third_party/WebKit/WebCore/page/FocusDirection.h',
'../third_party/WebKit/WebCore/page/Frame.cpp',
'../third_party/WebKit/WebCore/page/Frame.h',
'../third_party/WebKit/WebCore/page/FrameLoadRequest.h',
'../third_party/WebKit/WebCore/page/FrameTree.cpp',
'../third_party/WebKit/WebCore/page/FrameTree.h',
'../third_party/WebKit/WebCore/page/FrameView.cpp',
'../third_party/WebKit/WebCore/page/FrameView.h',
'../third_party/WebKit/WebCore/page/Geolocation.cpp',
'../third_party/WebKit/WebCore/page/Geolocation.h',
'../third_party/WebKit/WebCore/page/Geoposition.cpp',
'../third_party/WebKit/WebCore/page/Geoposition.h',
'../third_party/WebKit/WebCore/page/History.cpp',
'../third_party/WebKit/WebCore/page/History.h',
'../third_party/WebKit/WebCore/page/Location.cpp',
'../third_party/WebKit/WebCore/page/Location.h',
'../third_party/WebKit/WebCore/page/MouseEventWithHitTestResults.cpp',
'../third_party/WebKit/WebCore/page/MouseEventWithHitTestResults.h',
'../third_party/WebKit/WebCore/page/Navigator.cpp',
'../third_party/WebKit/WebCore/page/Navigator.h',
'../third_party/WebKit/WebCore/page/NavigatorBase.cpp',
'../third_party/WebKit/WebCore/page/NavigatorBase.h',
'../third_party/WebKit/WebCore/page/Page.cpp',
'../third_party/WebKit/WebCore/page/Page.h',
'../third_party/WebKit/WebCore/page/PageGroup.cpp',
'../third_party/WebKit/WebCore/page/PageGroup.h',
'../third_party/WebKit/WebCore/page/PageGroupLoadDeferrer.cpp',
'../third_party/WebKit/WebCore/page/PageGroupLoadDeferrer.h',
'../third_party/WebKit/WebCore/page/PositionCallback.h',
'../third_party/WebKit/WebCore/page/PositionError.h',
'../third_party/WebKit/WebCore/page/PositionErrorCallback.h',
'../third_party/WebKit/WebCore/page/PositionOptions.h',
'../third_party/WebKit/WebCore/page/PrintContext.cpp',
'../third_party/WebKit/WebCore/page/PrintContext.h',
'../third_party/WebKit/WebCore/page/Screen.cpp',
'../third_party/WebKit/WebCore/page/Screen.h',
'../third_party/WebKit/WebCore/page/SecurityOrigin.cpp',
'../third_party/WebKit/WebCore/page/SecurityOrigin.h',
'../third_party/WebKit/WebCore/page/SecurityOriginHash.h',
'../third_party/WebKit/WebCore/page/Settings.cpp',
'../third_party/WebKit/WebCore/page/Settings.h',
'../third_party/WebKit/WebCore/page/WebKitPoint.h',
'../third_party/WebKit/WebCore/page/WindowFeatures.cpp',
'../third_party/WebKit/WebCore/page/WindowFeatures.h',
'../third_party/WebKit/WebCore/page/WorkerNavigator.cpp',
'../third_party/WebKit/WebCore/page/WorkerNavigator.h',
'../third_party/WebKit/WebCore/page/XSSAuditor.cpp',
'../third_party/WebKit/WebCore/page/XSSAuditor.h',
'../third_party/WebKit/WebCore/platform/animation/Animation.cpp',
'../third_party/WebKit/WebCore/platform/animation/Animation.h',
'../third_party/WebKit/WebCore/platform/animation/AnimationList.cpp',
'../third_party/WebKit/WebCore/platform/animation/AnimationList.h',
'../third_party/WebKit/WebCore/platform/animation/TimingFunction.h',
'../third_party/WebKit/WebCore/platform/cf/FileSystemCF.cpp',
'../third_party/WebKit/WebCore/platform/cf/KURLCFNet.cpp',
'../third_party/WebKit/WebCore/platform/cf/SchedulePair.cpp',
'../third_party/WebKit/WebCore/platform/cf/SchedulePair.h',
'../third_party/WebKit/WebCore/platform/cf/SharedBufferCF.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ChromiumBridge.h',
'../third_party/WebKit/WebCore/platform/chromium/ChromiumDataObject.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ChromiumDataObject.h',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardChromium.h',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardChromiumLinux.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardChromiumMac.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardUtilitiesChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ClipboardUtilitiesChromium.h',
'../third_party/WebKit/WebCore/platform/chromium/ContextMenuChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ContextMenuItemChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/CursorChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/DragDataChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/DragDataRef.h',
'../third_party/WebKit/WebCore/platform/chromium/DragImageChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/DragImageRef.h',
'../third_party/WebKit/WebCore/platform/chromium/FileChooserChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/FileSystemChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/FileSystemChromiumLinux.cpp',
'../third_party/WebKit/WebCore/platform/chromium/FileSystemChromiumMac.mm',
'../third_party/WebKit/WebCore/platform/chromium/FileSystemChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/chromium/FramelessScrollView.cpp',
'../third_party/WebKit/WebCore/platform/chromium/FramelessScrollView.h',
'../third_party/WebKit/WebCore/platform/chromium/FramelessScrollViewClient.h',
'../third_party/WebKit/WebCore/platform/chromium/KeyCodeConversion.h',
'../third_party/WebKit/WebCore/platform/chromium/KeyCodeConversionGtk.cpp',
'../third_party/WebKit/WebCore/platform/chromium/KeyboardCodesPosix.h',
'../third_party/WebKit/WebCore/platform/chromium/KeyboardCodesWin.h',
'../third_party/WebKit/WebCore/platform/chromium/Language.cpp',
'../third_party/WebKit/WebCore/platform/chromium/LinkHashChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/MimeTypeRegistryChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/PasteboardChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/PasteboardPrivate.h',
'../third_party/WebKit/WebCore/platform/chromium/PlatformCursor.h',
'../third_party/WebKit/WebCore/platform/chromium/PlatformKeyboardEventChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/PlatformScreenChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/PlatformWidget.h',
'../third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/PopupMenuChromium.h',
'../third_party/WebKit/WebCore/platform/chromium/PopupMenuPrivate.h',
'../third_party/WebKit/WebCore/platform/chromium/SSLKeyGeneratorChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromium.h',
'../third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp',
'../third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/chromium/SearchPopupMenuChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/SharedTimerChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/SoundChromiumPosix.cpp',
'../third_party/WebKit/WebCore/platform/chromium/SoundChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/chromium/SuddenTerminationChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/SystemTimeChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/TemporaryLinkStubs.cpp',
'../third_party/WebKit/WebCore/platform/chromium/WidgetChromium.cpp',
'../third_party/WebKit/WebCore/platform/chromium/WindowsVersion.cpp',
'../third_party/WebKit/WebCore/platform/chromium/WindowsVersion.h',
'../third_party/WebKit/WebCore/platform/graphics/cairo/CairoPath.h',
'../third_party/WebKit/WebCore/platform/graphics/cairo/FontCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/GradientCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h',
'../third_party/WebKit/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/ImageBufferData.h',
'../third_party/WebKit/WebCore/platform/graphics/cairo/ImageCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/PathCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/PatternCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cairo/TransformationMatrixCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/ColorCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/FloatPointCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/FloatRectCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/FloatSizeCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/GradientCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/GraphicsContextCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/GraphicsContextPlatformPrivateCG.h',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageBufferCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageBufferData.h',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageSourceCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageSourceCG.h',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageSourceCGMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/cg/ImageSourceCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/IntPointCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/IntRectCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/IntSizeCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/PDFDocumentImage.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/PDFDocumentImage.h',
'../third_party/WebKit/WebCore/platform/graphics/cg/PathCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/PatternCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/cg/TransformationMatrixCG.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontCacheLinux.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontCustomPlatformData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontCustomPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontLinux.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontPlatformDataChromiumWin.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontPlatformDataLinux.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontPlatformDataLinux.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontUtilsChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontUtilsChromiumWin.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/IconChromiumLinux.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/IconChromiumMac.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/IconChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/ImageBufferData.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/ImageChromiumMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/chromium/MediaPlayerPrivateChromium.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/PlatformIcon.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/SimpleFontDataLinux.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/TransparencyWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/TransparencyWin.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelper.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelper.h',
'../third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelperTextRun.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelperTextRun.h',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEBlend.cpp',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEBlend.h',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEColorMatrix.cpp',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEColorMatrix.h',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEComponentTransfer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEComponentTransfer.h',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEComposite.cpp',
'../third_party/WebKit/WebCore/platform/graphics/filters/FEComposite.h',
'../third_party/WebKit/WebCore/platform/graphics/filters/SourceAlpha.cpp',
'../third_party/WebKit/WebCore/platform/graphics/filters/SourceAlpha.h',
'../third_party/WebKit/WebCore/platform/graphics/filters/SourceGraphic.cpp',
'../third_party/WebKit/WebCore/platform/graphics/filters/SourceGraphic.h',
'../third_party/WebKit/WebCore/platform/graphics/gtk/ColorGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontCacheGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontCustomPlatformData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontCustomPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontCustomPlatformDataPango.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/FontPlatformDataPango.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/GlyphPageTreeNodePango.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/IconGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/ImageGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/IntPointGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/IntRectGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.h',
'../third_party/WebKit/WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/SimpleFontDataPango.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/VideoSinkGStreamer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/gtk/VideoSinkGStreamer.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/ColorMac.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/ColorMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/CoreTextController.cpp',
'../third_party/WebKit/WebCore/platform/graphics/mac/CoreTextController.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/FloatPointMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/FloatRectMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/FloatSizeMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontCacheMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontCustomPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontMacATSUI.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontMacCoreText.cpp',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/FontPlatformDataMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/GlyphPageTreeNodeMac.cpp',
'../third_party/WebKit/WebCore/platform/graphics/mac/GraphicsContextMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/GraphicsLayerCA.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/GraphicsLayerCA.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/IconMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/ImageMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/IntPointMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/IntRectMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/IntSizeMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/MediaPlayerProxy.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/SimpleFontDataMac.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/WebLayer.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/WebLayer.mm',
'../third_party/WebKit/WebCore/platform/graphics/mac/WebTiledLayer.h',
'../third_party/WebKit/WebCore/platform/graphics/mac/WebTiledLayer.mm',
'../third_party/WebKit/WebCore/platform/graphics/MediaPlayer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/opentype/OpenTypeUtilities.cpp',
'../third_party/WebKit/WebCore/platform/graphics/opentype/OpenTypeUtilities.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/ColorQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FloatPointQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FloatRectQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontCacheQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontCustomPlatformData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontCustomPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontFallbackListQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/FontQt43.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/GlyphPageTreeNodeQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/GradientQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/GraphicsContextQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/IconQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/ImageBufferData.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/ImageBufferQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/ImageDecoderQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/ImageDecoderQt.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/ImageQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/ImageSourceQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/IntPointQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/IntRectQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/IntSizeQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/MediaPlayerPrivatePhonon.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/MediaPlayerPrivatePhonon.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/PathQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/PatternQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/SimpleFontDataQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/StillImageQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/qt/StillImageQt.h',
'../third_party/WebKit/WebCore/platform/graphics/qt/TransformationMatrixQt.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/BitmapImageSingleFrameSkia.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/FloatPointSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/FloatRectSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/GradientSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextPlatformPrivate.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageBufferSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageSourceSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageSourceSkia.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/IntPointSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/IntRectSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/NativeImageSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/NativeImageSkia.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/PatternSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/PlatformGraphics.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/SkiaFontWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/SkiaFontWin.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/SkiaUtils.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/SkiaUtils.h',
'../third_party/WebKit/WebCore/platform/graphics/skia/TransformationMatrixSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/IdentityTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/Matrix3DTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/Matrix3DTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/MatrixTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/MatrixTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/PerspectiveTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/PerspectiveTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/RotateTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/RotateTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/ScaleTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/ScaleTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/SkewTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/SkewTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TransformOperations.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TransformOperations.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TransformationMatrix.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TransformationMatrix.h',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TranslateTransformOperation.cpp',
'../third_party/WebKit/WebCore/platform/graphics/transforms/TranslateTransformOperation.h',
'../third_party/WebKit/WebCore/platform/graphics/win/ColorSafari.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontCacheWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontCustomPlatformData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontCustomPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.h',
'../third_party/WebKit/WebCore/platform/graphics/win/FontDatabase.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontDatabase.h',
'../third_party/WebKit/WebCore/platform/graphics/win/FontPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontPlatformDataWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/FontWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/GlyphPageTreeNodeCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/GraphicsContextCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/GraphicsContextWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/IconWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/ImageCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/ImageCairoWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/ImageWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/IntPointWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/IntRectWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/IntSizeWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h',
'../third_party/WebKit/WebCore/platform/graphics/win/QTMovieWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/QTMovieWin.h',
'../third_party/WebKit/WebCore/platform/graphics/win/QTMovieWinTimer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/QTMovieWinTimer.h',
'../third_party/WebKit/WebCore/platform/graphics/win/SimpleFontDataCGWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/SimpleFontDataCairoWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/SimpleFontDataWin.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/UniscribeController.cpp',
'../third_party/WebKit/WebCore/platform/graphics/win/UniscribeController.h',
'../third_party/WebKit/WebCore/platform/graphics/wx/ColorWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/FloatRectWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/FontCacheWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/FontPlatformData.h',
'../third_party/WebKit/WebCore/platform/graphics/wx/FontPlatformDataWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/FontWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/GlyphMapWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/GradientWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/GraphicsContextWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/ImageBufferData.h',
'../third_party/WebKit/WebCore/platform/graphics/wx/ImageBufferWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/ImageSourceWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/ImageWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/IntPointWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/IntRectWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/PathWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/PenWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/SimpleFontDataWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/wx/TransformationMatrixWx.cpp',
'../third_party/WebKit/WebCore/platform/graphics/BitmapImage.cpp',
'../third_party/WebKit/WebCore/platform/graphics/BitmapImage.h',
'../third_party/WebKit/WebCore/platform/graphics/Color.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Color.h',
'../third_party/WebKit/WebCore/platform/graphics/DashArray.h',
'../third_party/WebKit/WebCore/platform/graphics/FloatPoint.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FloatPoint.h',
'../third_party/WebKit/WebCore/platform/graphics/FloatPoint3D.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FloatPoint3D.h',
'../third_party/WebKit/WebCore/platform/graphics/FloatQuad.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FloatQuad.h',
'../third_party/WebKit/WebCore/platform/graphics/FloatRect.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FloatRect.h',
'../third_party/WebKit/WebCore/platform/graphics/FloatSize.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FloatSize.h',
'../third_party/WebKit/WebCore/platform/graphics/Font.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Font.h',
'../third_party/WebKit/WebCore/platform/graphics/FontCache.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FontCache.h',
'../third_party/WebKit/WebCore/platform/graphics/FontData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FontData.h',
'../third_party/WebKit/WebCore/platform/graphics/FontDescription.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FontDescription.h',
'../third_party/WebKit/WebCore/platform/graphics/FontFallbackList.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FontFallbackList.h',
'../third_party/WebKit/WebCore/platform/graphics/FontFamily.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FontFamily.h',
'../third_party/WebKit/WebCore/platform/graphics/FontFastPath.cpp',
'../third_party/WebKit/WebCore/platform/graphics/FontRenderingMode.h',
'../third_party/WebKit/WebCore/platform/graphics/FontSelector.h',
'../third_party/WebKit/WebCore/platform/graphics/FontTraitsMask.h',
'../third_party/WebKit/WebCore/platform/graphics/GeneratedImage.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GeneratedImage.h',
'../third_party/WebKit/WebCore/platform/graphics/Generator.h',
'../third_party/WebKit/WebCore/platform/graphics/GlyphBuffer.h',
'../third_party/WebKit/WebCore/platform/graphics/GlyphPageTreeNode.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GlyphPageTreeNode.h',
'../third_party/WebKit/WebCore/platform/graphics/GlyphWidthMap.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GlyphWidthMap.h',
'../third_party/WebKit/WebCore/platform/graphics/Gradient.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Gradient.h',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsContext.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsContext.h',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsContextPrivate.h',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsLayer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsLayer.h',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsLayerClient.h',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsTypes.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsTypes.h',
'../third_party/WebKit/WebCore/platform/graphics/Icon.h',
'../third_party/WebKit/WebCore/platform/graphics/Image.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Image.h',
'../third_party/WebKit/WebCore/platform/graphics/ImageBuffer.h',
'../third_party/WebKit/WebCore/platform/graphics/ImageObserver.h',
'../third_party/WebKit/WebCore/platform/graphics/ImageSource.h',
'../third_party/WebKit/WebCore/platform/graphics/IntPoint.h',
'../third_party/WebKit/WebCore/platform/graphics/IntRect.cpp',
'../third_party/WebKit/WebCore/platform/graphics/IntRect.h',
'../third_party/WebKit/WebCore/platform/graphics/IntSize.h',
'../third_party/WebKit/WebCore/platform/graphics/IntSizeHash.h',
'../third_party/WebKit/WebCore/platform/graphics/MediaPlayer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/MediaPlayer.h',
'../third_party/WebKit/WebCore/platform/graphics/MediaPlayerPrivate.h',
'../third_party/WebKit/WebCore/platform/graphics/Path.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Path.h',
'../third_party/WebKit/WebCore/platform/graphics/PathTraversalState.cpp',
'../third_party/WebKit/WebCore/platform/graphics/PathTraversalState.h',
'../third_party/WebKit/WebCore/platform/graphics/Pattern.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Pattern.h',
'../third_party/WebKit/WebCore/platform/graphics/Pen.cpp',
'../third_party/WebKit/WebCore/platform/graphics/Pen.h',
'../third_party/WebKit/WebCore/platform/graphics/SegmentedFontData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/SegmentedFontData.h',
'../third_party/WebKit/WebCore/platform/graphics/SimpleFontData.cpp',
'../third_party/WebKit/WebCore/platform/graphics/SimpleFontData.h',
'../third_party/WebKit/WebCore/platform/graphics/StringTruncator.cpp',
'../third_party/WebKit/WebCore/platform/graphics/StringTruncator.h',
'../third_party/WebKit/WebCore/platform/graphics/StrokeStyleApplier.h',
'../third_party/WebKit/WebCore/platform/graphics/TextRun.h',
'../third_party/WebKit/WebCore/platform/graphics/UnitBezier.h',
'../third_party/WebKit/WebCore/platform/graphics/WidthIterator.cpp',
'../third_party/WebKit/WebCore/platform/graphics/WidthIterator.h',
'../third_party/WebKit/WebCore/platform/gtk/ClipboardGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/ClipboardGtk.h',
'../third_party/WebKit/WebCore/platform/gtk/ContextMenuGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/ContextMenuItemGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/CursorGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/CursorGtk.h',
'../third_party/WebKit/WebCore/platform/gtk/DragDataGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/DragImageGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/EventLoopGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/FileChooserGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/FileSystemGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/GeolocationServiceGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/GeolocationServiceGtk.h',
'../third_party/WebKit/WebCore/platform/gtk/KURLGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/KeyEventGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/KeyboardCodes.h',
'../third_party/WebKit/WebCore/platform/gtk/Language.cpp',
'../third_party/WebKit/WebCore/platform/gtk/LocalizedStringsGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/LoggingGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/MIMETypeRegistryGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/MouseEventGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/PasteboardGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/PasteboardHelper.h',
'../third_party/WebKit/WebCore/platform/gtk/PlatformScreenGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/PopupMenuGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/RenderThemeGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/RenderThemeGtk.h',
'../third_party/WebKit/WebCore/platform/gtk/ScrollViewGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/ScrollbarGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/ScrollbarGtk.h',
'../third_party/WebKit/WebCore/platform/gtk/ScrollbarThemeGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/ScrollbarThemeGtk.h',
'../third_party/WebKit/WebCore/platform/gtk/SearchPopupMenuGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/SharedBufferGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/SharedTimerGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/SoundGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/TemporaryLinkStubs.cpp',
'../third_party/WebKit/WebCore/platform/gtk/WheelEventGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/WidgetGtk.cpp',
'../third_party/WebKit/WebCore/platform/gtk/gtkdrawing.h',
'../third_party/WebKit/WebCore/platform/gtk/guriescape.h',
'../third_party/WebKit/WebCore/platform/image-decoders/ImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageReader.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageReader.h',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageReader.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageReader.h',
'../third_party/WebKit/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/ico/ICOImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/png/PNGImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/xbm/XBMImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/xbm/XBMImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/crc32.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/deflate.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/inffast.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/inffixed.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/inflate.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/inftrees.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/mozzconf.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/trees.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/zconf.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/zlib.h',
'../third_party/WebKit/WebCore/platform/image-decoders/zlib/zutil.h',
'../third_party/WebKit/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp',
'../third_party/WebKit/WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp',
'../third_party/WebKit/WebCore/platform/image-encoders/skia/PNGImageEncoder.h',
'../third_party/WebKit/WebCore/platform/mac/AutodrainedPool.mm',
'../third_party/WebKit/WebCore/platform/mac/BlockExceptions.h',
'../third_party/WebKit/WebCore/platform/mac/BlockExceptions.mm',
'../third_party/WebKit/WebCore/platform/mac/ClipboardMac.h',
'../third_party/WebKit/WebCore/platform/mac/ClipboardMac.mm',
'../third_party/WebKit/WebCore/platform/mac/ContextMenuItemMac.mm',
'../third_party/WebKit/WebCore/platform/mac/ContextMenuMac.mm',
'../third_party/WebKit/WebCore/platform/mac/CookieJar.mm',
'../third_party/WebKit/WebCore/platform/mac/CursorMac.mm',
'../third_party/WebKit/WebCore/platform/mac/DragDataMac.mm',
'../third_party/WebKit/WebCore/platform/mac/DragImageMac.mm',
'../third_party/WebKit/WebCore/platform/mac/EventLoopMac.mm',
'../third_party/WebKit/WebCore/platform/mac/FileChooserMac.mm',
'../third_party/WebKit/WebCore/platform/mac/FileSystemMac.mm',
'../third_party/WebKit/WebCore/platform/mac/FoundationExtras.h',
'../third_party/WebKit/WebCore/platform/mac/KURLMac.mm',
'../third_party/WebKit/WebCore/platform/mac/KeyEventMac.mm',
'../third_party/WebKit/WebCore/platform/mac/Language.mm',
'../third_party/WebKit/WebCore/platform/mac/LocalCurrentGraphicsContext.h',
'../third_party/WebKit/WebCore/platform/mac/LocalCurrentGraphicsContext.mm',
'../third_party/WebKit/WebCore/platform/mac/LocalizedStringsMac.mm',
'../third_party/WebKit/WebCore/platform/mac/LoggingMac.mm',
'../third_party/WebKit/WebCore/platform/mac/MIMETypeRegistryMac.mm',
'../third_party/WebKit/WebCore/platform/mac/PasteboardHelper.h',
'../third_party/WebKit/WebCore/platform/mac/PasteboardMac.mm',
'../third_party/WebKit/WebCore/platform/mac/PlatformMouseEventMac.mm',
'../third_party/WebKit/WebCore/platform/mac/PlatformScreenMac.mm',
'../third_party/WebKit/WebCore/platform/mac/PopupMenuMac.mm',
'../third_party/WebKit/WebCore/platform/mac/PurgeableBufferMac.cpp',
'../third_party/WebKit/WebCore/platform/mac/SSLKeyGeneratorMac.mm',
'../third_party/WebKit/WebCore/platform/mac/SchedulePairMac.mm',
'../third_party/WebKit/WebCore/platform/mac/ScrollViewMac.mm',
'../third_party/WebKit/WebCore/platform/mac/ScrollbarThemeMac.h',
'../third_party/WebKit/WebCore/platform/mac/ScrollbarThemeMac.mm',
'../third_party/WebKit/WebCore/platform/mac/SearchPopupMenuMac.mm',
'../third_party/WebKit/WebCore/platform/mac/SharedBufferMac.mm',
'../third_party/WebKit/WebCore/platform/mac/SharedTimerMac.mm',
'../third_party/WebKit/WebCore/platform/mac/SoftLinking.h',
'../third_party/WebKit/WebCore/platform/mac/SoundMac.mm',
'../third_party/WebKit/WebCore/platform/mac/SystemTimeMac.cpp',
'../third_party/WebKit/WebCore/platform/mac/ThemeMac.h',
'../third_party/WebKit/WebCore/platform/mac/ThemeMac.mm',
'../third_party/WebKit/WebCore/platform/mac/ThreadCheck.mm',
'../third_party/WebKit/WebCore/platform/mac/WebCoreKeyGenerator.h',
'../third_party/WebKit/WebCore/platform/mac/WebCoreKeyGenerator.m',
'../third_party/WebKit/WebCore/platform/mac/WebCoreNSStringExtras.h',
'../third_party/WebKit/WebCore/platform/mac/WebCoreNSStringExtras.mm',
'../third_party/WebKit/WebCore/platform/mac/WebCoreObjCExtras.h',
'../third_party/WebKit/WebCore/platform/mac/WebCoreObjCExtras.mm',
'../third_party/WebKit/WebCore/platform/mac/WebCoreSystemInterface.h',
'../third_party/WebKit/WebCore/platform/mac/WebCoreSystemInterface.mm',
'../third_party/WebKit/WebCore/platform/mac/WebCoreView.h',
'../third_party/WebKit/WebCore/platform/mac/WebCoreView.m',
'../third_party/WebKit/WebCore/platform/mac/WebFontCache.h',
'../third_party/WebKit/WebCore/platform/mac/WebFontCache.mm',
'../third_party/WebKit/WebCore/platform/mac/WheelEventMac.mm',
'../third_party/WebKit/WebCore/platform/mac/WidgetMac.mm',
'../third_party/WebKit/WebCore/platform/network/cf/AuthenticationCF.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/AuthenticationCF.h',
'../third_party/WebKit/WebCore/platform/network/cf/AuthenticationChallenge.h',
'../third_party/WebKit/WebCore/platform/network/cf/DNSCFNet.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/FormDataStreamCFNet.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/FormDataStreamCFNet.h',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceError.h',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceErrorCF.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceHandleCFNet.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceRequest.h',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceRequestCFNet.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceRequestCFNet.h',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceResponse.h',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceResponseCFNet.cpp',
'../third_party/WebKit/WebCore/platform/network/cf/ResourceResponseCFNet.h',
'../third_party/WebKit/WebCore/platform/network/chromium/AuthenticationChallenge.h',
'../third_party/WebKit/WebCore/platform/network/chromium/AuthenticationChallengeChromium.cpp',
'../third_party/WebKit/WebCore/platform/network/chromium/CookieJarChromium.cpp',
'../third_party/WebKit/WebCore/platform/network/chromium/DNSChromium.cpp',
'../third_party/WebKit/WebCore/platform/network/chromium/NetworkStateNotifierChromium.cpp',
'../third_party/WebKit/WebCore/platform/network/chromium/NetworkStateNotifierPrivate.h',
'../third_party/WebKit/WebCore/platform/network/chromium/ResourceError.h',
'../third_party/WebKit/WebCore/platform/network/chromium/ResourceRequest.h',
'../third_party/WebKit/WebCore/platform/network/chromium/ResourceResponse.h',
'../third_party/WebKit/WebCore/platform/network/curl/AuthenticationChallenge.h',
'../third_party/WebKit/WebCore/platform/network/curl/CookieJarCurl.cpp',
'../third_party/WebKit/WebCore/platform/network/curl/DNSCurl.cpp',
'../third_party/WebKit/WebCore/platform/network/curl/FormDataStreamCurl.cpp',
'../third_party/WebKit/WebCore/platform/network/curl/FormDataStreamCurl.h',
'../third_party/WebKit/WebCore/platform/network/curl/ResourceError.h',
'../third_party/WebKit/WebCore/platform/network/curl/ResourceHandleCurl.cpp',
'../third_party/WebKit/WebCore/platform/network/curl/ResourceHandleManager.cpp',
'../third_party/WebKit/WebCore/platform/network/curl/ResourceHandleManager.h',
'../third_party/WebKit/WebCore/platform/network/curl/ResourceRequest.h',
'../third_party/WebKit/WebCore/platform/network/curl/ResourceResponse.h',
'../third_party/WebKit/WebCore/platform/network/mac/AuthenticationChallenge.h',
'../third_party/WebKit/WebCore/platform/network/mac/AuthenticationMac.h',
'../third_party/WebKit/WebCore/platform/network/mac/AuthenticationMac.mm',
'../third_party/WebKit/WebCore/platform/network/mac/FormDataStreamMac.h',
'../third_party/WebKit/WebCore/platform/network/mac/FormDataStreamMac.mm',
'../third_party/WebKit/WebCore/platform/network/mac/NetworkStateNotifierMac.cpp',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceError.h',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceErrorMac.mm',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceHandleMac.mm',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceRequest.h',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceRequestMac.mm',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceResponse.h',
'../third_party/WebKit/WebCore/platform/network/mac/ResourceResponseMac.mm',
'../third_party/WebKit/WebCore/platform/network/mac/WebCoreURLResponse.h',
'../third_party/WebKit/WebCore/platform/network/mac/WebCoreURLResponse.mm',
'../third_party/WebKit/WebCore/platform/network/qt/AuthenticationChallenge.h',
'../third_party/WebKit/WebCore/platform/network/qt/QNetworkReplyHandler.cpp',
'../third_party/WebKit/WebCore/platform/network/qt/QNetworkReplyHandler.h',
'../third_party/WebKit/WebCore/platform/network/qt/ResourceError.h',
'../third_party/WebKit/WebCore/platform/network/qt/ResourceHandleQt.cpp',
'../third_party/WebKit/WebCore/platform/network/qt/ResourceRequest.h',
'../third_party/WebKit/WebCore/platform/network/qt/ResourceRequestQt.cpp',
'../third_party/WebKit/WebCore/platform/network/qt/ResourceResponse.h',
'../third_party/WebKit/WebCore/platform/network/soup/AuthenticationChallenge.h',
'../third_party/WebKit/WebCore/platform/network/soup/CookieJarSoup.cpp',
'../third_party/WebKit/WebCore/platform/network/soup/CookieJarSoup.h',
'../third_party/WebKit/WebCore/platform/network/soup/DNSSoup.cpp',
'../third_party/WebKit/WebCore/platform/network/soup/ResourceError.h',
'../third_party/WebKit/WebCore/platform/network/soup/ResourceHandleSoup.cpp',
'../third_party/WebKit/WebCore/platform/network/soup/ResourceRequest.h',
'../third_party/WebKit/WebCore/platform/network/soup/ResourceResponse.h',
'../third_party/WebKit/WebCore/platform/network/soup/webkit-soup-auth-dialog.c',
'../third_party/WebKit/WebCore/platform/network/soup/webkit-soup-auth-dialog.h',
'../third_party/WebKit/WebCore/platform/network/win/CookieJarCFNetWin.cpp',
'../third_party/WebKit/WebCore/platform/network/win/CookieJarWin.cpp',
'../third_party/WebKit/WebCore/platform/network/win/CookieStorageWin.cpp',
'../third_party/WebKit/WebCore/platform/network/win/CookieStorageWin.h',
'../third_party/WebKit/WebCore/platform/network/win/NetworkStateNotifierWin.cpp',
'../third_party/WebKit/WebCore/platform/network/win/ResourceHandleWin.cpp',
'../third_party/WebKit/WebCore/platform/network/win/ResourceHandleWin.h',
'../third_party/WebKit/WebCore/platform/network/AuthenticationChallengeBase.cpp',
'../third_party/WebKit/WebCore/platform/network/AuthenticationChallengeBase.h',
'../third_party/WebKit/WebCore/platform/network/Credential.cpp',
'../third_party/WebKit/WebCore/platform/network/Credential.h',
'../third_party/WebKit/WebCore/platform/network/DNS.h',
'../third_party/WebKit/WebCore/platform/network/FormData.cpp',
'../third_party/WebKit/WebCore/platform/network/FormData.h',
'../third_party/WebKit/WebCore/platform/network/FormDataBuilder.cpp',
'../third_party/WebKit/WebCore/platform/network/FormDataBuilder.h',
'../third_party/WebKit/WebCore/platform/network/HTTPHeaderMap.cpp',
'../third_party/WebKit/WebCore/platform/network/HTTPHeaderMap.h',
'../third_party/WebKit/WebCore/platform/network/HTTPParsers.cpp',
'../third_party/WebKit/WebCore/platform/network/HTTPParsers.h',
'../third_party/WebKit/WebCore/platform/network/NetworkStateNotifier.cpp',
'../third_party/WebKit/WebCore/platform/network/NetworkStateNotifier.h',
'../third_party/WebKit/WebCore/platform/network/ProtectionSpace.cpp',
'../third_party/WebKit/WebCore/platform/network/ProtectionSpace.h',
'../third_party/WebKit/WebCore/platform/network/ResourceErrorBase.cpp',
'../third_party/WebKit/WebCore/platform/network/ResourceErrorBase.h',
'../third_party/WebKit/WebCore/platform/network/ResourceHandleClient.h',
'../third_party/WebKit/WebCore/platform/network/ResourceHandleInternal.h',
'../third_party/WebKit/WebCore/platform/network/ResourceRequestBase.cpp',
'../third_party/WebKit/WebCore/platform/network/ResourceRequestBase.h',
'../third_party/WebKit/WebCore/platform/network/ResourceResponseBase.cpp',
'../third_party/WebKit/WebCore/platform/network/ResourceResponseBase.h',
'../third_party/WebKit/WebCore/platform/posix/FileSystemPOSIX.cpp',
'../third_party/WebKit/WebCore/platform/qt/ClipboardQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/ClipboardQt.h',
'../third_party/WebKit/WebCore/platform/qt/ContextMenuItemQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/ContextMenuQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/CookieJarQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/CursorQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/DragDataQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/DragImageQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/EventLoopQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/FileChooserQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/FileSystemQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/KURLQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/KeyboardCodes.h',
'../third_party/WebKit/WebCore/platform/qt/Localizations.cpp',
'../third_party/WebKit/WebCore/platform/qt/LoggingQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/MIMETypeRegistryQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/MenuEventProxy.h',
'../third_party/WebKit/WebCore/platform/qt/PasteboardQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/PlatformKeyboardEventQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/PlatformMouseEventQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/PlatformScreenQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/PopupMenuQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/QWebPopup.cpp',
'../third_party/WebKit/WebCore/platform/qt/QWebPopup.h',
'../third_party/WebKit/WebCore/platform/qt/RenderThemeQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/RenderThemeQt.h',
'../third_party/WebKit/WebCore/platform/qt/ScreenQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/ScrollViewQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/ScrollbarQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/ScrollbarThemeQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/ScrollbarThemeQt.h',
'../third_party/WebKit/WebCore/platform/qt/SearchPopupMenuQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/SharedBufferQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/SharedTimerQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/SoundQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/TemporaryLinkStubs.cpp',
'../third_party/WebKit/WebCore/platform/qt/WheelEventQt.cpp',
'../third_party/WebKit/WebCore/platform/qt/WidgetQt.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLValue.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLValue.h',
'../third_party/WebKit/WebCore/platform/sql/SQLiteAuthorizer.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLiteDatabase.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLiteDatabase.h',
'../third_party/WebKit/WebCore/platform/sql/SQLiteFileSystem.h',
'../third_party/WebKit/WebCore/platform/sql/SQLiteFileSystem.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLiteStatement.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLiteStatement.h',
'../third_party/WebKit/WebCore/platform/sql/SQLiteTransaction.cpp',
'../third_party/WebKit/WebCore/platform/sql/SQLiteTransaction.h',
'../third_party/WebKit/WebCore/platform/symbian/FloatPointSymbian.cpp',
'../third_party/WebKit/WebCore/platform/symbian/FloatRectSymbian.cpp',
'../third_party/WebKit/WebCore/platform/symbian/IntPointSymbian.cpp',
'../third_party/WebKit/WebCore/platform/symbian/IntRectSymbian.cpp',
'../third_party/WebKit/WebCore/platform/symbian/IntSizeSymbian.cpp',
'../third_party/WebKit/WebCore/platform/text/cf/StringCF.cpp',
'../third_party/WebKit/WebCore/platform/text/cf/StringImplCF.cpp',
'../third_party/WebKit/WebCore/platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp',
'../third_party/WebKit/WebCore/platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp',
'../third_party/WebKit/WebCore/platform/text/mac/CharsetData.h',
'../third_party/WebKit/WebCore/platform/text/mac/ShapeArabic.c',
'../third_party/WebKit/WebCore/platform/text/mac/ShapeArabic.h',
'../third_party/WebKit/WebCore/platform/text/mac/StringImplMac.mm',
'../third_party/WebKit/WebCore/platform/text/mac/StringMac.mm',
'../third_party/WebKit/WebCore/platform/text/mac/TextBoundaries.mm',
'../third_party/WebKit/WebCore/platform/text/mac/TextBreakIteratorInternalICUMac.mm',
'../third_party/WebKit/WebCore/platform/text/mac/TextCodecMac.cpp',
'../third_party/WebKit/WebCore/platform/text/mac/TextCodecMac.h',
'../third_party/WebKit/WebCore/platform/text/qt/StringQt.cpp',
'../third_party/WebKit/WebCore/platform/text/qt/TextBoundaries.cpp',
'../third_party/WebKit/WebCore/platform/text/qt/TextBreakIteratorQt.cpp',
'../third_party/WebKit/WebCore/platform/text/qt/TextCodecQt.cpp',
'../third_party/WebKit/WebCore/platform/text/qt/TextCodecQt.h',
'../third_party/WebKit/WebCore/platform/text/symbian/StringImplSymbian.cpp',
'../third_party/WebKit/WebCore/platform/text/symbian/StringSymbian.cpp',
'../third_party/WebKit/WebCore/platform/text/win/TextBreakIteratorInternalICUWin.cpp',
'../third_party/WebKit/WebCore/platform/text/wx/StringWx.cpp',
'../third_party/WebKit/WebCore/platform/text/AtomicString.cpp',
'../third_party/WebKit/WebCore/platform/text/AtomicString.h',
'../third_party/WebKit/WebCore/platform/text/AtomicStringHash.h',
'../third_party/WebKit/WebCore/platform/text/AtomicStringImpl.h',
'../third_party/WebKit/WebCore/platform/text/Base64.cpp',
'../third_party/WebKit/WebCore/platform/text/Base64.h',
'../third_party/WebKit/WebCore/platform/text/BidiContext.cpp',
'../third_party/WebKit/WebCore/platform/text/BidiContext.h',
'../third_party/WebKit/WebCore/platform/text/BidiResolver.h',
'../third_party/WebKit/WebCore/platform/text/CString.cpp',
'../third_party/WebKit/WebCore/platform/text/CString.h',
'../third_party/WebKit/WebCore/platform/text/CharacterNames.h',
'../third_party/WebKit/WebCore/platform/text/ParserUtilities.h',
'../third_party/WebKit/WebCore/platform/text/PlatformString.h',
'../third_party/WebKit/WebCore/platform/text/RegularExpression.cpp',
'../third_party/WebKit/WebCore/platform/text/RegularExpression.h',
'../third_party/WebKit/WebCore/platform/text/SegmentedString.cpp',
'../third_party/WebKit/WebCore/platform/text/SegmentedString.h',
'../third_party/WebKit/WebCore/platform/text/String.cpp',
'../third_party/WebKit/WebCore/platform/text/StringBuffer.h',
'../third_party/WebKit/WebCore/platform/text/StringBuilder.cpp',
'../third_party/WebKit/WebCore/platform/text/StringBuilder.h',
'../third_party/WebKit/WebCore/platform/text/StringHash.h',
'../third_party/WebKit/WebCore/platform/text/StringImpl.cpp',
'../third_party/WebKit/WebCore/platform/text/StringImpl.h',
'../third_party/WebKit/WebCore/platform/text/TextBoundaries.h',
'../third_party/WebKit/WebCore/platform/text/TextBoundariesICU.cpp',
'../third_party/WebKit/WebCore/platform/text/TextBreakIterator.h',
'../third_party/WebKit/WebCore/platform/text/TextBreakIteratorICU.cpp',
'../third_party/WebKit/WebCore/platform/text/TextBreakIteratorInternalICU.h',
'../third_party/WebKit/WebCore/platform/text/TextCodec.cpp',
'../third_party/WebKit/WebCore/platform/text/TextCodec.h',
'../third_party/WebKit/WebCore/platform/text/TextCodecICU.cpp',
'../third_party/WebKit/WebCore/platform/text/TextCodecICU.h',
'../third_party/WebKit/WebCore/platform/text/TextCodecLatin1.cpp',
'../third_party/WebKit/WebCore/platform/text/TextCodecLatin1.h',
'../third_party/WebKit/WebCore/platform/text/TextCodecUTF16.cpp',
'../third_party/WebKit/WebCore/platform/text/TextCodecUTF16.h',
'../third_party/WebKit/WebCore/platform/text/TextCodecUserDefined.cpp',
'../third_party/WebKit/WebCore/platform/text/TextCodecUserDefined.h',
'../third_party/WebKit/WebCore/platform/text/TextDirection.h',
'../third_party/WebKit/WebCore/platform/text/TextEncoding.cpp',
'../third_party/WebKit/WebCore/platform/text/TextEncoding.h',
'../third_party/WebKit/WebCore/platform/text/TextEncodingDetector.h',
'../third_party/WebKit/WebCore/platform/text/TextEncodingDetectorICU.cpp',
'../third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.cpp',
'../third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.h',
'../third_party/WebKit/WebCore/platform/text/TextStream.cpp',
'../third_party/WebKit/WebCore/platform/text/TextStream.h',
'../third_party/WebKit/WebCore/platform/text/UnicodeRange.cpp',
'../third_party/WebKit/WebCore/platform/text/UnicodeRange.h',
'../third_party/WebKit/WebCore/platform/win/BString.cpp',
'../third_party/WebKit/WebCore/platform/win/BString.h',
'../third_party/WebKit/WebCore/platform/win/COMPtr.h',
'../third_party/WebKit/WebCore/platform/win/ClipboardUtilitiesWin.cpp',
'../third_party/WebKit/WebCore/platform/win/ClipboardUtilitiesWin.h',
'../third_party/WebKit/WebCore/platform/win/ClipboardWin.cpp',
'../third_party/WebKit/WebCore/platform/win/ClipboardWin.h',
'../third_party/WebKit/WebCore/platform/win/ContextMenuItemWin.cpp',
'../third_party/WebKit/WebCore/platform/win/ContextMenuWin.cpp',
'../third_party/WebKit/WebCore/platform/win/CursorWin.cpp',
'../third_party/WebKit/WebCore/platform/win/DragDataWin.cpp',
'../third_party/WebKit/WebCore/platform/win/DragImageCGWin.cpp',
'../third_party/WebKit/WebCore/platform/win/DragImageCairoWin.cpp',
'../third_party/WebKit/WebCore/platform/win/DragImageWin.cpp',
'../third_party/WebKit/WebCore/platform/win/EditorWin.cpp',
'../third_party/WebKit/WebCore/platform/win/EventLoopWin.cpp',
'../third_party/WebKit/WebCore/platform/win/FileChooserWin.cpp',
'../third_party/WebKit/WebCore/platform/win/FileSystemWin.cpp',
'../third_party/WebKit/WebCore/platform/win/GDIObjectCounter.cpp',
'../third_party/WebKit/WebCore/platform/win/GDIObjectCounter.h',
'../third_party/WebKit/WebCore/platform/win/KeyEventWin.cpp',
'../third_party/WebKit/WebCore/platform/win/Language.cpp',
'../third_party/WebKit/WebCore/platform/win/LoggingWin.cpp',
'../third_party/WebKit/WebCore/platform/win/MIMETypeRegistryWin.cpp',
'../third_party/WebKit/WebCore/platform/win/PasteboardWin.cpp',
'../third_party/WebKit/WebCore/platform/win/PlatformMouseEventWin.cpp',
'../third_party/WebKit/WebCore/platform/win/PlatformScreenWin.cpp',
'../third_party/WebKit/WebCore/platform/win/PlatformScrollBar.h',
'../third_party/WebKit/WebCore/platform/win/PlatformScrollBarWin.cpp',
'../third_party/WebKit/WebCore/platform/win/PopupMenuWin.cpp',
'../third_party/WebKit/WebCore/platform/win/ScrollbarThemeSafari.cpp',
'../third_party/WebKit/WebCore/platform/win/ScrollbarThemeSafari.h',
'../third_party/WebKit/WebCore/platform/win/ScrollbarThemeWin.cpp',
'../third_party/WebKit/WebCore/platform/win/ScrollbarThemeWin.h',
'../third_party/WebKit/WebCore/platform/win/SearchPopupMenuWin.cpp',
'../third_party/WebKit/WebCore/platform/win/SharedBufferWin.cpp',
'../third_party/WebKit/WebCore/platform/win/SharedTimerWin.cpp',
'../third_party/WebKit/WebCore/platform/win/SoftLinking.h',
'../third_party/WebKit/WebCore/platform/win/SoundWin.cpp',
'../third_party/WebKit/WebCore/platform/win/SystemTimeWin.cpp',
'../third_party/WebKit/WebCore/platform/win/TemporaryLinkStubs.cpp',
'../third_party/WebKit/WebCore/platform/win/WCDataObject.cpp',
'../third_party/WebKit/WebCore/platform/win/WCDataObject.h',
'../third_party/WebKit/WebCore/platform/win/WebCoreTextRenderer.cpp',
'../third_party/WebKit/WebCore/platform/win/WebCoreTextRenderer.h',
'../third_party/WebKit/WebCore/platform/win/WheelEventWin.cpp',
'../third_party/WebKit/WebCore/platform/win/WidgetWin.cpp',
'../third_party/WebKit/WebCore/platform/win/WindowMessageBroadcaster.cpp',
'../third_party/WebKit/WebCore/platform/win/WindowMessageBroadcaster.h',
'../third_party/WebKit/WebCore/platform/win/WindowMessageListener.h',
'../third_party/WebKit/WebCore/platform/wx/wxcode/gtk/fontprops.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/gtk/non-kerned-drawing.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/mac/carbon/fontprops.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/win/fontprops.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/win/non-kerned-drawing.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/fontprops.cpp',
'../third_party/WebKit/WebCore/platform/wx/wxcode/fontprops.h',
'../third_party/WebKit/WebCore/platform/wx/wxcode/non-kerned-drawing.h',
'../third_party/WebKit/WebCore/platform/wx/ClipboardWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/ClipboardWx.h',
'../third_party/WebKit/WebCore/platform/wx/ContextMenuItemWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/ContextMenuWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/CursorWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/DragDataWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/DragImageWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/EventLoopWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/FileSystemWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/KeyEventWin.cpp',
'../third_party/WebKit/WebCore/platform/wx/KeyboardCodes.h',
'../third_party/WebKit/WebCore/platform/wx/KeyboardEventWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/LocalizedStringsWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/LoggingWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/MimeTypeRegistryWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/MouseEventWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/MouseWheelEventWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/PasteboardWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/PopupMenuWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/RenderThemeWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/ScreenWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/ScrollViewWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/SharedTimerWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/SoundWx.cpp',
'../third_party/WebKit/WebCore/platform/wx/TemporaryLinkStubs.cpp',
'../third_party/WebKit/WebCore/platform/wx/WidgetWx.cpp',
'../third_party/WebKit/WebCore/platform/Arena.cpp',
'../third_party/WebKit/WebCore/platform/Arena.h',
'../third_party/WebKit/WebCore/platform/AutodrainedPool.h',
'../third_party/WebKit/WebCore/platform/ContentType.cpp',
'../third_party/WebKit/WebCore/platform/ContentType.h',
'../third_party/WebKit/WebCore/platform/ContextMenu.cpp',
'../third_party/WebKit/WebCore/platform/ContextMenu.h',
'../third_party/WebKit/WebCore/platform/ContextMenuItem.h',
'../third_party/WebKit/WebCore/platform/CookieJar.h',
'../third_party/WebKit/WebCore/platform/CrossThreadCopier.h',
'../third_party/WebKit/WebCore/platform/CrossThreadCopier.cpp',
'../third_party/WebKit/WebCore/platform/Cursor.h',
'../third_party/WebKit/WebCore/platform/DeprecatedPtrList.h',
'../third_party/WebKit/WebCore/platform/DeprecatedPtrListImpl.cpp',
'../third_party/WebKit/WebCore/platform/DeprecatedPtrListImpl.h',
'../third_party/WebKit/WebCore/platform/DragData.cpp',
'../third_party/WebKit/WebCore/platform/DragData.h',
'../third_party/WebKit/WebCore/platform/DragImage.cpp',
'../third_party/WebKit/WebCore/platform/DragImage.h',
'../third_party/WebKit/WebCore/platform/EventLoop.h',
'../third_party/WebKit/WebCore/platform/FileChooser.cpp',
'../third_party/WebKit/WebCore/platform/FileChooser.h',
'../third_party/WebKit/WebCore/platform/FileSystem.h',
'../third_party/WebKit/WebCore/platform/FloatConversion.h',
'../third_party/WebKit/WebCore/platform/GeolocationService.cpp',
'../third_party/WebKit/WebCore/platform/GeolocationService.h',
'../third_party/WebKit/WebCore/platform/HostWindow.h',
'../third_party/WebKit/WebCore/platform/KeyboardCodes.h',
'../third_party/WebKit/WebCore/platform/KURL.cpp',
'../third_party/WebKit/WebCore/platform/KURL.h',
'../third_party/WebKit/WebCore/platform/KURLGoogle.cpp',
'../third_party/WebKit/WebCore/platform/KURLGooglePrivate.h',
'../third_party/WebKit/WebCore/platform/KURLHash.h',
'../third_party/WebKit/WebCore/platform/Language.h',
'../third_party/WebKit/WebCore/platform/Length.cpp',
'../third_party/WebKit/WebCore/platform/Length.h',
'../third_party/WebKit/WebCore/platform/LengthBox.h',
'../third_party/WebKit/WebCore/platform/LengthSize.h',
'../third_party/WebKit/WebCore/platform/LinkHash.cpp',
'../third_party/WebKit/WebCore/platform/LinkHash.h',
'../third_party/WebKit/WebCore/platform/LocalizedStrings.h',
'../third_party/WebKit/WebCore/platform/Logging.cpp',
'../third_party/WebKit/WebCore/platform/Logging.h',
'../third_party/WebKit/WebCore/platform/MIMETypeRegistry.cpp',
'../third_party/WebKit/WebCore/platform/MIMETypeRegistry.h',
'../third_party/WebKit/WebCore/platform/NotImplemented.h',
'../third_party/WebKit/WebCore/platform/Pasteboard.h',
'../third_party/WebKit/WebCore/platform/PlatformKeyboardEvent.h',
'../third_party/WebKit/WebCore/platform/PlatformMenuDescription.h',
'../third_party/WebKit/WebCore/platform/PlatformMouseEvent.h',
'../third_party/WebKit/WebCore/platform/PlatformScreen.h',
'../third_party/WebKit/WebCore/platform/PlatformWheelEvent.h',
'../third_party/WebKit/WebCore/platform/PopupMenu.h',
'../third_party/WebKit/WebCore/platform/PopupMenuClient.h',
'../third_party/WebKit/WebCore/platform/PopupMenuStyle.h',
'../third_party/WebKit/WebCore/platform/PurgeableBuffer.h',
'../third_party/WebKit/WebCore/platform/SSLKeyGenerator.h',
'../third_party/WebKit/WebCore/platform/ScrollTypes.h',
'../third_party/WebKit/WebCore/platform/ScrollView.cpp',
'../third_party/WebKit/WebCore/platform/ScrollView.h',
'../third_party/WebKit/WebCore/platform/Scrollbar.cpp',
'../third_party/WebKit/WebCore/platform/Scrollbar.h',
'../third_party/WebKit/WebCore/platform/ScrollbarClient.h',
'../third_party/WebKit/WebCore/platform/ScrollbarTheme.h',
'../third_party/WebKit/WebCore/platform/ScrollbarThemeComposite.cpp',
'../third_party/WebKit/WebCore/platform/ScrollbarThemeComposite.h',
'../third_party/WebKit/WebCore/platform/SearchPopupMenu.h',
'../third_party/WebKit/WebCore/platform/SharedBuffer.cpp',
'../third_party/WebKit/WebCore/platform/SharedBuffer.h',
'../third_party/WebKit/WebCore/platform/SharedTimer.h',
'../third_party/WebKit/WebCore/platform/Sound.h',
'../third_party/WebKit/WebCore/platform/StaticConstructors.h',
'../third_party/WebKit/WebCore/platform/SystemTime.h',
'../third_party/WebKit/WebCore/platform/Theme.cpp',
'../third_party/WebKit/WebCore/platform/Theme.h',
'../third_party/WebKit/WebCore/platform/ThemeTypes.h',
'../third_party/WebKit/WebCore/platform/ThreadCheck.h',
'../third_party/WebKit/WebCore/platform/ThreadGlobalData.cpp',
'../third_party/WebKit/WebCore/platform/ThreadGlobalData.h',
'../third_party/WebKit/WebCore/platform/ThreadTimers.cpp',
'../third_party/WebKit/WebCore/platform/ThreadTimers.h',
'../third_party/WebKit/WebCore/platform/Timer.cpp',
'../third_party/WebKit/WebCore/platform/Timer.h',
'../third_party/WebKit/WebCore/platform/TreeShared.h',
'../third_party/WebKit/WebCore/platform/Widget.cpp',
'../third_party/WebKit/WebCore/platform/Widget.h',
'../third_party/WebKit/WebCore/plugins/chromium/PluginDataChromium.cpp',
'../third_party/WebKit/WebCore/plugins/gtk/PluginDataGtk.cpp',
'../third_party/WebKit/WebCore/plugins/gtk/PluginPackageGtk.cpp',
'../third_party/WebKit/WebCore/plugins/gtk/PluginViewGtk.cpp',
'../third_party/WebKit/WebCore/plugins/gtk/gtk2xtbin.h',
'../third_party/WebKit/WebCore/plugins/gtk/xembed.h',
'../third_party/WebKit/WebCore/plugins/mac/PluginDataMac.mm',
'../third_party/WebKit/WebCore/plugins/mac/PluginPackageMac.cpp',
'../third_party/WebKit/WebCore/plugins/mac/PluginViewMac.cpp',
'../third_party/WebKit/WebCore/plugins/qt/PluginDataQt.cpp',
'../third_party/WebKit/WebCore/plugins/qt/PluginPackageQt.cpp',
'../third_party/WebKit/WebCore/plugins/qt/PluginViewQt.cpp',
'../third_party/WebKit/WebCore/plugins/win/PluginDataWin.cpp',
'../third_party/WebKit/WebCore/plugins/win/PluginDatabaseWin.cpp',
'../third_party/WebKit/WebCore/plugins/win/PluginMessageThrottlerWin.cpp',
'../third_party/WebKit/WebCore/plugins/win/PluginMessageThrottlerWin.h',
'../third_party/WebKit/WebCore/plugins/win/PluginPackageWin.cpp',
'../third_party/WebKit/WebCore/plugins/win/PluginViewWin.cpp',
'../third_party/WebKit/WebCore/plugins/wx/PluginDataWx.cpp',
'../third_party/WebKit/WebCore/plugins/wx/PluginPackageWx.cpp',
'../third_party/WebKit/WebCore/plugins/wx/PluginViewWx.cpp',
'../third_party/WebKit/WebCore/plugins/MimeType.cpp',
'../third_party/WebKit/WebCore/plugins/MimeType.h',
'../third_party/WebKit/WebCore/plugins/MimeTypeArray.cpp',
'../third_party/WebKit/WebCore/plugins/MimeTypeArray.h',
'../third_party/WebKit/WebCore/plugins/Plugin.cpp',
'../third_party/WebKit/WebCore/plugins/Plugin.h',
'../third_party/WebKit/WebCore/plugins/PluginArray.cpp',
'../third_party/WebKit/WebCore/plugins/PluginArray.h',
'../third_party/WebKit/WebCore/plugins/PluginData.cpp',
'../third_party/WebKit/WebCore/plugins/PluginData.h',
'../third_party/WebKit/WebCore/plugins/PluginDatabase.cpp',
'../third_party/WebKit/WebCore/plugins/PluginDatabase.h',
'../third_party/WebKit/WebCore/plugins/PluginDebug.h',
'../third_party/WebKit/WebCore/plugins/PluginInfoStore.cpp',
'../third_party/WebKit/WebCore/plugins/PluginInfoStore.h',
'../third_party/WebKit/WebCore/plugins/PluginMainThreadScheduler.cpp',
'../third_party/WebKit/WebCore/plugins/PluginMainThreadScheduler.h',
'../third_party/WebKit/WebCore/plugins/PluginPackage.cpp',
'../third_party/WebKit/WebCore/plugins/PluginPackage.h',
'../third_party/WebKit/WebCore/plugins/PluginQuirkSet.h',
'../third_party/WebKit/WebCore/plugins/PluginStream.cpp',
'../third_party/WebKit/WebCore/plugins/PluginStream.h',
'../third_party/WebKit/WebCore/plugins/PluginView.cpp',
'../third_party/WebKit/WebCore/plugins/PluginView.h',
'../third_party/WebKit/WebCore/plugins/npapi.cpp',
'../third_party/WebKit/WebCore/plugins/npfunctions.h',
'../third_party/WebKit/WebCore/rendering/style/BindingURI.cpp',
'../third_party/WebKit/WebCore/rendering/style/BindingURI.h',
'../third_party/WebKit/WebCore/rendering/style/BorderData.h',
'../third_party/WebKit/WebCore/rendering/style/BorderValue.h',
'../third_party/WebKit/WebCore/rendering/style/CollapsedBorderValue.h',
'../third_party/WebKit/WebCore/rendering/style/ContentData.cpp',
'../third_party/WebKit/WebCore/rendering/style/ContentData.h',
'../third_party/WebKit/WebCore/rendering/style/CounterContent.h',
'../third_party/WebKit/WebCore/rendering/style/CounterDirectives.cpp',
'../third_party/WebKit/WebCore/rendering/style/CounterDirectives.h',
'../third_party/WebKit/WebCore/rendering/style/CursorData.h',
'../third_party/WebKit/WebCore/rendering/style/CursorList.h',
'../third_party/WebKit/WebCore/rendering/style/DataRef.h',
'../third_party/WebKit/WebCore/rendering/style/FillLayer.cpp',
'../third_party/WebKit/WebCore/rendering/style/FillLayer.h',
'../third_party/WebKit/WebCore/rendering/style/KeyframeList.cpp',
'../third_party/WebKit/WebCore/rendering/style/KeyframeList.h',
'../third_party/WebKit/WebCore/rendering/style/NinePieceImage.cpp',
'../third_party/WebKit/WebCore/rendering/style/NinePieceImage.h',
'../third_party/WebKit/WebCore/rendering/style/OutlineValue.h',
'../third_party/WebKit/WebCore/rendering/style/RenderStyle.cpp',
'../third_party/WebKit/WebCore/rendering/style/RenderStyle.h',
'../third_party/WebKit/WebCore/rendering/style/RenderStyleConstants.h',
'../third_party/WebKit/WebCore/rendering/style/SVGRenderStyle.cpp',
'../third_party/WebKit/WebCore/rendering/style/SVGRenderStyle.h',
'../third_party/WebKit/WebCore/rendering/style/SVGRenderStyleDefs.cpp',
'../third_party/WebKit/WebCore/rendering/style/SVGRenderStyleDefs.h',
'../third_party/WebKit/WebCore/rendering/style/ShadowData.cpp',
'../third_party/WebKit/WebCore/rendering/style/ShadowData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleBackgroundData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleBackgroundData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleBoxData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleBoxData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleCachedImage.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleCachedImage.h',
'../third_party/WebKit/WebCore/rendering/style/StyleDashboardRegion.h',
'../third_party/WebKit/WebCore/rendering/style/StyleFlexibleBoxData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleFlexibleBoxData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleGeneratedImage.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleGeneratedImage.h',
'../third_party/WebKit/WebCore/rendering/style/StyleImage.h',
'../third_party/WebKit/WebCore/rendering/style/StyleInheritedData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleInheritedData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleMarqueeData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleMarqueeData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleMultiColData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleMultiColData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleRareInheritedData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleRareInheritedData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleRareNonInheritedData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleRareNonInheritedData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleReflection.h',
'../third_party/WebKit/WebCore/rendering/style/StyleSurroundData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleSurroundData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleTransformData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleTransformData.h',
'../third_party/WebKit/WebCore/rendering/style/StyleVisualData.cpp',
'../third_party/WebKit/WebCore/rendering/style/StyleVisualData.h',
'../third_party/WebKit/WebCore/rendering/AutoTableLayout.cpp',
'../third_party/WebKit/WebCore/rendering/AutoTableLayout.h',
'../third_party/WebKit/WebCore/rendering/CounterNode.cpp',
'../third_party/WebKit/WebCore/rendering/CounterNode.h',
'../third_party/WebKit/WebCore/rendering/EllipsisBox.cpp',
'../third_party/WebKit/WebCore/rendering/EllipsisBox.h',
'../third_party/WebKit/WebCore/rendering/FixedTableLayout.cpp',
'../third_party/WebKit/WebCore/rendering/FixedTableLayout.h',
'../third_party/WebKit/WebCore/rendering/GapRects.h',
'../third_party/WebKit/WebCore/rendering/HitTestRequest.h',
'../third_party/WebKit/WebCore/rendering/HitTestResult.cpp',
'../third_party/WebKit/WebCore/rendering/HitTestResult.h',
'../third_party/WebKit/WebCore/rendering/InlineBox.cpp',
'../third_party/WebKit/WebCore/rendering/InlineBox.h',
'../third_party/WebKit/WebCore/rendering/InlineFlowBox.cpp',
'../third_party/WebKit/WebCore/rendering/InlineFlowBox.h',
'../third_party/WebKit/WebCore/rendering/InlineRunBox.h',
'../third_party/WebKit/WebCore/rendering/InlineTextBox.cpp',
'../third_party/WebKit/WebCore/rendering/InlineTextBox.h',
'../third_party/WebKit/WebCore/rendering/LayoutState.cpp',
'../third_party/WebKit/WebCore/rendering/LayoutState.h',
'../third_party/WebKit/WebCore/rendering/MediaControlElements.cpp',
'../third_party/WebKit/WebCore/rendering/MediaControlElements.h',
'../third_party/WebKit/WebCore/rendering/PointerEventsHitRules.cpp',
'../third_party/WebKit/WebCore/rendering/PointerEventsHitRules.h',
'../third_party/WebKit/WebCore/rendering/RenderApplet.cpp',
'../third_party/WebKit/WebCore/rendering/RenderApplet.h',
'../third_party/WebKit/WebCore/rendering/RenderArena.cpp',
'../third_party/WebKit/WebCore/rendering/RenderArena.h',
'../third_party/WebKit/WebCore/rendering/RenderBR.cpp',
'../third_party/WebKit/WebCore/rendering/RenderBR.h',
'../third_party/WebKit/WebCore/rendering/RenderBlock.cpp',
'../third_party/WebKit/WebCore/rendering/RenderBlock.h',
'../third_party/WebKit/WebCore/rendering/RenderBox.cpp',
'../third_party/WebKit/WebCore/rendering/RenderBox.h',
'../third_party/WebKit/WebCore/rendering/RenderBoxModelObject.cpp',
'../third_party/WebKit/WebCore/rendering/RenderBoxModelObject.h',
'../third_party/WebKit/WebCore/rendering/RenderButton.cpp',
'../third_party/WebKit/WebCore/rendering/RenderButton.h',
'../third_party/WebKit/WebCore/rendering/RenderCounter.cpp',
'../third_party/WebKit/WebCore/rendering/RenderCounter.h',
'../third_party/WebKit/WebCore/rendering/RenderDataGrid.cpp',
'../third_party/WebKit/WebCore/rendering/RenderDataGrid.h',
'../third_party/WebKit/WebCore/rendering/RenderFieldset.cpp',
'../third_party/WebKit/WebCore/rendering/RenderFieldset.h',
'../third_party/WebKit/WebCore/rendering/RenderFileUploadControl.cpp',
'../third_party/WebKit/WebCore/rendering/RenderFileUploadControl.h',
'../third_party/WebKit/WebCore/rendering/RenderFlexibleBox.cpp',
'../third_party/WebKit/WebCore/rendering/RenderFlexibleBox.h',
'../third_party/WebKit/WebCore/rendering/RenderForeignObject.cpp',
'../third_party/WebKit/WebCore/rendering/RenderForeignObject.h',
'../third_party/WebKit/WebCore/rendering/RenderFrame.cpp',
'../third_party/WebKit/WebCore/rendering/RenderFrame.h',
'../third_party/WebKit/WebCore/rendering/RenderFrameSet.cpp',
'../third_party/WebKit/WebCore/rendering/RenderFrameSet.h',
'../third_party/WebKit/WebCore/rendering/RenderHTMLCanvas.cpp',
'../third_party/WebKit/WebCore/rendering/RenderHTMLCanvas.h',
'../third_party/WebKit/WebCore/rendering/RenderImage.cpp',
'../third_party/WebKit/WebCore/rendering/RenderImage.h',
'../third_party/WebKit/WebCore/rendering/RenderImageGeneratedContent.cpp',
'../third_party/WebKit/WebCore/rendering/RenderImageGeneratedContent.h',
'../third_party/WebKit/WebCore/rendering/RenderInline.cpp',
'../third_party/WebKit/WebCore/rendering/RenderInline.h',
'../third_party/WebKit/WebCore/rendering/RenderLayer.cpp',
'../third_party/WebKit/WebCore/rendering/RenderLayer.h',
'../third_party/WebKit/WebCore/rendering/RenderLayerBacking.cpp',
'../third_party/WebKit/WebCore/rendering/RenderLayerBacking.h',
'../third_party/WebKit/WebCore/rendering/RenderLayerCompositor.cpp',
'../third_party/WebKit/WebCore/rendering/RenderLayerCompositor.h',
'../third_party/WebKit/WebCore/rendering/RenderLineBoxList.cpp',
'../third_party/WebKit/WebCore/rendering/RenderLineBoxList.h',
'../third_party/WebKit/WebCore/rendering/RenderListBox.cpp',
'../third_party/WebKit/WebCore/rendering/RenderListBox.h',
'../third_party/WebKit/WebCore/rendering/RenderListItem.cpp',
'../third_party/WebKit/WebCore/rendering/RenderListItem.h',
'../third_party/WebKit/WebCore/rendering/RenderListMarker.cpp',
'../third_party/WebKit/WebCore/rendering/RenderListMarker.h',
'../third_party/WebKit/WebCore/rendering/RenderMarquee.cpp',
'../third_party/WebKit/WebCore/rendering/RenderMarquee.h',
'../third_party/WebKit/WebCore/rendering/RenderMedia.cpp',
'../third_party/WebKit/WebCore/rendering/RenderMedia.h',
'../third_party/WebKit/WebCore/rendering/RenderMenuList.cpp',
'../third_party/WebKit/WebCore/rendering/RenderMenuList.h',
'../third_party/WebKit/WebCore/rendering/RenderObject.cpp',
'../third_party/WebKit/WebCore/rendering/RenderObject.h',
'../third_party/WebKit/WebCore/rendering/RenderObjectChildList.cpp',
'../third_party/WebKit/WebCore/rendering/RenderObjectChildList.h',
'../third_party/WebKit/WebCore/rendering/RenderPart.cpp',
'../third_party/WebKit/WebCore/rendering/RenderPart.h',
'../third_party/WebKit/WebCore/rendering/RenderPartObject.cpp',
'../third_party/WebKit/WebCore/rendering/RenderPartObject.h',
'../third_party/WebKit/WebCore/rendering/RenderPath.cpp',
'../third_party/WebKit/WebCore/rendering/RenderPath.h',
'../third_party/WebKit/WebCore/rendering/RenderReplaced.cpp',
'../third_party/WebKit/WebCore/rendering/RenderReplaced.h',
'../third_party/WebKit/WebCore/rendering/RenderReplica.cpp',
'../third_party/WebKit/WebCore/rendering/RenderReplica.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGBlock.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGBlock.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGContainer.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGContainer.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGGradientStop.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGGradientStop.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGHiddenContainer.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGHiddenContainer.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGImage.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGImage.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGInline.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGInline.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGInlineText.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGInlineText.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGModelObject.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGModelObject.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGRoot.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGRoot.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGTSpan.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGTSpan.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGText.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGText.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGTextPath.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGTextPath.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGTransformableContainer.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGTransformableContainer.h',
'../third_party/WebKit/WebCore/rendering/RenderSVGViewportContainer.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSVGViewportContainer.h',
'../third_party/WebKit/WebCore/rendering/RenderScrollbar.cpp',
'../third_party/WebKit/WebCore/rendering/RenderScrollbar.h',
'../third_party/WebKit/WebCore/rendering/RenderScrollbarPart.cpp',
'../third_party/WebKit/WebCore/rendering/RenderScrollbarPart.h',
'../third_party/WebKit/WebCore/rendering/RenderScrollbarTheme.cpp',
'../third_party/WebKit/WebCore/rendering/RenderScrollbarTheme.h',
'../third_party/WebKit/WebCore/rendering/RenderSelectionInfo.h',
'../third_party/WebKit/WebCore/rendering/RenderSlider.cpp',
'../third_party/WebKit/WebCore/rendering/RenderSlider.h',
'../third_party/WebKit/WebCore/rendering/RenderTable.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTable.h',
'../third_party/WebKit/WebCore/rendering/RenderTableCell.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTableCell.h',
'../third_party/WebKit/WebCore/rendering/RenderTableCol.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTableCol.h',
'../third_party/WebKit/WebCore/rendering/RenderTableRow.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTableRow.h',
'../third_party/WebKit/WebCore/rendering/RenderTableSection.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTableSection.h',
'../third_party/WebKit/WebCore/rendering/RenderText.cpp',
'../third_party/WebKit/WebCore/rendering/RenderText.h',
'../third_party/WebKit/WebCore/rendering/RenderTextControl.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTextControl.h',
'../third_party/WebKit/WebCore/rendering/RenderTextControlMultiLine.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTextControlMultiLine.h',
'../third_party/WebKit/WebCore/rendering/RenderTextControlSingleLine.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTextControlSingleLine.h',
'../third_party/WebKit/WebCore/rendering/RenderTextFragment.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTextFragment.h',
'../third_party/WebKit/WebCore/rendering/RenderTheme.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTheme.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumSkia.cpp',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumSkia.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.cpp',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumMac.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumMac.mm',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumWin.cpp',
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumWin.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeMac.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeMac.mm',
'../third_party/WebKit/WebCore/rendering/RenderThemeSafari.cpp',
'../third_party/WebKit/WebCore/rendering/RenderThemeSafari.h',
'../third_party/WebKit/WebCore/rendering/RenderThemeWin.cpp',
'../third_party/WebKit/WebCore/rendering/RenderThemeWin.h',
'../third_party/WebKit/WebCore/rendering/RenderTreeAsText.cpp',
'../third_party/WebKit/WebCore/rendering/RenderTreeAsText.h',
'../third_party/WebKit/WebCore/rendering/RenderVideo.cpp',
'../third_party/WebKit/WebCore/rendering/RenderVideo.h',
'../third_party/WebKit/WebCore/rendering/RenderView.cpp',
'../third_party/WebKit/WebCore/rendering/RenderView.h',
'../third_party/WebKit/WebCore/rendering/RenderWidget.cpp',
'../third_party/WebKit/WebCore/rendering/RenderWidget.h',
'../third_party/WebKit/WebCore/rendering/RenderWordBreak.cpp',
'../third_party/WebKit/WebCore/rendering/RenderWordBreak.h',
'../third_party/WebKit/WebCore/rendering/RootInlineBox.cpp',
'../third_party/WebKit/WebCore/rendering/RootInlineBox.h',
'../third_party/WebKit/WebCore/rendering/ScrollBehavior.cpp',
'../third_party/WebKit/WebCore/rendering/ScrollBehavior.h',
'../third_party/WebKit/WebCore/rendering/SVGCharacterLayoutInfo.cpp',
'../third_party/WebKit/WebCore/rendering/SVGCharacterLayoutInfo.h',
'../third_party/WebKit/WebCore/rendering/SVGInlineFlowBox.cpp',
'../third_party/WebKit/WebCore/rendering/SVGInlineFlowBox.h',
'../third_party/WebKit/WebCore/rendering/SVGInlineTextBox.cpp',
'../third_party/WebKit/WebCore/rendering/SVGInlineTextBox.h',
'../third_party/WebKit/WebCore/rendering/SVGRenderSupport.cpp',
'../third_party/WebKit/WebCore/rendering/SVGRenderSupport.h',
'../third_party/WebKit/WebCore/rendering/SVGRenderTreeAsText.cpp',
'../third_party/WebKit/WebCore/rendering/SVGRenderTreeAsText.h',
'../third_party/WebKit/WebCore/rendering/SVGRootInlineBox.cpp',
'../third_party/WebKit/WebCore/rendering/SVGRootInlineBox.h',
'../third_party/WebKit/WebCore/rendering/TableLayout.h',
'../third_party/WebKit/WebCore/rendering/TextControlInnerElements.cpp',
'../third_party/WebKit/WebCore/rendering/TextControlInnerElements.h',
'../third_party/WebKit/WebCore/rendering/TransformState.cpp',
'../third_party/WebKit/WebCore/rendering/TransformState.h',
'../third_party/WebKit/WebCore/rendering/bidi.cpp',
'../third_party/WebKit/WebCore/rendering/bidi.h',
'../third_party/WebKit/WebCore/rendering/break_lines.cpp',
'../third_party/WebKit/WebCore/rendering/break_lines.h',
'../third_party/WebKit/WebCore/storage/ChangeVersionWrapper.cpp',
'../third_party/WebKit/WebCore/storage/ChangeVersionWrapper.h',
'../third_party/WebKit/WebCore/storage/Database.cpp',
'../third_party/WebKit/WebCore/storage/Database.h',
'../third_party/WebKit/WebCore/storage/DatabaseAuthorizer.cpp',
'../third_party/WebKit/WebCore/storage/DatabaseAuthorizer.h',
'../third_party/WebKit/WebCore/storage/DatabaseDetails.h',
'../third_party/WebKit/WebCore/storage/DatabaseTask.cpp',
'../third_party/WebKit/WebCore/storage/DatabaseTask.h',
'../third_party/WebKit/WebCore/storage/DatabaseThread.cpp',
'../third_party/WebKit/WebCore/storage/DatabaseThread.h',
'../third_party/WebKit/WebCore/storage/DatabaseTracker.cpp',
'../third_party/WebKit/WebCore/storage/DatabaseTracker.h',
'../third_party/WebKit/WebCore/storage/DatabaseTrackerClient.h',
'../third_party/WebKit/WebCore/storage/LocalStorage.cpp',
'../third_party/WebKit/WebCore/storage/LocalStorage.h',
'../third_party/WebKit/WebCore/storage/LocalStorageArea.cpp',
'../third_party/WebKit/WebCore/storage/LocalStorageArea.h',
'../third_party/WebKit/WebCore/storage/LocalStorageTask.cpp',
'../third_party/WebKit/WebCore/storage/LocalStorageTask.h',
'../third_party/WebKit/WebCore/storage/LocalStorageThread.cpp',
'../third_party/WebKit/WebCore/storage/LocalStorageThread.h',
'../third_party/WebKit/WebCore/storage/OriginQuotaManager.cpp',
'../third_party/WebKit/WebCore/storage/OriginQuotaManager.h',
'../third_party/WebKit/WebCore/storage/OriginUsageRecord.cpp',
'../third_party/WebKit/WebCore/storage/OriginUsageRecord.h',
'../third_party/WebKit/WebCore/storage/SQLError.h',
'../third_party/WebKit/WebCore/storage/SQLResultSet.cpp',
'../third_party/WebKit/WebCore/storage/SQLResultSet.h',
'../third_party/WebKit/WebCore/storage/SQLResultSetRowList.cpp',
'../third_party/WebKit/WebCore/storage/SQLResultSetRowList.h',
'../third_party/WebKit/WebCore/storage/SQLStatement.cpp',
'../third_party/WebKit/WebCore/storage/SQLStatement.h',
'../third_party/WebKit/WebCore/storage/SQLStatementCallback.h',
'../third_party/WebKit/WebCore/storage/SQLStatementErrorCallback.h',
'../third_party/WebKit/WebCore/storage/SQLTransaction.cpp',
'../third_party/WebKit/WebCore/storage/SQLTransaction.h',
'../third_party/WebKit/WebCore/storage/SQLTransactionCallback.h',
'../third_party/WebKit/WebCore/storage/SQLTransactionErrorCallback.h',
'../third_party/WebKit/WebCore/storage/SessionStorage.cpp',
'../third_party/WebKit/WebCore/storage/SessionStorage.h',
'../third_party/WebKit/WebCore/storage/SessionStorageArea.cpp',
'../third_party/WebKit/WebCore/storage/SessionStorageArea.h',
'../third_party/WebKit/WebCore/storage/Storage.cpp',
'../third_party/WebKit/WebCore/storage/Storage.h',
'../third_party/WebKit/WebCore/storage/StorageArea.h',
'../third_party/WebKit/WebCore/storage/StorageEvent.cpp',
'../third_party/WebKit/WebCore/storage/StorageEvent.h',
'../third_party/WebKit/WebCore/storage/StorageMap.cpp',
'../third_party/WebKit/WebCore/storage/StorageMap.h',
'../third_party/WebKit/WebCore/svg/animation/SMILTime.cpp',
'../third_party/WebKit/WebCore/svg/animation/SMILTime.h',
'../third_party/WebKit/WebCore/svg/animation/SMILTimeContainer.cpp',
'../third_party/WebKit/WebCore/svg/animation/SMILTimeContainer.h',
'../third_party/WebKit/WebCore/svg/animation/SVGSMILElement.cpp',
'../third_party/WebKit/WebCore/svg/animation/SVGSMILElement.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGDistantLightSource.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEConvolveMatrix.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEConvolveMatrix.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEDiffuseLighting.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEDiffuseLighting.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEDisplacementMap.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEDisplacementMap.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEFlood.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEFlood.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEGaussianBlur.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEGaussianBlur.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEImage.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEImage.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEMerge.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEMerge.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEMorphology.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEMorphology.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEOffset.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFEOffset.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFESpecularLighting.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFESpecularLighting.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFETile.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFETile.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFETurbulence.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFETurbulence.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFilterEffect.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGFilterEffect.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGLightSource.cpp',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGLightSource.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGPointLightSource.h',
'../third_party/WebKit/WebCore/svg/graphics/filters/SVGSpotLightSource.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGImage.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGImage.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServer.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServer.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerGradient.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerGradient.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerLinearGradient.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerLinearGradient.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerPattern.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerPattern.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerRadialGradient.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerRadialGradient.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerSolid.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGPaintServerSolid.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGResource.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGResource.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceClipper.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceClipper.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceFilter.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceFilter.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceListener.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceMarker.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceMarker.h',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceMasker.cpp',
'../third_party/WebKit/WebCore/svg/graphics/SVGResourceMasker.h',
'../third_party/WebKit/WebCore/svg/ColorDistance.cpp',
'../third_party/WebKit/WebCore/svg/ColorDistance.h',
'../third_party/WebKit/WebCore/svg/ElementTimeControl.h',
'../third_party/WebKit/WebCore/svg/Filter.cpp',
'../third_party/WebKit/WebCore/svg/Filter.h',
'../third_party/WebKit/WebCore/svg/FilterBuilder.h',
'../third_party/WebKit/WebCore/svg/FilterBuilder.cpp',
'../third_party/WebKit/WebCore/svg/FilterEffect.cpp',
'../third_party/WebKit/WebCore/svg/FilterEffect.h',
'../third_party/WebKit/WebCore/svg/GradientAttributes.h',
'../third_party/WebKit/WebCore/svg/LinearGradientAttributes.h',
'../third_party/WebKit/WebCore/svg/PatternAttributes.h',
'../third_party/WebKit/WebCore/svg/RadialGradientAttributes.h',
'../third_party/WebKit/WebCore/svg/SVGAElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAElement.h',
'../third_party/WebKit/WebCore/svg/SVGAllInOne.cpp',
'../third_party/WebKit/WebCore/svg/SVGAltGlyphElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAltGlyphElement.h',
'../third_party/WebKit/WebCore/svg/SVGAngle.cpp',
'../third_party/WebKit/WebCore/svg/SVGAngle.h',
'../third_party/WebKit/WebCore/svg/SVGAnimateColorElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimateColorElement.h',
'../third_party/WebKit/WebCore/svg/SVGAnimateElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimateElement.h',
'../third_party/WebKit/WebCore/svg/SVGAnimateMotionElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimateMotionElement.h',
'../third_party/WebKit/WebCore/svg/SVGAnimateTransformElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimateTransformElement.h',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPathData.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPathData.h',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPoints.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPoints.h',
'../third_party/WebKit/WebCore/svg/SVGAnimatedProperty.h',
'../third_party/WebKit/WebCore/svg/SVGAnimatedTemplate.h',
'../third_party/WebKit/WebCore/svg/SVGAnimationElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGAnimationElement.h',
'../third_party/WebKit/WebCore/svg/SVGCircleElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGCircleElement.h',
'../third_party/WebKit/WebCore/svg/SVGClipPathElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGClipPathElement.h',
'../third_party/WebKit/WebCore/svg/SVGColor.cpp',
'../third_party/WebKit/WebCore/svg/SVGColor.h',
'../third_party/WebKit/WebCore/svg/SVGComponentTransferFunctionElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGComponentTransferFunctionElement.h',
'../third_party/WebKit/WebCore/svg/SVGCursorElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGCursorElement.h',
'../third_party/WebKit/WebCore/svg/SVGDefinitionSrcElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGDefinitionSrcElement.h',
'../third_party/WebKit/WebCore/svg/SVGDefsElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGDefsElement.h',
'../third_party/WebKit/WebCore/svg/SVGDescElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGDescElement.h',
'../third_party/WebKit/WebCore/svg/SVGDocument.cpp',
'../third_party/WebKit/WebCore/svg/SVGDocument.h',
'../third_party/WebKit/WebCore/svg/SVGDocumentExtensions.cpp',
'../third_party/WebKit/WebCore/svg/SVGDocumentExtensions.h',
'../third_party/WebKit/WebCore/svg/SVGElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGElement.h',
'../third_party/WebKit/WebCore/svg/SVGElementInstance.cpp',
'../third_party/WebKit/WebCore/svg/SVGElementInstance.h',
'../third_party/WebKit/WebCore/svg/SVGElementInstanceList.cpp',
'../third_party/WebKit/WebCore/svg/SVGElementInstanceList.h',
'../third_party/WebKit/WebCore/svg/SVGEllipseElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGEllipseElement.h',
'../third_party/WebKit/WebCore/svg/SVGException.h',
'../third_party/WebKit/WebCore/svg/SVGExternalResourcesRequired.cpp',
'../third_party/WebKit/WebCore/svg/SVGExternalResourcesRequired.h',
'../third_party/WebKit/WebCore/svg/SVGFEBlendElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEBlendElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEColorMatrixElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEColorMatrixElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEComponentTransferElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEComponentTransferElement.h',
'../third_party/WebKit/WebCore/svg/SVGFECompositeElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFECompositeElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEDiffuseLightingElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEDiffuseLightingElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEDisplacementMapElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEDisplacementMapElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEDistantLightElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEDistantLightElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEFloodElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEFloodElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEFuncAElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEFuncAElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEFuncBElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEFuncBElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEFuncGElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEFuncGElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEFuncRElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEFuncRElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEGaussianBlurElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEGaussianBlurElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEImageElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEImageElement.h',
'../third_party/WebKit/WebCore/svg/SVGFELightElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFELightElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEMergeElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEMergeElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEMergeNodeElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEMergeNodeElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEOffsetElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEOffsetElement.h',
'../third_party/WebKit/WebCore/svg/SVGFEPointLightElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFEPointLightElement.h',
'../third_party/WebKit/WebCore/svg/SVGFESpecularLightingElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFESpecularLightingElement.h',
'../third_party/WebKit/WebCore/svg/SVGFESpotLightElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFESpotLightElement.h',
'../third_party/WebKit/WebCore/svg/SVGFETileElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFETileElement.h',
'../third_party/WebKit/WebCore/svg/SVGFETurbulenceElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFETurbulenceElement.h',
'../third_party/WebKit/WebCore/svg/SVGFilterElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFilterElement.h',
'../third_party/WebKit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp',
'../third_party/WebKit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h',
'../third_party/WebKit/WebCore/svg/SVGFitToViewBox.cpp',
'../third_party/WebKit/WebCore/svg/SVGFitToViewBox.h',
'../third_party/WebKit/WebCore/svg/SVGFont.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontData.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontData.h',
'../third_party/WebKit/WebCore/svg/SVGFontElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontElement.h',
'../third_party/WebKit/WebCore/svg/SVGFontFaceElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontFaceElement.h',
'../third_party/WebKit/WebCore/svg/SVGFontFaceFormatElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontFaceFormatElement.h',
'../third_party/WebKit/WebCore/svg/SVGFontFaceNameElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontFaceNameElement.h',
'../third_party/WebKit/WebCore/svg/SVGFontFaceSrcElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontFaceSrcElement.h',
'../third_party/WebKit/WebCore/svg/SVGFontFaceUriElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGFontFaceUriElement.h',
'../third_party/WebKit/WebCore/svg/SVGForeignObjectElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGForeignObjectElement.h',
'../third_party/WebKit/WebCore/svg/SVGGElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGGElement.h',
'../third_party/WebKit/WebCore/svg/SVGGlyphElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGGlyphElement.h',
'../third_party/WebKit/WebCore/svg/SVGGlyphMap.h',
'../third_party/WebKit/WebCore/svg/SVGGradientElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGGradientElement.h',
'../third_party/WebKit/WebCore/svg/SVGHKernElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGHKernElement.h',
'../third_party/WebKit/WebCore/svg/SVGImageElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGImageElement.h',
'../third_party/WebKit/WebCore/svg/SVGImageLoader.cpp',
'../third_party/WebKit/WebCore/svg/SVGImageLoader.h',
'../third_party/WebKit/WebCore/svg/SVGLangSpace.cpp',
'../third_party/WebKit/WebCore/svg/SVGLangSpace.h',
'../third_party/WebKit/WebCore/svg/SVGLength.cpp',
'../third_party/WebKit/WebCore/svg/SVGLength.h',
'../third_party/WebKit/WebCore/svg/SVGLengthList.cpp',
'../third_party/WebKit/WebCore/svg/SVGLengthList.h',
'../third_party/WebKit/WebCore/svg/SVGLineElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGLineElement.h',
'../third_party/WebKit/WebCore/svg/SVGLinearGradientElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGLinearGradientElement.h',
'../third_party/WebKit/WebCore/svg/SVGList.h',
'../third_party/WebKit/WebCore/svg/SVGListTraits.h',
'../third_party/WebKit/WebCore/svg/SVGLocatable.cpp',
'../third_party/WebKit/WebCore/svg/SVGLocatable.h',
'../third_party/WebKit/WebCore/svg/SVGMPathElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGMPathElement.h',
'../third_party/WebKit/WebCore/svg/SVGMarkerElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGMarkerElement.h',
'../third_party/WebKit/WebCore/svg/SVGMaskElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGMaskElement.h',
'../third_party/WebKit/WebCore/svg/SVGMetadataElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGMetadataElement.h',
'../third_party/WebKit/WebCore/svg/SVGMissingGlyphElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGMissingGlyphElement.h',
'../third_party/WebKit/WebCore/svg/SVGNumberList.cpp',
'../third_party/WebKit/WebCore/svg/SVGNumberList.h',
'../third_party/WebKit/WebCore/svg/SVGPaint.cpp',
'../third_party/WebKit/WebCore/svg/SVGPaint.h',
'../third_party/WebKit/WebCore/svg/SVGParserUtilities.cpp',
'../third_party/WebKit/WebCore/svg/SVGParserUtilities.h',
'../third_party/WebKit/WebCore/svg/SVGPathElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathElement.h',
'../third_party/WebKit/WebCore/svg/SVGPathSeg.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegArc.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegArc.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegClosePath.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegClosePath.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubic.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubic.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubicSmooth.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoCubicSmooth.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadratic.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadratic.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegLineto.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegLineto.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoHorizontal.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoHorizontal.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoVertical.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegLinetoVertical.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegList.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegList.h',
'../third_party/WebKit/WebCore/svg/SVGPathSegMoveto.cpp',
'../third_party/WebKit/WebCore/svg/SVGPathSegMoveto.h',
'../third_party/WebKit/WebCore/svg/SVGPatternElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGPatternElement.h',
'../third_party/WebKit/WebCore/svg/SVGPointList.cpp',
'../third_party/WebKit/WebCore/svg/SVGPointList.h',
'../third_party/WebKit/WebCore/svg/SVGPolyElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGPolyElement.h',
'../third_party/WebKit/WebCore/svg/SVGPolygonElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGPolygonElement.h',
'../third_party/WebKit/WebCore/svg/SVGPolylineElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGPolylineElement.h',
'../third_party/WebKit/WebCore/svg/SVGPreserveAspectRatio.cpp',
'../third_party/WebKit/WebCore/svg/SVGPreserveAspectRatio.h',
'../third_party/WebKit/WebCore/svg/SVGRadialGradientElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGRadialGradientElement.h',
'../third_party/WebKit/WebCore/svg/SVGRectElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGRectElement.h',
'../third_party/WebKit/WebCore/svg/SVGRenderingIntent.h',
'../third_party/WebKit/WebCore/svg/SVGSVGElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGSVGElement.h',
'../third_party/WebKit/WebCore/svg/SVGScriptElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGScriptElement.h',
'../third_party/WebKit/WebCore/svg/SVGSetElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGSetElement.h',
'../third_party/WebKit/WebCore/svg/SVGStopElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGStopElement.h',
'../third_party/WebKit/WebCore/svg/SVGStringList.cpp',
'../third_party/WebKit/WebCore/svg/SVGStringList.h',
'../third_party/WebKit/WebCore/svg/SVGStylable.cpp',
'../third_party/WebKit/WebCore/svg/SVGStylable.h',
'../third_party/WebKit/WebCore/svg/SVGStyleElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGStyleElement.h',
'../third_party/WebKit/WebCore/svg/SVGStyledElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGStyledElement.h',
'../third_party/WebKit/WebCore/svg/SVGStyledLocatableElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGStyledLocatableElement.h',
'../third_party/WebKit/WebCore/svg/SVGStyledTransformableElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGStyledTransformableElement.h',
'../third_party/WebKit/WebCore/svg/SVGSwitchElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGSwitchElement.h',
'../third_party/WebKit/WebCore/svg/SVGSymbolElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGSymbolElement.h',
'../third_party/WebKit/WebCore/svg/SVGTRefElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTRefElement.h',
'../third_party/WebKit/WebCore/svg/SVGTSpanElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTSpanElement.h',
'../third_party/WebKit/WebCore/svg/SVGTests.cpp',
'../third_party/WebKit/WebCore/svg/SVGTests.h',
'../third_party/WebKit/WebCore/svg/SVGTextContentElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTextContentElement.h',
'../third_party/WebKit/WebCore/svg/SVGTextElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTextElement.h',
'../third_party/WebKit/WebCore/svg/SVGTextPathElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTextPathElement.h',
'../third_party/WebKit/WebCore/svg/SVGTextPositioningElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTextPositioningElement.h',
'../third_party/WebKit/WebCore/svg/SVGTitleElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGTitleElement.h',
'../third_party/WebKit/WebCore/svg/SVGTransform.cpp',
'../third_party/WebKit/WebCore/svg/SVGTransform.h',
'../third_party/WebKit/WebCore/svg/SVGTransformDistance.cpp',
'../third_party/WebKit/WebCore/svg/SVGTransformDistance.h',
'../third_party/WebKit/WebCore/svg/SVGTransformList.cpp',
'../third_party/WebKit/WebCore/svg/SVGTransformList.h',
'../third_party/WebKit/WebCore/svg/SVGTransformable.cpp',
'../third_party/WebKit/WebCore/svg/SVGTransformable.h',
'../third_party/WebKit/WebCore/svg/SVGURIReference.cpp',
'../third_party/WebKit/WebCore/svg/SVGURIReference.h',
'../third_party/WebKit/WebCore/svg/SVGUnitTypes.h',
'../third_party/WebKit/WebCore/svg/SVGUseElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGUseElement.h',
'../third_party/WebKit/WebCore/svg/SVGViewElement.cpp',
'../third_party/WebKit/WebCore/svg/SVGViewElement.h',
'../third_party/WebKit/WebCore/svg/SVGViewSpec.cpp',
'../third_party/WebKit/WebCore/svg/SVGViewSpec.h',
'../third_party/WebKit/WebCore/svg/SVGZoomAndPan.cpp',
'../third_party/WebKit/WebCore/svg/SVGZoomAndPan.h',
'../third_party/WebKit/WebCore/svg/SVGZoomEvent.cpp',
'../third_party/WebKit/WebCore/svg/SVGZoomEvent.h',
'../third_party/WebKit/WebCore/svg/SynchronizableTypeWrapper.h',
'../third_party/WebKit/WebCore/workers/GenericWorkerTask.h',
'../third_party/WebKit/WebCore/workers/Worker.cpp',
'../third_party/WebKit/WebCore/workers/Worker.h',
'../third_party/WebKit/WebCore/workers/WorkerContext.cpp',
'../third_party/WebKit/WebCore/workers/WorkerContext.h',
'../third_party/WebKit/WebCore/workers/WorkerContextProxy.h',
'../third_party/WebKit/WebCore/workers/WorkerLoaderProxy.h',
'../third_party/WebKit/WebCore/workers/WorkerLocation.cpp',
'../third_party/WebKit/WebCore/workers/WorkerLocation.h',
'../third_party/WebKit/WebCore/workers/WorkerMessagingProxy.cpp',
'../third_party/WebKit/WebCore/workers/WorkerMessagingProxy.h',
'../third_party/WebKit/WebCore/workers/WorkerObjectProxy.h',
'../third_party/WebKit/WebCore/workers/WorkerRunLoop.cpp',
'../third_party/WebKit/WebCore/workers/WorkerRunLoop.h',
'../third_party/WebKit/WebCore/workers/WorkerScriptLoader.cpp',
'../third_party/WebKit/WebCore/workers/WorkerScriptLoader.h',
'../third_party/WebKit/WebCore/workers/WorkerScriptLoaderClient.h',
'../third_party/WebKit/WebCore/workers/WorkerThread.cpp',
'../third_party/WebKit/WebCore/workers/WorkerThread.h',
'../third_party/WebKit/WebCore/xml/DOMParser.cpp',
'../third_party/WebKit/WebCore/xml/DOMParser.h',
'../third_party/WebKit/WebCore/xml/NativeXPathNSResolver.cpp',
'../third_party/WebKit/WebCore/xml/NativeXPathNSResolver.h',
'../third_party/WebKit/WebCore/xml/XMLHttpRequest.cpp',
'../third_party/WebKit/WebCore/xml/XMLHttpRequest.h',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestException.h',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestProgressEvent.h',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestUpload.cpp',
'../third_party/WebKit/WebCore/xml/XMLHttpRequestUpload.h',
'../third_party/WebKit/WebCore/xml/XMLSerializer.cpp',
'../third_party/WebKit/WebCore/xml/XMLSerializer.h',
'../third_party/WebKit/WebCore/xml/XPathEvaluator.cpp',
'../third_party/WebKit/WebCore/xml/XPathEvaluator.h',
'../third_party/WebKit/WebCore/xml/XPathException.h',
'../third_party/WebKit/WebCore/xml/XPathExpression.cpp',
'../third_party/WebKit/WebCore/xml/XPathExpression.h',
'../third_party/WebKit/WebCore/xml/XPathExpressionNode.cpp',
'../third_party/WebKit/WebCore/xml/XPathExpressionNode.h',
'../third_party/WebKit/WebCore/xml/XPathFunctions.cpp',
'../third_party/WebKit/WebCore/xml/XPathFunctions.h',
'../third_party/WebKit/WebCore/xml/XPathNSResolver.cpp',
'../third_party/WebKit/WebCore/xml/XPathNSResolver.h',
'../third_party/WebKit/WebCore/xml/XPathNamespace.cpp',
'../third_party/WebKit/WebCore/xml/XPathNamespace.h',
'../third_party/WebKit/WebCore/xml/XPathNodeSet.cpp',
'../third_party/WebKit/WebCore/xml/XPathNodeSet.h',
'../third_party/WebKit/WebCore/xml/XPathParser.cpp',
'../third_party/WebKit/WebCore/xml/XPathParser.h',
'../third_party/WebKit/WebCore/xml/XPathPath.cpp',
'../third_party/WebKit/WebCore/xml/XPathPath.h',
'../third_party/WebKit/WebCore/xml/XPathPredicate.cpp',
'../third_party/WebKit/WebCore/xml/XPathPredicate.h',
'../third_party/WebKit/WebCore/xml/XPathResult.cpp',
'../third_party/WebKit/WebCore/xml/XPathResult.h',
'../third_party/WebKit/WebCore/xml/XPathStep.cpp',
'../third_party/WebKit/WebCore/xml/XPathStep.h',
'../third_party/WebKit/WebCore/xml/XPathUtil.cpp',
'../third_party/WebKit/WebCore/xml/XPathUtil.h',
'../third_party/WebKit/WebCore/xml/XPathValue.cpp',
'../third_party/WebKit/WebCore/xml/XPathValue.h',
'../third_party/WebKit/WebCore/xml/XPathVariableReference.cpp',
'../third_party/WebKit/WebCore/xml/XPathVariableReference.h',
'../third_party/WebKit/WebCore/xml/XSLImportRule.cpp',
'../third_party/WebKit/WebCore/xml/XSLImportRule.h',
'../third_party/WebKit/WebCore/xml/XSLStyleSheet.cpp',
'../third_party/WebKit/WebCore/xml/XSLStyleSheet.h',
'../third_party/WebKit/WebCore/xml/XSLTExtensions.cpp',
'../third_party/WebKit/WebCore/xml/XSLTExtensions.h',
'../third_party/WebKit/WebCore/xml/XSLTProcessor.cpp',
'../third_party/WebKit/WebCore/xml/XSLTProcessor.h',
'../third_party/WebKit/WebCore/xml/XSLTUnicodeSort.cpp',
'../third_party/WebKit/WebCore/xml/XSLTUnicodeSort.h',
# For WebCoreSystemInterface, Mac-only.
'../third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.m',
],
'sources/': [
# Don't build bindings for storage/database.
['exclude', '/third_party/WebKit/WebCore/storage/Storage[^/]*\\.idl$'],
# SVG_FILTERS only.
['exclude', '/third_party/WebKit/WebCore/svg/SVG(FE|Filter)[^/]*\\.idl$'],
# Fortunately, many things can be excluded by using broad patterns.
# Exclude things that don't apply to the Chromium platform on the basis
# of their enclosing directories and tags at the ends of their
# filenames.
['exclude', '/(android|cairo|cf|cg|curl|gtk|linux|mac|opentype|posix|qt|soup|symbian|win|wx)/'],
['exclude', '(?<!Chromium)(SVGAllInOne|Android|Cairo|CF|CG|Curl|Gtk|Linux|Mac|OpenType|POSIX|Posix|Qt|Safari|Soup|Symbian|Win|Wx)\\.(cpp|mm?)$'],
# JSC-only.
['exclude', '/third_party/WebKit/WebCore/inspector/JavaScript[^/]*\\.cpp$'],
# ENABLE_OFFLINE_WEB_APPLICATIONS only.
['exclude', '/third_party/WebKit/WebCore/loader/appcache/'],
# SVG_FILTERS only.
['exclude', '/third_party/WebKit/WebCore/(platform|svg)/graphics/filters/'],
['exclude', '/third_party/WebKit/WebCore/svg/Filter[^/]*\\.cpp$'],
['exclude', '/third_party/WebKit/WebCore/svg/SVG(FE|Filter)[^/]*\\.cpp$'],
# Exclude some, but not all, of storage.
['exclude', '/third_party/WebKit/WebCore/storage/(Local|Session)Storage[^/]*\\.cpp$'],
],
'sources!': [
# Custom bindings in bindings/v8/custom exist for these.
'../third_party/WebKit/WebCore/dom/EventListener.idl',
'../third_party/WebKit/WebCore/dom/EventTarget.idl',
'../third_party/WebKit/WebCore/html/VoidCallback.idl',
# JSC-only.
'../third_party/WebKit/WebCore/inspector/JavaScriptCallFrame.idl',
# ENABLE_OFFLINE_WEB_APPLICATIONS only.
'../third_party/WebKit/WebCore/loader/appcache/DOMApplicationCache.idl',
# ENABLE_GEOLOCATION only.
'../third_party/WebKit/WebCore/page/Geolocation.idl',
'../third_party/WebKit/WebCore/page/Geoposition.idl',
'../third_party/WebKit/WebCore/page/PositionCallback.idl',
'../third_party/WebKit/WebCore/page/PositionError.idl',
'../third_party/WebKit/WebCore/page/PositionErrorCallback.idl',
# Bindings with custom Objective-C implementations.
'../third_party/WebKit/WebCore/page/AbstractView.idl',
# TODO(mark): I don't know why all of these are excluded.
# Extra SVG bindings to exclude.
'../third_party/WebKit/WebCore/svg/ElementTimeControl.idl',
'../third_party/WebKit/WebCore/svg/SVGAnimatedPathData.idl',
'../third_party/WebKit/WebCore/svg/SVGComponentTransferFunctionElement.idl',
'../third_party/WebKit/WebCore/svg/SVGExternalResourcesRequired.idl',
'../third_party/WebKit/WebCore/svg/SVGFitToViewBox.idl',
'../third_party/WebKit/WebCore/svg/SVGHKernElement.idl',
'../third_party/WebKit/WebCore/svg/SVGLangSpace.idl',
'../third_party/WebKit/WebCore/svg/SVGLocatable.idl',
'../third_party/WebKit/WebCore/svg/SVGStylable.idl',
'../third_party/WebKit/WebCore/svg/SVGTests.idl',
'../third_party/WebKit/WebCore/svg/SVGTransformable.idl',
'../third_party/WebKit/WebCore/svg/SVGViewSpec.idl',
'../third_party/WebKit/WebCore/svg/SVGZoomAndPan.idl',
# TODO(mark): I don't know why these are excluded, either.
# Someone (me?) should figure it out and add appropriate comments.
'../third_party/WebKit/WebCore/css/CSSUnknownRule.idl',
# A few things can't be excluded by patterns. List them individually.
# Use history/BackForwardListChromium.cpp instead.
'../third_party/WebKit/WebCore/history/BackForwardList.cpp',
# Use loader/icon/IconDatabaseNone.cpp instead.
'../third_party/WebKit/WebCore/loader/icon/IconDatabase.cpp',
# Use platform/KURLGoogle.cpp instead.
'../third_party/WebKit/WebCore/platform/KURL.cpp',
# Use platform/MIMETypeRegistryChromium.cpp instead.
'../third_party/WebKit/WebCore/platform/MIMETypeRegistry.cpp',
# USE_NEW_THEME only.
'../third_party/WebKit/WebCore/platform/Theme.cpp',
# Exclude some, but not all, of plugins.
'../third_party/WebKit/WebCore/plugins/PluginDatabase.cpp',
'../third_party/WebKit/WebCore/plugins/PluginInfoStore.cpp',
'../third_party/WebKit/WebCore/plugins/PluginMainThreadScheduler.cpp',
'../third_party/WebKit/WebCore/plugins/PluginPackage.cpp',
'../third_party/WebKit/WebCore/plugins/PluginStream.cpp',
'../third_party/WebKit/WebCore/plugins/PluginView.cpp',
'../third_party/WebKit/WebCore/plugins/npapi.cpp',
# Use LinkHashChromium.cpp instead
'../third_party/WebKit/WebCore/platform/LinkHash.cpp',
# Don't build these.
# TODO(mark): I don't know exactly why these are excluded. It would
# be nice to provide more explicit comments. Some of these do actually
# compile.
'../third_party/WebKit/WebCore/dom/StaticStringList.cpp',
'../third_party/WebKit/WebCore/loader/icon/IconFetcher.cpp',
'../third_party/WebKit/WebCore/loader/UserStyleSheetLoader.cpp',
'../third_party/WebKit/WebCore/platform/graphics/GraphicsLayer.cpp',
'../third_party/WebKit/WebCore/platform/graphics/RenderLayerBacking.cpp',
'../third_party/WebKit/WebCore/platform/graphics/RenderLayerCompositor.cpp',
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
'<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
'port/bindings/v8',
'<@(webcore_include_dirs)',
],
'mac_framework_dirs': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
],
},
'export_dependent_settings': [
'wtf',
'../build/temp_gyp/googleurl.gyp:googleurl',
'../skia/skia.gyp:skia',
'../third_party/npapi/npapi.gyp:npapi',
],
'link_settings': {
'mac_bundle_resources': [
'../third_party/WebKit/WebCore/Resources/aliasCursor.png',
'../third_party/WebKit/WebCore/Resources/cellCursor.png',
'../third_party/WebKit/WebCore/Resources/contextMenuCursor.png',
'../third_party/WebKit/WebCore/Resources/copyCursor.png',
'../third_party/WebKit/WebCore/Resources/crossHairCursor.png',
'../third_party/WebKit/WebCore/Resources/eastResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/eastWestResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/helpCursor.png',
'../third_party/WebKit/WebCore/Resources/linkCursor.png',
'../third_party/WebKit/WebCore/Resources/missingImage.png',
'../third_party/WebKit/WebCore/Resources/moveCursor.png',
'../third_party/WebKit/WebCore/Resources/noDropCursor.png',
'../third_party/WebKit/WebCore/Resources/noneCursor.png',
'../third_party/WebKit/WebCore/Resources/northEastResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/northEastSouthWestResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/northResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/northSouthResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/northWestResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/northWestSouthEastResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/notAllowedCursor.png',
'../third_party/WebKit/WebCore/Resources/progressCursor.png',
'../third_party/WebKit/WebCore/Resources/southEastResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/southResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/southWestResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/verticalTextCursor.png',
'../third_party/WebKit/WebCore/Resources/waitCursor.png',
'../third_party/WebKit/WebCore/Resources/westResizeCursor.png',
'../third_party/WebKit/WebCore/Resources/zoomInCursor.png',
'../third_party/WebKit/WebCore/Resources/zoomOutCursor.png',
],
},
'hard_dependency': 1,
'mac_framework_dirs': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
],
'msvs_disabled_warnings': [
4138, 4244, 4291, 4305, 4344, 4355, 4521, 4099,
],
'scons_line_length' : 1,
'xcode_settings': {
# Some Mac-specific parts of WebKit won't compile without having this
# prefix header injected.
# TODO(mark): make this a first-class setting.
'GCC_PREFIX_HEADER': '../third_party/WebKit/WebCore/WebCorePrefix.h',
},
'conditions': [
['javascript_engine=="v8"', {
'dependencies': [
'../v8/tools/gyp/v8.gyp:v8',
],
'export_dependent_settings': [
'../v8/tools/gyp/v8.gyp:v8',
],
}],
['OS=="linux"', {
'dependencies': [
'../build/linux/system.gyp:fontconfig',
'../build/linux/system.gyp:gtk',
],
'sources': [
'../third_party/WebKit/WebCore/platform/graphics/chromium/VDMXParser.cpp',
'../third_party/WebKit/WebCore/platform/graphics/chromium/HarfbuzzSkia.cpp',
],
'sources!': [
# Not yet ported to Linux.
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontCustomPlatformData.cpp',
],
'sources/': [
# Cherry-pick files excluded by the broader regular expressions above.
['include', 'third_party/WebKit/WebCore/platform/chromium/KeyCodeConversionGtk\\.cpp$'],
['include', 'third_party/WebKit/WebCore/platform/graphics/chromium/FontCacheLinux\\.cpp$'],
['include', 'third_party/WebKit/WebCore/platform/graphics/chromium/FontLinux\\.cpp$'],
['include', 'third_party/WebKit/WebCore/platform/graphics/chromium/FontPlatformDataLinux\\.cpp$'],
['include', 'third_party/WebKit/WebCore/platform/graphics/chromium/GlyphPageTreeNodeLinux\\.cpp$'],
['include', 'third_party/WebKit/WebCore/platform/graphics/chromium/SimpleFontDataLinux\\.cpp$'],
],
'cflags': [
# -Wno-multichar for:
# .../WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp
'-Wno-multichar',
# WebCore does not work with strict aliasing enabled.
# https://bugs.webkit.org/show_bug.cgi?id=25864
'-fno-strict-aliasing',
],
}],
['OS=="mac"', {
'actions': [
{
# Allow framework-style #include of
# <WebCore/WebCoreSystemInterface.h>.
'action_name': 'WebCoreSystemInterface.h',
'inputs': [
'../third_party/WebKit/WebCore/platform/mac/WebCoreSystemInterface.h',
],
'outputs': [
'<(INTERMEDIATE_DIR)/WebCore/WebCoreSystemInterface.h',
],
'action': ['cp', '<@(_inputs)', '<@(_outputs)'],
},
],
'include_dirs': [
'../third_party/WebKit/WebKitLibraries',
],
'sources/': [
# Additional files from the WebCore Mac build that are presently
# used in the WebCore Chromium Mac build too.
# The Mac build is PLATFORM_CF but does not use CFNetwork.
['include', 'CF\\.cpp$'],
['exclude', '/network/cf/'],
# The Mac build is PLATFORM_CG too. platform/graphics/cg is the
# only place that CG files we want to build are located, and not
# all of them even have a CG suffix, so just add them by a
# regexp matching their directory.
['include', '/platform/graphics/cg/[^/]*(?<!Win)?\\.(cpp|mm?)$'],
# Use native Mac font code from WebCore.
['include', '/platform/(graphics/)?mac/[^/]*Font[^/]*\\.(cpp|mm?)$'],
# Cherry-pick some files that can't be included by broader regexps.
# Some of these are used instead of Chromium platform files, see
# the specific exclusions in the "sources!" list below.
['include', '/third_party/WebKit/WebCore/loader/archive/cf/LegacyWebArchive\\.cpp$'],
['include', '/third_party/WebKit/WebCore/platform/graphics/mac/ColorMac\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/graphics/mac/GlyphPageTreeNodeMac\\.cpp$'],
['include', '/third_party/WebKit/WebCore/platform/graphics/mac/GraphicsContextMac\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/mac/BlockExceptions\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/mac/LocalCurrentGraphicsContext\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/mac/PurgeableBufferMac\\.cpp$'],
['include', '/third_party/WebKit/WebCore/platform/mac/ScrollbarThemeMac\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/mac/WebCoreSystemInterface\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/mac/WebCoreTextRenderer\\.mm$'],
['include', '/third_party/WebKit/WebCore/platform/text/mac/ShapeArabic\\.c$'],
['include', '/third_party/WebKit/WebCore/platform/text/mac/String(Impl)?Mac\\.mm$'],
['include', '/third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface\\.m$'],
],
'sources!': [
# The Mac currently uses FontCustomPlatformData.cpp from
# platform/graphics/mac, included by regex above, instead.
'../third_party/WebKit/WebCore/platform/graphics/chromium/FontCustomPlatformData.cpp',
# The Mac currently uses ScrollbarThemeMac.mm, included by regex
# above, instead of ScrollbarThemeChromium.cpp.
'../third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromium.cpp',
# These Skia files aren't currently built on the Mac, which uses
# CoreGraphics directly for this portion of graphics handling.
'../third_party/WebKit/WebCore/platform/graphics/skia/FloatPointSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/FloatRectSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/GradientSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageBufferSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/ImageSourceSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/IntPointSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/IntRectSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/PatternSkia.cpp',
'../third_party/WebKit/WebCore/platform/graphics/skia/TransformationMatrixSkia.cpp',
# RenderThemeChromiumSkia is not used on mac since RenderThemeChromiumMac
# does not reference the Skia code that is used by Windows and Linux.
'../third_party/WebKit/WebCore/rendering/RenderThemeChromiumSkia.cpp',
# Skia image-decoders are also not used on mac. CoreGraphics
# is used directly instead.
'../third_party/WebKit/WebCore/platform/image-decoders/ImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageReader.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/bmp/BMPImageReader.h',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageReader.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/gif/GIFImageReader.h',
'../third_party/WebKit/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/ico/ICOImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/png/PNGImageDecoder.h',
'../third_party/WebKit/WebCore/platform/image-decoders/skia/ImageDecoderSkia.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/xbm/XBMImageDecoder.cpp',
'../third_party/WebKit/WebCore/platform/image-decoders/xbm/XBMImageDecoder.h',
],
'link_settings': {
'libraries': [
'../third_party/WebKit/WebKitLibraries/libWebKitSystemInterfaceLeopard.a',
],
},
'direct_dependent_settings': {
'include_dirs': [
'../third_party/WebKit/WebKitLibraries',
'../third_party/WebKit/WebKit/mac/WebCoreSupport',
],
},
}],
['OS=="win"', {
'dependencies': ['../build/win/system.gyp:cygwin'],
'sources/': [
['exclude', 'Posix\\.cpp$'],
['include', '/opentype/'],
['include', '/TransparencyWin\\.cpp$'],
['include', '/SkiaFontWin\\.cpp$'],
],
'defines': [
'__PRETTY_FUNCTION__=__FUNCTION__',
'DISABLE_ACTIVEX_TYPE_CONVERSION_MPLAYER2',
],
# This is needed because Event.h in this directory is blocked
# by a system header on windows.
'include_dirs++': ['../third_party/WebKit/WebCore/dom'],
'direct_dependent_settings': {
'include_dirs+++': ['../third_party/WebKit/WebCore/dom'],
},
}],
['OS!="linux"', {'sources/': [['exclude', '(Gtk|Linux)\\.cpp$']]}],
['OS!="mac"', {'sources/': [['exclude', 'Mac\\.(cpp|mm?)$']]}],
['OS!="win"', {
'sources/': [
['exclude', 'Win\\.cpp$'],
['exclude', '/(Windows|Uniscribe)[^/]*\\.cpp$']
],
}],
],
},
{
'target_name': 'webkit',
'type': '<(library)',
'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
'dependencies': [
'webcore',
],
'include_dirs': [
'api/public',
'api/src',
],
'defines': [
'WEBKIT_IMPLEMENTATION',
],
'sources': [
'api/public/gtk/WebInputEventFactory.h',
'api/public/x11/WebScreenInfoFactory.h',
'api/public/mac/WebInputEventFactory.h',
'api/public/mac/WebScreenInfoFactory.h',
'api/public/WebCache.h',
'api/public/WebCanvas.h',
'api/public/WebClipboard.h',
'api/public/WebColor.h',
'api/public/WebCommon.h',
'api/public/WebConsoleMessage.h',
'api/public/WebCString.h',
'api/public/WebCursorInfo.h',
'api/public/WebData.h',
'api/public/WebDataSource.h',
'api/public/WebDragData.h',
'api/public/WebFindOptions.h',
'api/public/WebForm.h',
'api/public/WebHistoryItem.h',
'api/public/WebHTTPBody.h',
'api/public/WebImage.h',
'api/public/WebInputEvent.h',
'api/public/WebKit.h',
'api/public/WebKitClient.h',
'api/public/WebMediaPlayer.h',
'api/public/WebMediaPlayerClient.h',
'api/public/WebMimeRegistry.h',
'api/public/WebNavigationType.h',
'api/public/WebNonCopyable.h',
'api/public/WebPluginListBuilder.h',
'api/public/WebPoint.h',
'api/public/WebRect.h',
'api/public/WebScreenInfo.h',
'api/public/WebScriptSource.h',
'api/public/WebSize.h',
'api/public/WebString.h',
'api/public/WebURL.h',
'api/public/WebURLError.h',
'api/public/WebURLLoader.h',
'api/public/WebURLLoaderClient.h',
'api/public/WebURLRequest.h',
'api/public/WebURLResponse.h',
'api/public/WebVector.h',
'api/public/win/WebInputEventFactory.h',
'api/public/win/WebSandboxSupport.h',
'api/public/win/WebScreenInfoFactory.h',
'api/public/win/WebScreenInfoFactory.h',
'api/src/ChromiumBridge.cpp',
'api/src/ChromiumCurrentTime.cpp',
'api/src/ChromiumThreading.cpp',
'api/src/gtk/WebFontInfo.cpp',
'api/src/gtk/WebFontInfo.h',
'api/src/gtk/WebInputEventFactory.cpp',
'api/src/x11/WebScreenInfoFactory.cpp',
'api/src/mac/WebInputEventFactory.mm',
'api/src/mac/WebScreenInfoFactory.mm',
'api/src/MediaPlayerPrivateChromium.cpp',
'api/src/ResourceHandle.cpp',
'api/src/TemporaryGlue.h',
'api/src/WebCache.cpp',
'api/src/WebCString.cpp',
'api/src/WebCursorInfo.cpp',
'api/src/WebData.cpp',
'api/src/WebDragData.cpp',
'api/src/WebForm.cpp',
'api/src/WebHistoryItem.cpp',
'api/src/WebHTTPBody.cpp',
'api/src/WebImageCG.cpp',
'api/src/WebImageSkia.cpp',
'api/src/WebInputEvent.cpp',
'api/src/WebKit.cpp',
'api/src/WebMediaPlayerClientImpl.cpp',
'api/src/WebMediaPlayerClientImpl.h',
'api/src/WebPluginListBuilderImpl.cpp',
'api/src/WebPluginListBuilderImpl.h',
'api/src/WebString.cpp',
'api/src/WebURL.cpp',
'api/src/WebURLRequest.cpp',
'api/src/WebURLRequestPrivate.h',
'api/src/WebURLResponse.cpp',
'api/src/WebURLResponsePrivate.h',
'api/src/WebURLError.cpp',
'api/src/WrappedResourceRequest.h',
'api/src/WrappedResourceResponse.h',
'api/src/win/WebInputEventFactory.cpp',
'api/src/win/WebScreenInfoFactory.cpp',
],
'conditions': [
['OS=="linux"', {
'dependencies': [
'../build/linux/system.gyp:x11',
'../build/linux/system.gyp:gtk',
],
'include_dirs': [
'api/public/x11',
'api/public/gtk',
'api/public/linux',
],
}, { # else: OS!="linux"
'sources/': [
['exclude', '/gtk/'],
['exclude', '/x11/'],
],
}],
['OS=="mac"', {
'include_dirs': [
'api/public/mac',
],
'sources/': [
['exclude', 'Skia\\.cpp$'],
],
}, { # else: OS!="mac"
'sources/': [
['exclude', '/mac/'],
['exclude', 'CG\\.cpp$'],
],
}],
['OS=="win"', {
'include_dirs': [
'api/public/win',
],
}, { # else: OS!="win"
'sources/': [['exclude', '/win/']],
}],
],
},
{
'target_name': 'webkit_resources',
'type': 'none',
'msvs_guid': '0B469837-3D46-484A-AFB3-C5A6C68730B9',
'variables': {
'grit_path': '../tools/grit/grit.py',
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit',
},
'actions': [
{
'action_name': 'webkit_resources',
'variables': {
'input_path': 'glue/webkit_resources.grd',
},
'inputs': [
'<(input_path)',
],
'outputs': [
'<(grit_out_dir)/grit/webkit_resources.h',
'<(grit_out_dir)/webkit_resources.pak',
'<(grit_out_dir)/webkit_resources.rc',
],
'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(grit_out_dir)'],
'message': 'Generating resources from <(input_path)',
},
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
},
'conditions': [
['OS=="win"', {
'dependencies': ['../build/win/system.gyp:cygwin'],
}],
],
},
{
'target_name': 'webkit_strings',
'type': 'none',
'msvs_guid': '60B43839-95E6-4526-A661-209F16335E0E',
'variables': {
'grit_path': '../tools/grit/grit.py',
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/webkit',
},
'actions': [
{
'action_name': 'webkit_strings',
'variables': {
'input_path': 'glue/webkit_strings.grd',
},
'inputs': [
'<(input_path)',
],
'outputs': [
'<(grit_out_dir)/grit/webkit_strings.h',
'<(grit_out_dir)/webkit_strings_da.pak',
'<(grit_out_dir)/webkit_strings_da.rc',
'<(grit_out_dir)/webkit_strings_en-US.pak',
'<(grit_out_dir)/webkit_strings_en-US.rc',
'<(grit_out_dir)/webkit_strings_he.pak',
'<(grit_out_dir)/webkit_strings_he.rc',
'<(grit_out_dir)/webkit_strings_zh-TW.pak',
'<(grit_out_dir)/webkit_strings_zh-TW.rc',
],
'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(grit_out_dir)'],
'message': 'Generating resources from <(input_path)',
},
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
},
'conditions': [
['OS=="win"', {
'dependencies': ['../build/win/system.gyp:cygwin'],
}],
],
},
{
'target_name': 'glue',
'type': '<(library)',
'msvs_guid': 'C66B126D-0ECE-4CA2-B6DC-FA780AFBBF09',
'dependencies': [
'../net/net.gyp:net',
'inspector_resources',
'webcore',
'webkit',
'webkit_resources',
'webkit_strings',
],
'actions': [
{
'action_name': 'webkit_version',
'inputs': [
'build/webkit_version.py',
'../third_party/WebKit/WebCore/Configurations/Version.xcconfig',
],
'outputs': [
'<(INTERMEDIATE_DIR)/webkit_version.h',
],
'action': ['python', '<@(_inputs)', '<(INTERMEDIATE_DIR)'],
},
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
'sources': [
# This list contains all .h, .cc, and .mm files in glue except for
# those in the test subdirectory and those with unittest in in their
# names.
'glue/devtools/devtools_rpc.cc',
'glue/devtools/devtools_rpc.h',
'glue/devtools/devtools_rpc_js.h',
'glue/devtools/bound_object.cc',
'glue/devtools/bound_object.h',
'glue/devtools/debugger_agent.h',
'glue/devtools/debugger_agent_impl.cc',
'glue/devtools/debugger_agent_impl.h',
'glue/devtools/debugger_agent_manager.cc',
'glue/devtools/debugger_agent_manager.h',
'glue/devtools/dom_agent.h',
'glue/devtools/dom_agent_impl.cc',
'glue/devtools/dom_agent_impl.h',
'glue/devtools/tools_agent.h',
'glue/media/media_resource_loader_bridge_factory.cc',
'glue/media/media_resource_loader_bridge_factory.h',
'glue/media/simple_data_source.cc',
'glue/media/simple_data_source.h',
'glue/media/video_renderer_impl.cc',
'glue/media/video_renderer_impl.h',
'glue/plugins/mozilla_extensions.cc',
'glue/plugins/mozilla_extensions.h',
'glue/plugins/nphostapi.h',
'glue/plugins/gtk_plugin_container.h',
'glue/plugins/gtk_plugin_container.cc',
'glue/plugins/gtk_plugin_container_manager.h',
'glue/plugins/gtk_plugin_container_manager.cc',
'glue/plugins/plugin_constants_win.h',
'glue/plugins/plugin_host.cc',
'glue/plugins/plugin_host.h',
'glue/plugins/plugin_instance.cc',
'glue/plugins/plugin_instance.h',
'glue/plugins/plugin_lib.cc',
'glue/plugins/plugin_lib.h',
'glue/plugins/plugin_lib_linux.cc',
'glue/plugins/plugin_lib_mac.mm',
'glue/plugins/plugin_lib_win.cc',
'glue/plugins/plugin_list.cc',
'glue/plugins/plugin_list.h',
'glue/plugins/plugin_list_linux.cc',
'glue/plugins/plugin_list_mac.mm',
'glue/plugins/plugin_list_win.cc',
'glue/plugins/plugin_stream.cc',
'glue/plugins/plugin_stream.h',
'glue/plugins/plugin_stream_posix.cc',
'glue/plugins/plugin_stream_url.cc',
'glue/plugins/plugin_stream_url.h',
'glue/plugins/plugin_stream_win.cc',
'glue/plugins/plugin_string_stream.cc',
'glue/plugins/plugin_string_stream.h',
'glue/plugins/plugin_stubs.cc',
'glue/plugins/webplugin_delegate_impl.cc',
'glue/plugins/webplugin_delegate_impl.h',
'glue/plugins/webplugin_delegate_impl_gtk.cc',
'glue/plugins/webplugin_delegate_impl_mac.mm',
'glue/alt_404_page_resource_fetcher.cc',
'glue/alt_404_page_resource_fetcher.h',
'glue/alt_error_page_resource_fetcher.cc',
'glue/alt_error_page_resource_fetcher.h',
'glue/autocomplete_input_listener.h',
'glue/autofill_form.cc',
'glue/autofill_form.h',
'glue/back_forward_list_client_impl.cc',
'glue/back_forward_list_client_impl.h',
'glue/chrome_client_impl.cc',
'glue/chrome_client_impl.h',
'glue/chromium_bridge_impl.cc',
'glue/context_menu.h',
'glue/context_menu_client_impl.cc',
'glue/context_menu_client_impl.h',
'glue/cpp_binding_example.cc',
'glue/cpp_binding_example.h',
'glue/cpp_bound_class.cc',
'glue/cpp_bound_class.h',
'glue/cpp_variant.cc',
'glue/cpp_variant.h',
'glue/dom_operations.cc',
'glue/dom_operations.h',
'glue/dom_operations_private.h',
'glue/dom_serializer.cc',
'glue/dom_serializer.h',
'glue/dom_serializer_delegate.h',
'glue/dragclient_impl.cc',
'glue/dragclient_impl.h',
'glue/editor_client_impl.cc',
'glue/editor_client_impl.h',
'glue/entity_map.cc',
'glue/entity_map.h',
'glue/event_conversion.cc',
'glue/event_conversion.h',
'glue/feed_preview.cc',
'glue/feed_preview.h',
'glue/form_data.h',
'glue/glue_accessibility_object.cc',
'glue/glue_accessibility_object.h',
'glue/glue_serialize.cc',
'glue/glue_serialize.h',
'glue/glue_util.cc',
'glue/glue_util.h',
'glue/image_decoder.cc',
'glue/image_decoder.h',
'glue/image_resource_fetcher.cc',
'glue/image_resource_fetcher.h',
'glue/inspector_client_impl.cc',
'glue/inspector_client_impl.h',
'glue/localized_strings.cc',
'glue/multipart_response_delegate.cc',
'glue/multipart_response_delegate.h',
'glue/npruntime_util.cc',
'glue/npruntime_util.h',
'glue/password_autocomplete_listener.cc',
'glue/password_autocomplete_listener.h',
'glue/password_form.h',
'glue/password_form_dom_manager.cc',
'glue/password_form_dom_manager.h',
'glue/resource_fetcher.cc',
'glue/resource_fetcher.h',
'glue/resource_loader_bridge.cc',
'glue/resource_loader_bridge.h',
'glue/resource_type.h',
'glue/scoped_clipboard_writer_glue.h',
'glue/searchable_form_data.cc',
'glue/searchable_form_data.h',
'glue/simple_webmimeregistry_impl.cc',
'glue/simple_webmimeregistry_impl.h',
'glue/stacking_order_iterator.cc',
'glue/stacking_order_iterator.h',
'glue/temporary_glue.cc',
'glue/webaccessibility.h',
'glue/webaccessibilitymanager.h',
'glue/webaccessibilitymanager_impl.cc',
'glue/webaccessibilitymanager_impl.h',
'glue/webappcachecontext.cc',
'glue/webappcachecontext.h',
'glue/webclipboard_impl.cc',
'glue/webclipboard_impl.h',
'glue/webcursor.cc',
'glue/webcursor.h',
'glue/webcursor_gtk.cc',
'glue/webcursor_gtk_data.h',
'glue/webcursor_mac.mm',
'glue/webcursor_win.cc',
'glue/webdatasource_impl.cc',
'glue/webdatasource_impl.h',
'glue/webdevtoolsagent.h',
'glue/webdevtoolsagent_delegate.h',
'glue/webdevtoolsagent_impl.cc',
'glue/webdevtoolsagent_impl.h',
'glue/webdevtoolsclient.h',
'glue/webdevtoolsclient_delegate.h',
'glue/webdevtoolsclient_impl.cc',
'glue/webdevtoolsclient_impl.h',
'glue/webdropdata.cc',
'glue/webdropdata_win.cc',
'glue/webdropdata.h',
'glue/webframe.h',
'glue/webframe_impl.cc',
'glue/webframe_impl.h',
'glue/webframeloaderclient_impl.cc',
'glue/webframeloaderclient_impl.h',
'glue/webkit_glue.cc',
'glue/webkit_glue.h',
'glue/webkitclient_impl.cc',
'glue/webkitclient_impl.h',
'glue/webmediaplayer_impl.h',
'glue/webmediaplayer_impl.cc',
'glue/webmenurunner_mac.h',
'glue/webmenurunner_mac.mm',
'glue/webplugin.h',
'glue/webplugin_delegate.cc',
'glue/webplugin_delegate.h',
'glue/webplugin_impl.cc',
'glue/webplugin_impl.h',
'glue/webplugininfo.h',
'glue/webpreferences.h',
'glue/webtextinput.h',
'glue/webtextinput_impl.cc',
'glue/webtextinput_impl.h',
'glue/webthemeengine_impl_win.cc',
'glue/weburlloader_impl.cc',
'glue/weburlloader_impl.h',
'glue/webview.h',
'glue/webview_delegate.cc',
'glue/webview_delegate.h',
'glue/webview_impl.cc',
'glue/webview_impl.h',
'glue/webwidget.h',
'glue/webwidget_delegate.h',
'glue/webwidget_impl.cc',
'glue/webwidget_impl.h',
'glue/webworker_impl.cc',
'glue/webworker_impl.h',
'glue/webworkerclient_impl.cc',
'glue/webworkerclient_impl.h',
'glue/window_open_disposition.h',
],
# When glue is a dependency, it needs to be a hard dependency.
# Dependents may rely on files generated by this target or one of its
# own hard dependencies.
'hard_dependency': 1,
'export_dependent_settings': [
'webcore',
],
'conditions': [
['OS=="linux"', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
'export_dependent_settings': [
# Users of webcursor.h need the GTK include path.
'../build/linux/system.gyp:gtk',
],
'sources!': [
'glue/plugins/plugin_stubs.cc',
],
}, { # else: OS!="linux"
'sources/': [['exclude', '_(linux|gtk)(_data)?\\.cc$'],
['exclude', r'/gtk_']],
}],
['OS!="mac"', {
'sources/': [['exclude', '_mac\\.(cc|mm)$']]
}],
['OS!="win"', {
'sources/': [['exclude', '_win\\.cc$']],
'sources!': [
# TODO(port): Mac uses webplugin_delegate_impl_mac.cc and GTK uses
# webplugin_delegate_impl_gtk.cc. Seems like this should be
# renamed webplugin_delegate_impl_win.cc, then we could get rid
# of the explicit exclude.
'glue/plugins/webplugin_delegate_impl.cc',
# These files are Windows-only now but may be ported to other
# platforms.
'glue/glue_accessibility_object.cc',
'glue/glue_accessibility_object.h',
'glue/plugins/mozilla_extensions.cc',
'glue/plugins/webplugin_delegate_impl.cc',
'glue/webaccessibility.h',
'glue/webaccessibilitymanager.h',
'glue/webaccessibilitymanager_impl.cc',
'glue/webaccessibilitymanager_impl.cc',
'glue/webaccessibilitymanager_impl.h',
'glue/webthemeengine_impl_win.cc',
],
}, { # else: OS=="win"
'sources/': [['exclude', '_posix\\.cc$']],
'dependencies': [
'../build/win/system.gyp:cygwin',
'activex_shim/activex_shim.gyp:activex_shim',
'default_plugin/default_plugin.gyp:default_plugin',
],
'sources!': [
'glue/plugins/plugin_stubs.cc',
],
}],
],
},
{
'target_name': 'inspector_resources',
'type': 'none',
'msvs_guid': '5330F8EE-00F5-D65C-166E-E3150171055D',
'copies': [
{
'destination': '<(PRODUCT_DIR)/resources/inspector',
'files': [
'glue/devtools/js/base.js',
'glue/devtools/js/debugger_agent.js',
'glue/devtools/js/devtools.css',
'glue/devtools/js/devtools.html',
'glue/devtools/js/devtools.js',
'glue/devtools/js/devtools_callback.js',
'glue/devtools/js/devtools_host_stub.js',
'glue/devtools/js/dom_agent.js',
'glue/devtools/js/inject.js',
'glue/devtools/js/inspector_controller.js',
'glue/devtools/js/inspector_controller_impl.js',
'glue/devtools/js/profiler_processor.js',
'glue/devtools/js/tests.js',
'../third_party/WebKit/WebCore/inspector/front-end/BottomUpProfileDataGridTree.js',
'../third_party/WebKit/WebCore/inspector/front-end/Breakpoint.js',
'../third_party/WebKit/WebCore/inspector/front-end/BreakpointsSidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/CallStackSidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/Console.js',
'../third_party/WebKit/WebCore/inspector/front-end/Database.js',
'../third_party/WebKit/WebCore/inspector/front-end/DatabaseQueryView.js',
'../third_party/WebKit/WebCore/inspector/front-end/DatabasesPanel.js',
'../third_party/WebKit/WebCore/inspector/front-end/DatabaseTableView.js',
'../third_party/WebKit/WebCore/inspector/front-end/DataGrid.js',
'../third_party/WebKit/WebCore/inspector/front-end/ElementsPanel.js',
'../third_party/WebKit/WebCore/inspector/front-end/ElementsTreeOutline.js',
'../third_party/WebKit/WebCore/inspector/front-end/FontView.js',
'../third_party/WebKit/WebCore/inspector/front-end/ImageView.js',
'../third_party/WebKit/WebCore/inspector/front-end/inspector.css',
'../third_party/WebKit/WebCore/inspector/front-end/inspector.html',
'../third_party/WebKit/WebCore/inspector/front-end/inspector.js',
'../third_party/WebKit/WebCore/inspector/front-end/KeyboardShortcut.js',
'../third_party/WebKit/WebCore/inspector/front-end/MetricsSidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/Object.js',
'../third_party/WebKit/WebCore/inspector/front-end/ObjectPropertiesSection.js',
'../third_party/WebKit/WebCore/inspector/front-end/Panel.js',
'../third_party/WebKit/WebCore/inspector/front-end/PanelEnablerView.js',
'../third_party/WebKit/WebCore/inspector/front-end/Placard.js',
'../third_party/WebKit/WebCore/inspector/front-end/ProfilesPanel.js',
'../third_party/WebKit/WebCore/inspector/front-end/ProfileDataGridTree.js',
'../third_party/WebKit/WebCore/inspector/front-end/ProfileView.js',
'../third_party/WebKit/WebCore/inspector/front-end/PropertiesSection.js',
'../third_party/WebKit/WebCore/inspector/front-end/PropertiesSidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/Resource.js',
'../third_party/WebKit/WebCore/inspector/front-end/ResourceCategory.js',
'../third_party/WebKit/WebCore/inspector/front-end/ResourcesPanel.js',
'../third_party/WebKit/WebCore/inspector/front-end/ResourceView.js',
'../third_party/WebKit/WebCore/inspector/front-end/ScopeChainSidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/Script.js',
'../third_party/WebKit/WebCore/inspector/front-end/ScriptsPanel.js',
'../third_party/WebKit/WebCore/inspector/front-end/ScriptView.js',
'../third_party/WebKit/WebCore/inspector/front-end/SidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/SidebarTreeElement.js',
'../third_party/WebKit/WebCore/inspector/front-end/SourceFrame.js',
'../third_party/WebKit/WebCore/inspector/front-end/SourceView.js',
'../third_party/WebKit/WebCore/inspector/front-end/StylesSidebarPane.js',
'../third_party/WebKit/WebCore/inspector/front-end/TextPrompt.js',
'../third_party/WebKit/WebCore/inspector/front-end/TopDownProfileDataGridTree.js',
'../third_party/WebKit/WebCore/inspector/front-end/treeoutline.js',
'../third_party/WebKit/WebCore/inspector/front-end/utilities.js',
'../third_party/WebKit/WebCore/inspector/front-end/View.js',
'../v8/tools/codemap.js',
'../v8/tools/consarray.js',
'../v8/tools/csvparser.js',
'../v8/tools/logreader.js',
'../v8/tools/profile.js',
'../v8/tools/profile_view.js',
'../v8/tools/splaytree.js',
],
},
{
'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
'files': [
'../third_party/WebKit/WebCore/inspector/front-end/Images/back.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/checker.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/clearConsoleButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/closeButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/consoleButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/database.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/databasesIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/databaseTable.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/debuggerContinue.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/debuggerPause.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/debuggerStepInto.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/debuggerStepOut.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/debuggerStepOver.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallDown.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallDownBlack.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallDownWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallRight.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallRightBlack.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallRightDown.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallRightDownBlack.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallRightDownWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/disclosureTriangleSmallRightWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/dockButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/elementsIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/enableButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/errorIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/errorMediumIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/excludeButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/focusButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/forward.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/glossyHeader.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/glossyHeaderPressed.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/glossyHeaderSelected.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/glossyHeaderSelectedPressed.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/goArrow.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/graphLabelCalloutLeft.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/graphLabelCalloutRight.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/largerResourcesButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/nodeSearchButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/paneBottomGrow.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/paneBottomGrowActive.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/paneGrowHandleLine.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/pauseOnExceptionButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/percentButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/profileGroupIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/profileIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/profilesIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/profileSmallIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/profilesSilhouette.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/radioDot.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/recordButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/reloadButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourceCSSIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourceDocumentIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourceDocumentIconSmall.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourceJSIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourcePlainIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourcePlainIconSmall.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourcesIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourcesSilhouette.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourcesSizeGraphIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/resourcesTimeGraphIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/scriptsIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/scriptsSilhouette.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/searchSmallBlue.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/searchSmallBrightBlue.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/searchSmallGray.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/searchSmallWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/segment.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/segmentEnd.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/segmentHover.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/segmentHoverEnd.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/segmentSelected.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/segmentSelectedEnd.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/splitviewDimple.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/splitviewDividerBackground.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarBackground.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarBottomBackground.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarButtons.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarMenuButton.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarMenuButtonSelected.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarResizerHorizontal.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/statusbarResizerVertical.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillBlue.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillGray.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillGreen.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillOrange.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillPurple.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillRed.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelineHollowPillYellow.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillBlue.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillGray.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillGreen.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillOrange.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillPurple.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillRed.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/timelinePillYellow.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/tipBalloon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/tipBalloonBottom.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/tipIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/tipIconPressed.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/toolbarItemSelected.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/treeDownTriangleBlack.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/treeDownTriangleWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/treeRightTriangleBlack.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/treeRightTriangleWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/treeUpTriangleBlack.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/treeUpTriangleWhite.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/userInputIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/userInputPreviousIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/warningIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/warningMediumIcon.png',
'../third_party/WebKit/WebCore/inspector/front-end/Images/warningsErrors.png',
],
},
],
},
],
}
| 62.80835
| 300
| 0.685884
| 32,465
| 308,389
| 6.375389
| 0.088187
| 0.177798
| 0.283626
| 0.394155
| 0.84678
| 0.829406
| 0.407528
| 0.240592
| 0.109964
| 0.052962
| 0
| 0.002643
| 0.153475
| 308,389
| 4,909
| 301
| 62.821145
| 0.790193
| 0.024395
| 0
| 0.129881
| 0
| 0.001698
| 0.795982
| 0.776664
| 0
| 0
| 0
| 0.000204
| 0.000424
| 1
| 0
| true
| 0.001486
| 0.001061
| 0
| 0.001061
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2391968441c9e20eac6405364d69583c136f0c4f
| 203
|
py
|
Python
|
codedigger/user/response.py
|
jyothiprakashpanaik/Backend
|
9ab1b57436a0a1a6197777c0b36c842e71121d3a
|
[
"Apache-2.0"
] | 17
|
2020-10-07T22:40:37.000Z
|
2022-01-20T07:19:09.000Z
|
codedigger/user/response.py
|
jyothiprakashpanaik/Backend
|
9ab1b57436a0a1a6197777c0b36c842e71121d3a
|
[
"Apache-2.0"
] | 42
|
2021-06-03T01:58:04.000Z
|
2022-01-31T14:49:22.000Z
|
codedigger/user/response.py
|
jyothiprakashpanaik/Backend
|
9ab1b57436a0a1a6197777c0b36c842e71121d3a
|
[
"Apache-2.0"
] | 25
|
2020-10-06T17:55:19.000Z
|
2021-12-09T07:56:50.000Z
|
from rest_framework.response import Response
from rest_framework import status
def response(Data, Status=status.HTTP_200_OK):
return Response(data={'status': 'OK', 'result': Data}, status=Status)
| 25.375
| 73
| 0.768473
| 28
| 203
| 5.428571
| 0.464286
| 0.197368
| 0.223684
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01676
| 0.118227
| 203
| 7
| 74
| 29
| 0.832402
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
23b3a28a0aeac86092ba9f4c83f6710b7085a977
| 5,716
|
py
|
Python
|
toxic.py
|
TXVIRUS/TX_SMS
|
6715eaeef7cb87e0399c6eff0cb0537a9cee528b
|
[
"MIT"
] | null | null | null |
toxic.py
|
TXVIRUS/TX_SMS
|
6715eaeef7cb87e0399c6eff0cb0537a9cee528b
|
[
"MIT"
] | null | null | null |
toxic.py
|
TXVIRUS/TX_SMS
|
6715eaeef7cb87e0399c6eff0cb0537a9cee528b
|
[
"MIT"
] | null | null | null |
#Compiled By Mohammad Alamin
#https://github.com/AK27HBD/
import marshal
exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xee\x06\x00\x00x\x9c\x9dWM\x97\xaaH\x12\xdd\xf7\xafx\xe7\xcc\xa2\xbb7s\x00\xf5\xcd\xb0\x14,0Q,\x01I>vd\xa6\r\x08\x89L)(\xfc\xfa\x89\x04\xb5\xaa|S=\xddo\x91\xa7,L"#\xee\xbdq3\xfc\x87~\xe4u^\xee\xd97\xfb\x98%\x9c\'\xec\xdb\xbcLx^\xfd\x92\xf3\xfa\xf8v\xfeF\x92\xd3\xfe\xfb\xf4\x97\xfduO\x7f\x1b?\xff\x93|\x9f\xb2==\xb2\xfdo\xe4W\xd4\xd9\x07\xb1\xbc@\xbe\x90\x89%%\xc1\xacB/r\x1b/\xf1)\x0e\xedUr{\x8e\x96VIC\\\xd2\x89\xdb\xeb<\xee\x88"\xa5\x94\xe3+\x0bp\xcf\x96v\x03\xcf;\x16l$\x16\xc2\xbeN\xabI\xa8\xb5\xb4rRG1\xfa\xd8/\x1b\xaa`X\xa5\x94\x84q\xe9\x9a\xe5\x81\xcd\xeb"\x0e\xa2\x14\xce\x93(\xff\xf7q\xb5;\xae\x90\xaeq\x88\xf1\x86\x16R\xba\xd2-j/\xec>\xe8\x8ds\xb8\x98\xf7\xb6|\xeam.\xefv\xd8N\x9dB\xdd8\x05\xf6\xd0\x8b\x15#\xc3\xdd\x06/\xe5b\x8dc\xcb/\xf1.4g\xcb$t\x8f,@\xe9k\xae\x1d\xd9\xd2\xbd\xd0\xfe\xd8\xae\x15V33\x93\xa3|v\x80\xdc[ld\x81\x87-\xec\xcb\xd7\x06\x9bPk\xc0\xba(\x90\xee\xef\x9c\x86w&NC\x02\xbfe\xcbLIBK\xa6\xb0\xd7\x87\x1abo\xfe\x1d\x99\x99\xc4\x96\xf3\xef\xebN\x95\xf6\xcb\xb8\xa6\x15\xee\xd7\xdcx\x83\xcf\x19\xf3fgb\\\x1b\x97\x1b\x878\xb0Z\xa2\x9c>\xe72a\x13\xd6\xcdx\x14l\xca\x88\xabm\xd2\x8d9\xb1\x856M\x82\xcd\xe3\xac]\xa0\x1e\xa3@>G\x01\xe0\x18\\3\x12\x94\xcd\xdf\x8e\xd3\xa1Z\xcf\xe7)]Z5\xa9\x9cc\\\xe1C\xd2\x15\x02\xeb\x0b\xe5e\xc3\xf44G\xb9\xf8\x7f>\xac\xfb>T^\x1b\xf1\xfc\xc1\x8fS\x7f\xde?\xe8f\xb3\x8cC\xf7\xa6\x19\xe0x\x89%\xe0\xde\xa4\\=#\x03\xf7q\x88V\xa4\xc2\xe7\x88\xe3Np*4\xb22\xc7}\xef\xfcjw~\xaf\xc4\xc7\r3a\xaf\x11\xd7\xd1\xc4\xad\x89\xa7\xbd\xb2@\xce!\x0e\xe07\xcfW^\xb1\x02<Z\x069\x89x"\xb7\x0f\xf1\x0cR\xb9%\xcd\xb5\x1d\tA#\x8f}\xc7\x14\xf2\xad\xf5\xf4x\xb8k\x1d\x87\xd6\xc9vj\x99\xf2K\xba\xf5\xe6y\xb2t%\xba\xb4\x05\x97\x195\x8b\xc6\xdeig\x88-C.}\xa4d\xc0\xdf\xa5\x89\x14\xf5\xbcV\xaeg\xda\xc9\x19\x03}\xad\xc3MI+\xc8S\xf1\xdb(\xd4\xea\xf5$\x92\xd6\x8a\x01\xef\xa4-\x13\xdf\x15x\x9a\x84\x1b\xc0\x03\xad\x12\x13g1\xd4E\xbb\xb9\x8a^6\x19\xf4\x82E\xaaM\t\x0b4Y*\xb1\xefB\xbd\x8e\xc0\xf8\x18\x07F\x11\x87V\x1ft\xd6\x82(3)\x86\x1a\xd6\xd8\x9dQ\xd3\xcfC\x0f\xde\xd7\xad\x8c.\xb5\x13\xf0\x9b\xc1\xbb-\xc9\xd5\xffPEmPZ\x17Q\xe8f\x02\x17kr\xca!_\xc0\xd280\x1d}G:\xaaV\xcaL&\x01\xf4f~\xaaP~\xc9\xd9\xb2\xbc\xc4\x9e\xf8\xce\xba$\xa6\xda\xc4\x9e\xa5Z\x97\xe3\x8dW\xbb@\x13\xdc\x91\x05Z1\x81U>\x9c\xfbQwe\x94\xcb\x03V\x11h"V\xfc&\xaa\xf0\xf7}>\xe0\xd7\xb2\x03j\xc9\xc4\xbd\xac\'P#wr\x9dge\x14\x007\x95=\xe8\xe0KO\xd0\xd3\xfa\xe3\xde\x9f\xc5`\xcc\x97\xfd\x0bU\xda\x11\xde/\xd1Ah\xe04}\xd5\xe9\xdb]\x8f\xab\x8e\xe6\x7fxt\xa5\xe7\xf6M\x17\x1b\xa1\x87^\xafD\xdd\xf6\xb3.\xa0\xd3\xa8\xa8\xb5\xa5\xca\xa6\xa5\xe0\x17"\xe75\xdf\xb4\xc4SK8\xffD\xc0_\xe0o\x0f\xb9\x16\xeb@\x95\xe8B\x1dq\xddIp.\xfap.\xe2d\xa2\x95\x94\x1b\x12\x99 5\xe2\xceY`\x85\xd2\x07\xf6\x87\x11{g\xc0~\xa3?a\xaf\x18\x97\xc4\x9b\xe5PWE:\xb9\'\xcaU\x1e0\xa8\xec\x9bFG\r\x0e\x9aT\xaem\xac\x94\xcd\x8d\x87\xdb9\xef\x1a\x1bb\xffE=n\x8cS\xee\x0c\x9a\x82\x1e\xd5e\x7f\x1fj%*\xa5\x01\'8\xebB\x80?\xc0\xbe&\xca\xb4M*\xc0%G\xab\xd84\xa4h\xe7\x88=\xd5\xbe\xb3\x04n\x1d\xecii>\xe8.#\xe6%_\xeb\xf3\x9c\x84\x9b\x9a*n3\xf0tH\xa7Vwnn}\xfffu\x9fty\xc3\xc6\x1f\xb1\xf1~\xc0F\xd4\xde\xc4f\x06^i\xbcE\xe1\xe6\x08X_\x84?\xdd\xb8\x1a\xf4\xf9\x03\x0e\xde\xdf\xc0\x01\xff,\x0e\xfe\x1d\x87Q\x17\xfe\xbd\x1f\x87\xfe|{]\xa4\x9f{\xb4\x92*\xfd\x07MDc\xdd\xcf\xfd\xa8\xc42\xe1\xd03J:j\x80[\xc5\xa8\x13u\xf4*\x85\x01\xff\x03\xf6\xe5Nv\x9d\xed\xe4\xee]\xf8\x8fD\xc1\xb3\xad\xf7\xc1\xa3\xfa\x08\xf2\xd4\x16\x80]\xe9\x053\xa1\xe7\x1e\xee\xd3\x9aq\xfc\x02\xfd\x06>[\xbc\xef\x95\x7f\x16\x8b\xe8\x8e\xc5\x19\xfa\xbf\x8f\xcdi.\xfc\xfd\xff\xf3N\xc7\xfa\xbb\xff\xd9\x13]\x1c\xb8\xd3\x91\xe7Y\x1e\xeb\xaab{\xaa\x0c\x9cv\xa0\xff:\x06l\xa9\xfe\xb1N\xfa\xd7\xeb\xec\x19A\x05\xc4\x85\xfb\x05\xee\xc63\x1e\xbc\xd3b\xc2\xcb\x107.\xd4\xbc\x02\x96\x06\xdc\x83j\xb3Vj\xe8\xc9)x\x9e\x0b\xde\xf42\xb9\xfb1\xe1\xc6y\xf4\xdb\x1f\xbc8\xbd\xfb\xd4\xee~W\x0e~\xf5\xd9\xabD\x9f\x88Z\x18/\x0f7\xdf\x1e\xea\xbd\xe9\xe4\xf0\x19\xa7t\xc0\xe9\xf5\xd9;\xc6y\xa1O\x96\x0c\xfa`\xd6\xdez"\x84\x19E\xf3_\x8a\xd6\x91\xad\x8d\x03\xb5\x83\xb7\xdd}5\x88\x82k-8\x8bw\xea"1\x8d\x06tt\xdab\xcaE\x0f\x89\xfd\xe3\x0cXB.\x8e\x1as\xe3D\x15\x7f\xf8.\xf67\xdb]8\xcc\x8c5\xec)\xb6\xa1\x98\x0f}N\x15\xb9\xa7\xca\xac\x88\xc0\xd7\xb7\xbbt\x8c\xc3\xe1>\x08\\{\xf0\xd0\x83\x0c\xf3\xcc\xb5\x8f\xbd\xd8&\x932#Kw\xe6/\xad\x16\xea\x86\xfeC\xaaU\xc8-\xf8\xf0\t\xfag\x0b\xba\xfd\xe4\xab\xa0}\x198\xea\xf6x\xc4\x13\xb4Y\x80\xff\x8a\xde\xe2.W;\xf0\x04i\x1bd\x12\t.\xf9\x03\xb3\xc9\xfb\\\x8b\xf4\x88\x0fs\xeeDk\x85\x0f\xd0K\r\xf9\xa14\xf1`\x9e\xcd5\x98\x0fg\x15\xcc~\xc7\xfb\x0cr\x9bY\x1fs\xd1\x879\xd5!\xa0\x1d\xc0"\xc5\x8aQ3]\xb3\x98\xcezd<\xce\xaa\t\xa7\xe9\xab\xae\x01\x0fe\xbf\xce\xa7\x8dX\xc83(\xf4\xc88\xafq\xdcS\xc1\xdf\x87\xb9{]\xc1L\r~$\xb8]\xeb\xda\xc3\x93\xa0\xa6\xfb\x9dyB\xe6\xa0;u\xe83\xef>\xd7i]\x1cn.\xc3\xbd\xf8E<\x1bt\xf8\xaew\xf9\x11[<\x1f{V\xbe\xdd\xadO1\xbb\xa7\x98\x9c\x95L\xcf\x86\xbbt\xe5\x80\x8e\xe7\xb0\x06L\xe7\xc3\xcc\xf6\xe97\x83\xa9\xf6\xb7\xbd\xd2\x17\xf5\x88\xe7\xc3\xb9\xdb`\xa8Kz\x8a)\xffIL\xf9\x8b\x98\xf2SL\xf9)\xa6\xf2\'1\x95/b*O1\x15\x11\xf3\xc1\xe3b\xf0\x1a\xc0\xcb\x90\xe3a&\x9c\xc1o*\xf0\x98\xe5\xe0i\xc0\xd9#\x8e\xfa\xc1\x9f>s\xb9\xa3\x83.\xdec\xa6\xcf1\xab8\x1c\xb9|\xd5\x8b\xaft9\xfc~\xf2\x0b\xecb\x1f\xef\xb0\x01\x9f%\xfc\x8a\xf5Q\x7f\xb02\xe4\xa1\xfa\xd7\xdf\x7f\xff/3\xe1\xea\xcd)\x03\xda\x04zlib\xda\x04exec\xda\ndecompress\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x17AK27HBD\nMohammad Alamin\xda\x08<module>\x01\x00\x00\x00s\x04\x00\x00\x00\x08\x01\x12\x01'))
| 1,429
| 5,643
| 0.737229
| 1,300
| 5,716
| 3.237692
| 0.365385
| 0.039914
| 0.042766
| 0.042766
| 0.014968
| 0.011404
| 0.011404
| 0.011404
| 0.011404
| 0.011404
| 0
| 0.228842
| 0.001575
| 5,716
| 4
| 5,643
| 1,429
| 0.508674
| 0.009447
| 0
| 0
| 0
| 2.5
| 0.6702
| 0.670023
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
23ceee01cd43d88b331111e7f0a06381a7ba539a
| 4,867
|
py
|
Python
|
stdplugins/warnbun.py
|
dqanshi/PornHub
|
162a7053ca7f2c0b3617b852559cfaf0502d94a7
|
[
"Apache-2.0"
] | 55
|
2019-07-13T15:57:54.000Z
|
2021-09-20T16:50:42.000Z
|
stdplugins/warnbun.py
|
dqanshi/PornHub
|
162a7053ca7f2c0b3617b852559cfaf0502d94a7
|
[
"Apache-2.0"
] | 3
|
2019-04-20T08:34:01.000Z
|
2019-05-11T21:37:02.000Z
|
stdplugins/warnbun.py
|
dqanshi/PornHub
|
162a7053ca7f2c0b3617b852559cfaf0502d94a7
|
[
"Apache-2.0"
] | 450
|
2019-07-12T13:18:41.000Z
|
2022-03-29T18:47:42.000Z
|
"""Commands:
.warn0
.warn1
.warn2
.warn3
.gbun
.fw
.ocb"""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from uniborg.util import admin_cmd
@borg.on(admin_cmd("warn1"))
async def _(event):
if event.fwd_from:
return
mentions = "__You Have__ **1/3** __warnings...__\n**Watch out!....**\n**Reason for warn:** __Porn Demand__"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
""".admin Plugin for @UniBorg"""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from uniborg.util import admin_cmd
@borg.on(admin_cmd("warn2"))
async def _(event):
if event.fwd_from:
return
mentions = "__You Have__ **2/3** __warnings...__\n**Watch out!....**\n**Reason for warn:** __Porn Demand__"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
""".admin Plugin for @UniBorg"""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from uniborg.util import admin_cmd
@borg.on(admin_cmd("warn3"))
async def _(event):
if event.fwd_from:
return
mentions = "__You Have__ **3/3** __warnings...__\n**Watch out!....**\n**Reason for warn:** __Porn Demand__"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
""".admin Plugin for @UniBorg"""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from uniborg.util import admin_cmd
@borg.on(admin_cmd("warn0"))
async def _(event):
if event.fwd_from:
return
mentions = "**Warning Resetted By Admin...**\n__You Have__ **0/3** __warnings__"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
""".admin Plugin for @UniBorg"""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from uniborg.util import admin_cmd
@borg.on(admin_cmd("gbun"))
async def _(event):
if event.fwd_from:
return
mentions = "__Warning!! User__ 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 __By Admin...__\n**Reason:** __Potential Porn Addict.__"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
@borg.on(admin_cmd("ocb"))
async def _(event):
if event.fwd_from:
return
mentions = "**Warning..\n\nBattery Below 10%, Please Charge Your Phone**"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
@borg.on(admin_cmd("fw"))
async def _(event):
if event.fwd_from:
return
mentions = "`U Got A FloodWait:\nReason:telethon.errors.rpcerrorlist.FloodWaitError: A wait of 546578265716823 seconds is required (caused by EditMessageRequest)`"
chat = await event.get_input_chat()
async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
mentions += f""
reply_message = None
if event.reply_to_msg_id:
reply_message = await event.get_reply_message()
await reply_message.reply(mentions)
else:
await event.reply(mentions)
await event.delete()
| 31.4
| 167
| 0.700021
| 631
| 4,867
| 5.147385
| 0.147385
| 0.086207
| 0.056034
| 0.030172
| 0.904865
| 0.904865
| 0.904865
| 0.904865
| 0.904865
| 0.892241
| 0
| 0.008429
| 0.195603
| 4,867
| 154
| 168
| 31.603896
| 0.821201
| 0.010684
| 0
| 0.888
| 0
| 0.032
| 0.144841
| 0.038453
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.16
| 0
| 0.216
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f1bf40d181dbb6180d8b102d7f6e138c1ef8cbb4
| 287
|
py
|
Python
|
tests/emulated_modules/sub_module_3/__init__.py
|
alisaifee/hiro
|
e93551b575c10729766b077bb1a79b1f87436a4e
|
[
"MIT"
] | 5
|
2017-03-16T06:55:38.000Z
|
2021-04-07T15:42:23.000Z
|
tests/emulated_modules/sub_module_3/__init__.py
|
alisaifee/hiro
|
e93551b575c10729766b077bb1a79b1f87436a4e
|
[
"MIT"
] | 8
|
2017-01-12T12:26:58.000Z
|
2020-05-26T02:20:57.000Z
|
tests/emulated_modules/sub_module_3/__init__.py
|
alisaifee/hiro
|
e93551b575c10729766b077bb1a79b1f87436a4e
|
[
"MIT"
] | 4
|
2016-06-20T11:32:14.000Z
|
2019-06-27T07:14:44.000Z
|
from .sub_sample_3_1 import (
sub_sample_3_1_now, sub_sample_3_1_today, sub_sample_3_1_sleep,
sub_sample_3_1_time, sub_sample_3_1_gmtime
)
__all__ = [
"sub_sample_3_1_now", "sub_sample_3_1_today", "sub_sample_3_1_sleep",
"sub_sample_3_1_time", "sub_sample_3_1_gmtime"
]
| 28.7
| 73
| 0.790941
| 57
| 287
| 3.157895
| 0.210526
| 0.55
| 0.611111
| 0.672222
| 0.866667
| 0.866667
| 0.866667
| 0.866667
| 0.866667
| 0.866667
| 0
| 0.087649
| 0.125436
| 287
| 9
| 74
| 31.888889
| 0.629482
| 0
| 0
| 0
| 0
| 0
| 0.341463
| 0.073171
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
f1d2c16ce3fc0642725a5a15e77aa680414e1ccb
| 6,551
|
py
|
Python
|
src/genie/libs/parser/iosxe/tests/ShowLoggingOnboardRpActiveTemperatureContinuous/cli/equal/golden_output_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/iosxe/tests/ShowLoggingOnboardRpActiveTemperatureContinuous/cli/equal/golden_output_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/iosxe/tests/ShowLoggingOnboardRpActiveTemperatureContinuous/cli/equal/golden_output_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | null | null | null |
expected_output = {
'application': 'TEMPERATURE',
'temperature_sensors': {
'CPU board': {
'id': 0,
'history': {
'11/10/2019 05:35:04': 51,
'11/10/2019 05:45:04': 51,
'11/10/2019 06:35:04': 49,
'11/10/2019 06:40:04': 49
}
},
'FANIO Board': {
'id': 1,
'history': {
'11/10/2019 05:35:04': 48,
'11/10/2019 05:45:04': 48,
'11/10/2019 06:35:04': 48,
'11/10/2019 06:40:04': 48
}
},
'Front Panel Le': {
'id': 2,
'history': {
'11/10/2019 05:35:04': 37,
'11/10/2019 05:45:04': 37,
'11/10/2019 06:35:04': 37,
'11/10/2019 06:40:04': 37
}
},
'GB_local': {
'id': 3,
'history': {
'11/10/2019 05:35:04': 56,
'11/10/2019 05:45:04': 54,
'11/10/2019 06:35:04': 54,
'11/10/2019 06:40:04': 54
}
},
'CPUcore:0': {
'id': 4,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:1': {
'id': 5,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:2': {
'id': 6,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:3': {
'id': 7,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:4': {
'id': 8,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:5': {
'id': 9,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:6': {
'id': 10,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'CPUcore:7': {
'id': 11,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'S1_I_00': {
'id': 12,
'history': {
'11/10/2019 05:35:04': 54,
'11/10/2019 05:45:04': 54,
'11/10/2019 06:35:04': 54,
'11/10/2019 06:40:04': 54
}
},
'S1_I_01': {
'id': 13,
'history': {
'11/10/2019 05:35:04': 53,
'11/10/2019 05:45:04': 53,
'11/10/2019 06:35:04': 53,
'11/10/2019 06:40:04': 53
}
},
'S1_I_02': {
'id': 14,
'history': {
'11/10/2019 05:35:04': 55,
'11/10/2019 05:45:04': 55,
'11/10/2019 06:35:04': 55,
'11/10/2019 06:40:04': 55
}
},
'S1_I_03': {
'id': 15,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 58
}
},
'S1_I_04': {
'id': 16,
'history': {
'11/10/2019 05:35:04': 58,
'11/10/2019 05:45:04': 58,
'11/10/2019 06:35:04': 58,
'11/10/2019 06:40:04': 56
}
},
'S1_I_05': {
'id': 17,
'history': {
'11/10/2019 05:35:04': 54,
'11/10/2019 05:45:04': 54,
'11/10/2019 06:35:04': 54,
'11/10/2019 06:40:04': 54
}
},
'S1_I_06': {
'id': 18,
'history': {
'11/10/2019 05:35:04': 51,
'11/10/2019 05:45:04': 51,
'11/10/2019 06:35:04': 51,
'11/10/2019 06:40:04': 51
}
},
'S1_I_07': {
'id': 19,
'history': {
'11/10/2019 05:35:04': 46,
'11/10/2019 05:45:04': 46,
'11/10/2019 06:35:04': 46,
'11/10/2019 06:40:04': 46
}
},
'S1_I_08': {
'id': 20,
'history': {
'11/10/2019 05:35:04': 50,
'11/10/2019 05:45:04': 50,
'11/10/2019 06:35:04': 50,
'11/10/2019 06:40:04': 50
}
},
'S1_I_09': {
'id': 21,
'history': {
'11/10/2019 05:35:04': 49,
'11/10/2019 05:45:04': 49,
'11/10/2019 06:35:04': 49,
'11/10/2019 06:40:04': 49
}
},
'S1_H_10': {
'id': 22,
'history': {
'11/10/2019 05:35:04': 52,
'11/10/2019 05:45:04': 52,
'11/10/2019 06:35:04': 52,
'11/10/2019 06:40:04': 52
}
},
'S1_H_11': {
'id': 23,
'history': {
'11/10/2019 05:35:04': 52,
'11/10/2019 05:45:04': 52,
'11/10/2019 06:35:04': 52,
'11/10/2019 06:40:04': 52
}
}
}
}
| 29.376682
| 43
| 0.310182
| 811
| 6,551
| 2.472256
| 0.08508
| 0.191521
| 0.383042
| 0.239402
| 0.871322
| 0.871322
| 0.710723
| 0.626933
| 0.626933
| 0.626933
| 0
| 0.512512
| 0.518089
| 6,551
| 222
| 44
| 29.509009
| 0.122585
| 0
| 0
| 0.40724
| 0
| 0
| 0.347939
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.