buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public IOSObjectALSound (FileHandle filePath) {
soundPath = filePath.file().getPath().replace('\\', '/');
soundBuffer = OALSimpleAudio.sharedInstance().preloadEffect(soundPath);
}
| public IOSObjectALSound (FileHandle filePath) {
soundPath = filePath.path();
soundBuffer = OALSimpleAudio.sharedInstance().preloadEffect(soundPath);
}
|
public FileHandle child (String name) {
return new GwtFileHandle(preloader, file.isEmpty() ? "" : (file + (file.endsWith("/") ? "" : "/")) + name, FileType.Internal);
}
| public FileHandle child (String name) {
return new GwtFileHandle(preloader, file + (file.endsWith("/") ? "" : "/") + name, FileType.Internal);
}
|
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 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 noPreferenceRandom() throws Exception {
client().admin().indices().prepareCreate("test").setSettings(settingsBuilder().put("index.number_of_shards", 1).put("index.number_of_replicas", 1)).execute().actionGet();
client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID)... | public void noPreferenceRandom() throws Exception {
client().admin().indices().prepareCreate("test").setSettings(settingsBuilder().put("index.number_of_shards", 1).put("index.number_of_replicas", 1)).execute().actionGet();
ensureGreen();
client().prepareIndex("test", "type1").setSource("fie... |
public void set (int x, int y, int width, int height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
} | public void set (float x, float y, float width, float height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
} |
public void fillCircle (int x, int y, int radius) {
pixmap.drawCircle(x, y, radius, color);
}
| public void fillCircle (int x, int y, int radius) {
pixmap.fillCircle(x, y, radius, color);
}
|
public void load (GradientColorValue value) {
super.load(value);
colors = new float[3];
System.arraycopy(value.colors, 0, colors, 0, colors.length);
timeline = new float[value.timeline.length];
System.arraycopy(value.timeline, 0, timeline, 0, timeline.length);
}
}
| public void load (GradientColorValue value) {
super.load(value);
colors = new float[value.colors.length];
System.arraycopy(value.colors, 0, colors, 0, colors.length);
timeline = new float[value.timeline.length];
System.arraycopy(value.timeline, 0, timeline, 0, timeline.length);
}
}
|
package org.elasticsearch.search.aggregations.metrics.tophits;
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache ... | package org.elasticsearch.search.aggregations.metrics.tophits;
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache ... |
public AbstractFieldMapper.CopyTo copyTo();
/**
* Returns the actual value of the field.
*/
T value(Object value);
/**
* Returns the value that will be used as a result for search. Can be only of specific types... .
*/
Object valueForSearch(Object value);
/**
* Return... | public AbstractFieldMapper.CopyTo copyTo();
/**
* Returns the actual value of the field.
*/
T value(Object value);
/**
* Returns the value that will be used as a result for search. Can be only of specific types... .
*/
Object valueForSearch(Object value);
/**
* Return... |
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
MapperService.SmartNameFieldMappers smartNameFieldMappers;
Boolean cache = null;
String filterName = null;
String currentFieldName =... | public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
MapperService.SmartNameFieldMappers smartNameFieldMappers;
Boolean cache = null;
String filterName = null;
String currentFieldName =... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
IndicesAliasesRequest indicesAliasesRequest = new IndicesAliasesRequest();
indicesAliasesRequest.listenerThreaded(false);
indicesAliasesRequest.masterNodeTimeout(request.paramAsTime("master_timeout", indicesAli... | public void handleRequest(final RestRequest request, final RestChannel channel) {
IndicesAliasesRequest indicesAliasesRequest = new IndicesAliasesRequest();
indicesAliasesRequest.listenerThreaded(false);
indicesAliasesRequest.masterNodeTimeout(request.paramAsTime("master_timeout", indicesAli... |
@Override public void create () {
if(fileName.endsWith(".dae")) model = ColladaLoader.loadStillModel(Gdx.files.internal(fileName));
else throw new GdxRuntimeException("Unknown file format '" + fileName + "'");
if(textureFileName != null) texture = new Texture(Gdx.files.internal(textureFileName));
hasNormal... | @Override public void create () {
if(fileName.endsWith(".dae")) model = ColladaLoader.loadStillModel(Gdx.files.internal(fileName));
else throw new GdxRuntimeException("Unknown file format '" + fileName + "'");
if(textureFileName != null) texture = new Texture(Gdx.files.internal(textureFileName));
hasNormal... |
public Array (Class<T> arrayType) {
this(false, 16, arrayType);
}
| public Array (Class<T> arrayType) {
this(true, 16, arrayType);
}
|
public void writeGenericValue(@Nullable Object value) throws IOException {
if (value == null) {
writeByte((byte) -1);
return;
}
Class type = value.getClass();
if (type == String.class) {
writeByte((byte) 0);
writeString((String) value);... | public void writeGenericValue(@Nullable Object value) throws IOException {
if (value == null) {
writeByte((byte) -1);
return;
}
Class type = value.getClass();
if (type == String.class) {
writeByte((byte) 0);
writeString((String) value);... |
public IOSApplication (ApplicationListener listener, IOSApplicationConfiguration config) {
this.listener = listener;
this.config = config;
}
final boolean didFinishLaunching (UIApplication uiApp, NSDictionary options) {
Gdx.app = this;
this.uiApp = uiApp;
// enable or disable screen dimming
UIApplicat... | public IOSApplication (ApplicationListener listener, IOSApplicationConfiguration config) {
this.listener = listener;
this.config = config;
}
final boolean didFinishLaunching (UIApplication uiApp, NSDictionary options) {
Gdx.app = this;
this.uiApp = uiApp;
// enable or disable screen dimming
UIApplicat... |
public synchronized float getProgress () {
if (toLoad == 0) return 1;
return loaded / (float)toLoad;
}
| public synchronized float getProgress () {
if (toLoad == 0) return 1;
return Math.min(1, loaded / (float)toLoad);
}
|
public void play () {
if (track.isPaused()) {
track.setPaused(false);
} else {
track.play();
}
}
| public void play () {
if (track.isPaused()) {
track.setPaused(false);
} else if (!track.isPlaying()) {
track.play();
}
}
|
protected String models[] = new String[] {
"car.obj", "cube.obj", "scene.obj", "scene2.obj", "sphere.obj", "wheel.obj",
"g3d/head.g3db", "g3d/knight.g3dj", "g3d/knight.g3db", "g3d/teapot.g3db", "g3d/fighter.g3db"
};
| protected String models[] = new String[] {
"car.obj", "cube.obj", "scene.obj", "scene2.obj", "sphere.obj", "wheel.obj",
"g3d/head.g3db", "g3d/knight.g3dj", "g3d/knight.g3db", "g3d/ship.obj", "g3d/teapot.g3db"
};
|
public static void main (String[] argv) {
new JoglApplication(new com.badlogic.gdx.tests.PickingTest(), "Debug Test", 480, 320, false);
}
| public static void main (String[] argv) {
new JoglApplication(new com.badlogic.gdx.tests.ActionTest(), "Debug Test", 480, 320, false);
}
|
public void contribute(Dump dump) throws DumpContributionFailedException {
if (heapDumpMethod == null) {
throw new DumpContributionFailedException(getName(), "Heap dump not enalbed on this JVM");
}
try {
heapDumpMethod.invoke(diagnosticMBean, dump.createFile("heap.hpr... | public void contribute(Dump dump) throws DumpContributionFailedException {
if (heapDumpMethod == null) {
throw new DumpContributionFailedException(getName(), "Heap dump not enabled on this JVM");
}
try {
heapDumpMethod.invoke(diagnosticMBean, dump.createFile("heap.hpr... |
public Matrix4 calculateLocalTransform() {
if (!isAnimated)
localTransform.idt().translate(translation).rotate(rotation).scale(scale.x, scale.y, scale.z);
return localTransform;
}
| public Matrix4 calculateLocalTransform() {
if (!isAnimated)
localTransform.set(translation, rotation, scale);
return localTransform;
}
|
public ByteFieldMapper build(BuilderContext context) {
ByteFieldMapper fieldMapper = new ByteFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue, ignoreMalformed);
fieldMapper.includeInAll(includeInAll);... | public ByteFieldMapper build(BuilderContext context) {
ByteFieldMapper fieldMapper = new ByteFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue, ignoreMalformed(context));
fieldMapper.includeInAll(inclu... |
public DateFieldMapper build(BuilderContext context) {
boolean parseUpperInclusive = Defaults.PARSE_UPPER_INCLUSIVE;
if (context.indexSettings() != null) {
parseUpperInclusive = context.indexSettings().getAsBoolean("index.mapping.date.parse_upper_inclusive", Defaults.PARS... | public DateFieldMapper build(BuilderContext context) {
boolean parseUpperInclusive = Defaults.PARSE_UPPER_INCLUSIVE;
if (context.indexSettings() != null) {
parseUpperInclusive = context.indexSettings().getAsBoolean("index.mapping.date.parse_upper_inclusive", Defaults.PARS... |
public DoubleFieldMapper build(BuilderContext context) {
DoubleFieldMapper fieldMapper = new DoubleFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed);
fieldMapper.i... | public DoubleFieldMapper build(BuilderContext context) {
DoubleFieldMapper fieldMapper = new DoubleFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed(context));
fiel... |
public FloatFieldMapper build(BuilderContext context) {
FloatFieldMapper fieldMapper = new FloatFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed);
fieldMapper.incl... | public FloatFieldMapper build(BuilderContext context) {
FloatFieldMapper fieldMapper = new FloatFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed(context));
fieldMa... |
public IntegerFieldMapper build(BuilderContext context) {
IntegerFieldMapper fieldMapper = new IntegerFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions,
nullValue, ignoreMalformed);
fieldMappe... | public IntegerFieldMapper build(BuilderContext context) {
IntegerFieldMapper fieldMapper = new IntegerFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions,
nullValue, ignoreMalformed(context));
f... |
public LongFieldMapper build(BuilderContext context) {
LongFieldMapper fieldMapper = new LongFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed);
fieldMapper.include... | public LongFieldMapper build(BuilderContext context) {
LongFieldMapper fieldMapper = new LongFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed(context));
fieldMappe... |
public ShortFieldMapper build(BuilderContext context) {
ShortFieldMapper fieldMapper = new ShortFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed);
fieldMapper.incl... | public ShortFieldMapper build(BuilderContext context) {
ShortFieldMapper fieldMapper = new ShortFieldMapper(buildNames(context),
precisionStep, fuzzyFactor, index, store, boost, omitNorms, indexOptions, nullValue,
ignoreMalformed(context));
fieldMa... |
public void create () {
ByteBuffer bytebuffer = BufferUtils.newUnsafeByteBuffer(1000 * 1000);
BufferUtils.freeMemory(bytebuffer);
ByteBuffer bb = BufferUtils.newByteBuffer(8);
CharBuffer cb = BufferUtils.newCharBuffer(8);
ShortBuffer sb = BufferUtils.newShortBuffer(8);
IntBuffer ib = BufferUtils.newIntBuf... | public void create () {
ByteBuffer bytebuffer = BufferUtils.newUnsafeByteBuffer(1000 * 1000);
BufferUtils.disposeUnsafeByteBuffer(bytebuffer);
ByteBuffer bb = BufferUtils.newByteBuffer(8);
CharBuffer cb = BufferUtils.newCharBuffer(8);
ShortBuffer sb = BufferUtils.newShortBuffer(8);
IntBuffer ib = BufferUt... |
public void freeCell (Cell cell) {
cell.setLayout(null);
cellPool.free(cell);
| public void freeCell (Cell cell) {
cell.free();
cellPool.free(cell);
|
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... |
private Dictionary loadDictionary(String locale, Settings nodeSettings, Environment env) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug("Loading huspell dictionary [{}]...", locale);
}
File dicDir = new File(hunspellDir, locale);
if (!dicDir.exists() || !d... | private Dictionary loadDictionary(String locale, Settings nodeSettings, Environment env) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug("Loading hunspell dictionary [{}]...", locale);
}
File dicDir = new File(hunspellDir, locale);
if (!dicDir.exists() || !... |
import org.robovm.cocoatouch.foundation.NSObject;
/*******************************************************************************
* Copyright 2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | import org.robovm.cocoatouch.foundation.NSObject;
/*******************************************************************************
* Copyright 2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
public void begin (final Camera camera, final RenderContext context) {
this.context = context;
this.camera = camera;
context.setDepthTest(GL10.GL_LEQUAL, 0, 1, true);
Gdx.gl10.glMatrixMode(GL10.GL_PROJECTION);
Gdx.gl10.glLoadMatrixf(camera.combined.val, 0);
Gdx.gl10.glMatrixMode(GL10.GL_MODELVIEW);
}
| public void begin (final Camera camera, final RenderContext context) {
this.context = context;
this.camera = camera;
context.setDepthTest(true, GL10.GL_LEQUAL);
Gdx.gl10.glMatrixMode(GL10.GL_PROJECTION);
Gdx.gl10.glLoadMatrixf(camera.combined.val, 0);
Gdx.gl10.glMatrixMode(GL10.GL_MODELVIEW);
}
|
protected Shader createShader(final Renderable renderable) {
Gdx.app.log("DefaultShaderProvider", "Creating new shader");
if (Gdx.graphics.isGL20Available()) {
return new DefaultShader(vertexShader, fragmentShader, renderable, renderable.lights != null, renderable.lights != null && renderable.lights.fo... | protected Shader createShader(final Renderable renderable) {
Gdx.app.log("DefaultShaderProvider", "Creating new shader");
if (Gdx.graphics.isGL20Available()) {
return new DefaultShader(vertexShader, fragmentShader, renderable.material, renderable.mesh.getVertexAttributes(), renderable.lights != null, r... |
<T extends Facet> T facet(String name);
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache Licen... | <T extends Facet> T facet(String name);
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache Licen... |
public void updateViewFor(Event event) {
String relativeTime = Time.relativeTimeFor(event.getCreatedAt()).toString();
String actor = "<b>" + event.getActor().getLogin() + "</b>";
String repoName = event.getRepo().getName();
String type = event.getType();
String text = null;
... | public void updateViewFor(Event event) {
String relativeTime = Time.relativeTimeFor(event.getCreatedAt()).toString();
String actor = "<b>" + event.getActor().getLogin() + "</b>";
String repoName = event.getRepo().getName();
String type = event.getType();
String text = null;
... |
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList(
AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, LetterBoxTest3.class,
GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPer... | public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList(
AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, LetterBoxTest3.class,
GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPer... |
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 setHeight (float height) {
this.dimensions.y += height;
updated = false;
}
| public void setHeight (float height) {
this.dimensions.y = height;
updated = false;
}
|
private StoreFilesMetaData listStoreMetaData(ShardId shardId) throws IOException {
IndexService indexService = indicesService.indexService(shardId.index().name());
if (indexService != null) {
InternalIndexShard indexShard = (InternalIndexShard) indexService.shard(shardId.id());
... | private StoreFilesMetaData listStoreMetaData(ShardId shardId) throws IOException {
IndexService indexService = indicesService.indexService(shardId.index().name());
if (indexService != null) {
InternalIndexShard indexShard = (InternalIndexShard) indexService.shard(shardId.id());
... |
public FileHandle child (String name) {
return new GwtFileHandle(preloader, file + (file.endsWith("/") ? "" : "/") + name, FileType.Internal);
}
| public FileHandle child (String name) {
return new GwtFileHandle(preloader, file.isEmpty() ? "" : (file + (file.endsWith("/") ? "" : "/")) + name, FileType.Internal);
}
|
public enum GraphicsType {
AndroidGL, JoglGL, LWJGL
}
| public enum GraphicsType {
AndroidGL, JoglGL, LWJGL, Angle
}
|
public ModelBatch() {
this(new RenderContext(new DefaultTextureBinder(DefaultTextureBinder.ROUNDROBIN)),
new DefaultShaderProvider(),
new DefaultRenderableSorter());
}
| public ModelBatch() {
this(new RenderContext(new DefaultTextureBinder(DefaultTextureBinder.ROUNDROBIN, 1)),
new DefaultShaderProvider(),
new DefaultRenderableSorter());
}
|
public Array<ModelTexture> diffuseTextures;
} | public Array<ModelTexture> textures;
} |
public void end () {
for(int i = 0; i < count; i++) {
if (textures[i].texture != null) {
Gdx.gl.glActiveTexture(GL20.GL_TEXTURE0 + i);
Gdx.gl.glBindTexture(GL20.GL_TEXTURE_2D, 0);
textures[i].texture = null;
}
}
Gdx.gl.glActiveTexture(GL20.GL_TEXTURE0);
}
| public void end () {
for(int i = 0; i < count; i++) {
if (textures[i].texture != null) {
Gdx.gl.glActiveTexture(GL20.GL_TEXTURE0 + offset + i);
Gdx.gl.glBindTexture(GL20.GL_TEXTURE_2D, 0);
textures[i].texture = null;
}
}
Gdx.gl.glActiveTexture(GL20.GL_TEXTURE0);
}
|
public void create () {
if (assets == null)
assets = new AssetManager();
modelBatch = new ModelBatch();
cam = new PerspectiveCamera(67, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
cam.position.set(30f, 30f, 30f);
cam.lookAt(0,0,0);
cam.near = 0.1f;
cam.far = 300f;
cam.update();
cr... | public void create () {
if (assets == null)
assets = new AssetManager();
modelBatch = new ModelBatch();
cam = new PerspectiveCamera(67, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
cam.position.set(10f, 10f, 10f);
cam.lookAt(0,0,0);
cam.near = 0.1f;
cam.far = 300f;
cam.update();
cr... |
protected void processFile (Entry inputFile) throws Exception {
String content = new FileHandle(inputFile.inputFile).readString();
content = content.trim();
if (content.startsWith("package")) {
System.out.println("File '" + inputFile.inputFile + "' header fixed");
BufferedWriter writer = new Buffered... | protected void processFile (Entry inputFile) throws Exception {
String content = new FileHandle(inputFile.inputFile).readString();
content = content.trim();
if (content.startsWith("package")) {
System.out.println("File '" + inputFile.inputFile + "' header fixed");
BufferedWriter writer = new Buffered... |
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,
... |
@Override public String[] types() {
return new String[]{"python"};
}
| @Override public String[] types() {
return new String[]{"python", "py"};
}
|
public void explainValidateQuery() throws Exception {
client().admin().indices().prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 1)).execute().actionGet();
client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForGre... | public void explainValidateQuery() throws Exception {
client().admin().indices().prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 1)).execute().actionGet();
client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForGre... |
public float getPosition () {
return (float)(track.getCurrentTime());
}
| public float getPosition () {
return (float)(track.getCurrentTime() * 1000.0);
}
|
private String getAssetOutputPath (GeneratorContext context) {
ConfigurationProperty assetPathProperty = null;
try {
assetPathProperty = context.getPropertyOracle().getConfigurationProperty("gdx.assetoutputpath");
} catch (BadPropertyValueException e) {
return null;
}
if (assetPathProperty.getValues().... | private String getAssetOutputPath (GeneratorContext context) {
ConfigurationProperty assetPathProperty = null;
try {
assetPathProperty = context.getPropertyOracle().getConfigurationProperty("gdx.assetoutputpath");
} catch (BadPropertyValueException e) {
return null;
}
if (assetPathProperty.getValues().... |
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 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... |
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
config.useAccelerometer = false;
return new IOSApplication(new DownloadTest(), config);
}
| protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
config.useAccelerometer = false;
return new IOSApplication(new Benchmark3DTest(), config);
}
|
public void initialize (ApplicationListener listener, AndroidApplicationConfiguration config) {
graphics = new AndroidGraphics(this, config, config.resolutionStrategy == null ? new FillResolutionStrategy()
: config.resolutionStrategy);
input = new AndroidInput(this, graphics.view, config);
audio = new Android... | public void initialize (ApplicationListener listener, AndroidApplicationConfiguration config) {
graphics = new AndroidGraphics(this, config, config.resolutionStrategy == null ? new FillResolutionStrategy()
: config.resolutionStrategy);
input = new AndroidInput(this, graphics.view, config);
audio = new Android... |
@Test public void testSingleIndexShardFailed() {
ShardsAllocation strategy = new ShardsAllocation(settingsBuilder().put("cluster.routing.allocation.concurrent_recoveries", 10).build());
logger.info("Building initial routing table");
MetaData metaData = newMetaDataBuilder()
... | @Test public void testSingleIndexShardFailed() {
ShardsAllocation strategy = new ShardsAllocation(settingsBuilder().put("cluster.routing.allocation.concurrent_recoveries", 10).build());
logger.info("Building initial routing table");
MetaData metaData = newMetaDataBuilder()
... |
private void parseMeshes (ModelData model, JsonValue json) {
JsonValue meshes = json.require("meshes");
model.meshes.ensureCapacity(meshes.size());
for (JsonValue mesh = meshes.child(); mesh != null; mesh = mesh.next()) {
ModelMesh jsonMesh = new ModelMesh();
String id = mesh.getString("id", "");
... | private void parseMeshes (ModelData model, JsonValue json) {
JsonValue meshes = json.require("meshes");
model.meshes.ensureCapacity(meshes.size());
for (JsonValue mesh = meshes.child(); mesh != null; mesh = mesh.next()) {
ModelMesh jsonMesh = new ModelMesh();
String id = mesh.getString("id", "");
... |
private ExecutorHolder rebuild(String name, ExecutorHolder previousExecutorHolder, @Nullable Settings settings, Settings defaultSettings) {
if (Names.SAME.equals(name)) {
// Don't allow to change the "same" thread executor
return previousExecutorHolder;
}
if (settings... | private ExecutorHolder rebuild(String name, ExecutorHolder previousExecutorHolder, @Nullable Settings settings, Settings defaultSettings) {
if (Names.SAME.equals(name)) {
// Don't allow to change the "same" thread executor
return previousExecutorHolder;
}
if (settings... |
public void surfaceCreated()
{
if( stage == null )
{
Gdx.input.addInputListener( this );
texture = Gdx.graphics.newTexture( Gdx.files.getFileHandle( "data/badlogicsmall.jpg", FileType.Internal ),
TextureFilter.Linear, TextureFilter.Linear, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge );
... | public void surfaceCreated()
{
if( stage == null )
{
Gdx.input.addInputListener( this );
texture = Gdx.graphics.newTexture( Gdx.files.getFileHandle( "data/badlogicsmall.jpg", FileType.Internal ),
TextureFilter.Linear, TextureFilter.Linear, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge );
... |
public void surfaceCreated()
{
if( uiTexture == null )
{
Gdx.input.addInputListener( this );
uiTexture = Gdx.graphics.newTexture( Gdx.files.getFileHandle( "data/uitexture.png", FileType.Internal ),
TextureFilter.Linear, TextureFilter.Linear,
TextureWrap.ClampToEdge, TextureWrap.... | public void surfaceCreated()
{
if( uiTexture == null )
{
Gdx.input.addInputListener( this );
uiTexture = Gdx.graphics.newTexture( Gdx.files.getFileHandle( "data/ui.png", FileType.Internal ),
TextureFilter.Linear, TextureFilter.Linear,
TextureWrap.ClampToEdge, TextureWrap.ClampTo... |
public enum GraphicsType {
AndroidGL, LWJGL, Angle, WebGL, iOSGL, JGLFW
}
| public enum GraphicsType {
AndroidGL, LWJGL, Angle, WebGL, iOSGL, JGLFW, Mock
}
|
public static void main (String[] args) throws Exception {
String JNI_DIR = "jni";
String LIBS_DIR = "libs";
// generate C/C++ code
new NativeCodeGenerator().generate("src", "bin", JNI_DIR, new String[] {"**/*"}, null);
String[] excludeCpp = { "android/**" };
// generate build scripts, for win32 onl... | public static void main (String[] args) throws Exception {
String JNI_DIR = "jni";
String LIBS_DIR = "libs";
// generate C/C++ code
new NativeCodeGenerator().generate("src", "bin", JNI_DIR, new String[] {"**/*"}, null);
String[] excludeCpp = { "android/**" };
// generate build scripts, for win32 onl... |
public void testEmptyBoolSubClausesIsMatchAll() throws ElasticsearchException, IOException {
String query = copyToStringFromClasspath("/org/elasticsearch/index/query/bool-query-with-empty-clauses-for-parsing.json");
IndexService indexService = createIndex("testidx", client().admin().indices().prepar... | public void testEmptyBoolSubClausesIsMatchAll() throws ElasticsearchException, IOException {
String query = copyToStringFromClasspath("/org/elasticsearch/index/query/bool-query-with-empty-clauses-for-parsing.json");
IndexService indexService = createIndex("testidx", client().admin().indices().prepar... |
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// if all defaults, no need to write it at all
if (fieldType().stored() == Defaults.FIELD_TYPE.stored() && enabledState == Defaults.ENABLED_STATE) {
return builder;
}
builder.st... | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// if all defaults, no need to write it at all
if (fieldType().stored() == Defaults.FIELD_TYPE.stored() && enabledState == Defaults.ENABLED_STATE) {
return builder;
}
builder.st... |
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// all are defaults, no need to write it at all
if (enabledState == Defaults.ENABLED_STATE && fieldType().stored() == Defaults.SIZE_FIELD_TYPE.stored()) {
return builder;
}
buil... | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// all are defaults, no need to write it at all
if (enabledState == Defaults.ENABLED_STATE && fieldType().stored() == Defaults.SIZE_FIELD_TYPE.stored()) {
return builder;
}
buil... |
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// if all are defaults, no sense to write it at all
if (enabledState == Defaults.ENABLED_STATE && defaultTTL == Defaults.DEFAULT) {
return builder;
}
builder.startObject(CONTENT... | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
// if all are defaults, no sense to write it at all
if (enabledState == Defaults.ENABLED_STATE && defaultTTL == Defaults.DEFAULT) {
return builder;
}
builder.startObject(CONTENT... |
public RangeAggregator(String name,
AggregatorFactories factories,
NumericValuesSource valuesSource,
AbstractRangeBase.Factory rangeFactory,
List<Range> ranges,
boolean keyed,
... | public RangeAggregator(String name,
AggregatorFactories factories,
NumericValuesSource valuesSource,
AbstractRangeBase.Factory rangeFactory,
List<Range> ranges,
boolean keyed,
... |
public void testUUIDThreaded(UUIDGenerator uuidSource) {
HashSet<UUIDGenRunner> runners = new HashSet<>();
HashSet<Thread> threads = new HashSet<>();
int count = 100;
int uuids = 10000;
for (int i = 0; i < count; ++i) {
UUIDGenRunner runner = new UUIDGenRunner(uui... | public void testUUIDThreaded(UUIDGenerator uuidSource) {
HashSet<UUIDGenRunner> runners = new HashSet<>();
HashSet<Thread> threads = new HashSet<>();
int count = 20;
int uuids = 10000;
for (int i = 0; i < count; ++i) {
UUIDGenRunner runner = new UUIDGenRunner(uuid... |
public void onCreate (Bundle bundle) {
super.onCreate(bundle);
initialize(false);
getGraphics().setRenderListener(new com.badlogic.gdx.tests.box2d.TestCollection());
}
| public void onCreate (Bundle bundle) {
super.onCreate(bundle);
initialize(false);
getGraphics().setRenderListener(new com.badlogic.gdx.tests.Box2DTestCollection());
}
|
public static void main (String[] argv) {
JoglApplication app = new JoglApplication("Simple Test", 480, 320, false);
app.getGraphics().setRenderListener(new com.badlogic.gdx.tests.box2d.TestCollection());
}
| public static void main (String[] argv) {
JoglApplication app = new JoglApplication("Simple Test", 480, 320, false);
app.getGraphics().setRenderListener(new com.badlogic.gdx.tests.Box2DTestCollection());
}
|
public static void main (String[] argv) {
LwjglApplication app = new LwjglApplication("Simple Test", 480, 320, false);
app.getGraphics().setRenderListener(new com.badlogic.gdx.tests.box2d.TestCollection());
}
| public static void main (String[] argv) {
LwjglApplication app = new LwjglApplication("Simple Test", 480, 320, false);
app.getGraphics().setRenderListener(new com.badlogic.gdx.tests.Box2DTestCollection());
}
|
public Ray getPickRay (float screenX, float screenY) {
return camera.getPickRay(screenX, screenY, this.screenX, this.screenY, screenWidth, screenHeight);
}
| public Ray getPickRay (float screenX, float screenY) {
return camera.getPickRay(screenX, screenY, screenX, screenY, screenWidth, screenHeight);
}
|
public JsonValue parse (InputStream input) {
try {
return parse(new InputStreamReader(input, "ISO-8859-1"));
} catch (IOException ex) {
throw new SerializationException(ex);
} finally {
StreamUtils.closeQuietly(input);
}
}
| public JsonValue parse (InputStream input) {
try {
return parse(new InputStreamReader(input, "UTF-8"));
} catch (IOException ex) {
throw new SerializationException(ex);
} finally {
StreamUtils.closeQuietly(input);
}
}
|
public TiledMap load (String fileName, TmxMapLoader.Parameters parameters) {
try {
this.yUp = parameters.yUp;
FileHandle tmxFile = resolve(fileName);
root = xml.parse(tmxFile);
ObjectMap<String, Texture> textures = new ObjectMap<String, Texture>();
for (FileHandle textureFile : loadTilesets(root, tmxF... | public TiledMap load (String fileName, TmxMapLoader.Parameters parameters) {
try {
this.yUp = parameters.yUp;
FileHandle tmxFile = resolve(fileName);
root = xml.parse(tmxFile);
ObjectMap<String, Texture> textures = new ObjectMap<String, Texture>();
for (FileHandle textureFile : loadTilesets(root, tmxF... |
public TiledMap load (String fileName) {
try {
FileHandle tideFile = resolve(fileName);
root = xml.parse(tideFile);
ObjectMap<String, Texture> textures = new ObjectMap<String, Texture>();
for(FileHandle textureFile: loadTileSheets(root, tideFile)) {
textures.put(textureFile.path(), new Texture(textur... | public TiledMap load (String fileName) {
try {
FileHandle tideFile = resolve(fileName);
root = xml.parse(tideFile);
ObjectMap<String, Texture> textures = new ObjectMap<String, Texture>();
for(FileHandle textureFile: loadTileSheets(root, tideFile)) {
textures.put(textureFile.path(), new Texture(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 static void main (String[] args) throws Exception {
// generate C/C++ code
new NativeCodeGenerator().generate("src", "bin", "jni");
// Flags to accomodate SWIG generated code
String cppFlags = "";
// SWIG doesn't emit strict aliasing compliant code
cppFlags += " -fno-strict-aliasing";
// SWIG di... | public static void main (String[] args) throws Exception {
// generate C/C++ code
new NativeCodeGenerator().generate("src", "bin", "jni");
// Flags to accomodate SWIG generated code
String cppFlags = "";
// SWIG doesn't emit strict aliasing compliant code
cppFlags += " -fno-strict-aliasing";
// SWIG di... |
public static StyledText formatStats(final Collection<CommitFile> files) {
StyledText fileDetails = new StyledText();
int added = 0;
int deleted = 0;
int changed = 0;
if (files != null)
for (CommitFile file : files) {
added += file.getAdditions();
... | public static StyledText formatStats(final Collection<CommitFile> files) {
StyledText fileDetails = new StyledText();
int added = 0;
int deleted = 0;
int changed = 0;
if (files != null)
for (CommitFile file : files) {
added += file.getAdditions();
... |
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
String currentFieldName = null;
String queryBody = null;
String field = null;
Map<String, Float> fieldsAndWeights = null;
Boo... | public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
String currentFieldName = null;
String queryBody = null;
String field = null;
Map<String, Float> fieldsAndWeights = null;
Boo... |
private String generateBuildTargetTemplate(BuildConfig config, BuildTarget target) {
// special case for android
if(target.os == TargetOs.Android) {
new AndroidNdkScriptGenerator().generate(config, target);
return new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/build-android.xml.template", File... | private String generateBuildTargetTemplate(BuildConfig config, BuildTarget target) {
// special case for android
if(target.os == TargetOs.Android) {
new AndroidNdkScriptGenerator().generate(config, target);
return new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/build-android.xml.template", File... |
public interface Text extends Comparable<Text> {
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apa... | public interface Text extends Comparable<Text> {
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apa... |
private boolean match(String value) {
if (excluded != null && excluded.contains(value)) {
return false;
}
if (matcher != null && !matcher.reset(value).matches()) {
return false;
}
return true;
}
| private boolean match(String value) {
if (excluded != null && excluded.contains(new BytesRef(value))) {
return false;
}
if (matcher != null && !matcher.reset(value).matches()) {
return false;
}
return true;
}
|
@Override public String toString() {
return "Search Failure Shard " + shardTarget + ", reason [" + reason + "]";
}
| @Override public String toString() {
return "shard [" + (shardTarget == null ? "_na" : shardTarget) + "], reason [" + reason + "]";
}
|
public ResourceLoadingIndicator setList(final ListView listView) {
listView.addFooterView(view);
return this;
}
| public ResourceLoadingIndicator setList(final ListView listView) {
listView.addFooterView(view, null, false);
return this;
}
|
public void setupSuiteScopeCluster() throws Exception {
assertAcked(prepareCreate("idx")
.addMapping("type", "nested", "type=nested"));
List<IndexRequestBuilder> builders = new ArrayList<>();
numParents = randomIntBetween(3, 10);
numChildren = new int[numParents];
... | public void setupSuiteScopeCluster() throws Exception {
assertAcked(prepareCreate("idx")
.addMapping("type", "nested", "type=nested"));
List<IndexRequestBuilder> builders = new ArrayList<>();
numParents = randomIntBetween(3, 10);
numChildren = new int[numParents];
... |
@Override public void run() {
try {
if (engine.refreshNeeded()) {
engine.refresh(new Engine.Refresh(false));
}
} catch (EngineClosedException e) {
// we are being c... | @Override public void run() {
try {
if (engine.refreshNeeded()) {
refresh(new Engine.Refresh(false));
}
} catch (EngineClosedException e) {
// we are being closed, ... |
public void setScorer(Scorer scorer) {
lookup.setScorer(scorer);
}
| public void setScorer(Scorer scorer) {
throw new UnsupportedOperationException();
}
|
public void script_Score() {
SearchResponse response = client().prepareSearch("idx").setTypes("type")
.setQuery(functionScoreQuery(matchAllQuery()).add(ScoreFunctionBuilders.scriptFunction("doc['" + SINGLE_VALUED_FIELD_NAME + "'].value")))
.addAggregation(terms("terms")
... | public void script_Score() {
SearchResponse response = client().prepareSearch("idx").setTypes("type")
.setQuery(functionScoreQuery(matchAllQuery()).add(ScoreFunctionBuilders.scriptFunction("doc['" + SINGLE_VALUED_FIELD_NAME + "'].value")))
.addAggregation(terms("terms")
... |
public void testFieldCollapsing() throws Exception {
SearchResponse response = client().prepareSearch("idx").setTypes("field-collapsing")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(matchQuery("text", "term rare"))
.addAggregation(terms("terms")
... | public void testFieldCollapsing() throws Exception {
SearchResponse response = client().prepareSearch("idx").setTypes("field-collapsing")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(matchQuery("text", "term rare"))
.addAggregation(terms("terms")
... |
public Vector2 getLocalAnchorB () {
return localAnchorA.set(joint.getLocalAnchorB().x, joint.getLocalAnchorB().y);
}
| public Vector2 getLocalAnchorB () {
return localAnchorB.set(joint.getLocalAnchorB().x, joint.getLocalAnchorB().y);
}
|
private void parseSingleRescoreContext(XContentParser parser, SearchContext context) throws Exception {
String fieldName = null;
RescoreSearchContext rescoreContext = null;
Integer windowSize = null;
XContentParser.Token token;
while ((token = parser.nextToken()) != XContentP... | public void parseSingleRescoreContext(XContentParser parser, SearchContext context) throws Exception {
String fieldName = null;
RescoreSearchContext rescoreContext = null;
Integer windowSize = null;
XContentParser.Token token;
while ((token = parser.nextToken()) != XContentPa... |
@Override public void actionPerformed (ActionEvent e) {
String testName = (String)list.getSelectedValue();
GdxTest test = GdxTests.newTest(testName);
new JoglApplication(test, testName, 800, 600, test.needsGL20());
}
});
add(pane, BorderLayout.CENTER);
add(button, BorderLayout.SOUTH);
... | @Override public void actionPerformed (ActionEvent e) {
String testName = (String)list.getSelectedValue();
GdxTest test = GdxTests.newTest(testName);
new JoglApplication(test, testName, 480, 320, test.needsGL20());
}
});
add(pane, BorderLayout.CENTER);
add(button, BorderLayout.SOUTH);
... |
public ShortArray computeTriangles (float[] vertices, int offset, int count) {
this.vertices = vertices;
int vertexCount = this.vertexCount = count / 2;
ShortArray indicesArray = this.indicesArray;
indicesArray.clear();
indicesArray.ensureCapacity(vertexCount);
indicesArray.size = vertexCount;
short[] i... | public ShortArray computeTriangles (float[] vertices, int offset, int count) {
this.vertices = vertices;
int vertexCount = this.vertexCount = count / 2;
ShortArray indicesArray = this.indicesArray;
indicesArray.clear();
indicesArray.ensureCapacity(vertexCount);
indicesArray.size = vertexCount;
short[] i... |
private final void bindMaterial(final Renderable renderable) {
if (currentMaterial == renderable.material)
return;
currentMaterial = renderable.material;
for (NewMaterial.Attribute attr : currentMaterial) {
long t = attr.getType();
if (BlendingAttribute.is(t))
context.setBlending(true, ((BlendingAtt... | private final void bindMaterial(final Renderable renderable) {
if (currentMaterial == renderable.material)
return;
currentMaterial = renderable.material;
for (NewMaterial.Attribute attr : currentMaterial) {
final long t = attr.type;
if (BlendingAttribute.is(t))
context.setBlending(true, ((BlendingAt... |
public String prettyPrint() {
StringBuilder sb = new StringBuilder();
sb.append("-----NodeId[").append(nodeId).append("]\n");
for (MutableShardRouting entry : shards) {
sb.append("--------").append(entry.shortSummary()).append('\n');
}
return sb.toString();
}
| public String prettyPrint() {
StringBuilder sb = new StringBuilder();
sb.append("-----node_id[").append(nodeId).append("]\n");
for (MutableShardRouting entry : shards) {
sb.append("--------").append(entry.shortSummary()).append('\n');
}
return sb.toString();
}... |
public String prettyPrint() {
StringBuilder sb = new StringBuilder("Routing Table:\n");
for (Map.Entry<String, IndexRoutingTable> entry : indicesRouting.entrySet()) {
sb.append(entry.getValue().prettyPrint()).append('\n');
}
return sb.toString();
}
| public String prettyPrint() {
StringBuilder sb = new StringBuilder("routing_table:\n");
for (Map.Entry<String, IndexRoutingTable> entry : indicesRouting.entrySet()) {
sb.append(entry.getValue().prettyPrint()).append('\n');
}
return sb.toString();
}
|
@Override public void handleException(RemoteTransportException exp) {
logger.warn("Failed to send cluster state to [{}], should be detected as failed soon...", exp, node);
}
});
}
}
| @Override public void handleException(RemoteTransportException exp) {
logger.warn("failed to send cluster state to [{}], should be detected as failed soon...", exp, node);
}
});
}
}
|
public void testHasChildQueryWithMinimumScore() throws Exception {
client().admin().indices().prepareCreate("test")
.setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 1).put("index.number_of_replicas", 0))
.execute().actionGet();
client().a... | public void testHasChildQueryWithMinimumScore() throws Exception {
client().admin().indices().prepareCreate("test")
.setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 1).put("index.number_of_replicas", 0))
.execute().actionGet();
client().a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.