Runs Pdepend with the given criteria as arguments
543647
public function execute()
    {
        if (!file_exists($this->location)) {
            mkdir($this->location);
        }
        if (!is_writable($this->location)) {
            throw new \Exception(sprintf('The location %s is not writable or does not exist.', $this->location));
        }

        $pdepend = $this->phpci->findBinary('pdepend');

        $cmd = $pdepend . ' --summary-xml="%s" --jdepend-chart="%s" --overview-pyramid="%s" %s "%s"';

        $this->removeBuildArtifacts();

        // If we need to ignore directories
        if (count($this->phpci->ignore)) {
            $ignore = ' --ignore=' . implode(',', $this->phpci->ignore);
        } else {
            $ignore = '';
        }

        $success = $this->phpci->executeCommand(
            $cmd,
            $this->location . DIRECTORY_SEPARATOR . $this->summary,
            $this->location . DIRECTORY_SEPARATOR . $this->chart,
            $this->location . DIRECTORY_SEPARATOR . $this->pyramid,
            $ignore,
            $this->directory
        );

        $config = $this->phpci->getSystemConfig('phpci');

        if ($success) {
            $this->phpci->logSuccess(
                sprintf(
                    "Pdepend successful. You can use %s\n, ![Chart](%s \"Pdepend Chart\")\n
                    and ![Pyramid](%s \"Pdepend Pyramid\")\n
                    for inclusion in the readme.md file",
                    $config['url'] . '/build/pdepend/' . $this->summary,
                    $config['url'] . '/build/pdepend/' . $this->chart,
                    $config['url'] . '/build/pdepend/' . $this->pyramid
                )
            );
        }

        return $success;
    }
74551
def lpush(self, key, value, *values):
        
        return self.execute(b'LPUSH', key, value, *values)
1000813
def dbg(*objects, file=sys.stderr, flush=True, **kwargs):
    ""
    print(*objects, file=file, flush=flush, **kwargs)
527567
@Override
	public Value execute(String line, DBGPReader dbgp) throws Exception
	{
		PExp expr = parseExpression(line, getDefaultName());
		Environment env = getGlobalEnvironment();
		Environment created = new FlatCheckedEnvironment(assistantFactory, createdDefinitions.asList(), env, NameScope.NAMESANDSTATE);

		typeCheck(expr, created);
		return execute(expr, dbgp);
	}
152968
private void verbosePolyCmd(String pCmd, Rectangle pBounds, Polygon pPolygon) {
        System.out.println(pCmd + ": " + pBounds);
        System.out.print("Polygon points: ");
        if (pPolygon != null && pPolygon.npoints > 0) {
            System.out.print("(" + pPolygon.xpoints[0] + "," + pPolygon.ypoints[0] + ")");
        }
        for (int i = 1; pPolygon != null && i < pPolygon.npoints; i++) {
            System.out.print(", (" + pPolygon.xpoints[i] + "," + pPolygon.ypoints[i] + ")");
        }
        System.out.println();
    }
437800
def runMultiprocessNoiseExperiment(resultName=None, numWorkers = 0, **kwargs):
  

  if resultName is None:
    resultName = str(kwargs) + ".json"

  experiments = [{}]
  for key, values in kwargs.items():
    if type(values) is list:
      newExperiments = []
      for experiment in experiments:
        for val in values:
          newExperiment = copy(experiment)
          newExperiment[key] = val
          newExperiments.append(newExperiment)
      experiments = newExperiments
    else:
      [a.__setitem__(key, values) for a in experiments]

  if numWorkers == 0:
    numWorkers = cpu_count()
  if numWorkers > 1:
    pool = Pool(processes=numWorkers)
    rs = pool.map_async(experimentWrapper, experiments, chunksize=1)
    while not rs.ready():
      remaining = rs._number_left
      pctDone = 100.0 - (100.0*remaining) / len(experiments)
      print "    => {} experiments remaining, percent complete={}".format(\
        remaining, pctDone)
      time.sleep(5)
    pool.close()  # No more work
    pool.join()
    result = rs.get()
  else:
    result = []
    for arg in experiments:
      result.append(doExperiment(**arg))

  # Save results for later use
  results = [(arg,res) for arg, res in zip(experiments, result)]
  with open(resultName,"wb") as f:
    json.dump(results,f)

  return results
305089
def blpop(self, key, *keys, timeout=0, encoding=_NOTSET):
        
        if not isinstance(timeout, int):
            raise TypeError("timeout argument must be int")
        if timeout < 0:
            raise ValueError("timeout must be greater equal 0")
        args = keys + (timeout,)
        return self.execute(b'BLPOP', key, *args, encoding=encoding)
823253
def do_execute(self):
        
        result = None
        evl = self.input.payload
        pltclassifier.plot_prc(
            evl,
            class_index=self.resolve_option("class_index"),
            title=self.resolve_option("title"),
            key_loc=self.resolve_option("key_loc"),
            outfile=self.resolve_option("outfile"),
            wait=bool(self.resolve_option("wait")))
        return result
17664
def output(*args, **kwargs):
    '''
    '''
    indent = kwargs.pop('indent', 0)
    sep = kwargs.pop('sep', None)
    kwargs['sep'] = u''  # Sanity
    if sep is None:
        sep = u' '
    indent_str = u' ' * (indent * tab_width)
    text = sep.join(map(str_, args))
    color = kwargs.pop('color', None)
    if color:
        color.bright = kwargs.pop('bright', None)
        text = ColorText(text, color)
    print(indent_str + text, **kwargs)
11028
public void bindArgument(@NotNull PreparedStatement ps, int index, @Nullable Object value) throws SQLException {
        ArgumentBinder.bindArgument(ps, index, value);
    }
411661
private void appendInCriteria(TableAlias alias, PathInfo pathInfo, InCriteria c, StringBuffer buf)
    {
        appendColName(alias, pathInfo, c.isTranslateAttribute(), buf);
        buf.append(c.getClause());

        if (c.getValue() instanceof Collection)
        {
            Object[] values = ((Collection) c.getValue()).toArray();
            int size = ((Collection) c.getValue()).size();

            buf.append("(");
            if (size > 0)
            {
                for (int i = 0; i < size - 1; i++)
                {
                    appendParameter(values[i], buf);
                    buf.append(",");
                }
                appendParameter(values[size - 1], buf);
            }
            buf.append(")");
        }
        else
        {
            appendParameter(c.getValue(), buf);
        }
    }
446508
def run_ext(args):
    """"""
    try:
        subprocess.check_call(args)
    except subprocess.CalledProcessError as exc:
        print(exc)
        print(exc.cmd)
        print(exc.returncode)
        print(exc.output)
        raise
484452
def call(self, params, _context, **kwargs):
        ''''''

        assert len(params) == self.paramCount
        # using setattr because '=' is not allowed inside of lambdas
        return evaluate_impl(self.body, params).then(lambda value: setattr(_context.results, 'value', value))
792363
def run_extractor(*args, **kwargs):
    
    # pdb.set_trace()
    extractor = Extractor(*args, **kwargs)
    result = extractor.run(**kwargs)
802825
private void processElseIfCmd(String parms, int cmdTPosBegin, int cmdTPosEnd)
            throws MiniTemplator.TemplateSyntaxException {
        excludeTemplateRange(cmdTPosBegin, cmdTPosEnd);
        if (condLevel < 0) {
            throw new MiniTemplator.TemplateSyntaxException("$elseIf without matching $if.");
        }
        boolean enabled = isCondEnabled(condLevel - 1) && !condPassed[condLevel] && evaluateConditionFlags(parms);
        condEnabled[condLevel] = enabled;
        if (enabled) {
            condPassed[condLevel] = true;
        }
    }
1063266
private void runImpl() throws IOException, SQLException, Throwable {
		if(args!=null && args.length>0) {
			handleCommandImpl(args);
		} else {
			// The arguments that have been read so far
			List<String> arguments=new ArrayList<>();

			// The argument that is being read.
			StringBuilder argument=new StringBuilder();
			boolean hasArgument=false;
			int quoteChar=-1;

			if(isInteractive) {
				out.print(getPrompt());
				out.flush();
			}
			// Read until end of file or exit command
			int ch;
			while((ch=in.read())!=-1) {
				// Skip windows '\r'
				if(ch!='\r') {
					if(ch=='\\') {
						// Process escapes
						ch=in.read();
						if(ch==-1) throw new EOFException("unexpected EOF processing escape: \\");
						if(ch=='\r') {
							// Skip windows '\r'
							ch=in.read();
							if(ch==-1) throw new EOFException("unexpected EOF processing escape: \\");
						}
						// Skip '\n' when it is escaped
						if(ch=='\n') {
							if(isInteractive) {
								out.print("\\> ");
								out.flush();
							}
						} else {
							// skip the escape only when followed by ' when using single quotes
							if(quoteChar=='\'' && ch!='\'') {
								argument.append('\\').append((char)ch);
								hasArgument=true;
							} else {
								// use the second character for anything left
								argument.append((char)ch);
								hasArgument=true;
							}
						}
					} else if(quoteChar=='\'') {
						// Handle reading single quote
						if(ch=='\'') quoteChar=-1;
						else {
							argument.append((char)ch);
							if(isInteractive && ch=='\n') {
								out.print("'> ");
								out.flush();
							}
						}
					} else if(quoteChar=='"') {
						// Handle reading double quote
						if(ch=='"') quoteChar=-1;
						else {
							argument.append((char)ch);
							if(isInteractive && ch=='\n') {
								out.print("\"> ");
								out.flush();
							}
						}
					} else {
						// Read as unquoted input
						if(ch=='\n') {
							// End of line means end of command if not in a quote mode
							if(hasArgument) {
								arguments.add(argument.toString());
								argument.setLength(0);
								hasArgument=false;
							}
							if(isInteractive) printFinishedJobs();
							if(arguments.size()>0) {
								boolean doMore=handleCommandImpl(arguments);
								arguments.clear();
								if(!doMore) break;
							}
							if(isInteractive) {
								out.print(getPrompt());
								out.flush();
							}
						} else if(ch<=' ') {
							// Whitespace separates commands or is skipped
							if(hasArgument) {
								arguments.add(argument.toString());
								argument.setLength(0);
								hasArgument=false;
							}
						} else if(ch=='\'' || ch=='"') {
							// Beginning quote
							quoteChar=ch;
							hasArgument=true;
						} else {
							// Everything else is part of the argument are begins the next argument
							argument.append((char)ch);
							hasArgument=true;
						}
					}
				}
			}
			// If currently parsing quote, throw error
			if(quoteChar!=-1) throw new EOFException("unexpected EOF when processing quote: "+quoteChar);

			// If commands have been parsed and not executed, run them now
			if(hasArgument) {
				arguments.add(argument.toString());
				argument.setLength(0);
			}
			if(arguments.size()>0) {
				handleCommandImpl(arguments);
				arguments.clear();
			}
			if(status==null || "Running".equals(status)) status="Done";
		}
		// Make the parent of all children the parent of this, and add children to the parents processes
		ShellInterpreter myparent=this.parent;
		synchronized(jobs) {
			for (ShellInterpreter shell : jobs) {
				shell.parent=myparent;
				if(myparent!=null) myparent.jobs.add(shell); // Should this synchronize myparent.jobs, too?
			}
			jobs.clear();
		}
	}
351999
def gpp(argv=None):
    """"""
    if argv is None:
        argv = sys.argv[1:]
    argv.insert(0, 'preview')
    return main(argv)