Create a DDM form rule action as a call function, e.g.
<pre>
call(
'getCPInstanceOptionsValues',
concat(
'cpDefinitionId=56698', ';', '56703=', getValue('56703'), ';',
'56706=', getValue('56706')),
'56703=color;56706=size')
</pre>
353616
protected String createDDMFormRuleAction(
		DDMForm ddmForm, long groupId, long commerceAccountId,
		long cpDefinitionId) {

		String callFunctionStatement =
			"call('getCPInstanceOptionsValues', concat(%s), '%s')";

		return String.format(
			callFunctionStatement,
			createDDMFormRuleInputMapping(
				ddmForm, groupId, commerceAccountId, cpDefinitionId),
			createDDMFormRuleOutputMapping(ddmForm));
	}
101233
function paramConverterMiddleware(handler, action) {

	function convertProperties(obj, schema) {
		Object.keys(schema).forEach(key => {
			const s = schema[key];
			const val = obj[key];
			if (val == null)
				return;

			if (s.type == "string" && typeof val !== "string") {
				obj[key] = "" + val;
			} else if (s.type == "number" && typeof val !== "number") {
				obj[key] = Number(val);
			} else if (s.type == "boolean" && typeof val !== "boolean") {
				obj[key] = String(val).toLowerCase() === "true";
			} else if (s.type == "date" && !(val instanceof Date)) {
				obj[key] = new Date(val);
			} else if (s.type == "object")
				convertProperties(val, s.props);
		});
	}

	// Wrap a param validator
	if (action.params && typeof action.params === "object") {
		return function convertContextParams(ctx) {
			convertProperties(ctx.params, action.params);

			return handler(ctx);
		};
	}
	return handler;
}
452210
public static String call(PageContext pc, Object object) throws PageException {
	return call(pc, object, null, true, 9999, null, null, null, null, 9999, true, true);
    }
799194
function logActionCall(actionsName, methodName, args) {
  const logArgs = [
    '%cAction performed', 'font-weight: bold;', `${actionsName}.${methodName}`
  ].concat(args)
  console.log.apply(console, logArgs)
}
283765
public static boolean call(PageContext pc, String type, Object value, Object objPattern) throws PageException {
	type = type.trim();

	if (!"regex".equalsIgnoreCase(type) && !"regular_expression".equalsIgnoreCase(type))
	    throw new FunctionException(pc, "isValid", 1, "type", "wrong attribute count for type [" + type + "]");

	return regex(Caster.toString(value, null), Caster.toString(objPattern));
    }
806589
protected int integer(String functionCall, String condition, Object... args) throws DAOException{
        if(condition==null)
            condition = "";

        return jdbc.selectFirst("SELECT "+functionCall+" FROM "+table.name+' '+condition, new RowMapper<Integer>(){
            @Override
            public Integer newRecord(ResultSet rs) throws SQLException{
                return rs.getInt(1);
            }
        }, args);
    }
435062
def partial_append_action(fn, argument_keys=None):
    
    if isinstance(argument_keys, str):
        argument_keys = [argument_keys]
    argument_keys = argument_keys or []

    class PartialAppendAction(argparse.Action):
        def __init__(self,
                     option_strings,
                     dest,
                     const=None,
                     default=None,
                     required=False,
                     help=None,
                     type=None,
                     metavar=None,
                     nargs=None,
                     **kwargs):
            super(PartialAppendAction, self).__init__(
                option_strings=option_strings,
                dest=dest,
                nargs=len(argument_keys),
                const=const,
                default=default,
                required=required,
                metavar=metavar,
                type=type,
                help=help, **kwargs)

        def __call__(self, parser, namespace, values, option_string=None):
            items = copy.copy(getattr(namespace, self.dest, None)) or []

            # If no value was set default to empty list
            if values is None:
                values = []
            elif not isinstance(values, list):
                values = [values]

            if len(argument_keys) != len(values):
                raise ValueError("Unexpected number of values")

            # Generate keyword arguments for the input function
            kwargs = dict(list(zip(argument_keys, values)))
            f = functools.partial(fn, **kwargs)
            items.append(f)
            setattr(namespace, self.dest, items)

    return PartialAppendAction
602624
public static Object call(PageContext pc, Object[] objArr) throws PageException {
	if (objArr.length < 3) throw new ExpressionException("invalid call of a CFML Based built in function");

	// translate arguments
	String filename = Caster.toString((((FunctionValue) objArr[0]).getValue()));
	Collection.Key name = KeyImpl.toKey((((FunctionValue) objArr[1]).getValue()));
	boolean isweb = Caster.toBooleanValue((((FunctionValue) objArr[2]).getValue()));

	// function from archive may come without mapping definition
	int offset = 3;
	String mappingName = "mapping-function";
	// clearly no mapping definition
	if (objArr.length > 3 && objArr[3] instanceof FunctionValue) {
	    FunctionValue fv = (FunctionValue) objArr[3];
	    if (fv.getName().equals("__mapping")) {
		mappingName = Caster.toString(fv.getValue());
		offset = 4;
	    }
	}

	UDF udf = loadUDF(pc, filename, mappingName, name, isweb);
	Struct meta = udf.getMetaData(pc);
	boolean callerScopes = (meta == null) ? false : Caster.toBooleanValue(meta.get("callerScopes", Boolean.FALSE), false);
	boolean caller = meta == null ? false : Caster.toBooleanValue(meta.get(KeyConstants._caller, Boolean.FALSE), false);

	Struct namedArguments = null, cs = null;
	if (callerScopes) {

	    cs = new StructImpl();
	    if (pc.undefinedScope().getCheckArguments()) {
		cs.set(KeyConstants._local, pc.localScope().duplicate(false));
		cs.set(KeyConstants._arguments, pc.argumentsScope().duplicate(false));
	    }
	}

	Object[] arguments = null;
	if (objArr.length <= offset) arguments = ArrayUtil.OBJECT_EMPTY;
	else if (objArr[offset] instanceof FunctionValue) {
	    FunctionValue fv;
	    namedArguments = new StructImpl(Struct.TYPE_LINKED);
	    if (callerScopes) namedArguments.setEL(KeyConstants._caller, cs);
	    else if (caller) namedArguments.setEL(KeyConstants._caller, Duplicator.duplicate(pc.undefinedScope(), false));
	    for (int i = offset; i < objArr.length; i++) {
		fv = toFunctionValue(name, objArr[i]);
		namedArguments.set(fv.getName(), fv.getValue());
	    }
	}
	else {
	    int off = (caller || callerScopes ? 3 : 4);
	    arguments = new Object[objArr.length - off];
	    if (callerScopes) arguments[0] = cs;
	    else if (caller) arguments[0] = Duplicator.duplicate(pc.undefinedScope(), false);
	    for (int i = offset; i < objArr.length; i++) {
		arguments[i - off] = toObject(name, objArr[i]);
	    }
	}
	// execute UDF
	if (namedArguments == null) {
	    return ((UDFImpl) udf).call(pc, name, arguments, false);
	}

	return ((UDFImpl) udf).callWithNamedValues(pc, name, namedArguments, false);
    }
1114026
public final EObject ruleRuleCall() throws RecognitionException {
        EObject current = null;

        Token lv_rule_0_0=null;
        Token otherlv_1=null;
        Token otherlv_3=null;
        Token otherlv_5=null;
        EObject lv_arguments_2_0 = null;

        EObject lv_arguments_4_0 = null;


         enterRule(); 
            
        try {
            // InternalSimpleAntlr.g:1540:28: ( ( ( (lv_rule_0_0= RULE_ID ) ) (otherlv_1= '[' ( (lv_arguments_2_0= ruleOrExpression ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )* otherlv_5= ']' )? ) )
            // InternalSimpleAntlr.g:1541:1: ( ( (lv_rule_0_0= RULE_ID ) ) (otherlv_1= '[' ( (lv_arguments_2_0= ruleOrExpression ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )* otherlv_5= ']' )? )
            {
            // InternalSimpleAntlr.g:1541:1: ( ( (lv_rule_0_0= RULE_ID ) ) (otherlv_1= '[' ( (lv_arguments_2_0= ruleOrExpression ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )* otherlv_5= ']' )? )
            // InternalSimpleAntlr.g:1541:2: ( (lv_rule_0_0= RULE_ID ) ) (otherlv_1= '[' ( (lv_arguments_2_0= ruleOrExpression ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )* otherlv_5= ']' )?
            {
            // InternalSimpleAntlr.g:1541:2: ( (lv_rule_0_0= RULE_ID ) )
            // InternalSimpleAntlr.g:1542:1: (lv_rule_0_0= RULE_ID )
            {
            // InternalSimpleAntlr.g:1542:1: (lv_rule_0_0= RULE_ID )
            // InternalSimpleAntlr.g:1543:3: lv_rule_0_0= RULE_ID
            {
            lv_rule_0_0=(Token)match(input,RULE_ID,FOLLOW_29); if (state.failed) return current;
            if ( state.backtracking==0 ) {

              			newLeafNode(lv_rule_0_0, grammarAccess.getRuleCallAccess().getRuleIDTerminalRuleCall_0_0()); 
              		
            }
            if ( state.backtracking==0 ) {

              	        if (current==null) {
              	            current = createModelElement(grammarAccess.getRuleCallRule());
              	        }
                     		setWithLastConsumed(
                     			current, 
                     			"rule",
                      		lv_rule_0_0, 
                      		"org.eclipse.xtext.generator.parser.antlr.debug.SimpleAntlr.ID");
              	    
            }

            }


            }

            // InternalSimpleAntlr.g:1559:2: (otherlv_1= '[' ( (lv_arguments_2_0= ruleOrExpression ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )* otherlv_5= ']' )?
            int alt26=2;
            int LA26_0 = input.LA(1);

            if ( (LA26_0==20) ) {
                alt26=1;
            }
            switch (alt26) {
                case 1 :
                    // InternalSimpleAntlr.g:1559:4: otherlv_1= '[' ( (lv_arguments_2_0= ruleOrExpression ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )* otherlv_5= ']'
                    {
                    otherlv_1=(Token)match(input,20,FOLLOW_20); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                          	newLeafNode(otherlv_1, grammarAccess.getRuleCallAccess().getLeftSquareBracketKeyword_1_0());
                          
                    }
                    // InternalSimpleAntlr.g:1563:1: ( (lv_arguments_2_0= ruleOrExpression ) )
                    // InternalSimpleAntlr.g:1564:1: (lv_arguments_2_0= ruleOrExpression )
                    {
                    // InternalSimpleAntlr.g:1564:1: (lv_arguments_2_0= ruleOrExpression )
                    // InternalSimpleAntlr.g:1565:3: lv_arguments_2_0= ruleOrExpression
                    {
                    if ( state.backtracking==0 ) {
                       
                      	        newCompositeNode(grammarAccess.getRuleCallAccess().getArgumentsOrExpressionParserRuleCall_1_1_0()); 
                      	    
                    }
                    pushFollow(FOLLOW_12);
                    lv_arguments_2_0=ruleOrExpression();

                    state._fsp--;
                    if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                      	        if (current==null) {
                      	            current = createModelElementForParent(grammarAccess.getRuleCallRule());
                      	        }
                             		add(
                             			current, 
                             			"arguments",
                              		lv_arguments_2_0, 
                              		"org.eclipse.xtext.generator.parser.antlr.debug.SimpleAntlr.OrExpression");
                      	        afterParserOrEnumRuleCall();
                      	    
                    }

                    }


                    }

                    // InternalSimpleAntlr.g:1581:2: (otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) ) )*
                    loop25:
                    do {
                        int alt25=2;
                        int LA25_0 = input.LA(1);

                        if ( (LA25_0==21) ) {
                            alt25=1;
                        }


                        switch (alt25) {
                    	case 1 :
                    	    // InternalSimpleAntlr.g:1581:4: otherlv_3= ',' ( (lv_arguments_4_0= ruleOrExpression ) )
                    	    {
                    	    otherlv_3=(Token)match(input,21,FOLLOW_20); if (state.failed) return current;
                    	    if ( state.backtracking==0 ) {

                    	          	newLeafNode(otherlv_3, grammarAccess.getRuleCallAccess().getCommaKeyword_1_2_0());
                    	          
                    	    }
                    	    // InternalSimpleAntlr.g:1585:1: ( (lv_arguments_4_0= ruleOrExpression ) )
                    	    // InternalSimpleAntlr.g:1586:1: (lv_arguments_4_0= ruleOrExpression )
                    	    {
                    	    // InternalSimpleAntlr.g:1586:1: (lv_arguments_4_0= ruleOrExpression )
                    	    // InternalSimpleAntlr.g:1587:3: lv_arguments_4_0= ruleOrExpression
                    	    {
                    	    if ( state.backtracking==0 ) {
                    	       
                    	      	        newCompositeNode(grammarAccess.getRuleCallAccess().getArgumentsOrExpressionParserRuleCall_1_2_1_0()); 
                    	      	    
                    	    }
                    	    pushFollow(FOLLOW_12);
                    	    lv_arguments_4_0=ruleOrExpression();

                    	    state._fsp--;
                    	    if (state.failed) return current;
                    	    if ( state.backtracking==0 ) {

                    	      	        if (current==null) {
                    	      	            current = createModelElementForParent(grammarAccess.getRuleCallRule());
                    	      	        }
                    	             		add(
                    	             			current, 
                    	             			"arguments",
                    	              		lv_arguments_4_0, 
                    	              		"org.eclipse.xtext.generator.parser.antlr.debug.SimpleAntlr.OrExpression");
                    	      	        afterParserOrEnumRuleCall();
                    	      	    
                    	    }

                    	    }


                    	    }


                    	    }
                    	    break;

                    	default :
                    	    break loop25;
                        }
                    } while (true);

                    otherlv_5=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
                    if ( state.backtracking==0 ) {

                          	newLeafNode(otherlv_5, grammarAccess.getRuleCallAccess().getRightSquareBracketKeyword_1_3());
                          
                    }

                    }
                    break;

            }


            }


            }

            if ( state.backtracking==0 ) {
               leaveRule(); 
            }
        }
         
            catch (RecognitionException re) { 
                recover(input,re); 
                appendSkippedTokens();
            } 
        finally {
        }
        return current;
    }
1335954
@Override
	public com.liferay.commerce.product.model.CPDefinitionOptionRel createCPDefinitionOptionRel(
		long CPDefinitionOptionRelId) {
		return _cpDefinitionOptionRelLocalService.createCPDefinitionOptionRel(CPDefinitionOptionRelId);
	}
795162
function qpdecode(callback) {
      return function(data) {
        var string = callback(data);

        return string
          .replace(/[\t\x20]$/gm, '')
          .replace(/=(?:\r\n?|\n|$)/g, '')
          .replace(/=([a-fA-F0-9]{2})/g, function($0, $1) {
            var codePoint = parseInt($1, 16);
            return String.fromCharCode(codePoint);
          });
      }
    }
866595
def p_call_expr(self, p):
        
        if len(p) == 3:
            p[0] = ast.FunctionCall(p[1], p[2])
        elif len(p) == 4:
            p[0] = ast.DotAccessor(p[1], p[3])
        else:
            p[0] = ast.BracketAccessor(p[1], p[3])
562179
function processsupercall() {
		if (methodname) {
			if (!character.match(METHODNAME)) {
				buffer += '.call';
				methodname = false;
			}
		} else if (superargs) {
			if (character.match(METHODNAME)) {
				buffer += ', ';
				superargs = false;
			}
		}
		switch (character) {
			case '(':
				character = '(this';
				superargs = true;
				break;
			case ')':
				supercall = false;
				superargs = false;
				break;
		}
	}
1188749
function createModule(moduleName) {
    var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var initialState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
    var namespaceActions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;


    if ((typeof moduleName === 'undefined' ? 'undefined' : _typeof(moduleName)) == 'object') {
        console.warn('createModule was called with what appears to be' + ' the deprecated 1.x signature (schema [, initalState , namespace]).' + ' Please update usage to the new format (moduleName, schema [, initialState, namespaceActions])' + ' before the next major release of create-redux-module.' + ' Attempting to convert to new format.');
        var map = {
            schema: moduleName,
            initialState: schema,
            namespaceActions: typeof initialState == 'string',
            moduleName: typeof initialState == 'string' ? initialState : 'unknown_module'
        };
        moduleName = map.moduleName;
        schema = map.schema;
        initialState = map.initialState;
        namespaceActions = map.namespaceActions;
    }

    var actions = {};
    var handlers = {};

    function createActionHandler(actionName) {
        var baseType = actionCase(actionName);

        if (typeof namespaceActions == 'string') {
            namespaceActions = [namespaceActions];
        }

        var actionType = namespaceActions === true || Array.isArray(namespaceActions) && namespaceActions.indexOf(actionName) > -1 ? moduleName + '/' + baseType : baseType;

        var actionCreator = createActionCreator(actionType);
        var handler = function handler(state, action) {
            return state;
        };

        var def = schema[actionName];
        if (def === null) {
            // default as above
        } else if (typeof def == 'function') {
            handler = def;
        } else if (Array.isArray(def)) {
            actionCreator = def[0] || actionCreator;
            handler = def[1] || handler;
        } else if ((typeof def === 'undefined' ? 'undefined' : _typeof(def)) == 'object' && def.promise) {
            schema[actionName] = createSchemaPromiseEntry(def, actionName, actions);
            createActionHandler(actionName);

            var requestActionName = actionName + 'Pending';
            schema[requestActionName] = createSchemaPendingEntry();
            createActionHandler(requestActionName);

            var successActionName = actionName + 'Success';
            schema[successActionName] = createSchemaSuccessEntry(def, successActionName);
            createActionHandler(successActionName);

            var failureActionName = actionName + 'Failure';
            schema[failureActionName] = createSchemaFailureEntry(def, failureActionName);
            createActionHandler(failureActionName);

            return;
        } else {
            throw new Error('Incorrect schema format, [' + actionName + '] must be a handlerFn, array, API object, Promise object, or null');
        }

        actions[actionName] = actionCreator.bind({
            moduleName: moduleName,
            baseType: baseType,
            type: actionType,
            actionName: actionName,
            actions: actions // reference other actions from this action
        });

        actions[actionName].toString = function () {
            return actionType.toString();
        };

        handlers[actionType] = handler;
    }

    Object.keys(schema).forEach(createActionHandler);

    var reducer = function reducer() {
        var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
        var action = arguments[1];

        var handler = handlers[action.type];
        return handler ? handler(state, action) : state;
    };

    // sas = [initialState, action, newState]
    var test = function test() {
        for (var _len3 = arguments.length, sas = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
            sas[_key3] = arguments[_key3];
        }

        sas.forEach(function (_ref) {
            var _ref2 = _slicedToArray(_ref, 3),
                initialState = _ref2[0],
                action = _ref2[1],
                newState = _ref2[2];

            _assert2.default.deepEqual(reducer(initialState, action), newState, moduleName + '.reducer' + ('(' + JSON.stringify(initialState)) + (', ' + JSON.stringify(action) + ') !== ') + ('' + JSON.stringify(newState)));
        });
    };

    var module = {
        actions: actions,
        reducer: reducer,
        mapDispatch: mapDispatch.bind(null, actions),
        test: test
    };
    module.toString = function () {
        return moduleName.toString();
    };

    return module;
}
197698
function getFunctionCalls(call, functionRE) {
  var expressions = []

  var fnRE = typeof functionRE === "string" ? new RegExp("\\b(" + functionRE + ")\\(") : functionRE
  do {
    var searchMatch = fnRE.exec(call)
    if (!searchMatch) {
      return expressions
    }
    if (searchMatch[1] === undefined) {
      throw new Error("Missing the first couple of parenthesis to get the function identifier in " + functionRE)
    }
    var fn = searchMatch[1]
    var startIndex = searchMatch.index
    var matches = balanced("(", ")", call.substring(startIndex))

    if (!matches || matches.start !== searchMatch[0].length - 1) {
      throw new SyntaxError(fn + "(): missing closing ')' in the value '" + call + "'")
    }

    expressions.push({matches: matches, functionIdentifier: fn})
    call = matches.post
  }
  while (fnRE.test(call))

  return expressions
}
826653
public BytecodeNode generateCall(
            String name,
            ScalarFunctionImplementation function,
            List<BytecodeNode> arguments,
            Optional<OutputBlockVariableAndType> outputBlockVariableAndType)
    {
        Optional<BytecodeNode> instance = Optional.empty();
        if (function.getInstanceFactory().isPresent()) {
            FieldDefinition field = cachedInstanceBinder.getCachedInstance(function.getInstanceFactory().get());
            instance = Optional.of(scope.getThis().getField(field));
        }
        return generateInvocation(scope, name, function, instance, arguments, callSiteBinder, outputBlockVariableAndType);
    }
1227883
public static Object applyOrCall(boolean isApply,
                                     Context cx, Scriptable scope,
                                     Scriptable thisObj, Object[] args)
    {
        int L = args.length;
        Callable function = getCallable(thisObj);

        Scriptable callThis = null;
        if (L != 0) {
            if  (cx.hasFeature(Context.FEATURE_OLD_UNDEF_NULL_THIS)) {
                callThis = toObjectOrNull(cx, args[0], scope);
            } else {
                callThis = args[0] == Undefined.instance ? Undefined.SCRIPTABLE_UNDEFINED : toObjectOrNull(cx, args[0], scope);
            }
        }
        if (callThis == null && cx.hasFeature(Context.FEATURE_OLD_UNDEF_NULL_THIS)) {
            callThis = getTopCallScope(cx); // This covers the case of args[0] == (null|undefined) as well.
        }

        Object[] callArgs;
        if (isApply) {
            // Follow Ecma 15.3.4.3
            callArgs = L <= 1 ? ScriptRuntime.emptyArgs :
                getApplyArguments(cx, args[1]);
        } else {
            // Follow Ecma 15.3.4.4
            if (L <= 1) {
                callArgs = ScriptRuntime.emptyArgs;
            } else {
                callArgs = new Object[L - 1];
                System.arraycopy(args, 1, callArgs, 0, L - 1);
            }
        }

        return function.call(cx, scope, callThis, callArgs);
    }