<commit_before># Minimal HTTP server example for Sling crankstart

# OSGi framework properties
osgi.property org.osgi.service.http.port 1234 

# Start framework and install bundles
start.framework
bundle org.apache.felix/org.apache.felix.configadmin/1.2.8
bundle org.apache.felix/org.apache.felix.http.jetty/2.2.0
bundle org.apache.felix/org.apache.felix.metatype/1.0.4
bundle org.apache.felix/org.apache.felix.scr/1.6.0
bundle org.apache.felix/org.apache.felix.webconsole/3.1.6
bundle org.apache.sling/org.apache.sling.commons.log/2.1.2

# Start all bundles now
start.all.bundles
log OSGi webconsole should soon be available at http://localhost:1234/system/console
 <commit_msg>Tweak example crank file<commit_after># Minimal webconsole example for the Sling crankstart launcher

# OSGi framework properties
osgi.property org.osgi.service.http.port 1234

# Once OSGi properties are set, start the framework
start.framework

# Install a minimal set of bundles for now, just to 
# demonstrate that we can start the webconsole
# Crankstart gets bundles from a Maven repository, which
# is not configurable for now.
bundle org.apache.felix/org.apache.felix.configadmin/1.2.8
bundle org.apache.felix/org.apache.felix.http.jetty/2.2.0
bundle org.apache.felix/org.apache.felix.metatype/1.0.4
bundle org.apache.felix/org.apache.felix.scr/1.6.0
bundle org.apache.felix/org.apache.felix.webconsole/3.1.6
bundle org.apache.sling/org.apache.sling.commons.log/2.1.2

# Start all bundles and log a friendly message
start.all.bundles
log OSGi webconsole should soon be available at http://localhost:1234/system/console
 
{'fraction_non_alphanumeric': 0.10087173100871731, 'fraction_numerical': 0.0323785803237858, 'mean_word_length': 4.5034246575342465, 'pattern_counts': {'":': 0, '<': 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': '5814066', 'n_tokens_mistral': 564, 'n_tokens_neox': 536, 'n_words': 133}