<jupyter_start><jupyter_text>Test NotebookThis is a test notebook that is run for each new commit of the `scijava-jupyter-kernel`. The idea is to test all the important features of the kernel.<jupyter_code>// @UIService ui
ui.setHeadless(true)
println "Basic print"
#!groovy
// @LogService log
log.info("Test the script parameter")<jupyter_output>[INFO] Test the script parameter<jupyter_text>The below cells are disabled because Travis fails to run them...<jupyter_code>// @NotebookService nb
a_groovy_dict = [a_string: 'Hello', a_number: 87]
nb.display(a_groovy_dict)
#!python
import sys
print("Test python language")
print(sys.version)
#!groovy
println "This is groovy code"
#!python
print(a_groovy_dict["a_string"])
print(a_groovy_dict["a_number"])

assert(a_groovy_dict["a_string"] == "Hello")
assert(a_groovy_dict["a_number"] == 87)
#!clojure
{:a 4, :e nil}
#!groovy
[a:4, e: null]
#!groovy
[["Salutation":"hello", "Valediction":"goodbye"], ["Salutation":"hi", "Valediction":"bye"], 
 ["Salutation":"hey", "Valediction":null]]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15160075329566855, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 7.642276422764228, 'pattern_counts': {'":': 6, '<': 8, '<?xml version=': 0, '>': 8, '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}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '598995', 'license': 'Apache-2.0', 'n_tokens_mistral': 407, 'n_tokens_neox': 383, 'n_words': 99, 'path': 'notebooks/Test.ipynb', 'repo_name': 'jasminmartin/scijava-jupyter-kernel', 'size': '1062'}