buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
@Override public boolean keyDown (int keyCode) { if (keyCode == Input.Keys.KEYCODE_COMMA) { if (m_bullet != null) { world.destroyBody(m_bullet); m_bullet = null; } { CircleShape shape = new CircleShape(); shape.setRadius(0.25f); FixtureDef fd = new FixtureDef(); fd.shape = shape; ...
@Override public boolean keyDown (int keyCode) { if (keyCode == Input.Keys.COMMA) { if (m_bullet != null) { world.destroyBody(m_bullet); m_bullet = null; } { CircleShape shape = new CircleShape(); shape.setRadius(0.25f); FixtureDef fd = new FixtureDef(); fd.shape = shape; fd.de...
protected Settings nodeSettings(int nodeOrdinal) { Settings settings = ImmutableSettings.builder() .put(TransportModule.TRANSPORT_TYPE_KEY, NettyTransport.class) // run same transport / disco as external .put(DiscoveryModule.DISCOVERY_TYPE_KEY, ZenDiscoveryModule.class) ...
protected Settings nodeSettings(int nodeOrdinal) { Settings settings = ImmutableSettings.builder() .put(TransportModule.TRANSPORT_TYPE_KEY, NettyTransport.class) // run same transport / disco as external .put(DiscoveryModule.DISCOVERY_TYPE_KEY, ZenDiscoveryModule.class) ...
public UserComparator(final GitHubAccount account) { login = account.username; }
public UserComparator(final GitHubAccount account) { login = account.getUsername(); }
private boolean isAuthenticatedUser() { return org.getLogin().equals(accountProvider.get().username); }
private boolean isAuthenticatedUser() { return org.getLogin().equals(accountProvider.get().getUsername()); }
public ActionRequestValidationException validate() { ActionRequestValidationException validationException = super.validate(); if (type == null) { validationException = addValidationError("type is missing", validationException); } if (id == null) { validationEx...
public ActionRequestValidationException validate() { ActionRequestValidationException validationException = super.validate(); if (type == null) { validationException = addValidationError("type is missing", validationException); } if (id == null) { validationEx...
public static ByteSizeValue parseBytesSizeValueOrHeapRatio(String sValue) { if (sValue.endsWith("%")) { final String percentAsString = sValue.substring(0, sValue.length() - 1); try { final double percent = Double.parseDouble(percentAsString); if (perce...
public static ByteSizeValue parseBytesSizeValueOrHeapRatio(String sValue) { if (sValue != null && sValue.endsWith("%")) { final String percentAsString = sValue.substring(0, sValue.length() - 1); try { final double percent = Double.parseDouble(percentAsString); ...
public final void close() { bigArrays.ramBytesUsed.addAndGet(-ramBytesUsed()); assert !released : "double release"; released = true; doClose(); }
public final void close() { bigArrays.adjustBreaker(-ramBytesUsed()); assert !released : "double release"; released = true; doClose(); }
public PercolateContext(PercolateShardRequest request, SearchShardTarget searchShardTarget, IndexShard indexShard, IndexService indexService, CacheRecycler cacheRecycler, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, ScriptService scriptService) { ...
public PercolateContext(PercolateShardRequest request, SearchShardTarget searchShardTarget, IndexShard indexShard, IndexService indexService, CacheRecycler cacheRecycler, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, ScriptService scriptService) { ...
public TestSearchContext(ThreadPool threadPool, CacheRecycler cacheRecycler, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, IndexService indexService, FilterCache filterCache, IndexFieldDataService indexFieldDataService) { this.cacheRecycler = cacheRecycler; this.pageCacheRecycler = pageC...
public TestSearchContext(ThreadPool threadPool, CacheRecycler cacheRecycler, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, IndexService indexService, FilterCache filterCache, IndexFieldDataService indexFieldDataService) { this.cacheRecycler = cacheRecycler; this.pageCacheRecycler = pageC...
public Preloader() { baseUrl = GWT.getModuleBaseURL().replace(GWT.getModuleName() + "/", ""); // trigger copying of assets creation of assets.txt
public Preloader() { baseUrl = GWT.getModuleBaseURL().replace(GWT.getModuleName() + "/", "") + "assets/"; // trigger copying of assets creation of assets.txt
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.MultiTouchActorTest(), "Debug Test", 480, 320, false); }
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.SimpleStageCullingTest(), "Debug Test", 480, 320, false); }
public Query createCommonTermsQuery(String field, String queryText, Occur highFreqOccur, Occur lowFreqOccur, float maxTermFrequency, FieldMapper<?> mapper) { Query booleanQuery = createBooleanQuery(field, queryText, Occur.SHOULD); if (booleanQuery != null && booleanQuery instanceof Boole...
public Query createCommonTermsQuery(String field, String queryText, Occur highFreqOccur, Occur lowFreqOccur, float maxTermFrequency, FieldMapper<?> mapper) { Query booleanQuery = createBooleanQuery(field, queryText, lowFreqOccur); if (booleanQuery != null && booleanQuery instanceof Boole...
private boolean allocateUnassigned(RoutingNodes routingNodes) { boolean changed = false; List<RoutingNode> nodes = routingNodes.sortedNodesLeastToHigh(); Iterator<MutableShardRouting> unassignedIterator = routingNodes.unassigned().iterator(); int lastNode = 0; while (unassig...
private boolean allocateUnassigned(RoutingNodes routingNodes) { boolean changed = false; List<RoutingNode> nodes = routingNodes.sortedNodesLeastToHigh(); Iterator<MutableShardRouting> unassignedIterator = routingNodes.unassigned().iterator(); int lastNode = 0; while (unassig...
public int compare(Repository lhs, Repository rhs) { String lId = lhs.generateId(); String rId = rhs.generateId(); if (recent.contains(lId) && !recent.contains(rId)) return -1; ...
public int compare(Repository lhs, Repository rhs) { String lId = lhs.generateId(); String rId = rhs.generateId(); if (recent.contains(lId) && !recent.contains(rId)) return -1; ...
@Override protected ThreadLocals.CleanableValue<GeoPoint[][]> initialValue() { GeoPoint[][] value = new GeoPoint[VALUE_CACHE_SIZE][]; for (int i = 0; i < value.length; i++) { value[i] = new GeoPoint[i]; for (int j = 0; j < value.length; j++) { ...
@Override protected ThreadLocals.CleanableValue<GeoPoint[][]> initialValue() { GeoPoint[][] value = new GeoPoint[VALUE_CACHE_SIZE][]; for (int i = 0; i < value.length; i++) { value[i] = new GeoPoint[i]; for (int j = 0; j < value[i].length; j++) { ...
private boolean workerCanExit() { final ReentrantLock mainLock = this.mainLock; mainLock.lock(); boolean canExit; try { canExit = runState >= STOP || (queueSize.get() == 0 && poolSize.get() > corePoolSize); } finally { mainLock.unlock(); } ...
private boolean workerCanExit() { final ReentrantLock mainLock = this.mainLock; mainLock.lock(); boolean canExit; try { canExit = runState >= STOP || (queueSize.get() == 0 && (runState >= SHUTDOWN || poolSize.get() > corePoolSize)); } finally { mainLoc...
private Table buildTable(RestRequest req, ClusterStateResponse state, NodesInfoResponse nodesInfo, NodesStatsResponse nodesStats) { boolean fullId = req.paramAsBoolean("full_id", false); DiscoveryNodes nodes = state.getState().nodes(); String masterId = nodes.masterNodeId(); Table t...
private Table buildTable(RestRequest req, ClusterStateResponse state, NodesInfoResponse nodesInfo, NodesStatsResponse nodesStats) { boolean fullId = req.paramAsBoolean("full_id", false); DiscoveryNodes nodes = state.getState().nodes(); String masterId = nodes.masterNodeId(); Table t...
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); float boost = 1.0f; String normsField = null; String currentFieldName = null; XContentParser.Token token; while ((...
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); float boost = 1.0f; String normsField = null; String currentFieldName = null; XContentParser.Token token; while ((...
@Override public void execute(SearchContext context) throws ElasticSearchException { if (context.facets() == null) { return; } if (context.queryResult().facets() != null) { // no need to compute the facets twice, they should be computed on a per context basis ...
@Override public void execute(SearchContext context) throws ElasticSearchException { if (context.facets() == null) { return; } if (context.queryResult().facets() != null) { // no need to compute the facets twice, they should be computed on a per context basis ...
public void updateViewFor(final Gist gist) { String id = gist.getId(); String description = gist.getDescription(); if (!gist.isPublic() && description != null && description.length() > 0 && id.length() > 8) id = id.substring(0, 8) + "..."; gistId.setText(id); tit...
public void updateViewFor(final Gist gist) { String id = gist.getId(); String description = gist.getDescription(); if (!gist.isPublic() && description != null && description.length() > 0 && id.length() > 8) id = id.substring(0, 8) + "..."; gistId.setText(id); tit...
public static void main (String[] argv) { JoglApplicationConfiguration config = new JoglApplicationConfiguration(); config.useGL20 = true; new JoglApplication(new com.badlogic.gdx.tests.ProjectiveTextureTest(), config); }
public static void main (String[] argv) { JoglApplicationConfiguration config = new JoglApplicationConfiguration(); config.useGL20 = true; new JoglApplication(new com.badlogic.gdx.tests.ETC1Test(), config); }
public void setEnabled (Actor actor, boolean enabled) { actor.setTouchable(enabled); // Get current style. Method method = findMethod(actor.getClass(), "getStyle"); if (method == null) return; Object style; try { style = method.invoke(actor); } catch (Exception ignored) { return; } // Determine...
public void setEnabled (Actor actor, boolean enabled) { actor.touchable = enabled; // Get current style. Method method = findMethod(actor.getClass(), "getStyle"); if (method == null) return; Object style; try { style = method.invoke(actor); } catch (Exception ignored) { return; } // Determine n...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { // if all are defaults, no sense to write it at all if (fieldType.indexed() == Defaults.FIELD_TYPE.indexed() && fieldType.stored() == Defaults.FIELD_TYPE.stored() && required == Defaults.RE...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { // if all are defaults, no sense to write it at all if (fieldType.indexed() == Defaults.FIELD_TYPE.indexed() && fieldType.stored() == Defaults.FIELD_TYPE.stored() && required == Defaults.RE...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { // if all are defaults, no sense to write it at all if (fieldType.indexed() == Defaults.FIELD_TYPE.indexed() && fieldType.stored() == Defaults.FIELD_TYPE.stored() && enabledState == Default...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { // if all are defaults, no sense to write it at all if (fieldType.indexed() == Defaults.FIELD_TYPE.indexed() && fieldType.stored() == Defaults.FIELD_TYPE.stored() && enabledState == Default...
public GetResult innerGet(String type, String id, String[] gFields, boolean realtime) throws ElasticSearchException { boolean loadSource = gFields == null || gFields.length > 0; Engine.GetResult get = null; if (type == null || type.equals("_all")) { for (String typeX : mapperServ...
public GetResult innerGet(String type, String id, String[] gFields, boolean realtime) throws ElasticSearchException { boolean loadSource = gFields == null || gFields.length > 0; Engine.GetResult get = null; if (type == null || type.equals("_all")) { for (String typeX : mapperServ...
public static boolean overlapConvexPolygons (Polygon p1, Polygon p2, Vector2 separation) { final float[] verts1 = p1.getTransformedVertices(); final float[] verts2 = p2.getTransformedVertices(); return !separateConvexPolygons(verts1, verts2, separation) && !separateConvexPolygons(verts2, verts1, separation); } ...
public static boolean overlapConvexPolygons (Polygon p1, Polygon p2, Vector2 separation) { final float[] verts1 = p1.getTransformedVertices(); final float[] verts2 = p2.getTransformedVertices(); return !separateConvexPolygons(verts1, verts2, separation) && !separateConvexPolygons(verts2, verts1, separation); } ...
public void layout () { if (sizeInvalid) computeSize(); layout(rootNodes, leftColumnWidth + indentSpacing, getHeight() - ySpacing / 2); }
public void layout () { if (sizeInvalid) computeSize(); layout(rootNodes, leftColumnWidth + indentSpacing + iconSpacing, getHeight() - ySpacing / 2); }
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); list.setOnItemClickListener(this); list.setFastScrollEnabled(true); list.addHeaderView(headerView, null, false); gist = store.getGist(gistId); if (gist != null) ...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); list.setOnItemClickListener(this); list.setFastScrollEnabled(true); list.addHeaderView(headerView, null, false); gist = store.getGist(gistId); if (gist != null) ...
@Override public DisplayMode[] getDisplayModes () { return new DisplayMode[0]; }
@Override public DisplayMode[] getDisplayModes () { return new DisplayMode[] { getDesktopDisplayMode() }; }
@Inject public PercolatorService(Index index, @IndexSettings Settings indexSettings, IndicesService indicesService, PercolatorExecutor percolator) { super(index, indexSettings); this.indicesService = indicesService; this.percolator = percolator; t...
@Inject public PercolatorService(Index index, @IndexSettings Settings indexSettings, IndicesService indicesService, PercolatorExecutor percolator) { super(index, indexSettings); this.indicesService = indicesService; this.percolator = percolator; t...
public RecoverySettings(Settings settings, NodeSettingsService nodeSettingsService) { super(settings); this.fileChunkSize = componentSettings.getAsBytesSize("file_chunk_size", settings.getAsBytesSize("index.shard.recovery.file_chunk_size", new ByteSizeValue(512, ByteSizeUnit.KB))); this.tra...
public RecoverySettings(Settings settings, NodeSettingsService nodeSettingsService) { super(settings); this.fileChunkSize = componentSettings.getAsBytesSize("file_chunk_size", settings.getAsBytesSize("index.shard.recovery.file_chunk_size", new ByteSizeValue(512, ByteSizeUnit.KB))); this.tra...
public IndicesStore(Settings settings, NodeEnvironment nodeEnv, NodeSettingsService nodeSettingsService, IndicesService indicesService, ClusterService clusterService, ThreadPool threadPool) { super(settings); this.nodeEnv = nodeEnv; this.nodeSettingsService = nodeSettingsService; thi...
public IndicesStore(Settings settings, NodeEnvironment nodeEnv, NodeSettingsService nodeSettingsService, IndicesService indicesService, ClusterService clusterService, ThreadPool threadPool) { super(settings); this.nodeEnv = nodeEnv; this.nodeSettingsService = nodeSettingsService; thi...
private void addSortField(SearchContext context, List<SortField> sortFields, String fieldName, boolean reverse, @Nullable final String missing) { if (SCORE_FIELD_NAME.equals(fieldName)) { if (reverse) { sortFields.add(SORT_SCORE_REVERSE); } else { sort...
private void addSortField(SearchContext context, List<SortField> sortFields, String fieldName, boolean reverse, @Nullable final String missing) { if (SCORE_FIELD_NAME.equals(fieldName)) { if (reverse) { sortFields.add(SORT_SCORE_REVERSE); } else { sort...
public static DocumentMapperParser newParser() { return new DocumentMapperParser(new Index("test"), newAnalysisService(), new PostingsFormatService(new Index("test")), new DocValuesFormatService(new Index("test")), newSimilarityLookupService()); }
public static DocumentMapperParser newParser() { return new DocumentMapperParser(new Index("test"), ImmutableSettings.Builder.EMPTY_SETTINGS, newAnalysisService(), new PostingsFormatService(new Index("test")), new DocValuesFormatService(new Index("test")), newSimilarityLookupService()); ...
public Pixmap(FileHandle file) { InputStream in = null; try { in = file.read(); pixmap = new Gdx2DPixmap(in, 0); } catch (Exception e) { throw new GdxRuntimeException("couldn't load file '" + file.name() + "', " + e.getMessage()); } finally { if(in != null); try { in.close(); } catch(Exception e...
public Pixmap(FileHandle file) { InputStream in = null; try { in = file.read(); pixmap = new Gdx2DPixmap(in, 0); } catch (Exception e) { throw new GdxRuntimeException("couldn't load file '" + file.name() + "'", e); } finally { if(in != null); try { in.close(); } catch(Exception e) { }; } }
public void writeDouble (double v) throws IOException { throw new RuntimeException("writeDouble"); }
public void writeDouble (double v) throws IOException { writeLong(Double.doubleToLongBits(v)); }
public void testUidBasedScriptFields() throws Exception { createIndex("test"); ensureYellow(); int numDocs = randomIntBetween(1, 30); IndexRequestBuilder[] indexRequestBuilders = new IndexRequestBuilder[numDocs]; for (int i = 0; i < numDocs; i++) { indexRequestBu...
public void testUidBasedScriptFields() throws Exception { prepareCreate("test").addMapping("type1", "num1", "type=long").execute().actionGet(); ensureYellow(); int numDocs = randomIntBetween(1, 30); IndexRequestBuilder[] indexRequestBuilders = new IndexRequestBuilder[numDocs]; ...
public void log (String tag, String message) { System.out.println(tag + ": " + message); }
public void log (String tag, String message) { System.out.println( message); }
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.INDICES); for (IndexSegments indexSegments : getIndices().values()) { builder.startObject(indexSegments.getIndex(), XContentBuilder.FieldCaseConversion.NONE); ...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.INDICES); for (IndexSegments indexSegments : getIndices().values()) { builder.startObject(indexSegments.getIndex(), XContentBuilder.FieldCaseConversion.NONE); ...
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException { builder.startObject(Fields.FILTER_CACHE); builder.byteSizeField(Fields.MEMORY_SIZE, Fields.MEMORY_SIZE_IN_BYTES, memorySize); builder.field(Fields.EVICTIONS, getEvictions()); bui...
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException { builder.startObject(Fields.FILTER_CACHE); builder.byteSizeField(Fields.MEMORY_SIZE_IN_BYTES, Fields.MEMORY_SIZE, memorySize); builder.field(Fields.EVICTIONS, getEvictions()); bui...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.ID_CACHE); builder.byteSizeField(Fields.MEMORY_SIZE, Fields.MEMORY_SIZE_IN_BYTES, memorySize); builder.endObject(); return builder; }
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.ID_CACHE); builder.byteSizeField(Fields.MEMORY_SIZE_IN_BYTES, Fields.MEMORY_SIZE, memorySize); builder.endObject(); return builder; }
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.FLUSH); builder.field(Fields.TOTAL, total); builder.timeValueField(Fields.TOTAL_TIME, Fields.TOTAL_TIME_IN_MILLIS, totalTimeInMillis); builder.endObject(); ...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.FLUSH); builder.field(Fields.TOTAL, total); builder.timeValueField(Fields.TOTAL_TIME_IN_MILLIS, Fields.TOTAL_TIME, totalTimeInMillis); builder.endObject(); ...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.PERCOLATE); builder.field(Fields.TOTAL, percolateCount); builder.timeValueField(Fields.TIME, Fields.TIME_IN_MILLIS, percolateTimeInMillis); builder.field(Fields.C...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.PERCOLATE); builder.field(Fields.TOTAL, percolateCount); builder.timeValueField(Fields.TIME_IN_MILLIS, Fields.TIME, percolateTimeInMillis); builder.field(Fields.C...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.REFRESH); builder.field(Fields.TOTAL, total); builder.timeValueField(Fields.TOTAL_TIME, Fields.TOTAL_TIME_IN_MILLIS, totalTimeInMillis); builder.endObject(); ...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.REFRESH); builder.field(Fields.TOTAL, total); builder.timeValueField(Fields.TOTAL_TIME_IN_MILLIS, Fields.TOTAL_TIME, totalTimeInMillis); builder.endObject(); ...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.WARMER); builder.field(Fields.CURRENT, current); builder.field(Fields.TOTAL, total); builder.timeValueField(Fields.TOTAL_TIME, Fields.TOTAL_TIME_IN_MILLIS, totalT...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.WARMER); builder.field(Fields.CURRENT, current); builder.field(Fields.TOTAL, total); builder.timeValueField(Fields.TOTAL_TIME_IN_MILLIS, Fields.TOTAL_TIME, totalT...
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList( AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPerformanceTest.class, ...
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList( AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPerformanceTest.class, ...
public void and (Bits other) { int commonWords = Math.min(bits.length, other.bits.length); for (int i = 0; commonWords > i; i++) { bits[i] &= other.bits[i]; } if (bits.length > commonWords) { for (int i = other.bits.length, s = bits.length; s > i; i++) { bits[i] = 0L; } } }
public void and (Bits other) { int commonWords = Math.min(bits.length, other.bits.length); for (int i = 0; commonWords > i; i++) { bits[i] &= other.bits[i]; } if (bits.length > commonWords) { for (int i = commonWords, s = bits.length; s > i; i++) { bits[i] = 0L; } } }
public static void main (String[] argv) { // this is only here for me to debug native code faster // new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); // new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); // new Sha...
public static void main (String[] argv) { // this is only here for me to debug native code faster // new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); // new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); // new Sha...
public static void main(String[] args) throws Exception { Random random = new Random(); Settings settings = settingsBuilder() .put("cluster.routing.schedule", 200, TimeUnit.MILLISECONDS) .put("index.engine.robin.refreshInterval", "-1") .put("gateway.t...
public static void main(String[] args) throws Exception { Random random = new Random(); Settings settings = settingsBuilder() .put("cluster.routing.schedule", 200, TimeUnit.MILLISECONDS) .put("index.engine.robin.refreshInterval", "-1") .put("gateway.t...
protected void configure() { bind(ClusterService.class).toProvider(Providers.of((ClusterService) null)); } } ).createInjector(); String mapping = copyToStringFromClasspath("/org/elasticsearch/test/unit/index/query/mapping.j...
protected void configure() { bind(ClusterService.class).toProvider(Providers.of((ClusterService) null)); } } ).createInjector(); String mapping = copyToStringFromClasspath("/org/elasticsearch/test/unit/index/query/mapping.j...
public void reset(XContentParser parser, Document document, String type, byte[] source, DocumentMapper.ParseListener listener) { this.parser = parser; this.document = document; this.analyzer = null; this.type = type; this.source = source; this.path.reset(); th...
public void reset(XContentParser parser, Document document, String type, byte[] source, DocumentMapper.ParseListener listener) { this.parser = parser; this.document = document; this.analyzer = null; this.type = type; this.source = source; this.path.reset(); th...
public void testLargeClusterStatePublishing() throws Exception { int estimatedBytesSize = scaledRandomIntBetween(ByteSizeValue.parseBytesSizeValue("10k").bytesAsInt(), ByteSizeValue.parseBytesSizeValue("256k").bytesAsInt()); XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().start...
public void testLargeClusterStatePublishing() throws Exception { int estimatedBytesSize = scaledRandomIntBetween(ByteSizeValue.parseBytesSizeValue("10k").bytesAsInt(), ByteSizeValue.parseBytesSizeValue("256k").bytesAsInt()); XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().start...
private HttpRequestBuilder callApiBuilder(String apiName, Map<String, String> params, String body) { RestApi restApi = restApi(apiName); HttpRequestBuilder httpRequestBuilder = httpRequestBuilder().body(body); //divide params between ones that go within query string and ones that go within...
private HttpRequestBuilder callApiBuilder(String apiName, Map<String, String> params, String body) { RestApi restApi = restApi(apiName); HttpRequestBuilder httpRequestBuilder = httpRequestBuilder().body(body); //divide params between ones that go within query string and ones that go within...
public IndicesStore(Settings settings, NodeEnvironment nodeEnv, NodeSettingsService nodeSettingsService, IndicesService indicesService, ClusterService clusterService, ThreadPool threadPool) { super(settings); this.nodeEnv = nodeEnv; this.nodeSettingsService = nodeSettingsService; thi...
public IndicesStore(Settings settings, NodeEnvironment nodeEnv, NodeSettingsService nodeSettingsService, IndicesService indicesService, ClusterService clusterService, ThreadPool threadPool) { super(settings); this.nodeEnv = nodeEnv; this.nodeSettingsService = nodeSettingsService; thi...
public static native String getFailureReason (); /* return env->NewStringUTF(gdx2d_get_failure_reason()); */
public static native String getFailureReason (); /* gdx2d_get_failure_reason(void); */
protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); return new IOSApplication(new BulletTestCollection(), config); }
protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); return new IOSApplication(new MyGdxGame(), config); }
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String childType = null; String executionType = "uid"; String filterName = ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String childType = null; String executionType = "uid"; String filterName = ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String parentType = null; String executionType = "uid"; String filterName =...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String parentType = null; String executionType = "uid"; String filterName =...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreType scoreType = ScoreType....
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreType scoreType = ScoreType....
public IndicesQueriesRegistry(Settings settings, @Nullable ClusterService clusterService) { Map<String, QueryParser> queryParsers = Maps.newHashMap(); addQueryParser(queryParsers, new TextQueryParser()); addQueryParser(queryParsers, new NestedQueryParser()); addQueryParser(queryParse...
public IndicesQueriesRegistry(Settings settings, @Nullable ClusterService clusterService) { Map<String, QueryParser> queryParsers = Maps.newHashMap(); addQueryParser(queryParsers, new MatchQueryParser()); addQueryParser(queryParsers, new NestedQueryParser()); addQueryParser(queryPars...
private String getSharedLibFilename (TargetOs os, boolean is64Bit, String sharedLibName) { // generate shared lib prefix and suffix, determine jni platform headers directory String libPrefix = ""; String libSuffix = ""; if (os == TargetOs.Windows) { libSuffix = (is64Bit ? "64" : "") + ".dll"; } if (os =...
private String getSharedLibFilename (TargetOs os, boolean is64Bit, String sharedLibName) { // generate shared lib prefix and suffix, determine jni platform headers directory String libPrefix = ""; String libSuffix = ""; if (os == TargetOs.Windows) { libSuffix = (is64Bit ? "64" : "") + ".dll"; } if (os =...
public void create () { font = new BitmapFont(); batch = new SpriteBatch(); try { Vector2 fromDefaultConstructor = ClassReflection.newInstance(Vector2.class); println("From default constructor: " + fromDefaultConstructor); Method mSet = ClassReflection.getMethod(Vector2.class, "set", float.class, floa...
public void create () { font = new BitmapFont(); batch = new SpriteBatch(); try { Vector2 fromDefaultConstructor = ClassReflection.newInstance(Vector2.class); println("From default constructor: " + fromDefaultConstructor); Method mSet = ClassReflection.getMethod(Vector2.class, "set", float.class, floa...
public void windowClosed (WindowEvent event) { System.exit(0); // Gdx.app.quit(); } }); initializeComponents(); setSize(950, 950); setLocationRelativeTo(null); setDefaultCloseOperation(DISPOSE_ON_CLOSE); setVisible(true); }
public void windowClosed (WindowEvent event) { System.exit(0); // Gdx.app.quit(); } }); initializeComponents(); setSize(1000, 950); setLocationRelativeTo(null); setDefaultCloseOperation(DISPOSE_ON_CLOSE); setVisible(true); }
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, BitmapFontParameter parameter) { Array<AssetDescriptor> deps = new Array<AssetDescriptor>(); if (parameter != null && parameter.bitmapFontData != null) { data = parameter.bitmapFontData; return deps; } data = new BitmapFontD...
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, BitmapFontParameter parameter) { Array<AssetDescriptor> deps = Array.of(AssetDescriptor.class); if (parameter != null && parameter.bitmapFontData != null) { data = parameter.bitmapFontData; return deps; } data = new BitmapFo...
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, ParticleEffectParameter param) { Array<AssetDescriptor> deps = null; if (param != null && param.atlasFile != null) { deps = new Array<AssetDescriptor>(); deps.add(new AssetDescriptor<TextureAtlas>(param.atlasFile, TextureAtlas.c...
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, ParticleEffectParameter param) { Array<AssetDescriptor> deps = null; if (param != null && param.atlasFile != null) { deps = Array.of(AssetDescriptor.class); deps.add(new AssetDescriptor<TextureAtlas>(param.atlasFile, TextureAtla...
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle atlasFile, TextureAtlasParameter parameter) { FileHandle imgDir = atlasFile.parent(); if (parameter != null) data = new TextureAtlasData(atlasFile, imgDir, parameter.flip); else { data = new TextureAtlasData(atlasFile, imgDir, fals...
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle atlasFile, TextureAtlasParameter parameter) { FileHandle imgDir = atlasFile.parent(); if (parameter != null) data = new TextureAtlasData(atlasFile, imgDir, parameter.flip); else { data = new TextureAtlasData(atlasFile, imgDir, fals...
protected Array<Decal> newObject () { return new Array<Decal>(); } };
protected Array<Decal> newObject () { return Array.of(Decal.class); } };
public BulkRequest add(byte[] data, int from, int length, boolean contentUnsafe) throws Exception { XContent xContent = XContentFactory.xContent(data, from, length); byte marker = xContent.streamSeparator(); while (true) { int nextMarker = findNextMarker(marker, from, data, lengt...
public BulkRequest add(byte[] data, int from, int length, boolean contentUnsafe) throws Exception { XContent xContent = XContentFactory.xContent(data, from, length); byte marker = xContent.streamSeparator(); while (true) { int nextMarker = findNextMarker(marker, from, data, lengt...
private VertexAttribute[] parseAttributes (JsonValue attributes) { Array<VertexAttribute> vertexAttributes = new Array<VertexAttribute>(); int unit = 0; int blendWeightCount = 0; for (JsonValue value = attributes.child; value != null; value = value.next) { String attribute = value.asString(); String attr...
private VertexAttribute[] parseAttributes (JsonValue attributes) { Array<VertexAttribute> vertexAttributes = new Array<VertexAttribute>(); int unit = 0; int blendWeightCount = 0; for (JsonValue value = attributes.child; value != null; value = value.next) { String attribute = value.asString(); String attr...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(layout.pager_with_title); ActionBar actionBar = getSupportActionBar(); actionBar.setTitle(repository.getName()); actionBar.setSubtitle(repository.getOwner().getLogin()); ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(layout.pager_with_title); ActionBar actionBar = getSupportActionBar(); actionBar.setTitle(repository.getName()); actionBar.setSubtitle(repository.getOwner().getLogin()); ...
public Object invoke (Object obj, Object... params) { if (parameters != null && (params == null || params.length != parameters.length)) throw new IllegalArgumentException("Parameter mismatch"); if (parameters == null && params != null && params.length > 0) { throw new IllegalArgumentException("Parameter mism...
public Object invoke (Object obj, Object... params) { if (parameters != null && (params == null || params.length != parameters.length)) throw new IllegalArgumentException("Parameter mismatch"); if (parameters == null && params != null && params.length > 0) { throw new IllegalArgumentException("Parameter mism...
public byte[] readBytes () { int length = (int)length(); if (length == 0) length = 512; byte[] buffer = new byte[length]; int position = 0; InputStream input = read(); try { while (true) { int count = input.read(buffer, position, buffer.length - position); if (count == -1) break; position +=...
public byte[] readBytes () { int length = (int)length(); if (length == 0) length = 512; byte[] buffer = new byte[length]; int position = 0; InputStream input = read(); try { while (true) { int count = input.read(buffer, position, buffer.length - position); if (count == -1) break; position +=...
public float apply (float a) { return MathUtils.clamp(a * a * a * (a * (a * 6 - 15) + 10), 0, 1); } };
public float apply (float a) { return a * a * a * (a * (a * 6 - 15) + 10); } };
public static boolean pushScissors (Rectangle scissor) { fix(scissor); if (scissors.size == 0) { if (scissor.width < 1 || scissor.height < 1) return false; Gdx.gl.glEnable(GL10.GL_SCISSOR_TEST); } else { // merge scissors Rectangle parent = scissors.get(scissors.size - 1); float minX = Math.max(p...
public static boolean pushScissors (Rectangle scissor) { fix(scissor); if (scissors.size == 0) { if (scissor.width < 1 || scissor.height < 1) return false; Gdx.gl.glEnable(GL10.GL_SCISSOR_TEST); } else { // merge scissors Rectangle parent = scissors.get(scissors.size - 1); float minX = Math.max(p...
public boolean touchDown (int x, int y, int pointer, int button) { Vector2 current = getCurrentPosition(); position.set(current); targetPosition.set(x - 10, Gdx.graphics.getHeight() - y - 10); timer = 0; return true; } })); root = new Table(); stage.addActor(root); root.pad(10).top()....
public boolean touchDown (int x, int y, int pointer, int button) { Vector2 current = getCurrentPosition(); position.set(current); targetPosition.set(x - 10, Gdx.graphics.getHeight() - y - 10); timer = 0; return true; } })); root = new Table(); stage.addActor(root); root.pad(10).top()....
public void render () { Gdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); if (Gdx.input.isTouched()) { Vector2 stageCoords = Vector2.tmp; stage.screenToStageCoordinates(stageCoords.set(Gdx.input...
public void render () { Gdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); if (Gdx.input.isTouched()) { Vector2 stageCoords = Vector2.tmp; stage.screenToStageCoordinates(stageCoords.set(Gdx.input...
public synchronized void clear () { loadQueue.clear(); while (!update()); HashMap<String, Integer> dependencyCount = new HashMap<String, Integer>(); while(assetTypes.size > 0) { // for each asset, figure out how often it was referenced dependencyCount.clear(); Array<String> assets = assetTypes.keys()...
public synchronized void clear () { loadQueue.clear(); while (!update()); HashMap<String, Integer> dependencyCount = new HashMap<String, Integer>(); // FIXME use ObjectIntMap once its ready. while(assetTypes.size > 0) { // for each asset, figure out how often it was referenced dependencyCount.clear(); ...
@Override public String contentType() { return "application/json; charset=UTF-8"; }
@Override public String contentType() { return builder.contentType().restContentType(); }
@Override protected MappingUpdatedResponse masterOperation(MappingUpdatedRequest request, ClusterState state) throws ElasticSearchException { try { metaDataMappingService.updateMapping(request.index(), request.type(), request.mappingSource()); } catch (Exception e) { throw ne...
@Override protected MappingUpdatedResponse masterOperation(MappingUpdatedRequest request, ClusterState state) throws ElasticSearchException { try { metaDataMappingService.updateMapping(request.index(), request.type(), request.mappingSource()); } catch (Exception e) { throw ne...
private static native void nativeArraycopy(Object src, int srcOfs, Object dest, int destOfs, int len) /*-{ // TODO(jgw): using Function.apply() blows up for large arrays (around 8k items at least). if (src == dest && srcOfs < destOfs) { srcOfs += len; for (var destEnd = destOfs + len; destEn...
private static native void nativeArraycopy(Object src, int srcOfs, Object dest, int destOfs, int len) /*-{ // TODO(jgw): using Function.apply() blows up for large arrays (around 8k items at least). if (src == dest && srcOfs < destOfs) { srcOfs += len; for (var destEnd = destOfs + len; destEn...
private static final String EMAIL_END = "</div>"; private static final String HIDDEN_REPLY_START = "<div class=\"email-hidden-reply style=\" display:none>";
private static final String EMAIL_END = "</div>"; private static final String HIDDEN_REPLY_START = "<div class=\"email-hidden-reply\" style=\" display:none\">";
public void tick() { final long t = System.nanoTime(); if (lastTick > 0L) tick((t - lastTick) * nano2seconds); lastTick = t; }
public void tick() { final long t = System.nanoTime(); if (lastTick > 0L) tick((lastTick - t) * nano2seconds); lastTick = t; }
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList( AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPerformanceTest.class, ...
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList( AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPerformanceTest.class, ...
public InputStream read () { if (type == FileType.Classpath || (type == FileType.Internal && !file().exists()) || (type == FileType.Local && !file().exists())) { InputStream input = FileHandle.class.getResourceAsStream("/" + file().getPath().replace('\\', '/')); if (input == null) throw new GdxRuntimeExcept...
public InputStream read () { if (type == FileType.Classpath || (type == FileType.Internal && !file().exists()) || (type == FileType.Local && !file().exists())) { InputStream input = FileHandle.class.getResourceAsStream("/" + file.getPath().replace('\\', '/')); if (input == null) throw new GdxRuntimeExceptio...
public LwjglCanvas (ApplicationListener listener, boolean useGL2) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.useGL20 = true; initialize(listener, config); }
public LwjglCanvas (ApplicationListener listener, boolean useGL2) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.useGL20 = useGL2; initialize(listener, config); }
public Object instantiateItem(ViewGroup container, int position) { Object fragment = super.instantiateItem(container, position); if (position == 2 && fragment instanceof Fragment) tags.add(((Fragment) fragment).getTag()); return fragment; }
public Object instantiateItem(ViewGroup container, int position) { Object fragment = super.instantiateItem(container, position); if (fragment instanceof Fragment) tags.add(((Fragment) fragment).getTag()); return fragment; }
public static boolean executeAnt (String buildFile, String params) { FileDescriptor build = new FileDescriptor(buildFile); String ant = System.getProperty("os.name").contains("Windows") ? "ant.bat" : "ant"; String command = ant + " -f " + build.file().getAbsolutePath() + " " + params; System.out.println("Execu...
public static boolean executeAnt (String buildFile, String params) { FileDescriptor build = new FileDescriptor(buildFile); String ant = System.getProperty("os.name").contains("Windows") ? "ant.bat" : "ant"; String command = ant + " -f \"" + build.file().getAbsolutePath() + "\" " + params; System.out.println("E...
public void setNextReader(AtomicReaderContext context) throws IOException { collector.setNextReader(context); docSet = DocSets.convert(context.reader(), filter.getDocIdSet(context)); }
public void setNextReader(AtomicReaderContext context) throws IOException { collector.setNextReader(context); docSet = DocSets.convert(context.reader(), filter.getDocIdSet(context, null)); }
public void consumeCompressedData () { if (!isPrepared) throw new GdxRuntimeException("Call prepare() before calling consumeCompressedData()"); if (Gdx.app.getType() == ApplicationType.Desktop || Gdx.graphics.isGL20Available() == false) { Pixmap pixmap = ETC1.decodeImage(data, Format.RGB565); Gdx.gl.glTexIm...
public void consumeCompressedData () { if (!isPrepared) throw new GdxRuntimeException("Call prepare() before calling consumeCompressedData()"); if (!Gdx.graphics.supportsExtension("GL_OES_compressed_ETC1_RGB8_texture") || Gdx.graphics.isGL20Available() == false) { Pixmap pixmap = ETC1.decodeImage(data, Format....
public IndexRequestBuilder setOpType(String opType) { request.opType(opType); return this; }
public IndexRequestBuilder setOpType(String opType) { request.opType(IndexRequest.OpType.fromString(opType)); return this; }
public Result prepare(UpdateRequest request, IndexShard indexShard) { long getDate = System.currentTimeMillis(); final GetResult getResult = indexShard.getService().get(request.type(), request.id(), new String[]{RoutingFieldMapper.NAME, ParentFieldMapper.NAME, TTLFieldMapper.NAME}, ...
public Result prepare(UpdateRequest request, IndexShard indexShard) { long getDate = System.currentTimeMillis(); final GetResult getResult = indexShard.getService().get(request.type(), request.id(), new String[]{RoutingFieldMapper.NAME, ParentFieldMapper.NAME, TTLFieldMapper.NAME}, ...
public void run() { ClusterState state = client().admin().cluster().prepareState().setLocal(true).execute().actionGet().getState(); assertTrue(state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK)); } }); try { client().prepareGet("...
public void run() { ClusterState state = client().admin().cluster().prepareState().setLocal(true).execute().actionGet().getState(); assertTrue(state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK)); } }); try { client().prepareGet("...
public void testParserCanExtractTemplateNames() throws Exception { String templateString = "{ \"template\": { \"query\": \"storedTemplate\" ,\"params\":{\"template\":\"all\" } } } "; XContentParser templateSourceParser = XContentFactory.xContent(templateString).createParser(templateString); ...
public void testParserCanExtractTemplateNames() throws Exception { String templateString = "{ \"template\": { \"file\": \"storedTemplate\" ,\"params\":{\"template\":\"all\" } } } "; XContentParser templateSourceParser = XContentFactory.xContent(templateString).createParser(templateString); ...
public void testAliasCrudRouting() throws Exception { createIndex("test"); ensureGreen(); assertAcked(admin().indices().prepareAliases().addAliasAction(newAddAliasAction("test", "alias0").routing("0"))); logger.info("--> indexing with id [1], and routing [0] using alias"); c...
public void testAliasCrudRouting() throws Exception { createIndex("test"); ensureGreen(); assertAcked(admin().indices().prepareAliases().addAliasAction(newAddAliasAction("test", "alias0").routing("0"))); logger.info("--> indexing with id [1], and routing [0] using alias"); c...
public void testNativeScript() { Settings settings = ImmutableSettings.settingsBuilder() .put("script.native.my.type", MyNativeScriptFactory.class.getName()) .put("name", "testNativeScript") .build(); Injector injector = new ModulesBuilder().add( ...
public void testNativeScript() { Settings settings = ImmutableSettings.settingsBuilder() .put("script.native.my.type", MyNativeScriptFactory.class.getName()) .put("name", "testNativeScript") .build(); Injector injector = new ModulesBuilder().add( ...
public void testThatUpdateUsingNativeScriptWorks() throws Exception { createIndex("test"); ensureYellow(); index("test", "type", "1", "text", "value"); Map<String, Object> params = Maps.newHashMap(); params.put("foo", "SETVALUE"); client().prepareUpdate("test", "typ...
public void testThatUpdateUsingNativeScriptWorks() throws Exception { createIndex("test"); ensureYellow(); index("test", "type", "1", "text", "value"); Map<String, Object> params = Maps.newHashMap(); params.put("foo", "SETVALUE"); client().prepareUpdate("test", "typ...
public Dialog show (Stage stage) { clearActions(); removeCaptureListener(ignoreTouchDown); previousKeyboardFocus = null; Actor actor = stage.getKeyboardFocus(); if (actor != null && !actor.isDescendantOf(this)) previousKeyboardFocus = actor; previousScrollFocus = null; actor = stage.getScrollFocus(); ...
public Dialog show (Stage stage) { clearActions(); removeCaptureListener(ignoreTouchDown); previousKeyboardFocus = null; Actor actor = stage.getKeyboardFocus(); if (actor != null && !actor.isDescendantOf(this)) previousKeyboardFocus = actor; previousScrollFocus = null; actor = stage.getScrollFocus(); ...
public TextBounds getBounds (CharSequence str) { return getBounds(str, 0, str.length()); }
public TextBounds getBounds (CharSequence str) { return getBounds(str, 0, str.length(), cache.getBounds()); }
public static void main( String[] argv ) { new JoglApplication( new com.badlogic.gdx.tests.OrthoCamTest(), "Debug Test", 600, 320, false ); }
public static void main( String[] argv ) { new JoglApplication( new com.badlogic.gdx.tests.OrthoCamBorderTest(), "Debug Test", 800, 480, false ); }
public HeaderFileProcessor () { header = new FileHandle("data/licence-header.txt").readString(); setInputSuffix(".java"); setFlattenOutput(false); setRecursive(true); }
public HeaderFileProcessor () { header = new FileHandle("data/licence-header.txt").readString(); addInputSuffix(".java"); setFlattenOutput(false); setRecursive(true); }