buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
@Override public ESLogger newInstance(String prefix, String name) { final java.util.logging.Logger logger = java.util.logging.Logger.getLogger(name); return new JdkESLogger(prefix, name, logger); } }
@Override protected ESLogger newInstance(String prefix, String name) { final java.util.logging.Logger logger = java.util.logging.Logger.getLogger(name); return new JdkESLogger(prefix, name, logger); } }
@Override public ESLogger newInstance(String prefix, String name) { final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(name); return new Log4jESLogger(prefix, logger); } }
@Override protected ESLogger newInstance(String prefix, String name) { final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(name); return new Log4jESLogger(prefix, logger); } }
@Override public ESLogger newInstance(String prefix, String name) { return new Slf4jESLogger(prefix, LoggerFactory.getLogger(name)); } }
@Override protected ESLogger newInstance(String prefix, String name) { return new Slf4jESLogger(prefix, LoggerFactory.getLogger(name)); } }
public ThreadPool(Settings settings) { super(settings); Map<String, Settings> groupSettings = settings.getGroups("threadpool"); Map<String, ExecutorHolder> executors = Maps.newHashMap(); executors.put(Names.GENERIC, build(Names.GENERIC, "cached", groupSettings.get(Names.GENERIC), s...
public ThreadPool(Settings settings) { super(settings); Map<String, Settings> groupSettings = settings.getGroups("threadpool"); Map<String, ExecutorHolder> executors = Maps.newHashMap(); executors.put(Names.GENERIC, build(Names.GENERIC, "cached", groupSettings.get(Names.GENERIC), s...
public void testGetFields_complexField() throws Exception { client().admin().indices().prepareCreate("my-index") .setSettings(ImmutableSettings.settingsBuilder().put("index.refresh_interval", -1)) .addMapping("my-type2", jsonBuilder().startObject().startObject("my-type2").sta...
public void testGetFields_complexField() throws Exception { client().admin().indices().prepareCreate("my-index") .setSettings(ImmutableSettings.settingsBuilder().put("index.refresh_interval", -1)) .addMapping("my-type2", jsonBuilder().startObject().startObject("my-type2").sta...
public boolean touchUp (int x, int y, int pointer, int button) { mouseDown = false; if (ignoreMouse) { ignoreMouse = false; return false; } boolean handled = gui.handleMouse(x, y, 0, false); if (Gdx.app.getType() == ApplicationType.Android) { // Move mouse away since there is no mouse cursor on andr...
public boolean touchUp (int x, int y, int pointer, int button) { mouseDown = false; if (ignoreMouse) { ignoreMouse = false; return false; } boolean handled = gui.handleMouse(x, y, button, false); if (Gdx.app.getType() == ApplicationType.Android) { // Move mouse away since there is no mouse cursor on...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(avg("avg"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(avg("avg"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(extendedStats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(extendedStats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(max("max"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(max("max"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(min("min"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(min("min"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(stats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(stats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(sum("sum"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(sum("sum"))) ...
protected void draw(SpriteBatch batch, float parentAlpha) { final BitmapFont font = style.font; final Color fontColor = style.fontColor; if(invalidated) layout(); font.setColor(fontColor); font.drawMultiLine(batch, label, x + textPos.x, y + height); }
protected void draw(SpriteBatch batch, float parentAlpha) { final BitmapFont font = style.font; final Color fontColor = style.fontColor; if(invalidated) layout(); font.setColor(fontColor.r, fontColor.g, fontColor.b, fontColor.a * parentAlpha); font.drawMultiLine(batch, label, x + textPos.x, y + height); ...
@Override protected void configure() { bind(MergePolicyProvider.class) .to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class, "org.elasticsearch.index.merge.policy", "MergePolicyProvider")) .asEagerSingleton(); }
@Override protected void configure() { bind(MergePolicyProvider.class) .to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class, "org.elasticsearch.index.merge.policy.", "MergePolicyProvider")) .asEagerSingleton(); }
@Override protected void configure() { bind(MergeSchedulerProvider.class) .to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class, "org.elasticsearch.index.scheduler", "MergeSchedulerProvider")) .asEagerSingleton();
@Override protected void configure() { bind(MergeSchedulerProvider.class) .to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class, "org.elasticsearch.index.scheduler.", "MergeSchedulerProvider")) .asEagerSingleton();
public static void main (String[] argv) { // if(argv.length != 1 && argv.length != 2) { // System.out.println("KeyframedModelViewer <filename> ?<texture-filename>"); // System.exit(-1); // } new LwjglApplication(new SkeletonModelViewer("data/robot-mesh.xml", "data/robot.jpg"), "SkeletonModel Viewer", 800, 480, fa...
public static void main (String[] argv) { // if(argv.length != 1 && argv.length != 2) { // System.out.println("KeyframedModelViewer <filename> ?<texture-filename>"); // System.exit(-1); // } new LwjglApplication(new SkeletonModelViewer("data/models/robot-mesh.xml", "data/models/robot.jpg"), "SkeletonModel Viewer", 8...
@Override public void create () { Gdx.app.log("MD5 Test", "created"); model = MD5Loader.loadModel(Gdx.files.internal("data/zfat.md5mesh").read(), false); anim = MD5Loader.loadAnimation(Gdx.files.internal("data/walk1.md5anim").read()); skeleton = new MD5Joints(); skeleton.joints = new float[anim.frames[0].joi...
@Override public void create () { Gdx.app.log("MD5 Test", "created"); model = MD5Loader.loadModel(Gdx.files.internal("data/zfat.md5mesh").read(), true); anim = MD5Loader.loadAnimation(Gdx.files.internal("data/walk1.md5anim").read()); skeleton = new MD5Joints(); skeleton.joints = new float[anim.frames[0].join...
public static final Class[] tests = { AlphaTest.class, AudioDeviceTest.class, AudioRecorderTest.class, BitmapFontAlignmentTest.class, BitmapFontFlipTest.class, BitmapFontTest.class, BobTest.class, Box2DTest.class, Box2DTestCollection.class, FilesTest.class, //FillrateTest.class, FloatTest.class...
public static final Class[] tests = { AlphaTest.class, AudioDeviceTest.class, AudioRecorderTest.class, BitmapFontAlignmentTest.class, BitmapFontFlipTest.class, BitmapFontTest.class, BobTest.class, Box2DTest.class, Box2DTestCollection.class, FilesTest.class, //FillrateTest.class, FloatTest.class...
public void test4093() { assertAcked(prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder() .put("index.store.type", "memory") .put("cache.memory.large_cache_size", new ByteSizeValue(1, ByteSizeUnit.MB)) // no need to cache a lot .put("index.num...
public void test4093() { assertAcked(prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder() .put("index.store.type", "memory") .put("cache.memory.large_cache_size", new ByteSizeValue(1, ByteSizeUnit.MB)) // no need to cache a lot .put("index.num...
private KeyframedModel buildModel (MD2Header header, MD2Triangle[] triangles, float[] texCoords, MD2Frame[] frames) { ArrayList<VertexIndices> vertCombos = new ArrayList<VertexIndices>(); short[] indices = new short[triangles.length * 3]; int idx = 0; short vertIdx = 0; for (int i = 0; i < triangles.length; ...
private KeyframedModel buildModel (MD2Header header, MD2Triangle[] triangles, float[] texCoords, MD2Frame[] frames) { ArrayList<VertexIndices> vertCombos = new ArrayList<VertexIndices>(); short[] indices = new short[triangles.length * 3]; int idx = 0; short vertIdx = 0; for (int i = 0; i < triangles.length; ...
public void setAnimation(String name, float time) { SkeletonAnimation anim = animations.get(name); if(anim == null) throw new IllegalArgumentException("Animation with name '" + name + "' does not exist"); if(time < 0 || time > anim.duration) throw new IllegalArgumentException("time must be 0 <= time <= animati...
public void setAnimation(String name, float time) { SkeletonAnimation anim = animations.get(name); if(anim == null) throw new IllegalArgumentException("Animation with name '" + name + "' does not exist"); if(time < 0 || time > anim.totalDuration) throw new IllegalArgumentException("time must be 0 <= time <= an...
private Skeleton generateSkeleton (com.badlogic.gdx.graphics.g3d.orgrexml.skeleton.Skeleton ogreSkel) { List<Bone> bones = ogreSkel.getBones().getBone(); List<SkeletonJoint> joints = new ArrayList<SkeletonJoint>(); Map<String, SkeletonJoint> nameToJoint = new HashMap<String, SkeletonJoint>(); for(int i = 0; i ...
private Skeleton generateSkeleton (com.badlogic.gdx.graphics.g3d.orgrexml.skeleton.Skeleton ogreSkel) { List<Bone> bones = ogreSkel.getBones().getBone(); List<SkeletonJoint> joints = new ArrayList<SkeletonJoint>(); Map<String, SkeletonJoint> nameToJoint = new HashMap<String, SkeletonJoint>(); for(int i = 0; i ...
@Override public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); Gdx.gl.glEnable(GL10.GL_TEXTURE_2D); Gdx.gl.glEnable(GL10.GL_LIGHTING); Gdx.gl.glEnable(GL10.GL_COLOR_MATERIAL); cam.u...
@Override public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); Gdx.gl.glEnable(GL10.GL_TEXTURE_2D); Gdx.gl.glEnable(GL10.GL_LIGHTING); Gdx.gl.glEnable(GL10.GL_COLOR_MATERIAL); cam.u...
public Facet reduce(ReduceContext context) { List<Facet> facets = context.facets(); if (facets.size() == 1) { return facets.get(0); } int count = 0; for (Facet facet : facets) { count += ((FilterFacet) facet).getCount(); } return new In...
public Facet reduce(ReduceContext context) { List<Facet> facets = context.facets(); if (facets.size() == 1) { return facets.get(0); } long count = 0; for (Facet facet : facets) { count += ((FilterFacet) facet).getCount(); } return new I...
public Facet reduce(ReduceContext context) { List<Facet> facets = context.facets(); if (facets.size() == 1) { return facets.get(0); } int count = 0; for (Facet facet : facets) { count += ((QueryFacet) facet).getCount(); } return new Int...
public Facet reduce(ReduceContext context) { List<Facet> facets = context.facets(); if (facets.size() == 1) { return facets.get(0); } long count = 0; for (Facet facet : facets) { count += ((QueryFacet) facet).getCount(); } return new In...
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.FramebufferToTextureTest(), "Debug Test", 480, 320, false); }
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.SimpleAnimationTest(), "Debug Test", 480, 320, false); }
public static void serialize(Shape shape, XContentBuilder builder) throws IOException { if (shape instanceof JtsGeometry) { Geometry geometry = ((JtsGeometry) shape).geo; if (geometry instanceof Point) { serializePoint((Point) geometry, builder); } else if...
public static void serialize(Shape shape, XContentBuilder builder) throws IOException { if (shape instanceof JtsGeometry) { Geometry geometry = ((JtsGeometry) shape).getGeom(); if (geometry instanceof Point) { serializePoint((Point) geometry, builder); } e...
public UnicastZenPing(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName) { super(settings); this.threadPool = threadPool; this.transportService = transportService; this.clusterName = clusterName; List<String> hosts = Lists.n...
public UnicastZenPing(Settings settings, ThreadPool threadPool, TransportService transportService, ClusterName clusterName) { super(settings); this.threadPool = threadPool; this.transportService = transportService; this.clusterName = clusterName; List<String> hosts = Lists.n...
public boolean touchDragged (ActorEvent event, float x, float y, int pointer) { System.out.println("dragged " + x + ", " + y); return true; } }); button.setPosition(100, 100); stage.addActor(button); meow.setDuration(2); //actor.addAction(parallel(moveBy(250, 250, 2))); actor.addAction(paral...
public boolean touchDragged (ActorEvent event, float x, float y, int pointer) { System.out.println("dragged " + x + ", " + y); return true; } }); button.setPosition(100, 100); stage.addActor(button); meow.setDuration(2); //actor.addAction(parallel(moveBy(250, 250, 2))); actor.addAction(paral...
@Override public Boolean getAsBoolean(String setting, Boolean defaultValue) { String sValue = get(setting); if (sValue == null) { return defaultValue; } try { return Boolean.valueOf(sValue); } catch (NumberFormatException e) { throw new Set...
@Override public Boolean getAsBoolean(String setting, Boolean defaultValue) { String sValue = get(setting); if (sValue == null) { return defaultValue; } try { return sValue.equals("true") || sValue.equals("1"); } catch (NumberFormatException e) { ...
public void hitExecute(SearchContext context, HitContext hitContext) throws ElasticSearchException { List<String> matchedFilters = Lists.newArrayListWithCapacity(2); for (Map.Entry<String, Filter> entry : context.parsedQuery().namedFilters().entrySet()) { String name = entry.getKey(); ...
public void hitExecute(SearchContext context, HitContext hitContext) throws ElasticSearchException { List<String> matchedFilters = Lists.newArrayListWithCapacity(2); for (Map.Entry<String, Filter> entry : context.parsedQuery().namedFilters().entrySet()) { String name = entry.getKey(); ...
@Override protected ShardStatus shardOperation(IndexShardStatusRequest request) throws ElasticSearchException { InternalIndexService indexService = (InternalIndexService) indicesService.indexServiceSafe(request.index()); InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSafe(req...
@Override protected ShardStatus shardOperation(IndexShardStatusRequest request) throws ElasticSearchException { InternalIndexService indexService = (InternalIndexService) indicesService.indexServiceSafe(request.index()); InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSafe(req...
public long getTranslogNumberOfOperations() { return translog.size(); }
public long getTranslogNumberOfOperations() { return translog.numberOfOperations(); }
protected String defaultPostingFormat() { return "bloom_default"; }
protected String defaultPostingFormat() { return "default"; }
protected BinaryFieldMapper(Names names, FieldType fieldType, Boolean compress, long compressThreshold, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider) { super(names, 1.0f, fieldType, null, null, postingsProvider, docValuesProvider, null, n...
protected BinaryFieldMapper(Names names, FieldType fieldType, Boolean compress, long compressThreshold, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider) { super(names, 1.0f, fieldType, null, null, null, postingsProvider, docValuesProvider, n...
protected BooleanFieldMapper(Names names, float boost, FieldType fieldType, Boolean nullValue, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, SimilarityProvider similarity, @Nullable Settings fieldDataSettings, Se...
protected BooleanFieldMapper(Names names, float boost, FieldType fieldType, Boolean nullValue, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, SimilarityProvider similarity, @Nullable Settings fieldDataSettings, Se...
public CompletionFieldMapper(Names names, NamedAnalyzer indexAnalyzer, NamedAnalyzer searchAnalyzer, PostingsFormatProvider postingsProvider, SimilarityProvider similarity, boolean payloads, boolean preserveSeparators, boolean preservePositionIncrements, int maxInputLength) { ...
public CompletionFieldMapper(Names names, NamedAnalyzer indexAnalyzer, NamedAnalyzer searchAnalyzer, PostingsFormatProvider postingsProvider, SimilarityProvider similarity, boolean payloads, boolean preserveSeparators, boolean preservePositionIncrements, int maxInputLength) { ...
public GeoShapeFieldMapper(FieldMapper.Names names, SpatialPrefixTree tree, String defaultStrategyName, double distanceErrorPct, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider) { super(names, 1, fieldType, null, null, po...
public GeoShapeFieldMapper(FieldMapper.Names names, SpatialPrefixTree tree, String defaultStrategyName, double distanceErrorPct, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider) { super(names, 1, fieldType, null, null, nu...
protected AllFieldMapper(String name, FieldType fieldType, NamedAnalyzer indexAnalyzer, NamedAnalyzer searchAnalyzer, boolean enabled, boolean autoBoost, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, SimilarityProvider s...
protected AllFieldMapper(String name, FieldType fieldType, NamedAnalyzer indexAnalyzer, NamedAnalyzer searchAnalyzer, boolean enabled, boolean autoBoost, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, SimilarityProvider s...
protected RoutingFieldMapper(FieldType fieldType, boolean required, String path, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(Defaults.NAME, Defaults.NAME, ...
protected RoutingFieldMapper(FieldType fieldType, boolean required, String path, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(Defaults.NAME, Defaults.NAME, ...
public SizeFieldMapper(EnabledAttributeMapper enabled, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(Defaults.NAME), Defaults.PRECISION_STEP, ...
public SizeFieldMapper(EnabledAttributeMapper enabled, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(Defaults.NAME), Defaults.PRECISION_STEP, ...
protected SourceFieldMapper(String name, boolean enabled, String format, Boolean compress, long compressThreshold, String[] includes, String[] excludes) { super(new Names(name, name, name, name), Defaults.BOOST, new FieldType(Defaults.FIELD_TYPE), Lucene.KEYWO...
protected SourceFieldMapper(String name, boolean enabled, String format, Boolean compress, long compressThreshold, String[] includes, String[] excludes) { super(new Names(name, name, name, name), Defaults.BOOST, new FieldType(Defaults.FIELD_TYPE), null, Lucene...
protected TTLFieldMapper(FieldType fieldType, EnabledAttributeMapper enabled, long defaultTTL, Explicit<Boolean> ignoreMalformed, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settin...
protected TTLFieldMapper(FieldType fieldType, EnabledAttributeMapper enabled, long defaultTTL, Explicit<Boolean> ignoreMalformed, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settin...
public TypeFieldMapper(String name, String indexName, float boost, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(name, indexName, indexName, n...
public TypeFieldMapper(String name, String indexName, float boost, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(name, indexName, indexName, n...
public VersionFieldMapper() { this(null); } VersionFieldMapper(DocValuesFormatProvider docValuesFormat) { super(new Names(NAME, NAME, NAME, NAME), Defaults.BOOST, Defaults.FIELD_TYPE, null, null, null, docValuesFormat, null, null, ImmutableSettings.EMPTY); }
public VersionFieldMapper() { this(null); } VersionFieldMapper(DocValuesFormatProvider docValuesFormat) { super(new Names(NAME, NAME, NAME, NAME), Defaults.BOOST, Defaults.FIELD_TYPE, null, null, null, null, docValuesFormat, null, null, ImmutableSettings.EMPTY); }
public KeyframeAnimation sampleAnimationFromMD5(MD5Model md5model, MD5Renderer md5renderer, MD5Animator md5animator, MD5Animation md5animation, float sampleRate, String modelAsset, String animKey) { this.assetName = modelAsset; numMeshes = md5model.meshes.length; boolean cached = false; if(animator == null...
public KeyframeAnimation sampleAnimationFromMD5(MD5Model md5model, MD5Renderer md5renderer, MD5Animator md5animator, MD5Animation md5animation, float sampleRate, String modelAsset, String animKey) { this.assetName = modelAsset; numMeshes = md5model.meshes.length; boolean cached = false; if(animator == null...
public Object clone() { // we clone and we need to make sure we keep the same positions! CompressedIndexInput cloned = (CompressedIndexInput) super.clone(); cloned.uncompressed = new byte[uncompressedLength]; System.arraycopy(uncompressed, 0, cloned.uncompressed, 0, uncompressedLengt...
public IndexInput clone() { // we clone and we need to make sure we keep the same positions! CompressedIndexInput cloned = (CompressedIndexInput) super.clone(); cloned.uncompressed = new byte[uncompressedLength]; System.arraycopy(uncompressed, 0, cloned.uncompressed, 0, uncompressedL...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; Filter filter = null; boolean filterFound = false; float boost = 1.0f; ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; Filter filter = null; boolean filterFound = false; float boost = 1.0f; ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { Query query = parseContext.parseInnerQuery(); if (query == null) { return null; } return Queries.wrap(query); }
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { Query query = parseContext.parseInnerQuery(); if (query == null) { return null; } return Queries.wrap(query, parseContext); }
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 SharedLib...
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 SharedLib...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; float boost = 1.0f; FiltersFunctionScoreQuery.ScoreMode scoreMode = FiltersFunctionScoreQuery.ScoreMode.Multiply; ...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; float boost = 1.0f; FiltersFunctionScoreQuery.ScoreMode scoreMode = FiltersFunctionScoreQuery.ScoreMode.Multiply; ...
protected void loadObject(MapLayer layer, Element element) { if (element.getName().equals("object")) { MapObject object = null; int x = element.getIntAttribute("x", 0); int y = element.getIntAttribute("y", 0); int width = element.getIntAttribute("width", 0); int height = element.getIntAttribut...
protected void loadObject(MapLayer layer, Element element) { if (element.getName().equals("object")) { MapObject object = null; int x = element.getIntAttribute("x", 0); int y = element.getIntAttribute("y", 0); int width = element.getIntAttribute("width", 0); int height = element.getIntAttribut...
private void showSource() { editor.setSource(file.getFilename(), file.getContent()); }
private void showSource() { editor.setSource(file.getFilename(), file.getContent(), false); }
public DebugRect (String type, int x, int y, int width, int height) { super(x, y, width, height - 1); this.type = type; } }
public DebugRect (String type, int x, int y, int width, int height) { super(x, y, width, height); this.type = type; } }
public void setText (String text) { cache.setText(text, 0, 0); TextBounds bounds = cache.getBounds(); width = bounds.width; height = bounds.height; }
public void setText (String text) { cache.setText(text, 0, cache.getFont().isFlipped() ? 0 : cache.getFont().getCapHeight()); TextBounds bounds = cache.getBounds(); width = bounds.width; height = bounds.height; }
@Override public void render () { int centerX = Gdx.graphics.getWidth() / 2; int centerY = Gdx.graphics.getHeight() / 2; Gdx.graphics.getGL10().glClear(GL10.GL_COLOR_BUFFER_BIT); if (textPosition.x < 0 || textPosition.x > Gdx.graphics.getWidth()) textDirection.x = -textDirection.x; if (textPosition.y < 0 |...
@Override public void render () { int centerX = Gdx.graphics.getWidth() / 2; int centerY = Gdx.graphics.getHeight() / 2; Gdx.graphics.getGL10().glClear(GL10.GL_COLOR_BUFFER_BIT); if (textPosition.x < 0 || textPosition.x > Gdx.graphics.getWidth()) textDirection.x = -textDirection.x; if (textPosition.y < 0 |...
public void calculateVerticesJni (MD5Joints skeleton, float[] verts) { MD5Jni.calculateVertices(skeleton.joints, weights, vertices, verts, numVertices); }
public void calculateVerticesJni (MD5Joints skeleton, float[] verts) { MD5Jni.calculateVertices(skeleton.joints, weights, vertices, verts, vertices.length, floatsPerVertex, floatsPerWeight); }
private void writeIndex(String reason, IndexMetaData indexMetaData, @Nullable IndexMetaData previousIndexMetaData) throws Exception { logger.trace("[{}] writing state, reason [{}]", indexMetaData.index(), reason); XContentBuilder builder = XContentFactory.contentBuilder(format, new BytesStreamOutput...
private void writeIndex(String reason, IndexMetaData indexMetaData, @Nullable IndexMetaData previousIndexMetaData) throws Exception { logger.trace("[{}] writing state, reason [{}]", indexMetaData.index(), reason); XContentBuilder builder = XContentFactory.contentBuilder(format, new BytesStreamOutput...
private final String getNodeUUID(Settings settings) { String seed = settings.get("discovery.id.seed"); if (seed != null) { logger.warn("using stable discover node UUIDs with seed: [{}]", seed); Strings.randomBase64UUID(new Random(Long.parseLong(seed))); } retu...
private final String getNodeUUID(Settings settings) { String seed = settings.get("discovery.id.seed"); if (seed != null) { logger.trace("using stable discover node UUIDs with seed: [{}]", seed); Strings.randomBase64UUID(new Random(Long.parseLong(seed))); } ret...
public void hitExecute(SearchContext context, HitContext hitContext) throws ElasticsearchException { Map<String, HighlightField> highlightFields = newHashMap(); for (SearchContextHighlight.Field field : context.highlight().fields()) { Set<String> fieldNamesToHighlight; if (Re...
public void hitExecute(SearchContext context, HitContext hitContext) throws ElasticsearchException { Map<String, HighlightField> highlightFields = newHashMap(); for (SearchContextHighlight.Field field : context.highlight().fields()) { Set<String> fieldNamesToHighlight; if (Re...
public void draw (Batch batch, float parentAlpha) { validate(); Drawable background = null; float offsetX = 0, offsetY = 0; if (isPressed() && !isDisabled()) { background = style.down == null ? style.up : style.down; offsetX = style.pressedOffsetX; offsetY = style.pressedOffsetY; } else { if (is...
public void draw (Batch batch, float parentAlpha) { validate(); Drawable background = null; float offsetX = 0, offsetY = 0; if (isPressed() && !isDisabled()) { background = style.down == null ? style.up : style.down; offsetX = style.pressedOffsetX; offsetY = style.pressedOffsetY; } else { if (is...
public DoubleArrayAtomicFieldData loadDirect(AtomicReaderContext context) throws Exception { AtomicReader reader = context.reader(); Terms terms = reader.terms(getFieldNames().indexName()); if (terms == null) { return DoubleArrayAtomicFieldData.EMPTY; } // TODO: ...
public DoubleArrayAtomicFieldData loadDirect(AtomicReaderContext context) throws Exception { AtomicReader reader = context.reader(); Terms terms = reader.terms(getFieldNames().indexName()); if (terms == null) { return DoubleArrayAtomicFieldData.EMPTY; } // TODO: ...
public FloatArrayAtomicFieldData loadDirect(AtomicReaderContext context) throws Exception { AtomicReader reader = context.reader(); Terms terms = reader.terms(getFieldNames().indexName()); if (terms == null) { return FloatArrayAtomicFieldData.EMPTY; } // TODO: how...
public FloatArrayAtomicFieldData loadDirect(AtomicReaderContext context) throws Exception { AtomicReader reader = context.reader(); Terms terms = reader.terms(getFieldNames().indexName()); if (terms == null) { return FloatArrayAtomicFieldData.EMPTY; } // TODO: how...
public GeoPointDoubleArrayAtomicFieldData loadDirect(AtomicReaderContext context) throws Exception { AtomicReader reader = context.reader(); Terms terms = reader.terms(getFieldNames().indexName()); if (terms == null) { return GeoPointDoubleArrayAtomicFieldData.EMPTY; } ...
public GeoPointDoubleArrayAtomicFieldData loadDirect(AtomicReaderContext context) throws Exception { AtomicReader reader = context.reader(); Terms terms = reader.terms(getFieldNames().indexName()); if (terms == null) { return GeoPointDoubleArrayAtomicFieldData.EMPTY; } ...
protected boolean readyBuffer() throws IOException { if (position < valid) { return true; } if (closed) { return false; } // we reached the end... if (currentOffsetIdx + 1 >= offsets.size) { return false; } valid = u...
protected boolean readyBuffer() throws IOException { if (position < valid) { return true; } if (closed) { return false; } // we reached the end... if (currentOffsetIdx + 1 >= offsets.size) { return false; } valid = u...
@Override public void render () { Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); cam.update(); cam.apply(Gdx.gl10); Gdx.gl.glEnable(GL10.GL_CULL_FACE); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); Gdx.gl.glActiveTexture(GL10.GL_TEXTUR...
@Override public void render () { Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); cam.update(); cam.apply(Gdx.gl10); Gdx.gl.glEnable(GL10.GL_CULL_FACE); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); Gdx.gl.glActiveTexture(GL10.GL_TEXTUR...
public ParticleEmitter newEmitter (String name, boolean select) { final ParticleEmitter emitter = new ParticleEmitter(); emitter.getDuration().setLow(3000, 3000); emitter.getEmission().setHigh(10, 10); emitter.getLife().setHigh(1000, 1000); emitter.getScale().setHigh(32, 32); emitter.getRotation().set...
public ParticleEmitter newEmitter (String name, boolean select) { final ParticleEmitter emitter = new ParticleEmitter(); emitter.getDuration().setLow(3000, 3000); emitter.getEmission().setHigh(10, 10); emitter.getLife().setHigh(1000, 1000); emitter.getScale().setHigh(32, 32); emitter.getRotation().set...
public void actionPerformed (ActionEvent event) { FileDialog dialog = new FileDialog(editor, "Open Image", FileDialog.LOAD); if (lastDir != null) dialog.setDirectory(lastDir); dialog.setVisible(true); final String file = dialog.getFile(); final String dir = dialog.getDirectory(); if (d...
public void actionPerformed (ActionEvent event) { FileDialog dialog = new FileDialog(editor, "Open Image", FileDialog.LOAD); if (lastDir != null) dialog.setDirectory(lastDir); dialog.setVisible(true); final String file = dialog.getFile(); final String dir = dialog.getDirectory(); if (d...
private static HashedBytesArray[] splitUidIntoTypeAndId(BytesRef uid) { int loc = -1; for (int i = uid.offset; i < uid.length; i++) { if (uid.bytes[i] == 0x23) { // 0x23 is equal to '#' loc = i; break; } } if (loc == -1) { ...
public static HashedBytesArray[] splitUidIntoTypeAndId(BytesRef uid) { int loc = -1; for (int i = uid.offset; i < uid.length; i++) { if (uid.bytes[i] == 0x23) { // 0x23 is equal to '#' loc = i; break; } } if (loc == -1) { ...
public static boolean isValid(final Event event) { if (event == null) return false; final EventPayload payload = event.getPayload(); if (payload == null || EventPayload.class.equals(payload.getClass())) return false; final String type = event.getType(); ...
public static boolean isValid(final Event event) { if (event == null) return false; final EventPayload payload = event.getPayload(); if (payload == null || EventPayload.class.equals(payload.getClass())) return false; final String type = event.getType(); ...
public void testFailure(Failure failure) throws Exception { // Ignore assumptions. if (failure.getException() instanceof AssumptionViolatedException) { return; } final Description d = failure.getDescription(); final StringBuilder b = new StringBuilder(); ...
public void testFailure(Failure failure) throws Exception { // Ignore assumptions. if (failure.getException() instanceof AssumptionViolatedException) { return; } final Description d = failure.getDescription(); final StringBuilder b = new StringBuilder(); ...
public String source() { return this.source(); }
public String source() { return source; }
@Override protected Field parseCreateField(ParseContext context) throws IOException { byte[] value; if (context.parser().currentToken() == XContentParser.Token.VALUE_NULL) { return null; } else { value = context.parser().binaryValue(); } if (value == n...
@Override protected Field parseCreateField(ParseContext context) throws IOException { byte[] value; if (context.parser().currentToken() == XContentParser.Token.VALUE_NULL) { return null; } else { value = context.parser().binaryValue(); } if (value == n...
@Override public DocIdSet getDocIdSet(IndexReader reader) throws IOException { DocIdSet docIdSet = parentDocs.get(reader.getFieldCacheKey()); if (docIdSet == null) { return DocIdSet.EMPTY_DOCIDSET; } return docIdSet; }
@Override public DocIdSet getDocIdSet(IndexReader reader) throws IOException { DocIdSet docIdSet = parentDocs.get(reader.getCoreCacheKey()); if (docIdSet == null) { return DocIdSet.EMPTY_DOCIDSET; } return docIdSet; }
@Test public void testFieldQuery2() throws IOException { IndexQueryParser queryParser = queryParser(); String query = copyToStringFromClasspath("/org/elasticsearch/index/query/xcontent/field2.json"); Query parsedQuery = queryParser.parse(query).query(); assertThat(parsedQuery, instan...
@Test public void testFieldQuery2() throws IOException { IndexQueryParser queryParser = queryParser(); String query = copyToStringFromClasspath("/org/elasticsearch/index/query/xcontent/field2.json"); Query parsedQuery = queryParser.parse(query).query(); assertThat(parsedQuery, instan...
public void lookAt(Vector3 position, Vector3 up) { dir.set(position).sub(this.position).nor(); setRotation(dir, Vector3.Y); }
public void lookAt(Vector3 position, Vector3 up) { dir.set(position).sub(this.position).nor(); setRotation(dir, up); }
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "histogram"); builder.field("_key_field", keyFieldName); builder.field("_value_field", valueFieldName); builder.field("_comparator",...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", HistogramFacetCollectorParser.NAME); builder.field("_key_field", keyFieldName); builder.field("_value_field", valueFieldName); build...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "statistical"); builder.field("_field", fieldName); builder.field("count", count()); builder.field("total", total()); builde...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", StatisticalFacetCollectorParser.NAME); builder.field("_field", fieldName); builder.field("count", count()); builder.field("total", t...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "terms"); builder.field("_field", fieldName); builder.startArray("terms"); for (Entry entry : entries) { builder.startOb...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", TermsFacetCollectorParser.NAME); builder.field("_field", fieldName); builder.startArray("terms"); for (Entry entry : entries) { ...
@Override public void shutdownNow() { started = false; if (!executorService.isTerminated()) { executorService.shutdownNow(); } if (!executorService.isTerminated()) { scheduledExecutorService.shutdownNow(); } if (!cached.isTerminated()) { ...
@Override public void shutdownNow() { started = false; if (!executorService.isTerminated()) { executorService.shutdownNow(); } if (!scheduledExecutorService.isTerminated()) { scheduledExecutorService.shutdownNow(); } if (!cached.isTerminated())...
public void update() { projection.setToOrtho(-viewportWidth / 2, viewportWidth / 2, -viewportHeight / 2, viewportHeight / 2, Math.abs(near), Math.abs(far)); view.setToLookAt(position, tmp.set(position).add(direction), up); combined.set(projection).mul(view); invProjectionView.set(combined); invProjectionVie...
public void update() { projection.setToOrtho(zoom * -viewportWidth / 2, zoom * viewportWidth / 2, zoom * -viewportHeight / 2, zoom * viewportHeight / 2, Math.abs(near), Math.abs(far)); view.setToLookAt(position, tmp.set(position).add(direction), up); combined.set(projection).mul(view); invProjectionView.set(c...
public RobinEngine(ShardId shardId, @IndexSettings Settings indexSettings, ThreadPool threadPool, IndexSettingsService indexSettingsService, ShardIndexingService indexingService, @Nullable IndicesWarmer warmer, Store store, SnapshotDeletionPolicy deletionPolicy, Translo...
public RobinEngine(ShardId shardId, @IndexSettings Settings indexSettings, ThreadPool threadPool, IndexSettingsService indexSettingsService, ShardIndexingService indexingService, @Nullable IndicesWarmer warmer, Store store, SnapshotDeletionPolicy deletionPolicy, Translo...
private final ThreadPool threadPool; volatile ImmutableMap<String, TransportRequestHandler> serverHandlers = ImmutableMap.of(); final Object serverHandlersMutex = new Object(); final ConcurrentMapLong<RequestHolder> clientHandlers = ConcurrentCollections.newConcurrentMapLong();
private final ThreadPool threadPool; volatile ImmutableMap<String, TransportRequestHandler> serverHandlers = ImmutableMap.of(); final Object serverHandlersMutex = new Object(); final ConcurrentMapLong<RequestHolder> clientHandlers = ConcurrentCollections.newConcurrentMapLongWithAggressiveConcurrency()...
public Aggregations getAggregations() { return aggregations; } <B extends Bucket> B reduce(List<B> buckets, BigArrays bigArrays) { List<InternalAggregations> aggregations = new ArrayList<>(buckets.size()); long docCount = 0; for (Bucket bucket : b...
public Aggregations getAggregations() { return aggregations; } <B extends Bucket> B reduce(List<B> buckets, BigArrays bigArrays) { List<InternalAggregations> aggregations = new ArrayList<>(buckets.size()); long docCount = 0; for (Bucket bucket : b...
@Test public void testSimpleMapper() throws Exception { XContentDocumentMapperParser mapperParser = MapperTests.newParser(); XContentDocumentMapper docMapper = doc("test", object("person") .add(object("name").add(stringField("first").store(YES).index(Field.Ind...
@Test public void testSimpleMapper() throws Exception { XContentDocumentMapperParser mapperParser = MapperTests.newParser(); XContentDocumentMapper docMapper = doc("test", rootObject("person") .add(object("name").add(stringField("first").store(YES).index(Field...
private void endContact (long contactAddr) { contact.addr = contactAddr; contact.GetWorldManifold(); if (contactListener != null) contactListener.endContact(contact); }
private void endContact (long contactAddr) { contact.addr = contactAddr; contact.getWorldManifold(); if (contactListener != null) contactListener.endContact(contact); }
public Button (ButtonStyle style, String name) { super(name); setStyle(style); initialize(); }
public Button (ButtonStyle style, String name) { super(null, null, null, name); setStyle(style); initialize(); }
public Window (String name, String title, Stage stage, WindowStyle style, int prefWidth, int prefHeight) { super(name); this.stage = stage; this.title = title; width = prefWidth; height = prefHeight; setStyle(style); transform = true; }
public Window (String name, String title, Stage stage, WindowStyle style, int prefWidth, int prefHeight) { super(null, null, null, name); this.stage = stage; this.title = title; width = prefWidth; height = prefHeight; setStyle(style); transform = true; }
private void createUI () { Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"), Gdx.files.internal("data/uiskin.png")); ui = new Stage(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false); String[] filters = new String[TextureFilter.values().length]; int idx = 0; for (TextureFilter filter : Tex...
private void createUI () { Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"), Gdx.files.internal("data/uiskin.png")); ui = new Stage(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false); String[] filters = new String[TextureFilter.values().length]; int idx = 0; for (TextureFilter filter : Tex...
@Override public void create () { if (!isInitialized) { screen = new GameOver(Gdx.app); Music music = Gdx.audio.newMusic(Gdx.files.getFileHandle("data/8.12.mp3", FileType.Internal)); music.setLooping(true); music.play(); isInitialized = true; } }
@Override public void create () { if (!isInitialized) { screen = new MainMenu(Gdx.app); Music music = Gdx.audio.newMusic(Gdx.files.getFileHandle("data/8.12.mp3", FileType.Internal)); music.setLooping(true); music.play(); isInitialized = true; } }
public void surfaceCreated(Application app) { if( music == null ) { app.getInput().addInputListener( this ); sound = app.getAudio().newSound( app.getFiles().getInternalFileHandle( "data/shotgun44k.ogg" ) ); music = app.getAudio().newMusic( app.getFiles().getInternalFileHandle( "data/cloudconnected....
public void surfaceCreated(Application app) { if( music == null ) { app.getInput().addInputListener( this ); sound = app.getAudio().newSound( app.getFiles().getInternalFileHandle( "data/shotgun.wav" ) ); music = app.getAudio().newMusic( app.getFiles().getInternalFileHandle( "data/cloudconnected.ogg...
private void sendPingRequest(int id) { synchronized (sendMutex) { try { HandlesStreamOutput out = BytesStreamOutput.Cached.cachedHandles(); out.writeInt(id); clusterName.writeTo(out); nodesProvider.nodes().localNode().writeTo(out); ...
private void sendPingRequest(int id) { synchronized (sendMutex) { try { HandlesStreamOutput out = CachedStreamOutput.cachedHandles(); out.writeInt(id); clusterName.writeTo(out); nodesProvider.nodes().localNode().writeTo(out); ...
@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject("_all"); builder.startObject("primaries"); primaries().toXContent(builder, params); builder.endObject(); builder.startObject("total"); primar...
@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject("_all"); builder.startObject("primaries"); primaries().toXContent(builder, params); builder.endObject(); builder.startObject("total"); total(...
public void draw (Batch batch, float parentAlpha) { validate(); Color color = getColor(); if (style.background != null) { batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); style.background.draw(batch, getX(), getY(), getWidth(), getHeight()); } cache.setColor(style.fontColor == null ? c...
public void draw (Batch batch, float parentAlpha) { validate(); Color color = getColor(); if (style.background != null) { batch.setColor(color.r, color.g, color.b, color.a * parentAlpha); style.background.draw(batch, getX(), getY(), getWidth(), getHeight()); } cache.setColors(style.fontColor == null ? ...
@Override public boolean hasExtension (String extension) { if(extensions == null) extensions = Gdx.gl.glGetString(GL10.GL_EXTENSIONS); return extensions.contains(extension); } }
@Override public boolean supportsExtension (String extension) { if(extensions == null) extensions = Gdx.gl.glGetString(GL10.GL_EXTENSIONS); return extensions.contains(extension); } }
@Override public void run() { recoveryStatus = new RecoveryStatus(); recoveryStatus.updateStage(RecoveryStatus.Stage.INIT); try { logger.debug("starting recovery from {} ...", shardGateway); shardGateway.recover(recover...
@Override public void run() { recoveryStatus = new RecoveryStatus(); recoveryStatus.updateStage(RecoveryStatus.Stage.INIT); try { logger.debug("starting recovery from {} ...", shardGateway); shardGateway.recover(recover...
private FieldSelector buildFieldSelectors(SearchContext context) { if (context.fieldNames() == null) { return new UidAndSourceFieldSelector(); } if (context.fieldNames().length == 0) { return new UidFieldSelector(); } FieldMappersFieldSelector fieldS...
private FieldSelector buildFieldSelectors(SearchContext context) { if (context.fieldNames() == null) { return new UidAndSourceFieldSelector(); } if (context.fieldNames().isEmpty()) { return new UidFieldSelector(); } FieldMappersFieldSelector fieldSel...
public static void main (String[] argv) { new LwjglApplication(new Cubocy(), "Cubocy", 480, 320, false); }
public static void main (String[] argv) { new LwjglApplication(new Cubocy(), "Cubocy", 480, 320, true); }