buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static void main(String[] args) throws Exception {
Node node = NodeBuilder.nodeBuilder().node();
Client client = node.client();
ClusterHealthResponse clusterHealthResponse = client.admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
if (clusterHe... | public static void main(String[] args) throws Exception {
Node node = NodeBuilder.nodeBuilder().clusterName(GeoDistanceSearchBenchmark.class.getSimpleName()).node();
Client client = node.client();
ClusterHealthResponse clusterHealthResponse = client.admin().cluster().prepareHealth().setWai... |
public ThriftRestRequest(org.elasticsearch.thrift.RestRequest request) {
this.request = request;
this.params = request.getParams() == null ? new HashMap<String, String>() : request.getParams();
int pathEndPos = request.getUri().indexOf('?');
if (pathEndPos < 0) {
this.pa... | public ThriftRestRequest(org.elasticsearch.thrift.RestRequest request) {
this.request = request;
this.params = request.getParameters() == null ? new HashMap<String, String>() : request.getParameters();
int pathEndPos = request.getUri().indexOf('?');
if (pathEndPos < 0) {
... |
public String[] asStringArray () {
if (type != ValueType.array) throw new IllegalStateException("Value is not an array: " + type);
String[] array = new String[size];
int i = 0;
for (JsonValue value = child; value != null; value = value.next, i++) {
String v;
switch (type) {
case stringValue:
v = v... | public String[] asStringArray () {
if (type != ValueType.array) throw new IllegalStateException("Value is not an array: " + type);
String[] array = new String[size];
int i = 0;
for (JsonValue value = child; value != null; value = value.next, i++) {
String v;
switch (value.type) {
case stringValue:
... |
@Test public void simpleMatchedFilter() throws Exception {
try {
client.admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception e) {
// ignore
}
client.admin().indices().prepareCreate("test").execute().actionGet();
client.admi... | @Test public void simpleMatchedFilter() throws Exception {
try {
client.admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception e) {
// ignore
}
client.admin().indices().prepareCreate("test").execute().actionGet();
client.admi... |
protected int getFrameRate () {
int frameRate = Display.isActive() ? graphics.config.foregroundFPS : graphics.config.backgroundFPS;
if (frameRate == -1) frameRate = 10;
if (frameRate == 0) frameRate = graphics.config.backgroundFPS;
if (frameRate == 0) frameRate = 30;
return 0;
}
| protected int getFrameRate () {
int frameRate = Display.isActive() ? graphics.config.foregroundFPS : graphics.config.backgroundFPS;
if (frameRate == -1) frameRate = 10;
if (frameRate == 0) frameRate = graphics.config.backgroundFPS;
if (frameRate == 0) frameRate = 30;
return frameRate;
}
|
public static void generateVoxels(VoxelWorld voxelWorld, int min, int max, int octaveCount) {
byte[] heightMap = PerlinNoiseGenerator.generateHeightMap(voxelWorld.voxelsX, voxelWorld.voxelsZ, min, max, 8);
int idx = 0;
for(int z = 0; z < voxelWorld.voxelsZ; z++) {
for(int x = 0; x < voxelWorld.voxelsX; x++) {... | public static void generateVoxels(VoxelWorld voxelWorld, int min, int max, int octaveCount) {
byte[] heightMap = PerlinNoiseGenerator.generateHeightMap(voxelWorld.voxelsX, voxelWorld.voxelsZ, min, max, octaveCount);
int idx = 0;
for(int z = 0; z < voxelWorld.voxelsZ; z++) {
for(int x = 0; x < voxelWorld.voxel... |
@Override public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("decoder", new SizeHeaderFrameDecoder());
pipeline.addLast("dispatcher", new MessageChannelHandler(NettyTransport.this, logger));... | @Override public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("decoder", new SizeHeaderFrameDecoder());
pipeline.addLast("dispatcher", new MessageChannelHandler(NettyTransport.this, logger));... |
public void recover(boolean indexShouldExists, RecoveryStatus recoveryStatus) throws IndexShardGatewayRecoveryException {
recoveryStatus().index().startTime(System.currentTimeMillis());
// in the none case, we simply start the shard
// clean the store, there should be nothing there...
... | public void recover(boolean indexShouldExists, RecoveryStatus recoveryStatus) throws IndexShardGatewayRecoveryException {
recoveryStatus.index().startTime(System.currentTimeMillis());
// in the none case, we simply start the shard
// clean the store, there should be nothing there...
... |
public void testNoMatchSize() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
iwc.setMergePolicy(newLogMergePolicy());
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc);
... | public void testNoMatchSize() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
iwc.setMergePolicy(newLogMergePolicy());
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc);
... |
public void testMultipleDocs() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
iwc.setMergePolicy(newLogMergePolicy());
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc);... | public void testMultipleDocs() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
iwc.setMergePolicy(newLogMergePolicy());
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc);... |
public void randomDiskUsageTest() {
int iters = atLeast(1000);
for (int i = 1; i < iters; i++) {
long total = between(Integer.MIN_VALUE, Integer.MAX_VALUE);
long free = between(Integer.MIN_VALUE, Integer.MAX_VALUE);
if (free > total || total <= 0) {
... | public void randomDiskUsageTest() {
int iters = scaledRandomIntBetween(1000, 10000);
for (int i = 1; i < iters; i++) {
long total = between(Integer.MIN_VALUE, Integer.MAX_VALUE);
long free = between(Integer.MIN_VALUE, Integer.MAX_VALUE);
if (free > total || total ... |
public void testRandom() {
AllocationService service = createAllocationService(settingsBuilder()
.put("cluster.routing.allocation.concurrent_recoveries", 10)
.put("cluster.routing.allocation.allow_rebalance", "always")
.put("cluster.routing.allocation.cluster_... | public void testRandom() {
AllocationService service = createAllocationService(settingsBuilder()
.put("cluster.routing.allocation.concurrent_recoveries", 10)
.put("cluster.routing.allocation.allow_rebalance", "always")
.put("cluster.routing.allocation.cluster_... |
public void testRandom() throws IOException {
int iterations = atLeast(400); // don't worry that is fast!
for (int iter = 0; iter < iterations; iter++) {
int numClauses = 1 + random().nextInt(10);
FilterClause[] clauses = new FilterClause[numClauses];
BooleanQuery... | public void testRandom() throws IOException {
int iterations = scaledRandomIntBetween(100, 1000); // don't worry that is fast!
for (int iter = 0; iter < iterations; iter++) {
int numClauses = 1 + random().nextInt(10);
FilterClause[] clauses = new FilterClause[numClauses];
... |
public void duel() {
final DoubleObjectOpenHashMap<Object> map1 = new DoubleObjectOpenHashMap<Object>();
final DoubleObjectPagedHashMap<Object> map2 = new DoubleObjectPagedHashMap<Object>(randomInt(42), 0.6f + randomFloat() * 0.39f, BigArraysTests.randombigArrays());
final int maxKey = rando... | public void duel() {
final DoubleObjectOpenHashMap<Object> map1 = new DoubleObjectOpenHashMap<Object>();
final DoubleObjectPagedHashMap<Object> map2 = new DoubleObjectPagedHashMap<Object>(randomInt(42), 0.6f + randomFloat() * 0.39f, BigArraysTests.randombigArrays());
final int maxKey = rando... |
public void duel() {
final LongObjectOpenHashMap<Object> map1 = new LongObjectOpenHashMap<Object>();
final LongObjectPagedHashMap<Object> map2 = new LongObjectPagedHashMap<Object>(randomInt(42), 0.6f + randomFloat() * 0.39f, BigArraysTests.randombigArrays());
final int maxKey = randomIntBetw... | public void duel() {
final LongObjectOpenHashMap<Object> map1 = new LongObjectOpenHashMap<Object>();
final LongObjectPagedHashMap<Object> map2 = new LongObjectPagedHashMap<Object>(randomInt(42), 0.6f + randomFloat() * 0.39f, BigArraysTests.randombigArrays());
final int maxKey = randomIntBetw... |
public void testCountRandomPreference() throws InterruptedException, ExecutionException {
createIndex("test");
indexRandom(true, client().prepareIndex("test", "type", "1").setSource("field", "value"),
client().prepareIndex("test", "type", "2").setSource("field", "value"),
... | public void testCountRandomPreference() throws InterruptedException, ExecutionException {
createIndex("test");
indexRandom(true, client().prepareIndex("test", "type", "1").setSource("field", "value"),
client().prepareIndex("test", "type", "2").setSource("field", "value"),
... |
public void testDeleteByFieldQuery() throws Exception {
client().admin().indices().prepareCreate("test").execute().actionGet();
int numDocs = atLeast(10);
for (int i = 0; i < numDocs; i++) {
client().prepareIndex("test", "test", Integer.toString(i))
.setRoutin... | public void testDeleteByFieldQuery() throws Exception {
client().admin().indices().prepareCreate("test").execute().actionGet();
int numDocs = scaledRandomIntBetween(10, 100);
for (int i = 0; i < numDocs; i++) {
client().prepareIndex("test", "test", Integer.toString(i))
... |
public void testRegexpFilter() throws IOException {
CreateIndexRequestBuilder builder = prepareCreate("test");
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("properties")
.startObject("name")
... | public void testRegexpFilter() throws IOException {
CreateIndexRequestBuilder builder = prepareCreate("test");
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("properties")
.startObject("name")
... |
public void testFuzzyLikeThisBuilder() throws Exception {
IndexQueryParserService queryParser = queryParser();
Query parsedQuery = queryParser.parse(fuzzyLikeThisQuery("name.first", "name.last").likeText("something").maxQueryTerms(12)).query();
assertThat(parsedQuery, instanceOf(FuzzyLikeThi... | public void testFuzzyLikeThisBuilder() throws Exception {
IndexQueryParserService queryParser = queryParser();
Query parsedQuery = queryParser.parse(fuzzyLikeThisQuery("name.first", "name.last").likeText("something").maxQueryTerms(12)).query();
assertThat(parsedQuery, instanceOf(FuzzyLikeThi... |
public void testBreakerWithRandomExceptions() throws IOException, InterruptedException, ExecutionException {
for (NodeStats node : client().admin().cluster().prepareNodesStats()
.clear().setBreaker(true).execute().actionGet().getNodes()) {
assertThat("Breaker is not set to 0", no... | public void testBreakerWithRandomExceptions() throws IOException, InterruptedException, ExecutionException {
for (NodeStats node : client().admin().cluster().prepareNodesStats()
.clear().setBreaker(true).execute().actionGet().getNodes()) {
assertThat("Breaker is not set to 0", no... |
public void testThatLoadingTemplateFromFileWorks() throws Exception {
final int iters = atLeast(5);
Set<String> indices = new HashSet<String>();
for (int i = 0; i < iters; i++) {
String indexName = "foo" + randomRealisticUnicodeOfLengthBetween(0, 5);
if (indices.conta... | public void testThatLoadingTemplateFromFileWorks() throws Exception {
final int iters = scaledRandomIntBetween(5, 20);
Set<String> indices = new HashSet<String>();
for (int i = 0; i < iters; i++) {
String indexName = "foo" + randomRealisticUnicodeOfLengthBetween(0, 5);
... |
public void testFacetsAndAggregations() throws Exception {
client().admin().indices().prepareCreate("test").execute().actionGet();
ensureGreen();
int numQueries = atLeast(250);
int numUniqueQueries = between(1, numQueries / 2);
String[] values = new String[numUniqueQueries];... | public void testFacetsAndAggregations() throws Exception {
client().admin().indices().prepareCreate("test").execute().actionGet();
ensureGreen();
int numQueries = scaledRandomIntBetween(250, 500);
int numUniqueQueries = between(1, numQueries / 2);
String[] values = new Strin... |
public void testDuel() {
GroupTree tree1 = new GroupTree();
GroupRedBlackTree tree2 = new GroupRedBlackTree(randomInt(100));
// Add elements
final int elements = atLeast(100);
for (int i = 0; i < elements; ++i) {
final double centroid = randomDouble();
... | public void testDuel() {
GroupTree tree1 = new GroupTree();
GroupRedBlackTree tree2 = new GroupRedBlackTree(randomInt(100));
// Add elements
final int elements = scaledRandomIntBetween(100, 1000);
for (int i = 0; i < elements; ++i) {
final double centroid = rando... |
public void encodeDecode() {
final int iters = atLeast(100000);
// random hashes
for (int i = 0; i < iters; ++i) {
final int p1 = randomIntBetween(4, 24);
final long hash = randomLong();
testEncodeDecode(p1, hash);
}
// special cases
... | public void encodeDecode() {
final int iters = scaledRandomIntBetween(100000, 500000);
// random hashes
for (int i = 0; i < iters; ++i) {
final int p1 = randomIntBetween(4, 24);
final long hash = randomLong();
testEncodeDecode(p1, hash);
}
... |
protected int numberOfRuns() {
if (numRuns == -1) {
numRuns = atLeast(3);
}
return numRuns;
}
| protected int numberOfRuns() {
if (numRuns == -1) {
numRuns = scaledRandomIntBetween(3, 10);
}
return numRuns;
}
|
public void testMultiMatchQueryHighlight() throws IOException {
String[] highlighterTypes = new String[] {"fvh", "plain", "postings"};
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type1")
.startObject("_all").field("store", "yes").field("index_op... | public void testMultiMatchQueryHighlight() throws IOException {
String[] highlighterTypes = new String[] {"fvh", "plain", "postings"};
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type1")
.startObject("_all").field("store", "yes").field("index_op... |
public void testMatchedWithShould() throws Exception {
createIndex("test");
ensureGreen();
client().prepareIndex("test", "type1", "1").setSource("content", "Lorem ipsum dolor sit amet").get();
client().prepareIndex("test", "type1", "2").setSource("content", "consectetur adipisicing ... | public void testMatchedWithShould() throws Exception {
createIndex("test");
ensureGreen();
client().prepareIndex("test", "type1", "1").setSource("content", "Lorem ipsum dolor sit amet").get();
client().prepareIndex("test", "type1", "2").setSource("content", "consectetur adipisicing ... |
public void testRandomized() throws Exception {
testScroll(atLeast(100), between(1, 300), getRandom().nextBoolean(), getRandom().nextBoolean());
}
| public void testRandomized() throws Exception {
testScroll(scaledRandomIntBetween(100, 200), between(1, 300), getRandom().nextBoolean(), getRandom().nextBoolean());
}
|
public void testNarrowingQuery() throws Exception {
createIndex("test");
ensureGreen();
Set<String> ids = Sets.newHashSet();
Set<String> expectedIds = Sets.newHashSet();
IndexRequestBuilder[] builders = new IndexRequestBuilder[atLeast(50)];
for (int i = 0; i < builde... | public void testNarrowingQuery() throws Exception {
createIndex("test");
ensureGreen();
Set<String> ids = Sets.newHashSet();
Set<String> expectedIds = Sets.newHashSet();
IndexRequestBuilder[] builders = new IndexRequestBuilder[scaledRandomIntBetween(50, 100)];
for (i... |
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 CompressedStreamOutput streamOutput(StreamOutput out) throws IOException {
return new LZFCompressedStreamOutput(out, encoder);
}
| public CompressedStreamOutput streamOutput(StreamOutput out) throws IOException {
return new LZFCompressedStreamOutput(out);
}
|
public static void main (String[] args) throws Exception {
new NativeCodeGenerator().generate("src/", "bin/", "jni/");
BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop");
BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
win32home.buildFileName = "build-windows32h... | public static void main (String[] args) throws Exception {
new NativeCodeGenerator().generate("src/", "bin/", "jni/");
BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop");
BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
win32home.buildFileName = "build-windows32h... |
public Object compile(String script) {
return MVEL.compileExpression(script, new ParserContext(parserConfiguration));
}
| public Object compile(String script) {
return MVEL.compileExpression(script.trim(), new ParserContext(parserConfiguration));
}
|
protected void doExecute(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener) {
if (disableDeleteAllIndices && (request.indices() == null || request.indices().length == 0)) {
throw new ElasticSearchIllegalArgumentException("deleting all indices is disabled");
}
... | protected void doExecute(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener) {
if (disableDeleteAllIndices && (request.indices() == null || request.indices().length == 0 || (request.indices().length == 1 && request.indices()[0].equals("_all")))) {
throw new ElasticSearchIll... |
private ScoreFunction parseDateVariable(String fieldName, XContentParser parser, QueryParseContext parseContext,
DateFieldMapper dateFieldMapper) throws IOException {
XContentParser.Token token;
String parameterName = null;
String scaleString = null;
String originString =... | private ScoreFunction parseDateVariable(String fieldName, XContentParser parser, QueryParseContext parseContext,
DateFieldMapper dateFieldMapper) throws IOException {
XContentParser.Token token;
String parameterName = null;
String scaleString = null;
String originString =... |
public void create () {
ByteBuffer bytebuffer = BufferUtils.newDisposableByteBuffer(1000 * 1000);
BufferUtils.freeMemory(bytebuffer);
ByteBuffer bb = BufferUtils.newByteBuffer(8);
CharBuffer cb = BufferUtils.newCharBuffer(8);
ShortBuffer sb = BufferUtils.newShortBuffer(8);
IntBuffer ib = BufferUtils.newIn... | 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... |
protected void checkMeta(String filename, Settings settings, Long expectedDate, Long expectedLength) throws IOException {
DocumentMapperParser mapperParser = new DocumentMapperParser(new Index("test"), settings, new AnalysisService(new Index("test")), null, null, null, null);
mapperParser.putTypePar... | protected void checkMeta(String filename, Settings settings, Long expectedDate, Long expectedLength) throws IOException {
DocumentMapperParser mapperParser = new DocumentMapperParser(new Index("test"), settings, new AnalysisService(new Index("test")), null, null, null, null);
mapperParser.putTypePar... |
@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()) {
engine.refresh(new Engine.Refresh(false));
}
} catch (EngineClosedException e) {
// we are being c... |
@Override public void run() {
try {
indexShard.flush(new Engine.Flush());
} catch (EngineClosedException e) {
// we are being closed, ignore
} catch (FlushNotAllowedEngineException e) {
... | @Override public void run() {
try {
indexShard.flush(new Engine.Flush());
} catch (EngineClosedException e) {
// we are being closed, ignore
} catch (FlushNotAllowedEngineException e) {
... |
public String partId;
} | public String meshPartId;
} |
public static String VERSION = "0.9.2";
} | public static String VERSION = "0.9.3";
} |
public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(getName());
builder.field(type);
internalXContent(builder, params);
if (aggregations != null || aggregationsBinary != null) {
builder.startObject("ag... | public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(name);
builder.field(type);
internalXContent(builder, params);
if (aggregations != null || aggregationsBinary != null) {
builder.startObject("aggrega... |
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (childType == null) {
throw new SearchSourceBuilderException("child_type must be set on children aggregation [" + getName() + "]");
}
builder.... | protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (childType == null) {
throw new SearchSourceBuilderException("child_type must be set on children aggregation [" + name + "]");
}
builder.field... |
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
if (filter == null) {
throw new SearchSourceBuilderException("filter must be set on filter aggregation [" + getName() + "]");
}
filter.toXContent(builder, params);
retu... | protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
if (filter == null) {
throw new SearchSourceBuilderException("filter must be set on filter aggregation [" + name + "]");
}
filter.toXContent(builder, params);
return bu... |
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (keyedFilters == null && nonKeyedFilters == null) {
throw new SearchSourceBuilderException("At least one filter must be set on filter aggregation [" + getName... | protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (keyedFilters == null && nonKeyedFilters == null) {
throw new SearchSourceBuilderException("At least one filter must be set on filter aggregation [" + name + ... |
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException {
if (interval == null) {
throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + getName() + "]");
}
if (interval instanceof Number) ... | protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException {
if (interval == null) {
throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + name + "]");
}
if (interval instanceof Number) {
... |
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException {
if (interval == null) {
throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + getName() + "]");
}
builder.field("interval", interv... | protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException {
if (interval == null) {
throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + name + "]");
}
builder.field("interval", interval);
... |
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (path == null) {
throw new SearchSourceBuilderException("nested path must be set on nested aggregation [" + getName() + "]");
}
builder.field(... | protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
if (path == null) {
throw new SearchSourceBuilderException("nested path must be set on nested aggregation [" + name + "]");
}
builder.field("path... |
public IPv4RangeBuilder addMaskRange(String key, String mask) {
long[] fromTo = cidrMaskToMinMax(mask);
if (fromTo == null) {
throw new SearchSourceBuilderException("invalid CIDR mask [" + mask + "] in ip_range aggregation [" + getName() + "]");
}
ranges.add(new Range(key... | public IPv4RangeBuilder addMaskRange(String key, String mask) {
long[] fromTo = cidrMaskToMinMax(mask);
if (fromTo == null) {
throw new SearchSourceBuilderException("invalid CIDR mask [" + mask + "] in ip_range aggregation [" + name + "]");
}
ranges.add(new Range(key, fro... |
public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(getName()).startObject(type);
internalXContent(builder, params);
return builder.endObject().endObject();
}
| public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(name).startObject(type);
internalXContent(builder, params);
return builder.endObject().endObject();
}
|
public PercentilesBuilder percentiles(double... percentiles) {
for (int i = 0; i < percentiles.length; i++) {
if (percentiles[i] < 0 || percentiles[i] > 100) {
throw new IllegalArgumentException("the percents in the percentiles aggregation [" +
getName() +... | public PercentilesBuilder percentiles(double... percentiles) {
for (int i = 0; i < percentiles.length; i++) {
if (percentiles[i] < 0 || percentiles[i] > 100) {
throw new IllegalArgumentException("the percents in the percentiles aggregation [" +
name + "] m... |
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(getName()).field(type);
sourceBuilder().toXContent(builder, params);
return builder.endObject();
}
| public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(name).field(type);
sourceBuilder().toXContent(builder, params);
return builder.endObject();
}
|
public void glPolygonMode(int face, int mode) {
throw new UnsupportedOperationException( "not available in OpenGL ES" );
}
| public void glPolygonMode(int face, int mode) {
// throw new UnsupportedOperationException( "not available in OpenGL ES" );
}
|
public void render(Application app)
{
frameBuffer.begin();
app.getGraphics().getGL20().glViewport( 0, 0, app.getGraphics().getWidth(), app.getGraphics().getHeight() );
app.getGraphics().getGL20().glClearColor( 0f, 0f, 0f, 1 );
app.getGraphics().getGL20().glClear( GL20.GL_COLOR_BUFFER_BIT );
meshShade... | public void render(Application app)
{
frameBuffer.begin();
app.getGraphics().getGL20().glViewport( 0, 0, app.getGraphics().getWidth(), app.getGraphics().getHeight() );
app.getGraphics().getGL20().glClearColor( 0f, 1f, 0f, 1 );
app.getGraphics().getGL20().glClear( GL20.GL_COLOR_BUFFER_BIT );
meshShade... |
public void log () {
if (TimeUtils.nanoTime() - startTime > 1000000000 /* 1,000,000,000ns == one second*/ {
Gdx.app.log("FPSLogger", "fps: " + Gdx.graphics.getFramesPerSecond());
startTime = TimeUtils.nanoTime();
}
}
| public void log () {
if (TimeUtils.nanoTime() - startTime > 1000000000) /* 1,000,000,000ns == one second*/ {
Gdx.app.log("FPSLogger", "fps: " + Gdx.graphics.getFramesPerSecond());
startTime = TimeUtils.nanoTime();
}
}
|
private static void appendText(final SpannableStringBuilder builder, String text) {
if (text == null)
return;
text = text.trim();
if (text.length() == 0)
return;
builder.append('\n').append('\n');
if (text.length() < MAX_TEXT)
builder.appe... | private static void appendText(final SpannableStringBuilder builder, String text) {
if (text == null)
return;
text = text.trim();
if (text.length() == 0)
return;
builder.append('\n').append('\n');
if (text.length() < MAX_TEXT)
builder.appe... |
public float[] getWorldVertices () {
if (!dirty) return localVertices;
dirty = false;
final float[] localVertices = this.localVertices;
if (worldVertices == null || worldVertices.length < localVertices.length) worldVertices = new float[localVertices.length];
final float[] worldVertices = this.worldVertices... | public float[] getWorldVertices () {
if (!dirty) return worldVertices;
dirty = false;
final float[] localVertices = this.localVertices;
if (worldVertices == null || worldVertices.length < localVertices.length) worldVertices = new float[localVertices.length];
final float[] worldVertices = this.worldVertices... |
@Override protected ClusterHealthResponse masterOperation(ClusterHealthRequest request, ClusterState state) throws ElasticSearchException {
int waitFor = 4;
if (request.waitForStatus() == null) {
waitFor--;
}
if (request.waitForRelocatingShards() == -1) {
wait... | @Override protected ClusterHealthResponse masterOperation(ClusterHealthRequest request, ClusterState state) throws ElasticSearchException {
int waitFor = 4;
if (request.waitForStatus() == null) {
waitFor--;
}
if (request.waitForRelocatingShards() == -1) {
wait... |
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,
... |
private ImmutableSettings.Builder createDefaultSettings() {
int randomShardNumber = between(1, 5);
int randomReplicaNumber = between(0, numberOfNodes() - 1);
return settingsBuilder().put(SETTING_NUMBER_OF_SHARDS, randomShardNumber).put(SETTING_NUMBER_OF_REPLICAS, randomReplicaNumber);
}
| private ImmutableSettings.Builder createDefaultSettings() {
int randomShardNumber = between(1, 5);
int randomReplicaNumber = between(0, cluster().numNodes() - 1);
return settingsBuilder().put(SETTING_NUMBER_OF_SHARDS, randomShardNumber).put(SETTING_NUMBER_OF_REPLICAS, randomReplicaNumber);
... |
private void loadExternalUrl(final Context context, final String url) {
int issueNumber = issueMatcher.getNumber(url);
if (issueNumber > 0) {
Issue issue = new Issue();
issue.setNumber(issueNumber);
issue.setHtmlUrl(url);
context.startActivity(ViewIssu... | private void loadExternalUrl(final Context context, final String url) {
int issueNumber = issueMatcher.getNumber(url);
if (issueNumber > 0) {
Issue issue = new Issue();
issue.setNumber(issueNumber);
issue.setHtmlUrl(url);
context.startActivity(ViewIssu... |
public void testDeprectedPositionIncrementSettingWithVerions() throws IOException {
Settings settings = ImmutableSettings.settingsBuilder().put("index.analysis.filter.my_stop.type", "stop")
.put("index.analysis.filter.my_stop.enable_position_increments", false).put("index.analysis.filter.my_... | public void testDeprecatedPositionIncrementSettingWithVerions() throws IOException {
Settings settings = ImmutableSettings.settingsBuilder().put("index.analysis.filter.my_stop.type", "stop")
.put("index.analysis.filter.my_stop.enable_position_increments", false).put("index.analysis.filter.my... |
public ThreadPool(Settings settings, @Nullable NodeSettingsService nodeSettingsService) {
super(settings);
Map<String, Settings> groupSettings = settings.getGroups(THREADPOOL_GROUP);
int availableProcessors = Runtime.getRuntime().availableProcessors();
int halfProcMaxAt5 = Math.min... | public ThreadPool(Settings settings, @Nullable NodeSettingsService nodeSettingsService) {
super(settings);
Map<String, Settings> groupSettings = settings.getGroups(THREADPOOL_GROUP);
int availableProcessors = Runtime.getRuntime().availableProcessors();
int halfProcMaxAt5 = Math.min... |
public void execute(SearchContext context) {
ResetFieldSelector fieldSelector;
List<String> extractFieldNames = null;
if (context.hasScriptFields() && !context.hasFieldNames()) {
// we ask for script fields, and no field names, don't load the source
fieldSelector = Ui... | public void execute(SearchContext context) {
ResetFieldSelector fieldSelector;
List<String> extractFieldNames = null;
if (context.hasScriptFields() && !context.hasFieldNames()) {
// we ask for script fields, and no field names, don't load the source
fieldSelector = Ui... |
public InternalTerms reduce(ReduceContext reduceContext) {
List<InternalAggregation> aggregations = reduceContext.aggregations();
if (aggregations.size() == 1) {
InternalTerms terms = (InternalTerms) aggregations.get(0);
terms.trimExcessEntries();
return terms;
... | public InternalTerms reduce(ReduceContext reduceContext) {
List<InternalAggregation> aggregations = reduceContext.aggregations();
if (aggregations.size() == 1) {
InternalTerms terms = (InternalTerms) aggregations.get(0);
terms.trimExcessEntries();
return terms;
... |
public InternalTerms reduce(ReduceContext reduceContext) {
List<InternalAggregation> aggregations = reduceContext.aggregations();
if (aggregations.size() == 1) {
InternalTerms terms = (InternalTerms) aggregations.get(0);
terms.trimExcessEntries();
return terms;
... | public InternalTerms reduce(ReduceContext reduceContext) {
List<InternalAggregation> aggregations = reduceContext.aggregations();
if (aggregations.size() == 1) {
InternalTerms terms = (InternalTerms) aggregations.get(0);
terms.trimExcessEntries();
return terms;
... |
public void multiValuedField_WithValueScript_WithInheritedSubAggregator() throws Exception {
SearchResponse response = client().prepareSearch("idx")
.addAggregation(histogram("histo").field("values").script("_value + 1").interval(interval)
.subAggregation(terms("values").... | public void multiValuedField_WithValueScript_WithInheritedSubAggregator() throws Exception {
SearchResponse response = client().prepareSearch("idx")
.addAggregation(histogram("histo").field("values").script("_value + 1").interval(interval)
.subAggregation(terms("values").... |
private static String buildMessage(ShardId shardId, String message) {
if (shardId == null) {
return message;
}
return "[" + shardId.index() + "][" + shardId.id() + "]" + message;
}
| private static String buildMessage(ShardId shardId, String message) {
if (shardId == null) {
return message;
}
return "[" + shardId.index().name() + "][" + shardId.id() + "] " + message;
}
|
@Override public String toString() {
return "[" + index + "][" + shardId + "]";
}
| @Override public String toString() {
return "replication_ping {[" + index + "][" + shardId + "]}";
}
|
@Override public String toString() {
return "[" + index + "][" + shardId + "]";
}
| @Override public String toString() {
return "gateway_snapshot {[" + index + "][" + shardId + "]}";
}
|
@Override public String toString() {
return "[" + index + "][" + type + "][" + id + "]";
}
| @Override public String toString() {
return "delete {[" + index + "][" + type + "][" + id + "]}";
}
|
double score(int docId, float subQueryScore);
/*
* Licensed to ElasticSearch and Shay Banon 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 L... | double score(int docId, float subQueryScore);
/*
* Licensed to ElasticSearch and Shay Banon 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 L... |
public static void main (String[] argv) {
new JoglApplication(new com.badlogic.gdx.tests.AnimationTest(), "Debug Test", 480, 320, false);
}
| public static void main (String[] argv) {
new JoglApplication(new com.badlogic.gdx.tests.CullTest(), "Debug Test", 480, 320, false);
}
|
private static FileHandle getRelativeFileHandle(FileHandle path, String relativePath){
if(relativePath.trim().isEmpty()) return path;
FileHandle child = path;
StringTokenizer tokenizer = new StringTokenizer(relativePath, "\\/");
while (tokenizer.hasMoreElements()) {
String token = tokenizer.nextToken(... | private static FileHandle getRelativeFileHandle(FileHandle path, String relativePath){
if(relativePath.trim().length() == 0) return path;
FileHandle child = path;
StringTokenizer tokenizer = new StringTokenizer(relativePath, "\\/");
while (tokenizer.hasMoreElements()) {
String token = tokenizer.nextTo... |
private void generateCppFile(String javaFileContent, FileDescriptor hFile,
FileDescriptor cppFile) {
String headerFileContent = hFile.readString();
ArrayList<JavaMethod> javaMethods = parseJavaMethods(javaFileContent);
ArrayList<CMethod> cMethods = parseCMethods(headerFileContent);
StringBuffer buffer = ... | private void generateCppFile(String javaFileContent, FileDescriptor hFile,
FileDescriptor cppFile) {
String headerFileContent = hFile.readString();
ArrayList<JavaMethod> javaMethods = parseJavaMethods(javaFileContent);
ArrayList<CMethod> cMethods = parseCMethods(headerFileContent);
StringBuffer buffer = ... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
int maxNumTerms = 25;
float boost = 1.0f;
String likeText = null;
float minSimilarity = 0.5f;
int prefixLength = 0;... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
int maxNumTerms = 25;
float boost = 1.0f;
String likeText = null;
float minSimilarity = 0.5f;
int prefixLength = 0;... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... |
@Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.curren... | @Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.curren... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.currentToken();
if (token == XContentParser.Token.START_OBJECT) {
token = parser.nextToken(... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.currentToken();
if (token == XContentParser.Token.START_OBJECT) {
token = parser.nextToken(... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... |
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... | @Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
XContentParser.Token token = parser.nextToken();
assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.current... |
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(layout.repo_issue_list);
setTitle(string.Issues_title);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
((TextView) findViewById(id.tv_repo_name)).setText(repo.getN... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(layout.repo_issue_list);
setTitle(string.issues_title);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
((TextView) findViewById(id.tv_repo_name)).setText(repo.getN... |
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 TermsFilterValue call() throws Exception {
GetResponse getResponse = client.get(new GetRequest(lookup.getIndex(), lookup.getType(), lookup.getId()).preference("_local")).actionGet();
if (!getResponse.isExists()) {
return NO_TERMS;
... | public TermsFilterValue call() throws Exception {
GetResponse getResponse = client.get(new GetRequest(lookup.getIndex(), lookup.getType(), lookup.getId()).preference("_local")).actionGet();
if (!getResponse.isExists()) {
return NO_TERMS;
... |
@Test public void analyzerWithFieldOrTypeTests() throws Exception {
try {
client.admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception e) {
// ignore
}
client.admin().indices().prepareCreate("test").execute().actionGet();
c... | @Test public void analyzerWithFieldOrTypeTests() throws Exception {
try {
client.admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception e) {
// ignore
}
client.admin().indices().prepareCreate("test").execute().actionGet();
c... |
private static native long getBufferAddress (Buffer buffer); /*
return (jlong) buffer;
*/
| private static native long getBufferAddress (Buffer buffer); /*
return (long) buffer;
*/
|
private void createShader( )
{
String vertexShader = "attribute vec4 a_position; \n" +
"attribute vec4 a_color; \n" +
"attribute vec2 a_texCoords; \n" +
"uniform mat4 u_projectionViewMatrix; \n" +
"varying vec4 v_color; \n" +
"varying vec2 v_texCoords; \n" +
" ... | private void createShader( )
{
String vertexShader = "attribute vec4 a_position; \n" +
"attribute vec4 a_color; \n" +
"attribute vec2 a_texCoords; \n" +
"uniform mat4 u_projectionViewMatrix; \n" +
"varying vec4 v_color; \n" +
"varying vec2 v_texCoords; \n" +
" ... |
public void surfaceCreated(Application app)
{
String vertexShader = "attribute vec4 a_position; \n" +
"attribute vec4 a_color;\n" +
"attribute vec2 a_texCoords;\n" +
"uniform mat4 u_worldView;\n" +
"varying vec4 v_color;" +
"varying vec2 v_t... | public void surfaceCreated(Application app)
{
String vertexShader = "attribute vec4 a_position; \n" +
"attribute vec4 a_color;\n" +
"attribute vec2 a_texCoords;\n" +
"uniform mat4 u_worldView;\n" +
"varying vec4 v_color;" +
"varying vec2 v_t... |
private int getInternalFormat( Pixmap.Format format )
{
if( format == Pixmap.Format.RGBA4444 || format == Pixmap.Format.RGBA8888 )
return BufferedImage.TYPE_4BYTE_ABGR;
else
return BufferedImage.TYPE_BYTE_GRAY;
}
| private int getInternalFormat( Pixmap.Format format )
{
if( format == Pixmap.Format.RGBA4444 || format == Pixmap.Format.RGBA8888 || format == Pixmap.Format.RGB565 )
return BufferedImage.TYPE_4BYTE_ABGR;
else
return BufferedImage.TYPE_BYTE_GRAY;
}
|
protected Font( Graphics graphics, boolean managed )
{
this.texture = graphics.newTexture( 512, 512, Pixmap.Format.RGBA4444, TextureFilter.Nearest, TextureFilter.Nearest, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge, managed );
this.isManaged = managed;
}
| protected Font( Graphics graphics, boolean managed )
{
this.texture = graphics.newTexture( 512, 512, Pixmap.Format.RGBA8888, TextureFilter.Nearest, TextureFilter.Nearest, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge, managed );
this.isManaged = managed;
}
|
public FacetExecutor parse(String facetName, XContentParser parser, SearchContext context) throws IOException {
String field = null;
int size = 10;
int shardSize = -1;
String[] fieldsNames = null;
ImmutableSet<BytesRef> excluded = ImmutableSet.of();
String regex = nu... | public FacetExecutor parse(String facetName, XContentParser parser, SearchContext context) throws IOException {
String field = null;
int size = 10;
int shardSize = -1;
String[] fieldsNames = null;
ImmutableSet<BytesRef> excluded = ImmutableSet.of();
String regex = nu... |
public void testThatParentPerDocumentIsSupported() throws Exception {
createIndex("test");
ensureYellow();
client().admin().indices().preparePutMapping("test").setType("test").setSource(jsonBuilder()
.startObject()
.startObject("test")
.startOb... | public void testThatParentPerDocumentIsSupported() throws Exception {
createIndex("test");
ensureYellow();
client().admin().indices().preparePutMapping("test").setType("test").setSource(jsonBuilder()
.startObject()
.startObject("test")
.startOb... |
public static void main (String[] args) throws Exception {
String[] headers = {"freetype-2.4.10/include"};
String[] sources = {
// BASE
"freetype-2.4.10/src/base/ftsystem.c", "freetype-2.4.10/src/base/ftinit.c", "freetype-2.4.10/src/base/ftdebug.c",
"freetype-2.4.10/src/base/ftbase.c", "freetype-2.4.10/sr... | public static void main (String[] args) throws Exception {
String[] headers = {"freetype-2.4.10/include"};
String[] sources = {
// BASE
"freetype-2.4.10/src/base/ftsystem.c", "freetype-2.4.10/src/base/ftinit.c", "freetype-2.4.10/src/base/ftdebug.c",
"freetype-2.4.10/src/base/ftbase.c", "freetype-2.4.10/sr... |
public static void main (String[] args) throws Exception {
new NativeCodeGenerator().generate();
String[] excludes = {};
String[] headers = {"libjpeg/", "giflib/", "../../../gdx/jni/gdx2d/"};
BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
win32home.compilerPrefix = "";
win... | public static void main (String[] args) throws Exception {
new NativeCodeGenerator().generate();
String[] excludes = {};
String[] headers = {"libjpeg/", "giflib/", "../../../gdx/jni/gdx2d/"};
BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
win32home.compilerPrefix = "";
win... |
public void onOrganizationSelected(final User organization) {
User previousOrg = org.get();
int previousOrgId = previousOrg != null ? previousOrg.getId() : -1;
org.set(organization);
RecentRepositories recent = recentRepos.get();
if (recent != null)
recent.saveAs... | public void onOrganizationSelected(final User organization) {
User previousOrg = org.get();
int previousOrgId = previousOrg != null ? previousOrg.getId() : -1;
org.set(organization);
RecentRepositories recent = recentRepos.get();
if (recent != null)
recent.saveAs... |
public void onOrganizationSelected(User organization) {
int previousOrgId = org != null ? org.getId() : -1;
org = organization;
// Only hard refresh if view already created and org is changing
if (getView() != null && previousOrgId != org.getId())
refreshWithProgress();
... | public void onOrganizationSelected(User organization) {
int previousOrgId = org != null ? org.getId() : -1;
org = organization;
// Only hard refresh if view already created and org is changing
if (previousOrgId != org.getId())
refreshWithProgress();
}
|
private final Injector injector;
| public BenchmarkRequestBuilder prepareBench(String... indices) {
return internalClient.prepareBench(indices);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.