<commit_before>Feature: Start and stop Neo4j Server
  The Neo4j server should start and stop using a command line script

  Background:
    Given a platform supported by Neo4j
    And a working directory at relative path "target"
    And set Neo4j Home to "neo4j_home"
    And Neo4j Home should contain a Neo4j Server installation

  Scenario: Start Neo4j Server and query Spatial layers
    When I start Neo4j Server
    And wait for Server started at "http://localhost:7474"
    Then "http://localhost:7474" should provide the Neo4j REST interface
    Then requesting "http://localhost:7474/db/data/ext/" should contain "SpatialPlugin"
    Then sending "layer=test&lon=lon&lat=lat" to "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer" should contain "EditableLayerImpl"
    Then sending JSON "{"name":"test", "config":{"provider":"spatial"}}" to "http://localhost:7474/db/data/index/node/" should contain "node"
    Then updating "{"lon": 15.2, "lat": 60.1, "bbox": [15.2, 60.1, 15.2, 60.1]}" to "http://localhost:7474/db/data/node/0/properties" should have a response of "204"
    Then sending "layer=test&node=http://localhost:7474/db/data/node/0" to "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer" should contain "bbox"
    Then sending "layer=test&minx=15.0&maxx=15.3&miny=60.0&maxy=60.2" to "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInLayer" should contain "node"
    Then sending JSON "{"query":"start n=(test,'bbox:[15.0, 16.0, 56.0, 61.0]') return n"}" to "http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query" should contain "node"
    <commit_msg>Adding Gremlin example (not working)<commit_after>Feature: Start and stop Neo4j Server
  The Neo4j server should start and stop using a command line script

  Background:
    Given a platform supported by Neo4j
    And a working directory at relative path "target"
    And set Neo4j Home to "neo4j_home"
    And Neo4j Home should contain a Neo4j Server installation

  Scenario: Start Neo4j Server and query Spatial layers
    When I start Neo4j Server
    And wait for Server started at "http://localhost:7474"
    Then "http://localhost:7474" should provide the Neo4j REST interface
    Then requesting "http://localhost:7474/db/data/ext/" should contain "SpatialPlugin"
    Then sending "layer=test&lon=lon&lat=lat" to "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer" should contain "EditableLayerImpl"
    Then sending JSON "{"name":"test", "config":{"provider":"spatial"}}" to "http://localhost:7474/db/data/index/node/" should contain "node"
    Then updating "{"lon": 15.2, "lat": 60.1, "bbox": [15.2, 60.1, 15.2, 60.1]}" to "http://localhost:7474/db/data/node/0/properties" should have a response of "204"
    Then sending "layer=test&node=http://localhost:7474/db/data/node/0" to "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer" should contain "bbox"
    Then sending "layer=test&minx=15.0&maxx=15.3&miny=60.0&maxy=60.2" to "http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInLayer" should contain "node"
    Then sending JSON "{"query":"start n=(test,'bbox:[15.0, 16.0, 56.0, 61.0]') return n"}" to "http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query" should contain "node"
#    Then sending JSON "{"script":"g.getIndex('test',Vertex.class).get('bbox','[15.0, 16.0, 56.0, 61.0]')"}" to "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script" should contain "node"
    
{'fraction_non_alphanumeric': 0.13939051918735892, 'fraction_numerical': 0.05925507900677201, 'mean_word_length': 4.681089743589744, 'pattern_counts': {'":': 15, '<': 3, '<?xml version=': 0, '>': 3, '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': '5502029', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1169, 'n_words': 316}