buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void onFailure(Throwable t) {
if (logger.isDebugEnabled()) {
logger.debug("[{}] Failed to execute query phase", t, querySearchRequest.id());
}
AsyncAction.this.addShardFailure(shardIndex, t);
s... | public void onFailure(Throwable t) {
if (logger.isDebugEnabled()) {
logger.debug("[{}] Failed to execute query phase", t, querySearchRequest.id());
}
AsyncAction.this.addShardFailure(shardIndex, dfsResult.shardTarget(), ... |
public void onFailure(Throwable t) {
if (logger.isDebugEnabled()) {
logger.debug("[{}] Failed to execute fetch phase", t, fetchSearchRequest.id());
}
AsyncAction.this.addShardFailure(shardIndex, t);
s... | public void onFailure(Throwable t) {
if (logger.isDebugEnabled()) {
logger.debug("[{}] Failed to execute fetch phase", t, fetchSearchRequest.id());
}
AsyncAction.this.addShardFailure(shardIndex, shardTarget, t);
... |
public void calculateLights (float x, float y, float z) {
final int maxSize = pointLights.size;
// solve what are lights that influence most
if (maxSize > maxLightsPerModel) {
for (int i = 0; i < maxSize; i++) {
final PointLight light = pointLights.get(i);
light.priority = light.intensity / light.pos... | public void calculateLights (float x, float y, float z) {
final int maxSize = pointLights.size;
// solve what are lights that influence most
if (maxSize > maxLightsPerModel) {
for (int i = 0; i < maxSize; i++) {
final PointLight light = pointLights.get(i);
light.priority = (int)(PointLight.PRIORITY_D... |
public void freeCell (Cell cell) {
cell.free();
cellPool.free(cell);
| public void freeCell (Cell cell) {
cell.setLayout(null);
cellPool.free(cell);
|
public void box(VertexInfo corner000, VertexInfo corner010, VertexInfo corner100, VertexInfo corner110,
VertexInfo corner001, VertexInfo corner011, VertexInfo corner101, VertexInfo corner111) {
ensureVertices(8);
final short i000 = vertex(corner000);
final short i100 = vertex(corner100);
final short i110... | public void box(VertexInfo corner000, VertexInfo corner010, VertexInfo corner100, VertexInfo corner110,
VertexInfo corner001, VertexInfo corner011, VertexInfo corner101, VertexInfo corner111) {
ensureVertices(8);
final short i000 = vertex(corner000);
final short i100 = vertex(corner100);
final short i110... |
protected String executor() {
return ThreadPool.Names.INDEX;
}
| protected String executor() {
return ThreadPool.Names.BULK;
}
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(layout.gist_view, null);
headerView = inflater.inflate(layout.gist_header, null);
created = (TextView) headerView.findViewById(id.tv_gist_creation);
updat... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(layout.comment_list_view, null);
headerView = inflater.inflate(layout.gist_header, null);
created = (TextView) headerView.findViewById(id.tv_gist_creation);
... |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(layout.issue_view, null);
}
| public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(layout.comment_list_view, null);
}
|
public Preferences getPreferences (String name) {
if (preferences.containsKey(name)) {
return preferences.get(name);
} else {
Preferences prefs = new LwjglPreferences(name, ".prefs/");
preferences.put(name, prefs);
return prefs;
}
}
| public Preferences getPreferences (String name) {
if (preferences.containsKey(name)) {
return preferences.get(name);
} else {
Preferences prefs = new LwjglPreferences(name);
preferences.put(name, prefs);
return prefs;
}
}
|
public void draw(Batch batch) {
delta = Math.min(0.06f, Gdx.graphics.getDeltaTime());
aliveTime += delta;
collisionPoints.get(0).set( this.getVertices()[0], this.getVertices()[1]);
collisionPoints.get(1).set( this.getVertices()[5], this.getVertices()[6]);
collisionPoints.get(2).set( this.getVertices()[10]... | public void draw(Batch batch) {
delta = Math.min(0.06f, Gdx.graphics.getDeltaTime());
aliveTime += delta;
collisionPoints.get(0).set( this.getVertices()[0], this.getVertices()[1]);
collisionPoints.get(1).set( this.getVertices()[5], this.getVertices()[6]);
collisionPoints.get(2).set( this.getVertices()[10]... |
public enum GraphicsType {
AndroidGL, LWJGL, Angle, WebGL, iOSGL, JGLFW, Mock
}
| public enum GraphicsType {
AndroidGL, LWJGL, Angle, WebGL, iOSGL, JGLFW
}
|
public static final String VERSION = "1.0.0";
} | public static final String VERSION = "0.9.9";
} |
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, BitmapFontParameter parameter) {
Array<AssetDescriptor> deps = new Array();
if (parameter != null && parameter.bitmapFontData != null) {
data = parameter.bitmapFontData;
return deps;
}
data = new BitmapFontData(file, paramet... | public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, BitmapFontParameter parameter) {
Array<AssetDescriptor> deps = new Array<AssetDescriptor>();
if (parameter != null && parameter.bitmapFontData != null) {
data = parameter.bitmapFontData;
return deps;
}
data = new BitmapFontD... |
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, ParticleEffectParameter param) {
Array<AssetDescriptor> deps = null;
if (param != null && param.atlasFile != null) {
deps = new Array();
deps.add(new AssetDescriptor<TextureAtlas>(param.atlasFile, TextureAtlas.class));
}
ret... | public Array<AssetDescriptor> getDependencies (String fileName, FileHandle file, ParticleEffectParameter param) {
Array<AssetDescriptor> deps = null;
if (param != null && param.atlasFile != null) {
deps = new Array<AssetDescriptor>();
deps.add(new AssetDescriptor<TextureAtlas>(param.atlasFile, TextureAtlas.c... |
public Array<AssetDescriptor> getDependencies (String fileName, FileHandle atlasFile, TextureAtlasParameter parameter) {
FileHandle imgDir = atlasFile.parent();
if (parameter != null)
data = new TextureAtlasData(atlasFile, imgDir, parameter.flip);
else {
data = new TextureAtlasData(atlasFile, imgDir, fals... | public Array<AssetDescriptor> getDependencies (String fileName, FileHandle atlasFile, TextureAtlasParameter parameter) {
FileHandle imgDir = atlasFile.parent();
if (parameter != null)
data = new TextureAtlasData(atlasFile, imgDir, parameter.flip);
else {
data = new TextureAtlasData(atlasFile, imgDir, fals... |
protected Array<Decal> newObject () {
return new Array();
}
};
| protected Array<Decal> newObject () {
return new Array<Decal>();
}
};
|
protected void drawBackground (Batch batch, float parentAlpha) {
float x = getX(), y = getY();
float width = getWidth(), height = getHeight();
float padTop = getPadTop();
if (style.stageBackground != null) {
Color color = getColor();
batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
S... | protected void drawBackground (Batch batch, float parentAlpha) {
float x = getX(), y = getY();
float width = getWidth(), height = getHeight();
float padTop = getPadTop();
if (style.stageBackground != null) {
Color color = getColor();
batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
S... |
private void renderSingleLineCached () {
String text = "Single Line Cached";
float x = logoSprite.getX();
float y = logoSprite.getY();
float width = logoSprite.getWidth();
float height = logoSprite.getHeight();
// Obviously you wouldn't set the cache text every frame in real code.
TextBounds bounds = ca... | private void renderSingleLineCached () {
String text = "Single Line Cached";
float x = logoSprite.getX();
float y = logoSprite.getY();
float width = logoSprite.getWidth();
float height = logoSprite.getHeight();
// Obviously you wouldn't set the cache text every frame in real code.
TextBounds bounds = ca... |
public void create () {
batch = new SpriteBatch();
camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
camera.position.set(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2, 0);
camera.update();
Pixmap pixmap1 = new Pixmap(Gdx.files.internal("data/badlogic.jpg"));
... | public void create () {
batch = new SpriteBatch();
camera = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
camera.position.set(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2, 0);
camera.update();
Pixmap pixmap1 = new Pixmap(Gdx.files.internal("data/badlogic.jpg"));
... |
public static void main (String[] argv) {
// this is only here for me to debug native code faster
// new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio");
// new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");
// new Sha... | public static void main (String[] argv) {
// this is only here for me to debug native code faster
// new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio");
// new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");
// new Sha... |
public static void main (String[] argv) {
new LwjglApplication(new Cubocy(), "Cubocy", 480, 320, true);
// After creating the Application instance we can set the log level to
// show the output of calls to Gdx.app.debug
Gdx.app.setLogLevel(Application.LOG_DEBUG);
}
| public static void main (String[] argv) {
new LwjglApplication(new Cubocy(), "Cubocy", 480, 320);
// After creating the Application instance we can set the log level to
// show the output of calls to Gdx.app.debug
Gdx.app.setLogLevel(Application.LOG_DEBUG);
}
|
public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new Metagun(), false);
}
| public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new Metagun());
}
|
public static void main (String[] argv) {
new LwjglApplication(new Metagun(), "Metagun", 320, 240, false);
}
| public static void main (String[] argv) {
new LwjglApplication(new Metagun(), "Metagun", 320, 240);
}
|
public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new SuperJumper(), false);
}
| public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new SuperJumper());
}
|
public static void main (String[] argv) {
new LwjglApplication(new SuperJumper(), "Super Jumper", 320, 480, false);
}
| public static void main (String[] argv) {
new LwjglApplication(new SuperJumper(), "Super Jumper", 320, 480);
}
|
public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new Bouncy(), false);
}
| public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new Bouncy());
}
|
public static void main (String[] argv) {
new LwjglApplication(new Bouncy(), "Bouncy", 320, 480, true);
}
| public static void main (String[] argv) {
new LwjglApplication(new Bouncy(), "Bouncy", 320, 480);
}
|
public static void main (String[] args) {
new LwjglApplication(new VeryAngryRobotsGame(), "Very Angry Robots", WINDOW_WIDTH, WINDOW_HEIGHT, false);
}
| public static void main (String[] args) {
new LwjglApplication(new VeryAngryRobotsGame(), "Very Angry Robots", WINDOW_WIDTH, WINDOW_HEIGHT);
}
|
public void dispose () {
}
}, false);
}
| public void dispose () {
}
});
}
|
public Hiero4 () {
super("Hiero v4.0 - Bitmap Font Tool");
Splash splash = new Splash(this, "/splash.jpg", 2000);
initialize();
splash.close();
gamePanel.add(new LwjglCanvas(renderer = new Renderer(), false).getCanvas());
prefs = Preferences.userNodeForPackage(Hiero4.class);
java.awt.Color backgroundCo... | public Hiero4 () {
super("Hiero v4.0 - Bitmap Font Tool");
Splash splash = new Splash(this, "/splash.jpg", 2000);
initialize();
splash.close();
gamePanel.add(new LwjglCanvas(renderer = new Renderer()).getCanvas());
prefs = Preferences.userNodeForPackage(Hiero4.class);
java.awt.Color backgroundColor = E... |
public void tick(Input input) {
time++;
if (time / 4 > lines.size() * 6 + 250) {
setScreen(new TitleScreen());
}
if (input.buttons[Input.SHOOT] && !input.oldButtons[Input.SHOOT]) {
setScreen(new TitleScreen());
}
if (input.buttons[Input.ESCAPE]... | public void tick(Input input) {
time++;
if (time / 4 > lines.size() * 6 + 250) {
setScreen(new TitleScreen());
}
if (input.buttons[Input.SHOOT] && !input.oldButtons[Input.SHOOT] || Gdx.input.isTouched()) {
setScreen(new TitleScreen());
}
if (in... |
@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);
... | @Override public void actionPerformed (ActionEvent e) {
String testName = (String)list.getSelectedValue();
GdxTest test = GdxTests.newTest(testName);
new JoglApplication(test, testName, 800, 480, test.needsGL20());
}
});
add(pane, BorderLayout.CENTER);
add(button, BorderLayout.SOUTH);
... |
@Override public void setNextReader(IndexReader reader, int docBase) throws IOException {
FieldData cleanFieldData = fieldDataCache.cache(FieldDataType.DefaultTypes.STRING, reader, field);
if (cleanFieldData instanceof MultiValueStringFieldData) {
throw new IOException("Can't sort on str... | @Override public void setNextReader(IndexReader reader, int docBase) throws IOException {
FieldData cleanFieldData = fieldDataCache.cache(FieldDataType.DefaultTypes.STRING, reader, field);
if (cleanFieldData instanceof MultiValueStringFieldData) {
throw new IOException("Can't sort on str... |
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 void consumeCompressedData () {
throw new GdxRuntimeException("This TextureData implementation does not upload data itself");
}
} | public void consumeCompressedData (int target) {
throw new GdxRuntimeException("This TextureData implementation does not upload data itself");
}
} |
public JsonWriter set (String name, Object value) throws IOException {
if (current == null || current.array) throw new RuntimeException("Current item must be an object.");
if (!current.needsComma)
current.needsComma = true;
else
writer.write(",");
writer.write("\"");
writer.write(name);
if (value == ... | public JsonWriter set (String name, Object value) throws IOException {
if (current == null || current.array) throw new RuntimeException("Current item must be an object.");
if (!current.needsComma)
current.needsComma = true;
else
writer.write(",");
writer.write("\"");
writer.write(name);
if (value == ... |
private float getNodeAt (Array<Node> nodes, float y, float rowY) {
for (int i = 0, n = nodes.size; i < n; i++) {
Node node = nodes.get(i);
if (y >= rowY - node.height - ySpacing && y < rowY) {
foundNode = node;
return -1;
}
rowY -= node.height + ySpacing;
if (node.expanded) {
rowY = getNod... | private float getNodeAt (Array<Node> nodes, float y, float rowY) {
for (int i = 0, n = nodes.size; i < n; i++) {
Node node = nodes.get(i);
if (y >= rowY - node.height - ySpacing && y < rowY) {
foundNode = node;
return -1;
}
rowY -= node.height + ySpacing;
if (node.expanded) {
rowY = getNod... |
public void handleCollision (Body ball, Body bodyHit, Field field) {
Vector2 impulse = this.impulseForBall(ball);
if (impulse != null) {
ball.applyLinearImpulse(impulse, ball.getWorldCenter());
flashForFrames(3);
}
}
| public void handleCollision (Body ball, Body bodyHit, Field field) {
Vector2 impulse = this.impulseForBall(ball);
if (impulse != null) {
ball.applyLinearImpulse(impulse, ball.getWorldCenter(), true);
flashForFrames(3);
}
}
|
public void handleCollision (Body ball, Body bodyHit, Field field) {
if (retractWhenHit) {
this.setRetracted(true);
}
if (killBall) {
field.removeBall(ball);
} else {
Vector2 impulse = this.impulseForBall(ball);
if (impulse != null) {
ball.applyLinearImpulse(impulse, ball.getWorldCenter());
... | public void handleCollision (Body ball, Body bodyHit, Field field) {
if (retractWhenHit) {
this.setRetracted(true);
}
if (killBall) {
field.removeBall(ball);
} else {
Vector2 impulse = this.impulseForBall(ball);
if (impulse != null) {
ball.applyLinearImpulse(impulse, ball.getWorldCenter(), tru... |
public void addImage (File file) {
BufferedImage image;
try {
image = ImageIO.read(file);
} catch (IOException ex) {
throw new RuntimeException("Error reading image: " + file, ex);
}
if (image == null) throw new RuntimeException("Unable to read image: " + file);
// Strip root dir off front of image ... | public void addImage (File file) {
BufferedImage image;
try {
image = ImageIO.read(file);
} catch (IOException ex) {
throw new RuntimeException("Error reading image: " + file, ex);
}
if (image == null) throw new RuntimeException("Unable to read image: " + file);
// Strip root dir off front of image ... |
public String toString () {
String name = this.name;
if (name == null) {
name = getClass().getName();
int dotIndex = name.lastIndexOf('.');
if (dotIndex != -1) name = name.substring(dotIndex + 1);
}
return name + " " + x + "," + y + " " + width + "x" + height;
}
} | public String toString () {
String name = this.name;
if (name == null) {
name = getClass().getName();
int dotIndex = name.lastIndexOf('.');
if (dotIndex != -1) name = name.substring(dotIndex + 1);
}
return name;
}
} |
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"
};
| 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 Filter prefixFilter(String value, @Nullable QueryParseContext context) {
if (indexed() || context == null) {
return super.prefixFilter(value, context);
}
Collection<String> queryTypes = context.queryTypes();
if (queryTypes.size() == 1) {
return new Pref... | public Filter prefixFilter(String value, @Nullable QueryParseContext context) {
if (indexed() || context == null) {
return super.prefixFilter(value, context);
}
Collection<String> queryTypes = context.queryTypes();
if (queryTypes.size() == 1) {
return new Pref... |
public void dispose () {
// Don't rely on the GC
if (motionState != null) motionState.dispose();
if (body != null) body.delete();
// And remove the reference
motionState = null;
body = null;
}
| public void dispose () {
// Don't rely on the GC
if (motionState != null) motionState.dispose();
if (body != null) body.dispose();
// And remove the reference
motionState = null;
body = null;
}
|
public TransportRequestOptions transportOptions(Settings settings) {
return TransportRequestOptions.options()
.withType(TransportRequestOptions.Type.fromString(settings.get("action.bulk.transport.type", TransportRequestOptions.Type.LOW.toString())))
.withCompress(settings.get... | public TransportRequestOptions transportOptions(Settings settings) {
return TransportRequestOptions.options()
.withType(TransportRequestOptions.Type.BULK)
.withCompress(settings.getAsBoolean("action.bulk.compress", true)
);
}
|
public T wrap (long handle) {
VM.setLong(VM.getObjectAddress(instance) + HANDLE_OFFSET, handle);
return instance;
}
}
private static final NSObjectWrapper<UITouch> UI_TOUCH_WRAPPER = new NSObjectWrapper<UITouch>(UITouch.class);
static final NSObjectWrapper<UIAcceleration> UI_ACCELERATION_WRAPPER = new NSO... | public T wrap (long handle) {
VM.setLong(VM.getObjectAddress(instance) + HANDLE_OFFSET, handle);
return instance;
}
}
private static final NSObjectWrapper<UITouch> UI_TOUCH_WRAPPER = new NSObjectWrapper<UITouch>(UITouch.class);
private static final NSObjectWrapper<UIAcceleration> UI_ACCELERATION_WRAPPER =... |
static public void drawDebug (Stage stage) {
if (!TableToolkit.drawDebug) return;
drawDebug(stage.getActors(), stage.getBatch());
}
| static public void drawDebug (Stage stage) {
if (!TableToolkit.drawDebug) return;
drawDebug(stage.getActors(), stage.getSpriteBatch());
}
|
public void render () {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
if (useStage) {
stage.act(Gdx.graphics.getDeltaTime());
stage.getBatch().disableBlending();
Group root = stage.getRoot();
Array<Actor> actors = root.getChildren();
// for(int i = 0; i < actors.size(); i++) {
// actors.get(i).rotation +=... | public void render () {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
if (useStage) {
stage.act(Gdx.graphics.getDeltaTime());
stage.getSpriteBatch().disableBlending();
Group root = stage.getRoot();
Array<Actor> actors = root.getChildren();
// for(int i = 0; i < actors.size(); i++) {
// actors.get(i).rotat... |
public void render () {
Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.draw();
Gdx.app.log("X", "FPS: " + Gdx.graphics.getFramesPerSecond());
SpriteBatch spriteBatch = (SpriteBatch)stage.getBatch();
Gdx.app.log("X", "render calls: " + spriteBatch.totalRenderCalls)... | public void render () {
Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
stage.draw();
Gdx.app.log("X", "FPS: " + Gdx.graphics.getFramesPerSecond());
SpriteBatch spriteBatch = (SpriteBatch)stage.getSpriteBatch();
Gdx.app.log("X", "render calls: " + spriteBatch.totalRender... |
public boolean FinishedLaunching (UIApplication uiApp, NSDictionary options) {
this.uiApp = uiApp;
// enable or disable screen dimming
UIApplication.get_SharedApplication().set_IdleTimerDisabled(config.preventScreenDimming);
// fix the scale factor if we have a retina device (NOTE: iOS screen sizes are in "p... | public boolean FinishedLaunching (UIApplication uiApp, NSDictionary options) {
this.uiApp = uiApp;
// enable or disable screen dimming
UIApplication.get_SharedApplication().set_IdleTimerDisabled(config.preventScreenDimming);
// fix the scale factor if we have a retina device (NOTE: iOS screen sizes are in "p... |
public void testSimpleQueryString() throws ExecutionException, InterruptedException {
createIndex("test");
indexRandom(true,
client().prepareIndex("test", "type1", "1").setSource("body", "foo"),
| public void testSimpleQueryString() throws ExecutionException, InterruptedException {
createIndex("test");
indexRandom(true, false,
client().prepareIndex("test", "type1", "1").setSource("body", "foo"),
|
protected HttpURLConnection configureRequest(final HttpURLConnection request) {
super.configureRequest(request);
request.setRequestProperty(HEADER_ACCEPT, "application/vnd.github.beta.html+json");
return request;
}
}, account, accountManage... | protected HttpURLConnection configureRequest(final HttpURLConnection request) {
super.configureRequest(request);
request.setRequestProperty(HEADER_ACCEPT, "application/vnd.github.beta.full+json");
return request;
}
}, account, accountManage... |
private TmxMapHelper () {
}
static int[] getTileIds (Element element, int width, int height) {
Element data = element.getChildByName("data");
String encoding = data.getAttribute("encoding", null);
if (encoding == null) { // no 'encoding' attribute means that the encoding is XML
throw new GdxRuntimeExcepti... | private TmxMapHelper () {
}
static int[] getTileIds (Element element, int width, int height) {
Element data = element.getChildByName("data");
String encoding = data.getAttribute("encoding", null);
if (encoding == null) { // no 'encoding' attribute means that the encoding is XML
throw new GdxRuntimeExcepti... |
public SpriteBatch(int size) {
this.buffers = new Mesh[1];
this.buffers[0] = new Mesh(false, size * 4, size * 6, new VertexAttribute(
Usage.Position, 2, "a_position"), new VertexAttribute(
Usage.ColorPacked, 4, "a_color"), new VertexAttribute(
Usage.TextureCoordinates, 2, "a_texCoords"));
projecti... | public SpriteBatch(int size) {
this.buffers = new Mesh[1];
this.buffers[0] = new Mesh(VertexDataType.VertexArray, false, size * 4, size * 6, new VertexAttribute(
Usage.Position, 2, "a_position"), new VertexAttribute(
Usage.ColorPacked, 4, "a_color"), new VertexAttribute(
Usage.TextureCoordinates, 2, "a... |
public Cell<T> prefSize (float width, float height) {
prefSize(new Fixed(width), new Fixed(height));
return this;
}
| public Cell<T> prefSize (float width, float height) {
prefSize(new Fixed(width));
return this;
}
|
public void messageReceived(final RecoveryFileChunkRequest request, TransportChannel channel) throws Exception {
RecoveryStatus onGoingRecovery = onGoingRecoveries.get(request.recoveryId());
validateRecoveryStatus(onGoingRecovery, request.shardId());
final Store store = onGo... | public void messageReceived(final RecoveryFileChunkRequest request, TransportChannel channel) throws Exception {
RecoveryStatus onGoingRecovery = onGoingRecoveries.get(request.recoveryId());
validateRecoveryStatus(onGoingRecovery, request.shardId());
final Store store = onGo... |
public void sendRequest(DiscoveryNode node, long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException, TransportException {
if (action.equals(RecoveryTarget.Actions.FILE_CHUNK)) {
RecoveryFileChunkRequest req ... | public void sendRequest(DiscoveryNode node, long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException, TransportException {
if (action.equals(RecoveryTarget.Actions.FILE_CHUNK)) {
RecoveryFileChunkRequest req ... |
public synchronized void load (String sharedLibName) {
if (loadedLibraries.contains(sharedLibName)) return;
boolean isWindows = System.getProperty("os.name").contains("Windows");
boolean isLinux = System.getProperty("os.name").contains("Linux");
boolean isMac = System.getProperty("os.name").contains("Mac");
... | public synchronized void load (String sharedLibName) {
if (loadedLibraries.contains(sharedLibName)) return;
boolean isWindows = System.getProperty("os.name").contains("Windows");
boolean isLinux = System.getProperty("os.name").contains("Linux");
boolean isMac = System.getProperty("os.name").contains("Mac");
... |
public void create () {
font = new BitmapFont();
batch = new SpriteBatch();
try {
Vector2 fromDefaultConstructor = ClassReflection.newInstance(Vector2.class);
println("From default constructor: " + fromDefaultConstructor);
Method mSet = ClassReflection.getMethod(Vector2.class, "set", float.class, floa... | public void create () {
font = new BitmapFont();
batch = new SpriteBatch();
try {
Vector2 fromDefaultConstructor = ClassReflection.newInstance(Vector2.class);
println("From default constructor: " + fromDefaultConstructor);
Method mSet = ClassReflection.getMethod(Vector2.class, "set", float.class, floa... |
public static void main( String[] argv )
{
JoglApplication app = new JoglApplication( "Simple Test", 640, 480, 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.box2d.TestCollection( ) );
}
|
public void tick() {
final long t = System.nanoTime();
if (lastTick > 0L)
tick((t - lastTick) * nano2seconds);
lastTick = t;
}
| public void tick() {
final long t = TimeUtils.nanoTime();
if (lastTick > 0L)
tick((t - lastTick) * nano2seconds);
lastTick = t;
}
|
public void onTouch (MotionEvent event, AndroidInput input) {
final int action = event.getAction() & MotionEvent.ACTION_MASK;
int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;
int pointerId = event.getPointerId(pointerIndex);
int x = 0, y... | public void onTouch (MotionEvent event, AndroidInput input) {
final int action = event.getAction() & MotionEvent.ACTION_MASK;
int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT;
int pointerId = event.getPointerId(pointerIndex);
int x = 0, y = 0;
... |
static public boolean isInstance (Class c, Object obj) {
return obj != null && isAssignableFrom(c, obj.getClass());
}
| static public boolean isInstance (Class c, Object obj) {
return isAssignableFrom(c, obj.getClass());
}
|
public Class[] getParameterTypes () {
Parameter[] parameters = method.getParameters();
Class[] parameterTypes = new Class[parameters.length];
for (int i = 0, j = parameters.length; i < j; i++) {
parameterTypes[i] = parameters[i].getClazz();
}
return parameterTypes;
}
| public Class[] getParameterTypes () {
Parameter[] parameters = method.getParameters();
Class[] parameterTypes = new Class[parameters.length];
for (int i = 0, j = parameters.length; i < j; i++) {
parameterTypes[i] = parameters[i].getType();
}
return parameterTypes;
}
|
public Array<GridPoint2> line(GridPoint2 start, GridPoint2 end) {
return line(start.x, start.y, end.x, end.y);
}
| public Array<GridPoint2> line(GridPoint2 start, GridPoint2 end) {
return line(start.x, start.y, end.y, end.y);
}
|
protected void updateRelative (float percentDelta) {
actor.moveBy(amountX * percentDelta, amountY * percentDelta);
}
| protected void updateRelative (float percentDelta) {
actor.translate(amountX * percentDelta, amountY * percentDelta);
}
|
protected void updateRelative (float percentDelta) {
actor.rotateBy(amount * percentDelta);
}
| protected void updateRelative (float percentDelta) {
actor.rotate(amount * percentDelta);
}
|
protected void updateRelative (float percentDelta) {
actor.scaleBy(amountX * percentDelta, amountY * percentDelta);
}
| protected void updateRelative (float percentDelta) {
actor.scale(amountX * percentDelta, amountY * percentDelta);
}
|
protected void updateRelative (float percentDelta) {
actor.sizeBy(amountWidth * percentDelta, amountHeight * percentDelta);
}
| protected void updateRelative (float percentDelta) {
actor.size(amountWidth * percentDelta, amountHeight * percentDelta);
}
|
public Preloader () {
baseUrl = GWT.getHostPageBaseURL() + "assets/";
// trigger copying of assets and creation of assets.txt
| public Preloader () {
baseUrl = GWT.getModuleBaseURL().replace(GWT.getModuleName() + "/", "") + "assets/";
// trigger copying of assets and creation of assets.txt
|
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... |
private void startScheduledTasksIfNeeded() {
if (engine instanceof ScheduledRefreshableEngine) {
TimeValue refreshInterval = ((ScheduledRefreshableEngine) engine).refreshInterval();
if (refreshInterval.millis() > 0) {
refreshScheduledFuture = threadPool.scheduleWithFi... | private void startScheduledTasksIfNeeded() {
if (engine instanceof ScheduledRefreshableEngine) {
TimeValue refreshInterval = ((ScheduledRefreshableEngine) engine).refreshInterval();
if (refreshInterval.millis() > 0) {
refreshScheduledFuture = threadPool.scheduleWithFi... |
protected void collect(int doc, HashedBytesArray parentUid) throws IOException {
float currentScore = scorer.score();
switch (scoreType) {
case SUM:
uidToScore.addTo(parentUid, currentScore);
break;
case MAX:
... | protected void collect(int doc, HashedBytesArray parentUid) throws IOException {
float currentScore = scorer.score();
switch (scoreType) {
case SUM:
uidToScore.addTo(parentUid, currentScore);
break;
case MAX:
... |
private RecoveryResponse recover(final StartRecoveryRequest request) {
final InternalIndexShard shard = (InternalIndexShard) indicesService.indexServiceSafe(request.shardId().index().name()).shardSafe(request.shardId().id());
logger.trace("starting recovery to {}, mark_as_relocated {}", request.targ... | private RecoveryResponse recover(final StartRecoveryRequest request) {
final InternalIndexShard shard = (InternalIndexShard) indicesService.indexServiceSafe(request.shardId().index().name()).shardSafe(request.shardId().id());
logger.trace("[{}][{}] starting recovery to {}, mark_as_relocated {}", req... |
protected Settings externalNodeSettings(int nodeOrdinal) {
return ImmutableSettings.settingsBuilder()
.put("transport.tcp.port", 9390 + nodeOrdinal)
.put("discovery.zen.ping.multicast.enabled", false)
.put("discovery.zen.ping.unicast.hosts", "localhost:9380,lo... | protected Settings externalNodeSettings(int nodeOrdinal) {
return ImmutableSettings.settingsBuilder()
.put("transport.tcp.port", 9390 + nodeOrdinal)
.put("discovery.zen.ping.multicast.enabled", false)
.put("discovery.zen.ping.unicast.hosts", "localhost:9380,lo... |
protected double computeExpectedScore(float[] weights, float[] scores, String scoreMode) {
double expectedScore = 0.0;
if ("multiply".equals(scoreMode)) {
expectedScore = 1.0;
}
if ("max".equals(scoreMode)) {
expectedScore = Float.MAX_VALUE * -1.0;
}
... | protected double computeExpectedScore(float[] weights, float[] scores, String scoreMode) {
double expectedScore = 0.0;
if ("multiply".equals(scoreMode)) {
expectedScore = 1.0;
}
if ("max".equals(scoreMode)) {
expectedScore = Float.MAX_VALUE * -1.0;
}
... |
public void init(GLAutoDrawable arg0)
{
for( RenderListener listener: listeners )
listener.surfaceCreated( );
setVerticalSynch(false);
}
| public void init(GLAutoDrawable arg0)
{
for( RenderListener listener: listeners )
listener.surfaceCreated( );
setVerticalSynch(true);
}
|
@Override public void recover(RecoveryHandler recoveryHandler) throws EngineException {
// take a write lock here so it won't happen while a flush is in progress
// this means that next commits will not be allowed once the lock is released
rwl.writeLock().lock();
try {
di... | @Override public void recover(RecoveryHandler recoveryHandler) throws EngineException {
// take a write lock here so it won't happen while a flush is in progress
// this means that next commits will not be allowed once the lock is released
rwl.writeLock().lock();
try {
di... |
public void consumeCustomData (int target) {
throw new GdxRuntimeException("This TextureData implementation does not upload data itself");
}
} | public void consumeCompressedData (int target) {
throw new GdxRuntimeException("This TextureData implementation does not upload data itself");
}
} |
public boolean accelerometerMoved (Controller controller, int accelerometerIndex, Vector3 value) {
// not printing this as we get to many values
return false;
}
});
}
void print (String message) {
String[] lines = console.getItems().toArray(String.class);
String[] newLines = new String[lines.leng... | public boolean accelerometerMoved (Controller controller, int accelerometerIndex, Vector3 value) {
// not printing this as we get to many values
return false;
}
});
}
void print (String message) {
String[] lines = console.getItems().toArray();
String[] newLines = new String[lines.length + 1];
S... |
public void draw(Batch batch) {
delta = Math.min(0.06f, Gdx.graphics.getDeltaTime());
aliveTime += delta;
collisionPoints.get(0).set( this.getVertices()[0], this.getVertices()[1]);
collisionPoints.get(1).set( this.getVertices()[5], this.getVertices()[6]);
collisionPoints.get(2).set( this.getVertices()[10]... | public void draw(Batch batch) {
delta = Math.min(0.06f, Gdx.graphics.getDeltaTime());
aliveTime += delta;
collisionPoints.get(0).set( this.getVertices()[0], this.getVertices()[1]);
collisionPoints.get(1).set( this.getVertices()[5], this.getVertices()[6]);
collisionPoints.get(2).set( this.getVertices()[10]... |
public WordScorer newScorer(IndexReader reader, String field, double realWordLikelyhood, BytesRef separator) throws IOException {
return new StupidBackoffScorer(reader, field, realWordLikelyhood, separator, discount);
}
});
... | public WordScorer newScorer(IndexReader reader, String field, double realWordLikelyhood, BytesRef separator) throws IOException {
return new StupidBackoffScorer(reader, field, realWordLikelyhood, separator, discount);
}
});
... |
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 CommentItemView(final View view) {
super(view);
bodyView = (TextView) view.findViewById(id.tv_comment_body);
bodyView.setMovementMethod(LinkMovementMethod.getInstance());
authorView = (TextView) view.findViewById(id.tv_comment_author);
dateView = (TextView) view.find... | public CommentItemView(final View view) {
super(view);
bodyView = (TextView) view.findViewById(id.tv_comment_body);
bodyView.setMovementMethod(LinkMovementMethod.getInstance());
authorView = (TextView) view.findViewById(id.tv_comment_author);
dateView = (TextView) view.find... |
public GistView(View view) {
super(view);
gistId = (TextView) view.findViewById(id.tv_gist_id);
title = (TextView) view.findViewById(id.tv_gist_title);
author = (TextView) view.findViewById(id.tv_gist_author);
created = (TextView) view.findViewById(id.tv_gist_creation);
... | public GistView(View view) {
super(view);
gistId = (TextView) view.findViewById(id.tv_gist_id);
title = (TextView) view.findViewById(id.tv_gist_title);
author = (TextView) view.findViewById(id.tv_gist_author);
created = (TextView) view.findViewById(id.tv_gist_creation);
... |
public DashboardIssueView(View view) {
super(view);
repoText = (TextView) view.findViewById(id.tv_issue_repo_name);
number = (TextView) view.findViewById(id.tv_issue_number);
numberPaintFlags = number.getPaintFlags();
title = (TextView) view.findViewById(id.tv_issue_title);
... | public DashboardIssueView(View view) {
super(view);
repoText = (TextView) view.findViewById(id.tv_issue_repo_name);
number = (TextView) view.findViewById(id.tv_issue_number);
numberPaintFlags = number.getPaintFlags();
title = (TextView) view.findViewById(id.tv_issue_title);
... |
public RepositoryIssueItemView(View view) {
super(view);
number = (TextView) view.findViewById(id.tv_issue_number);
numberPaintFlags = number.getPaintFlags();
title = (TextView) view.findViewById(id.tv_issue_title);
avatar = (ImageView) view.findViewById(id.iv_avatar);
... | public RepositoryIssueItemView(View view) {
super(view);
number = (TextView) view.findViewById(id.tv_issue_number);
numberPaintFlags = number.getPaintFlags();
title = (TextView) view.findViewById(id.tv_issue_title);
avatar = (ImageView) view.findViewById(id.iv_avatar);
... |
public RepositoryItemView(final View view) {
super(view);
repoIcon = (TextView) view.findViewById(id.tv_repo_icon);
TypefaceUtils.setOctocons(repoIcon);
repoName = (TextView) view.findViewById(id.tv_repo_name);
repoDescription = (TextView) view.findViewById(id.tv_repo_descri... | public RepositoryItemView(final View view) {
super(view);
repoIcon = (TextView) view.findViewById(id.tv_repo_icon);
TypefaceUtils.setOcticons(repoIcon);
repoName = (TextView) view.findViewById(id.tv_repo_name);
repoDescription = (TextView) view.findViewById(id.tv_repo_descri... |
public NewsEventItemView(View view) {
super(view);
avatarView = (ImageView) view.findViewById(id.iv_avatar);
eventText = (TextView) view.findViewById(id.tv_event);
iconText = (TextView) view.findViewById(id.tv_event_icon);
TypefaceUtils.setOctocons(iconText);
dateT... | public NewsEventItemView(View view) {
super(view);
avatarView = (ImageView) view.findViewById(id.iv_avatar);
eventText = (TextView) view.findViewById(id.tv_event);
iconText = (TextView) view.findViewById(id.tv_event_icon);
TypefaceUtils.setOcticons(iconText);
dateT... |
public IndexFieldData.WithOrdinals build(final IndexReader indexReader, IndexFieldData.WithOrdinals indexFieldData, Settings settings, CircuitBreakerService breakerService) throws IOException {
assert indexReader.leaves().size() > 1;
long startTime = System.currentTimeMillis();
final Atomic... | public IndexFieldData.WithOrdinals build(final IndexReader indexReader, IndexFieldData.WithOrdinals indexFieldData, Settings settings, CircuitBreakerService breakerService) throws IOException {
assert indexReader.leaves().size() > 1;
long startTime = System.currentTimeMillis();
final Atomic... |
public void collect(int doc) throws IOException {
// the _source is the query
if (idValues.setDocument(doc) > 0) {
BytesRef id = idValues.nextValue();
fieldsVisitor.reset();
reader.document(doc, fieldsVisitor);
try {
// id is only use... | public void collect(int doc) throws IOException {
// the _source is the query
if (idValues.setDocument(doc) > 0) {
BytesRef id = idValues.nextValue();
fieldsVisitor.reset();
reader.document(doc, fieldsVisitor);
try {
// id is only use... |
public PercolateShardResponse doPercolate(PercolateShardRequest request, PercolateContext context, boolean isNested) {
Engine.Searcher percolatorSearcher = context.indexShard().acquireSearcher("percolate");
try {
MatchAndSort matchAndSort = QueryCollector.matchAndSort(log... | public PercolateShardResponse doPercolate(PercolateShardRequest request, PercolateContext context, boolean isNested) {
Engine.Searcher percolatorSearcher = context.indexShard().acquireSearcher("percolate");
try {
MatchAndSort matchAndSort = QueryCollector.matchAndSort(log... |
public LongBitSet acceptedGlobalOrdinals(BytesValues.WithOrdinals globalOrdinals, ValuesSource.Bytes.WithOrdinals valueSource) {
TermsEnum globalTermsEnum = valueSource.getGlobalTermsEnum();
LongBitSet acceptedGlobalOrdinals = new LongBitSet(globalOrdinals.getMaxOrd());
try {
for... | public LongBitSet acceptedGlobalOrdinals(BytesValues.WithOrdinals globalOrdinals, ValuesSource.Bytes.WithOrdinals valueSource) {
TermsEnum globalTermsEnum = valueSource.globalBytesValues().getTermsEnum();
LongBitSet acceptedGlobalOrdinals = new LongBitSet(globalOrdinals.getMaxOrd());
try {
... |
public void testTermsEnum() throws Exception {
fillExtendedMvSet();
AtomicReaderContext atomicReaderContext = refreshReader();
IndexFieldData.WithOrdinals ifd = getForField("value");
AtomicFieldData.WithOrdinals afd = ifd.load(atomicReaderContext);
TermsEnum termsEnum = afd... | public void testTermsEnum() throws Exception {
fillExtendedMvSet();
AtomicReaderContext atomicReaderContext = refreshReader();
IndexFieldData.WithOrdinals ifd = getForField("value");
AtomicFieldData.WithOrdinals afd = ifd.load(atomicReaderContext);
TermsEnum termsEnum = afd... |
public void onClick(View v) {
if (issue != null)
labelsDialog.show(issue.getLabels());
}
});
header = new IssueHeaderViewHolder(headerView, avatarHelper, getResources());
list.setFastScrollEnabled(true);
list.addHeaderView(heade... | public void onClick(View v) {
if (issue != null)
labelsDialog.show(issue.getLabels());
}
});
header = new IssueHeaderViewHolder(headerView, avatarHelper, getResources());
list.setFastScrollEnabled(true);
list.addHeaderView(heade... |
private void setLayoutEnabled (Group parent, boolean enabled) {
SnapshotArray<Actor> children = getChildren();
for (int i = 0, n = children.size; i < n; i++) {
Actor actor = children.get(i);
if (actor instanceof Layout)
((Layout)actor).setLayoutEnabled(enabled);
else if (actor instanceof Group) //
... | private void setLayoutEnabled (Group parent, boolean enabled) {
SnapshotArray<Actor> children = parent.getChildren();
for (int i = 0, n = children.size; i < n; i++) {
Actor actor = children.get(i);
if (actor instanceof Layout)
((Layout)actor).setLayoutEnabled(enabled);
else if (actor instanceof Group)... |
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
accountManager = AccountManager.get(this);
final Intent intent = getIntent();
username = intent.getStringExtra(PARAM_USERNAME);
authTokenType = intent.getStringExtra(PARAM_AUTHTOKEN_TYPE);
requestNewAccou... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
accountManager = AccountManager.get(this);
final Intent intent = getIntent();
username = intent.getStringExtra(PARAM_USERNAME);
authTokenType = intent.getStringExtra(PARAM_AUTHTOKEN_TYPE);
requestNewAccou... |
public void beforeGroup (int group, Array<Decal> contents) {
if (group == GROUP_BLEND) {
Gdx.gl.glEnable(GL10.GL_BLEND);
contents.sort(cameraSorter);
} else {
for (int i = 0, n = contents.size; i < n; i++) {
Decal decal = contents.get(i);
Array<Decal> materialGroup = materialGroups.get(decal.mater... | public void beforeGroup (int group, Array<Decal> contents) {
if (group == GROUP_BLEND) {
Gdx.gl.glEnable(GL10.GL_BLEND);
contents.sort(cameraSorter);
} else {
for (int i = 0, n = contents.size; i < n; i++) {
Decal decal = contents.get(i);
Array<Decal> materialGroup = materialGroups.get(decal.mater... |
protected void clear () {
groupList.clear();
groupPool.freeAll(usedGroups);
usedGroups.clear();
}
| protected void clear () {
groupList.clear();
groupPool.free(usedGroups);
usedGroups.clear();
}
|
public void onDestroy() {
graphics.clearManagedCaches();
graphics.destroy();
}
| public void onDestroy() {
graphics.clearManagedCaches();
// graphics.destroy();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.