<commit_before>/**
 */
package org.nasdanika.cdo.function.impl;

import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringWriter;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map.Entry;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
import org.nasdanika.cdo.CDOTransactionContext;
import org.nasdanika.cdo.boxing.BoxUtil;
import org.nasdanika.cdo.function.ContextArgument;
import org.nasdanika.cdo.function.FunctionPackage;
import org.nasdanika.cdo.function.JavaScriptFunction;
import org.nasdanika.core.Context;
import org.nasdanika.function.ServiceBinding;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.ServiceReference;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Java Script Function</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getCode <em>Code</em>}</li>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getCodeURL <em>Code URL</em>}</li>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getParameterNames <em>Parameter Names</em>}</li>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getBindings <em>Bindings</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class JavaScriptFunctionImpl<CR, MC extends Context, T, R> extends AbstractFunctionImpl<CR, MC, T, R> implements JavaScriptFunction<CR, MC, T, R> {
	/**<commit_msg>Before adding runAs to AbstractFunction<commit_after>/**
 */
package org.nasdanika.cdo.function.impl;

import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringWriter;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map.Entry;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
import org.nasdanika.cdo.CDOTransactionContext;
import org.nasdanika.cdo.boxing.BoxUtil;
import org.nasdanika.cdo.function.FunctionPackage;
import org.nasdanika.cdo.function.JavaScriptFunction;
import org.nasdanika.core.Context;
import org.nasdanika.function.ServiceBinding;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.ServiceReference;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Java Script Function</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getCode <em>Code</em>}</li>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getCodeURL <em>Code URL</em>}</li>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getParameterNames <em>Parameter Names</em>}</li>
 *   <li>{@link org.nasdanika.cdo.function.impl.JavaScriptFunctionImpl#getBindings <em>Bindings</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class JavaScriptFunctionImpl<CR, MC extends Context, T, R> extends AbstractFunctionImpl<CR, MC, T, R> implements JavaScriptFunction<CR, MC, T, R> {
	/**
{'fraction_non_alphanumeric': 0.14689112136844965, 'fraction_numerical': 0.0, 'mean_word_length': 5.40695652173913, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '5741993', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1216, 'n_words': 214}