<commit_before><h1>Display KML Network Links</h1>

<p>Display KML with a network link and show network messages as the data is automatically refreshed.</p>

<p><img src="DisplayKMLNetworkLinks.png"/></p>

<h2>How to use the sample</h2>

<p>The data shown should refresh automatically every few seconds. Network messages will be displayed in the list view as they come in.</p>

<h2>How it works</h2>

<p>To show KML with network links and display network messages:</p>

<ol>
    <li>Create a <code>KmlNetworkDataset</code> from a KML source which has network links.</li>
    <li>Construct a <code>KmlLayer</code> with the dataset and add the layer as an operational layer.</li>
    <li>To listen for network messages, add a <code>KmlNetworkLinkMessageReceivedListener</code> on the dataset.</li>
</ol>

<h2>Relevant API</h2>

<ul>
<li>KmlDataset</li>
<li>KmlLayer</li>
<li>KmlNetworkLinkMessageReceivedEvent</li>
</ul>
<commit_msg>clarify when the network message is received<commit_after><h1>Display KML Network Links</h1>

<p>Display KML with a network link and show network messages.</p>

<p><img src="DisplayKMLNetworkLinks.png"/></p>

<h2>How to use the sample</h2>

<p>The data shown should refresh automatically every few seconds. A network message will be displayed when the dataset is loaded.</p>

<h2>How it works</h2>

<p>To show KML with network links and display network messages:</p>

<ol>
    <li>Create a <code>KmlNetworkDataset</code> from a KML source which has network links.</li>
    <li>Construct a <code>KmlLayer</code> with the dataset and add the layer as an operational layer.</li>
    <li>To listen for network messages, add a <code>KmlNetworkLinkMessageReceivedListener</code> on the dataset.</li>
</ol>

<h2>Relevant API</h2>

<ul>
<li>KmlDataset</li>
<li>KmlLayer</li>
<li>KmlNetworkLinkMessageReceivedEvent</li>
</ul>

{'fraction_non_alphanumeric': 0.12236058473199783, 'fraction_numerical': 0.008662696264212236, 'mean_word_length': 4.980582524271845, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4671326', 'n_tokens_mistral': 604, 'n_tokens_neox': 603, 'n_words': 212}