<commit_before>"""
Scan Client Tools

Helpers for connecting to the Scan Server,
to assemble commands for a scan,
submit them to the server,
monitor the execution.

Shortcuts for 1D, 2D scans.

This code depends on the basic org.csstudio.scan.*
packages and can be invoked from Jython command
lines outside of CSS.

@author: <NAME>
"""

# -------------------------------------------------------
# Path setup

# For now this is hard coded in here to allow use
# from BOY scripts
import sys
import glob

# Path to workspace, when running within IDE
workspace="/Kram/MerurialRepos/cs-studio/products/SNS/plugins"
sys.path.append(workspace + "/org.csstudio.scan/bin")
sys.path.append(workspace + "/org.csstudio.scan.client/bin")

# Path to binaries, when running within exported product
# Using glob to expand '*' into the installed version of the plugin
install="/Users/Fred/Desktop/CSS/plugins"
sys.path.append(glob.glob(install + "/org.csstudio.scan_*")[0])
sys.path.append(glob.glob(install + "/org.csstudio.scan.client_*")[0])

# -------------------------------------------------------

import org.csstudio.scan.client.ScanServerConnector as ScanServerConnector<commit_msg>SNS scan system: Updated examples<commit_after>"""
Scan Client Tools

Helpers for connecting to the Scan Server,
to assemble commands for a scan,
submit them to the server,
monitor the execution.

Shortcuts for 1D, 2D scans.

This code depends on the basic org.csstudio.scan.*
packages and can be invoked from Jython command
lines outside of CSS.

@author: <NAME>
"""

# -------------------------------------------------------
# Path setup

# For now this is hard coded in here to allow use
# from BOY scripts
import sys

# Path to workspace, when running within IDE
workspace="/Kram/MerurialRepos/cs-studio/products/SNS/plugins"
sys.path.append(workspace + "/org.csstudio.scan/bin")
sys.path.append(workspace + "/org.csstudio.scan.client/bin")

# Path to binaries, when running within exported product.
# Note that the plugin name must include the correct version number!
install="/Users/Fred/Desktop/CSS/plugins"
sys.path.append(install + "/org.csstudio.scan_1.0.0")
sys.path.append(install + "/org.csstudio.scan.client_1.0.0")

# -------------------------------------------------------

import org.csstudio.scan.client.ScanServerConnector as ScanServerConnector
{'fraction_non_alphanumeric': 0.18905047048759624, 'fraction_numerical': 0.0051325919589392645, 'mean_word_length': 2.9443507588532882, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2013630', 'n_tokens_mistral': 687, 'n_tokens_neox': 665, 'n_words': 223}