<commit_before><!DOCTYPE html>
<html>
<head>
    <title>Offline Editing with the ArcGIS API for JavaScript</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <style>
        body {
            font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
        }
        h1 {
            background-color: #0078c5;
            color: white;
            padding: 1em;
            margin-bottom:1em;
            border-radius: 10px;
        }
        pre code {
            padding: 10px 15px;
            border: 1px solid #ccc;
            background: white;
            color: #444;
            /* margin: 1em 0 0;*/
            font-size: 12px;
            font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
            box-shadow: 0 0 15px #ddd;
            -moz-box-shadow: 0 0 15px #ddd;
            -webkit-box-shadow: 0 0 15px #ddd;

            display: block;
            border-radius: 5px;
        }
        .banner {
            background-color: #0078c5;
            color: white;
            padding: 1em;
            margin-bottom:1em;
            border-radius: 10px;
        }

    </style>
</head>
<body>

</body>
<a href="https://github.com/ArcGIS/offline-editor-js"><img style="position: absolute; top: 0; right: 0; border: 0;"
    src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<h1 class="title">ArcGIS Offline Editing Library for JavaScript</h1>
<p>This is an experimental library for exploring offline editing use cases and workflows when using ArcGIS Feature Services.
    It is currently designed as a stand-alone library so it will work with or without the ArcGIS API for JavaScript and no
modifications will be needed. This is important if you built an application to work directly with the ArcGIS REST API.</p>
<p><b>Why edit offline with JavaScript?</b></p>
<p>Many "in the field" use cases for mapping apps require that workers go into areas with limited, intermittent or no cellular network connectivity.
 Until now, offline has been limited to native SDKs on smartphones and tablets. This library will hopefully lead the way in changing
that perception.</p>
<p><b>What types of features will it work with?</b></p>
<p>The library currently works with esri.geometry.Geometry.Point, Polygon and Polyline.</p>
<p><b>How does it work?</b></p>
<p>It takes the place of the existing esri.layers.FeatureLayer.applyEdit() function. When an edit is being submitted, the library automatically detects if the app is online or offline.
If the app is online then edits are simply passed through. If an offline condition occurs, then the library will start storing changes.
In the background it will re-check the internet connection on a regular basis. Once the internet is restored, the library will handle resubmitting
any editing changes made offline.</p>
<p>The library also contains a built-in indexing system that allows for tracking and validation of edits. The index keeps track of whether or not
and edit was successfully transmitted and received by the Feature Service. </p>
<commit_msg>Minor changes to index.html<commit_after><!DOCTYPE html>
<html>
<head>
    <title>Offline Editing with the ArcGIS API for JavaScript</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <style>
        body {
            font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
        }
        h1 {
            background-color: #0078c5;
            color: white;
            padding: 1em;
            margin-bottom:1em;
            border-radius: 10px;
        }
        pre code {
            padding: 10px 15px;
            border: 1px solid #ccc;
            background: white;
            color: #444;
            /* margin: 1em 0 0;*/
            font-size: 12px;
            font-family: "Consolas", "Menlo", "Lucida Console", "Courier New", monospace;
            box-shadow: 0 0 15px #ddd;
            -moz-box-shadow: 0 0 15px #ddd;
            -webkit-box-shadow: 0 0 15px #ddd;

            display: block;
            border-radius: 5px;
        }
        .banner {
            background-color: #0078c5;
            color: white;
            padding: 1em;
            margin-bottom:1em;
            border-radius: 10px;
        }

    </style>
</head>
<body>

</body>
<a href="https://github.com/ArcGIS/offline-editor-js"><img style="position: absolute; top: 0; right: 0; border: 0;"
    src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<h1 class="title">ArcGIS Offline Editing Library for JavaScript</h1>
<p>This is an experimental library for exploring offline editing use cases and workflows when using ArcGIS Feature Services. Use it in conjunction
with the ArcGIS API for JavaScript.</p>
<p><b>Why edit offline with JavaScript?</b></p>
<p>Many "in the field" use cases for mapping apps require that workers go into areas with limited, intermittent or no cellular network connectivity.
 Until now, offline has been limited to native SDKs on smartphones and tablets. This library will hopefully lead the way in changing
that perception.</p>
<p><b>What types of features will it work with?</b></p>
<p>The library currently works with esri.geometry.Geometry.Point, Polygon and Polyline.</p>
<p><b>How does it work?</b></p>
<p>It takes the place of the existing esri.layers.FeatureLayer.applyEdit() function. When an edit is being submitted, the library automatically detects if the app is online or offline.
If the app is online then edits are simply passed through. If an offline condition occurs, then the library will start storing changes.
In the background it will re-check the internet connection on a regular basis. Once the internet is restored, the library will handle resubmitting
any editing changes made offline.</p>
<p>The library also contains a built-in indexing system that allows for tracking and validation of edits. The index keeps track of whether or not
and edit was successfully transmitted and received by the Feature Service. </p>

{'fraction_non_alphanumeric': 0.0950145678213014, 'fraction_numerical': 0.019100032372936226, 'mean_word_length': 2.8260061919504644, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 4, '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': '4276917', 'n_tokens_mistral': 1861, 'n_tokens_neox': 1705, 'n_words': 699}