private ComposedCallback( final ObjectArrayList<Callback> callbacks ) { super(); this.callbacks = callbacks; this.size = callbacks.size(); this.cont = new boolean[ size ]; this.callback = new Callback[ size ]; this.callbacks.toArray( callback ); }
private ComposedCallback( final ObjectArrayList<Callback> callbacks ) { super(); this.callbacks = callbacks; this.size = callbacks.size(); this.cont = new boolean[ size ]; this.callback = new Callback[ size ]; this.callbacks.toArray( callback ); }
public String[][] getStrings() { String[][] res = new String[strings.length][]; for(int i = 0; i < strings.length; i++) { if(strings[i] == null) { res[i] = new String[0]; } else { res[i] = strings[i].toArray(new String[strings[i].size()]); } } return res; } }
@Override public String[] getComponentNames() { return componentNames.toArray(new String[componentNames.size()]); }
private ComposedCallback(final ObjectArrayList<Callback> callbacks) { super(); this.callbacks = callbacks; this.size = callbacks.size(); this.cont = new boolean[size]; this.callback = new Callback[size]; this.callbacks.toArray(callback); }
final ArcLabelledImmutableGraph g = new IntegerTriplesArcLabelledImmutableGraph(list.toArray(new int[0][])); BVGraph.store(g, basename + ArcLabelledImmutableGraph.UNDERLYINGGRAPH_SUFFIX); BitStreamArcLabelledImmutableGraph.store(g, basename, basename + ArcLabelledImmutableGraph.UNDERLYINGGRAPH_SUFFIX);
@Override public String[] performanceMetrics() { ObjectArrayList<String> metrics = new ObjectArrayList<>(); metrics.add("validationScore"); metrics.addAll(helper.getMetricNames()); return metrics.toArray(new String[metrics.size()]); }
@Override protected String[] createOutputHeader() { initializeStats(""); ObjectArrayList<String> values = new ObjectArrayList<>(); values.addAll(it.unimi.dsi.fastutil.objects.ObjectArrayList.wrap(orderStats)); values.add("AUC"); values.add("[AUC95"); values.add("AUC95]"); return values.toArray(new String[0]); }
String s; while( ( s = bufferedReader.readLine() ) != null ) files.add( s ); file = files.toArray( new String[ 0 ] );
/** Starting rule for a OR-query. * @param indexAlias the index alias for the default index to be used for the query that is going to be parsed. * @return the result of the query. */ final public Query orQuery(String indexAlias) throws ParseException {Query res; ObjectArrayList<Query> qrm = new ObjectArrayList<Query>(); res = orderedAndQuery(indexAlias); qrm.add( res ); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { case OR:{ ; break; } default: jj_la1[4] = jj_gen; break label_2; } jj_consume_token(OR); if ( DEBUG ) System.err.println( "Building OR query" ); res = orderedAndQuery(indexAlias); qrm.add( res ); } if ( qrm.size() == 1 ) {if ("" != null) return res;} {if ("" != null) return new Or( qrm.toArray( Queries.EMPTY_ARRAY ) );} throw new Error("Missing return statement in function"); }
/** Starting rule for a OR-query. * @param indexAlias the index alias for the default index to be used for the query that is going to be parsed. * @return the result of the query. */ final public Query orQuery(String indexAlias) throws ParseException {Query res; ObjectArrayList<Query> qrm = new ObjectArrayList<Query>(); res = orderedAndQuery(indexAlias); qrm.add( res ); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { case OR:{ ; break; } default: jj_la1[7] = jj_gen; break label_2; } jj_consume_token(OR); if ( DEBUG ) System.err.println( "Building OR query" ); res = orderedAndQuery(indexAlias); qrm.add( res ); } if ( qrm.size() == 1 ) {if ("" != null) return res;} {if ("" != null) return new Or( qrm.toArray( Queries.EMPTY_ARRAY ) );} throw new Error("Missing return statement in function"); }
{if ("" != null) return new OrderedAnd( qrm.toArray( Queries.EMPTY_ARRAY ) );} throw new Error("Missing return statement in function");
String s; while ( ( s = bufferedReader.readLine() ) != null ) files.add( s ); file = files.toArray( new String[ 0 ] );
String s; while ( ( s = bufferedReader.readLine() ) != null ) files.add( s ); file = files.toArray( new String[ 0 ] );
String s; while ( ( s = bufferedReader.readLine() ) != null ) files.add( s ); file = files.toArray( new String[ 0 ] );
@DataProvider(name = "OutputProvider") public Object[][] OutputProvider() { ObjectArrayList<Object[]> tests = new ObjectArrayList<Object[]>(); final ATDTestCommandLineProgram clp = new ATDTestCommandLineProgram(); for ( final Object obj : Arrays.asList(clp.new OutputRequiredSamArgumentSource(), clp.new OutputRequiredVcfArgumentSource(), clp.new OutputRequiredStreamArgumentSource()) ) { for ( final boolean provided : Arrays.asList(true, false) ) { tests.add(new Object[]{obj, true, true, provided}); } } for ( final Object obj : Arrays.asList(clp.new OutputNotRequiredSamArgumentSource(), clp.new OutputNotRequiredVcfArgumentSource(), clp.new OutputNotRequiredStreamArgumentSource()) ) { for ( final boolean provided : Arrays.asList(true, false) ) { tests.add(new Object[]{obj, false, true, provided}); } } for ( final Object obj : Arrays.asList(clp.new OutputNotRequiredNoDefaultSamArgumentSource(), clp.new OutputNotRequiredNoDefaultVcfArgumentSource(), clp.new OutputNotRequiredNoDefaultStreamArgumentSource()) ) { for ( final boolean provided : Arrays.asList(true, false) ) { tests.add(new Object[]{obj, false, false, provided}); } } return tests.toArray(new Object[][]{}); }
{if ("" != null) return new MultiTerm( qrm.toArray( new Query[ qrm.size() ] ) );} throw new Error("Missing return statement in function");
/** Starting rule for a OR-query. * @param indexAlias the index alias for the default index to be used for the query that is going to be parsed. * @return the result of the query. */ final public Query orQuery(String indexAlias) throws ParseException { Query res; ObjectArrayList<Query> qrm = new ObjectArrayList<Query>(); res = orderedAndQuery(indexAlias); qrm.add( res ); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR: ; break; default: jj_la1[4] = jj_gen; break label_2; } jj_consume_token(OR); if ( DEBUG ) System.err.println( "Building OR query" ); res = orderedAndQuery(indexAlias); qrm.add( res ); } if ( qrm.size() == 1 ) {if (true) return res;} {if (true) return new Or( qrm.toArray( Queries.EMPTY_ARRAY ) );} throw new Error("Missing return statement in function"); }
/** Starting rule for an AND<-query. * @param indexAlias the index alias for the default index to be used for the query that is going to be parsed. * @return the result of the query. */ final public Query orderedAndQuery(String indexAlias) throws ParseException { Query res; ObjectArrayList<Query> qrm = new ObjectArrayList<Query>(); res = alignQuery(indexAlias); if ( DEBUG ) System.err.println( "Building AND< query: " + res ); qrm.add( res ); label_4: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OAND: ; break; default: jj_la1[7] = jj_gen; break label_4; } jj_consume_token(OAND); res = alignQuery(indexAlias); if ( DEBUG ) System.err.println( "Building AND< query: " + res ); qrm.add( res ); } if ( qrm.size() == 1 ) {if (true) return res;} {if (true) return new OrderedAnd( qrm.toArray( Queries.EMPTY_ARRAY ) );} throw new Error("Missing return statement in function"); }
{if (true) return new MultiTerm( qrm.toArray( new Query[ qrm.size() ] ) );} throw new Error("Missing return statement in function");