id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
26,001 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class StopAnalyzerProvider extends AbstractAnalyzerProvider<StopAnalyzer> {
</BUG>
pr... | public class StopAnalyzerProvider extends AbstractIndexAnalyzerProvider<StopAnalyzer> {
|
26,002 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class StandardAnalyzerProvider extends AbstractAnalyzerProvider<StandardAnalyzer> {
<... | public class StandardAnalyzerProvider extends AbstractIndexAnalyzerProvider<StandardAnalyzer> {
|
26,003 | import org.elasticsearch.index.Index;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.settings.Settings;
<BUG>public class KeywordAnalyzerProvider extends AbstractAnalyzerProvi... | public class KeywordAnalyzerProvider extends AbstractIndexAnalyzerProvider<KeywordAnalyzer> {
|
26,004 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class CzechAnalyzerProvider extends AbstractAnalyzerProvider<CzechAnalyzer> {
</BUG>
... | public class CzechAnalyzerProvider extends AbstractIndexAnalyzerProvider<CzechAnalyzer> {
|
26,005 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class ArabicAnalyzerProvider extends AbstractAnalyzerProvider<ArabicAnalyzer> {
</BUG... | public class ArabicAnalyzerProvider extends AbstractIndexAnalyzerProvider<ArabicAnalyzer> {
|
26,006 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class CjkAnalyzerProvider extends AbstractAnalyzerProvider<CJKAnalyzer> {
</BUG>
priv... | public class CjkAnalyzerProvider extends AbstractIndexAnalyzerProvider<CJKAnalyzer> {
|
26,007 | Class<? extends TokenFilterFactory> type = tokenFilterSettings.getAsClass("type", null, "org.elasticsearch.index.analysis.", "TokenFilterFactory");
if (type == null) {
throw new IllegalArgumentException("Token Filter [" + tokenFilterName + "] must have a type associated with it");
}
tokenFilterBinder.addBinding(tokenFi... | AnalysisBinderProcessor.TokenFiltersBindings tokenFiltersBindings = new AnalysisBinderProcessor.TokenFiltersBindings(tokenFilterBinder, tokenFiltersSettings);
processor.processTokenFilters(tokenFiltersBindings);
|
26,008 | Class<? extends TokenizerFactory> type = tokenizerSettings.getAsClass("type", null, "org.elasticsearch.index.analysis.", "TokenizerFactory");
if (type == null) {
throw new IllegalArgumentException("Tokenizer [" + tokenizerName + "] must have a type associated with it");
}
tokenizerBinder.addBinding(tokenizerName).toPro... | AnalysisBinderProcessor.TokenizersBindings tokenizersBindings = new AnalysisBinderProcessor.TokenizersBindings(tokenizerBinder, tokenizersSettings);
processor.processTokenizers(tokenizersBindings);
|
26,009 | } else {
throw new IllegalArgumentException("Analyzer [" + analyzerName + "] must have a type associated with it or a tokenizer");
}
}
analyzerBinder.addBinding(analyzerName).toProvider(FactoryProvider.newFactory(AnalyzerProviderFactory.class, type)).in(Scopes.SINGLETON);
<BUG>}
for (AnalysisBinderProcessor processor :... | AnalysisBinderProcessor.AnalyzersBindings analyzersBindings = new AnalysisBinderProcessor.AnalyzersBindings(analyzerBinder, analyzersSettings, indicesAnalysisService);
processor.processAnalyzers(analyzersBindings);
|
26,010 | import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
<BUG>public class ThaiAnalyzerProvider extends AbstractAnalyzerP... | public class ThaiAnalyzerProvider extends AbstractIndexAnalyzerProvider<ThaiAnalyzer> {
|
26,011 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class PersianAnalyzerProvider extends AbstractAnalyzerProvider<PersianAnalyzer> {
</B... | public class PersianAnalyzerProvider extends AbstractIndexAnalyzerProvider<PersianAnalyzer> {
|
26,012 | import org.elasticsearch.index.Index;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.settings.Settings;
<BUG>public class ChineseAnalyzerProvider extends AbstractAnalyzerProvi... | public class ChineseAnalyzerProvider extends AbstractIndexAnalyzerProvider<ChineseAnalyzer> {
|
26,013 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class BrazilianAnalyzerProvider extends AbstractAnalyzerProvider<BrazilianAnalyzer> {... | public class BrazilianAnalyzerProvider extends AbstractIndexAnalyzerProvider<BrazilianAnalyzer> {
|
26,014 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class GermanAnalyzerProvider extends AbstractAnalyzerProvider<GermanAnalyzer> {
</BUG... | public class GermanAnalyzerProvider extends AbstractIndexAnalyzerProvider<GermanAnalyzer> {
|
26,015 | import org.elasticsearch.util.settings.ImmutableSettings;
import org.elasticsearch.util.settings.Settings;
import java.util.List;
import java.util.Map;
import static org.elasticsearch.util.collect.Lists.*;
<BUG>public class CustomAnalyzerProvider extends AbstractAnalyzerProvider<CustomAnalyzer> {
</BUG>
private final T... | public class CustomAnalyzerProvider extends AbstractIndexAnalyzerProvider<CustomAnalyzer> {
|
26,016 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class DutchAnalyzerProvider extends AbstractAnalyzerProvider<DutchAnalyzer> {
</BUG>
... | public class DutchAnalyzerProvider extends AbstractIndexAnalyzerProvider<DutchAnalyzer> {
|
26,017 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class FrenchAnalyzerProvider extends AbstractAnalyzerProvider<FrenchAnalyzer> {
</BUG... | public class FrenchAnalyzerProvider extends AbstractIndexAnalyzerProvider<FrenchAnalyzer> {
|
26,018 | import org.elasticsearch.index.Index;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.settings.Settings;
<BUG>public class SimpleAnalyzerProvider extends AbstractAnalyzerProvid... | public class SimpleAnalyzerProvider extends AbstractIndexAnalyzerProvider<SimpleAnalyzer> {
|
26,019 | import org.elasticsearch.util.collect.Iterators;
import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
<BUG>public class RussianAnalyzerProvider extends AbstractAnalyzerProv... | public class RussianAnalyzerProvider extends AbstractIndexAnalyzerProvider<RussianAnalyzer> {
|
26,020 | import org.elasticsearch.util.inject.Inject;
import org.elasticsearch.util.inject.assistedinject.Assisted;
import org.elasticsearch.util.lucene.Lucene;
import org.elasticsearch.util.settings.Settings;
import java.util.Set;
<BUG>public class GreekAnalyzerProvider extends AbstractAnalyzerProvider<GreekAnalyzer> {
</BUG>
... | public class GreekAnalyzerProvider extends AbstractIndexAnalyzerProvider<GreekAnalyzer> {
|
26,021 | package org.jboss.as.test.integration.ws.serviceref;
<BUG>import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Properties;
import org.junit.Assert;</BUG>
import org.jboss.arquillian.container.test.api.Deployment;
| import java.io.File;
import java.io.FilePermission;
import java.net.SocketPermission;
import java.util.PropertyPermission;
import org.junit.Assert;
|
26,022 | import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Test;
<BUG>import org.junit.runner.RunWith;
@RunWith(Arquillian.class)</BUG>
@RunAsClient
public ... | import static org.jboss.as.test.shared.integration.ejb.security.PermissionUtils.createPermissionsXmlAsset;
@RunWith(Arquillian.class)
|
26,023 | .addClasses(EndpointInterface.class, EndpointService.class, ServletClient.class)
.addAsWebInfResource(ServiceRefEarTestCase.class.getPackage(), "web.xml", "web.xml")
.addAsWebInfResource(ServiceRefEarTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
String wsdl = FileUtils.readFile(ServiceRefEarTestCase.c... | final String node0 = NetworkUtils.formatPossibleIpv6Address((String)properties.get("node0"));
properties.put("node0", node0);
}
|
26,024 | package org.jboss.as.test.integration.ws.serviceref;
<BUG>import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Properties;
import org.jboss.arquillian.container.test.api.Deployment;</BUG>
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
| import java.io.File;
import java.io.FilePermission;
import java.net.SocketPermission;
import java.util.PropertyPermission;
import org.jboss.arquillian.container.test.api.Deployment;
|
26,025 | import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Assert;
import org.junit.Test;
<BUG>import org.junit.runner.RunWith;
@RunWith(Arquillian.class)</BUG>
@RunAsClient
public class ServiceRefSevletTestCase ... | import static org.jboss.as.test.shared.integration.ejb.security.PermissionUtils.createPermissionsXmlAsset;
@RunWith(Arquillian.class)
|
26,026 | import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Before;
<BUG>import org.junit.runner.RunWith;
@RunWith(Arquillian.class)</BUG>
@RunAsClient
public class EJBEnd... | import static org.jboss.as.test.shared.integration.ejb.security.PermissionUtils.createPermissionsXmlAsset;
@RunWith(Arquillian.class)
|
26,027 | @ArquillianResource
URL baseUrl;
@Deployment(testable = false)
public static Archive<?> deployment() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "jaxws-basic-ejb.jar")
<BUG>.addClasses(EndpointIface.class, EJBEndpoint.class, HelloObject.class);
return jar;</BUG>
}
@Before
public void endpointLookup() throw... | jar.addAsManifestResource(createPermissionsXmlAsset(new RuntimePermission("getClassLoader")), "permissions.xml");
return jar;
|
26,028 | <BUG>package org.jboss.as.test.integration.ws.serviceref;
import java.util.Hashtable;
import java.util.Properties;
import javax.naming.Context;</BUG>
import javax.naming.InitialContext;
| import java.io.File;
import java.io.FilePermission;
import java.net.SocketPermission;
import java.util.PropertyPermission;
import javax.naming.Context;
|
26,029 | import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
<BUG>import org.junit.runner.RunWith;
@RunWith(Arquillian.class)</BUG>
@RunAsClient
public class ServiceRefTestCase {
private static Stateles... | import static org.jboss.as.test.shared.integration.ejb.security.PermissionUtils.createPermissionsXmlAsset;
@RunWith(Arquillian.class)
|
26,030 | }
@Deployment
public static JavaArchive deployment() {
String wsdl = FileUtils.readFile(ServiceRefTestCase.class, "TestService.wsdl");
final Properties properties = new Properties();
<BUG>properties.putAll(System.getProperties());
if(properties.containsKey("node0")) {
properties.put("node0", NetworkUtils.formatPossible... | final String node0 = NetworkUtils.formatPossibleIpv6Address((String)properties.get("node0"));
properties.put("node0", node0);
|
26,031 | System.out.println(change);
}
}
};
@Override
<BUG>protected Callback<VChild, Void> copyChildCallback()
</BUG>
{
return (child) ->
{
| protected Callback<VChild, Void> copyIntoCallback()
|
26,032 | package jfxtras.labs.icalendarfx.components;
import jfxtras.labs.icalendarfx.properties.component.descriptive.Comment;
<BUG>import jfxtras.labs.icalendarfx.properties.component.misc.IANAProperty;
import jfxtras.labs.icalendarfx.properties.component.misc.UnknownProperty;</BUG>
import jfxtras.labs.icalendarfx.properties... | import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;
|
26,033 | VEVENT ("VEVENT",
Arrays.asList(PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.CATEGORIES,
PropertyType.CLASSIFICATION, PropertyType.COMMENT, PropertyType.CONTACT, PropertyType.DATE_TIME_CREATED,
PropertyType.DATE_TIME_END, PropertyType.DATE_TIME_STAMP, PropertyType.DATE_TIME_START,
PropertyType.DESCRIPTI... | PropertyType.GEOGRAPHIC_POSITION, PropertyType.LAST_MODIFIED,
PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER, PropertyType.PRIORITY,
|
26,034 | VTODO ("VTODO",
Arrays.asList(PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.CATEGORIES,
PropertyType.CLASSIFICATION, PropertyType.COMMENT, PropertyType.CONTACT, PropertyType.DATE_TIME_COMPLETED,
PropertyType.DATE_TIME_CREATED, PropertyType.DATE_TIME_DUE, PropertyType.DATE_TIME_STAMP,
PropertyType.DATE_TI... | PropertyType.EXCEPTION_DATE_TIMES, PropertyType.GEOGRAPHIC_POSITION,
PropertyType.LAST_MODIFIED, PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER,
|
26,035 | throw new RuntimeException("not implemented");
}
},
DAYLIGHT_SAVING_TIME ("DAYLIGHT",
Arrays.asList(PropertyType.COMMENT, PropertyType.DATE_TIME_START,
<BUG>PropertyType.IANA_PROPERTY, PropertyType.NON_STANDARD, PropertyType.RECURRENCE_DATE_TIMES,
PropertyType.RECURRENCE_RULE, PropertyType.TIME_ZONE_NAME, PropertyType.... | PropertyType.RECURRENCE_RULE, PropertyType.TIME_ZONE_NAME, PropertyType.TIME_ZONE_OFFSET_FROM,
|
26,036 | throw new RuntimeException("not implemented");
}
},
VALARM ("VALARM",
Arrays.asList(PropertyType.ACTION, PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.DESCRIPTION,
<BUG>PropertyType.DURATION, PropertyType.IANA_PROPERTY, PropertyType.NON_STANDARD, PropertyType.REPEAT_COUNT,
PropertyType.SUMMARY, PropertyT... | DAYLIGHT_SAVING_TIME ("DAYLIGHT",
Arrays.asList(PropertyType.COMMENT, PropertyType.DATE_TIME_START,
PropertyType.NON_STANDARD, PropertyType.RECURRENCE_DATE_TIMES,
PropertyType.RECURRENCE_RULE, PropertyType.TIME_ZONE_NAME, PropertyType.TIME_ZONE_OFFSET_FROM,
PropertyType.TIME_ZONE_OFFSET_TO),
DaylightSavingTime.class)
|
26,037 | private ContentLineStrategy contentLineGenerator;
protected void setContentLineGenerator(ContentLineStrategy contentLineGenerator)
{
this.contentLineGenerator = contentLineGenerator;
}
<BUG>protected Callback<VChild, Void> copyChildCallback()
</BUG>
{
throw new RuntimeException("Can't copy children. copyChildCallback ... | protected Callback<VChild, Void> copyIntoCallback()
|
26,038 | import jfxtras.labs.icalendarfx.properties.calendar.Version;
import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;
public enum CalendarProperty
{
CALENDAR_SCALE ("CALSCALE",
<BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),
CalendarSca... | Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),
CalendarScale.class)
|
26,039 | CalendarScale calendarScale = (CalendarScale) child;
destination.setCalendarScale(calendarScale);
}
},
METHOD ("METHOD",
<BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),
Method.class)</BUG>
{
@Override
public VChild parse(VCalendar vCalendar, String contentLi... | Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),
Method.class)
|
26,040 | }
list.add(new NonStandardProperty((NonStandardProperty) child));
}
},
PRODUCT_IDENTIFIER ("PRODID",
<BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),
ProductIdentifier.class)</BUG>
{
@Override
public VChild parse(VCalendar vCalendar, String contentLine)
| public void copyChild(VChild child, VCalendar destination)
CalendarScale calendarScale = (CalendarScale) child;
destination.setCalendarScale(calendarScale);
METHOD ("METHOD",
Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),
Method.class)
|
26,041 | ProductIdentifier productIdentifier = (ProductIdentifier) child;
destination.setProductIdentifier(productIdentifier);
}
},
VERSION ("VERSION",
<BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),
Version.class)</BUG>
{
@Override
public VChild parse(VCalendar vCal... | Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),
Version.class)
|
26,042 | package jfxtras.labs.icalendarfx.components;
import jfxtras.labs.icalendarfx.properties.component.descriptive.Comment;
<BUG>import jfxtras.labs.icalendarfx.properties.component.misc.IANAProperty;
import jfxtras.labs.icalendarfx.properties.component.misc.UnknownProperty;</BUG>
import jfxtras.labs.icalendarfx.properties... | import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;
|
26,043 | ColumnFamily resolved;
if (versions.size() > 1)
{
resolved = resolveSuperset(versions);
if (logger.isDebugEnabled())
<BUG>logger.debug("versions merged");
maybeScheduleRepairs(resolved, table, key, versions, endpoints);</BUG>
}
else
{
| if (resolved != null)
maybeScheduleRepairs(resolved, table, key, versions, endpoints);
|
26,044 | return Math.log10(infoLoss) / maxIL + 1d;
}
@Override
protected ILSingleDimensionalWithBound getInformationLossInternal(Transformation transformation, HashGroupify groupify) {
double real = 0;
<BUG>double bound = 0;
HashGroupifyEntry entry = groupify.getFirstEquivalenceClass();
while (entry != null) {</BUG>
if (entry.c... | double gFactor = super.getGeneralizationFactor();
double sFactor = super.getSuppressionFactor();
double maxPayout = this.config.getPublisherBenefit();
while (entry != null) {
|
26,045 | HashGroupifyEntry entry = groupify.getFirstEquivalenceClass();
while (entry != null) {</BUG>
if (entry.count > 0) {
double adversarySuccessProbability = this.getSuccessProbability(entry);
double informationLoss = this.getEntropyBasedInformationLoss(transformation, entry);
<BUG>real += !entry.isNotOutlier ? 0d : entry.c... | double maxPayout = this.config.getPublisherBenefit();
while (entry != null) {
double realPayout = modelRisk.getExpectedPublisherPayout(informationLoss, adversarySuccessProbability);
double boundPayout = modelRisk.getExpectedPublisherPayout(informationLoss, 0d);
real += !entry.isNotOutlier ? (sFactor * entry.count * max... |
26,046 | }
@Override
<BUG>protected InformationLossWithBound<ILSingleDimensional> getInformationLossInternal(Transformation transformation, HashGroupifyEntry entry) {
double adversarySuccessProbability = this.getSuccessProbability(entry);
double informationLoss = this.getEntropyBasedInformationLoss(transformation, entry);
doubl... | entry = entry.nextOrdered;
return super.createInformationLoss(real, bound);
|
26,047 | }
return super.createInformationLoss(real, bound);
}
@Override
protected InformationLossWithBound<ILSingleDimensional> getInformationLossInternal(Transformation transformation,
<BUG>HashGroupifyEntry entry) {
double iloss = entry.count * getEntropyBasedInformationLoss(transformation, entry);
double loss = entry.isNotO... | return Math.log10(infoLoss) / maxIL + 1d;
|
26,048 | import java.util.Set;
import com.orientechnologies.common.io.OFileUtils;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.common.parser.OSystemVariableResolver;
import com.orientechnologies.common.profiler.OProfiler;
<BUG>import com.orientechnologies.common.util.OArrays;
import com.orie... | import com.orientechnologies.orient.core.OConstants;
import com.orientechnologies.orient.core.command.OCommandExecutor;
|
26,049 | private OCluster[] clusters = new OCluster[0];
private ODataLocal[] dataSegments = new ODataLocal[0];
private OStorageLocalTxExecuter txManager;
private String storagePath;
private OStorageVariableParser variableParser;
<BUG>private int defaultClusterId = -1;
private st... | private long version = 0;
private static String[] ALL_FILE_EXTENSIONS = { ".och", ".ocl", ".oda", ".odh", ".otx" };
|
26,050 | } else {
if (clusterConfig.getName().equals(OStorage.CLUSTER_DEFAULT_NAME))
defaultClusterId = pos;
clusters[pos].open();
}
<BUG>}
txManager.open();</BUG>
} catch (IOException e) {
open = false;
dataSegments = new ODataLocal[0];
| loadVersion();
txManager.open();
|
26,051 | public void close() {
final long timer = OProfiler.getInstance().startChrono();
final boolean locked = acquireExclusiveLock();
if (!open)
return;
<BUG>try {
for (OCluster cluster : clusters)</BUG>
if (cluster != null)
cluster.close();
clusters = new OCluster[0];
| saveVersion();
for (OCluster cluster : clusters)
|
26,052 | return null;
}
public void commit(final int iRequesterId, final OTransaction<?> iTx) {
final boolean locked = acquireSharedLock();
try {
<BUG>txManager.commitAllPendingRecords(iRequesterId, iTx);
} catch (IOException e) {</BUG>
rollback(iRequesterId, iTx);
} finally {
releaseSharedLock(locked);
| incrementVersion();
} catch (IOException e) {
|
26,053 | iClusterSegment.updateRecordType(iPosition, iRecordType);
iClusterSegment.updateVersion(iPosition, ++ppos.version);
final long newDataSegmentOffset = getDataSegment(ppos.dataSegment).setRecord(ppos.dataPosition, iClusterSegment.getId(),
iPosition, iContent);
if (newDataSegmentOffset != ppos.dataPosition)
<BUG>iClusterS... | incrementVersion();
return ppos.version;
|
26,054 | throw new OConcurrentModificationException(
"Can't delete the record #"
+ recId
+ " because it was modified by another user in the meanwhile of current transaction. Use pessimistic locking instead of optimistic or simply re-execute the transaction");
iClusterSegment.removePhysicalPosition(iPosition, ppos);
<BUG>getData... | incrementVersion();
return true;
|
26,055 | import static java.util.Objects.requireNonNull;
import java.io.Closeable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collections;
<BUG>import java.util.List;
import java.util.Map;</BUG>
import org.jdbi.v3.core.exception.TransactionException;
import org.jdbi.v3.core.exception.UnableToClos... | [DELETED] |
26,056 | statementBuilder,
sql,
new StatementContext(callConfig, extensionMethod.get()),
Collections.<StatementCustomizer>emptyList());
}
<BUG>public Query<Map<String, Object>> createQuery(String sql) {
ConfigRegistry queryConfig = getConfig().createCopy();
return new Query<>(queryConfig,
new Binding(),
new DefaultMapper(),</BU... | new StatementContext(batchConfig, extensionMethod.get()));
public PreparedBatch prepareBatch(String sql) {
ConfigRegistry batchConfig = getConfig().createCopy();
return new PreparedBatch(batchConfig,
|
26,057 | import org.jdbi.v3.core.array.SqlArrayType;
import org.jdbi.v3.core.array.SqlArrayTypes;
import org.jdbi.v3.core.mapper.ColumnMapper;
import org.jdbi.v3.core.mapper.ColumnMappers;
import org.jdbi.v3.core.mapper.RowMapper;
<BUG>import org.jdbi.v3.core.mapper.RowMappers;
public class ConfigRegistry {</BUG>
private final ... | import org.jdbi.v3.core.util.GenericType;
public class ConfigRegistry {
|
26,058 | package org.voltdb;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
<BUG>import java.util.HashSet;
import java.util.Map;</BUG>
import java.util.Random;
import java.util.Set;
import java.util.TreeMap;
| import java.util.List;
import java.util.Map;
|
26,059 | import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Random;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
<BUG>import org.voltcore.logging.VoltLogger;
import org.voltdb.CLIConfig;</BUG>
import org.voltdb.ClientResponseImpl;
import org.voltdb.TableHel... | import org.voltcore.utils.Pair;
import org.voltdb.CLIConfig;
|
26,060 | String servers = "localhost";
@Option(desc = "Run Time.")
int duration = 300 * 60;
@Option(desc = "Time (secs) to end run if no progress is being made.")
int noProgressTimeout = 600;
<BUG>@Option(desc = "Interval (secs) to check if progress is being made")
int checkInterval = 60;</BUG>
@Override
public void validate() ... | [DELETED] |
26,061 | return null;
}
SchemaChangeClient(SchemaChangeConfig config) {
this.config = config;
}
<BUG>private VoltTable catalogChange(VoltTable t1, boolean newTable) throws Exception {
</BUG>
CatalogBuilder builder = new CatalogBuilder();
VoltTable t2 = null;
String currentName = t1 == null ? "B" : TableHelper.getTableName(t1);
| private Pair<VoltTable,TableHelper.ViewRep> catalogChange(VoltTable t1, boolean newTable, TableHelper.ViewRep view) throws Exception {
|
26,062 | public void connectionLost(String hostname, int port, int connectionsLeft, DisconnectCause cause) {
long currentTime = System.currentTimeMillis();
if ((currentTime - startTime) < (config.duration * 1000)) {
log.warn(_F("Lost connection to %s:%d.", hostname, port));
totalConnections.decrementAndGet();
<BUG>final String ... | if (connectionsLeft == 0) {
((ClientImpl) client).resetInstanceId();
}
final String server = MiscUtils.getHostnameColonPortString(hostname, port);
new Thread(new Runnable() {
|
26,063 | private void runTestWorkload() throws Exception {
ClientConfig clientConfig = new ClientConfig("", "", new StatusListener());
client = ClientFactory.createClient(clientConfig);
connect(config.servers);
topo = getCluterTopology();
<BUG>VoltTable t = null;
while (t == null) {
t = catalogChange(null, true);
}</BUG>
startT... | TableHelper.ViewRep v = null;
Pair<VoltTable, TableHelper.ViewRep> schema = catalogChange(null, true, null);
t = schema.getFirst();
v = schema.getSecond();
}
|
26,064 | package com.projecttango.examples.java.augmentedreality;
import com.google.atap.tangoservice.Tango;
import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;
import com.google.atap.tangoservice.TangoCameraIntrinsics;
import com.google.atap.tangoservice.TangoConfig;
<BUG>import com.google.atap.tangoservice.TangoC... | import com.google.atap.tangoservice.TangoErrorException;
import com.google.atap.tangoservice.TangoEvent;
|
26,065 | super.onResume();
if (!mIsConnected) {
mTango = new Tango(AugmentedRealityActivity.this, new Runnable() {
@Override
public void run() {
<BUG>try {
connectTango();</BUG>
setupRenderer();
mIsConnected = true;
} catch (TangoOutOfDateException e) {
| TangoSupport.initialize();
connectTango();
|
26,066 | if (lastFramePose.statusCode == TangoPoseData.POSE_VALID) {
mRenderer.updateRenderCameraPose(lastFramePose, mExtrinsics);
mCameraPoseTimestamp = lastFramePose.timestamp;</BUG>
} else {
<BUG>Log.w(TAG, "Can't get device pose at time: " + mRgbTimestampGlThread);
}</BUG>
}
}
}
@Override
| mRenderer.updateRenderCameraPose(lastFramePose);
mCameraPoseTimestamp = lastFramePose.timestamp;
Log.w(TAG, "Can't get device pose at time: " +
|
26,067 | import org.rajawali3d.materials.Material;
import org.rajawali3d.materials.methods.DiffuseMethod;
import org.rajawali3d.materials.textures.ATexture;
import org.rajawali3d.materials.textures.StreamingTexture;
import org.rajawali3d.materials.textures.Texture;
<BUG>import org.rajawali3d.math.Matrix4;
import org.rajawali3d.... | import org.rajawali3d.math.Quaternion;
import org.rajawali3d.math.vector.Vector3;
|
26,068 | translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE);
translationMoon.setTransformable3D(moon);
getCurrentScene().registerAnimation(translationMoon);
translationMoon.play();
}
<BUG>public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) {
Pose cameraPose = ScenePoseCalculator.t... | public void updateRenderCameraPose(TangoPoseData cameraPose) {
float[] rotation = cameraPose.getRotationAsFloats();
float[] translation = cameraPose.getTranslationAsFloats();
Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]);
getCurrentCamera().setRotation(quaternion.conjugate()... |
26,069 | package com.projecttango.examples.java.helloareadescription;
import com.google.atap.tangoservice.Tango;
<BUG>import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;
import com.google.atap.tangoservice.TangoConfig;</BUG>
import com.google.atap.tangoservice.TangoCoordinateFramePair;
import com.google.atap.tangos... | import com.google.atap.tangoservice.TangoAreaDescriptionMetaData;
import com.google.atap.tangoservice.TangoConfig;
|
26,070 | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.DigestOutputStream;
import java.security.MessageDigest;
<BUG>import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;</BUG>
public final class ... | import java.text.DateFormat;
import java.util.Date;
import java.util.List;
|
26,071 | package org.jboss.as.patching.runner;
<BUG>import org.jboss.as.boot.DirectoryStructure;
import org.jboss.as.patching.LocalPatchInfo;</BUG>
import org.jboss.as.patching.PatchInfo;
import org.jboss.as.patching.PatchLogger;
import org.jboss.as.patching.PatchMessages;
| import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp;
import org.jboss.as.patching.CommonAttributes;
import org.jboss.as.patching.LocalPatchInfo;
|
26,072 | private static final String PATH_DELIMITER = "/";
public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT;
enum Element {
ADDED_BUNDLE("added-bundle"),
ADDED_MISC_CONTENT("added-misc-content"),
<BUG>ADDED_MODULE("added-module"),
BUNDLES("bundles"),</BUG>
CUMULATIVE("cumulative"),
DESCRIPTION("description"),
MIS... | APPLIES_TO_VERSION("applies-to-version"),
BUNDLES("bundles"),
|
26,073 | final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttributeValue(i);
final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
<BUG>case APPLIES_TO_VERSION:
builder.addAppliesTo(value);
break;</BUG>
case RESULTING_VE... | [DELETED] |
26,074 | final StringBuilder path = new StringBuilder();
for(final String p : item.getPath()) {
path.append(p).append(PATH_DELIMITER);
}
path.append(item.getName());
<BUG>writer.writeAttribute(Attribute.PATH.name, path.toString());
if(type != ModificationType.REMOVE) {</BUG>
writer.writeAttribute(Attribute.HASH.name, bytesToHex... | if (item.isDirectory()) {
writer.writeAttribute(Attribute.DIRECTORY.name, "true");
if(type != ModificationType.REMOVE) {
|
26,075 | package org.jboss.as.patching;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.patching.runner.PatchingException;
import org.jboss.logging.Messages;
import org.jboss.logging.annotations.Message;
<BUG>import org.jboss.logging.annotations.MessageBundle;
import java.io.IOException;</BUG>
impor... | import org.jboss.logging.annotations.Cause;
import java.io.IOException;
|
26,076 | handlePossibleReturn(thenBranch);
thenEnd = myHead;
interruptFlow();
}
myHead = reduceAllNegationsIntoInstruction(ifStatement, negations);
<BUG>if (negations.isEmpty() && conditionEnd != null) {
myHead = conditionEnd;</BUG>
}
if (elseBranch != null) {
elseBranch.accept(this);
| if (myHead == null && conditionEnd != null) {
myHead = conditionEnd;
|
26,077 | @Override
public void visitConditionalExpression(GrConditionalExpression expression) {
GrExpression condition = expression.getCondition();
GrExpression thenBranch = expression.getThenBranch();
GrExpression elseBranch = expression.getElseBranch();
<BUG>condition.accept(this);
List<GotoInstruction> negations = collectAnd... | InstructionImpl conditionEnd = myHead;
List<GotoInstruction> negations = collectAndRemoveAllPendingNegations(expression);
|
26,078 | thenBranch.accept(this);
handlePossibleReturn(thenBranch);
addPendingEdge(expression, myHead);
}
if (elseBranch != null) {
<BUG>myHead = reduceAllNegationsIntoInstruction(expression, negations);
elseBranch.accept(this);</BUG>
handlePossibleReturn(elseBranch);
}
| [DELETED] |
26,079 | GrExpression elseBranch = expression.getElseBranch();
condition.accept(this);
List<GotoInstruction> negations = collectAndRemoveAllPendingNegations(expression);
addPendingEdge(expression, myHead);
if (elseBranch != null) {
<BUG>myHead = reduceAllNegationsIntoInstruction(expression, negations);
elseBranch.accept(this);... | InstructionImpl conditionEnd = myHead;
if (thenBranch != null) {
thenBranch.accept(this);
handlePossibleReturn(thenBranch);
|
26,080 | import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.LocalFileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.util.Progressable;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AFileSystem extends FileSyste... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AFileSystem extends FileSystem {
|
26,081 | public void initialize(URI name, Configuration conf) throws IOException {
super.initialize(name, conf);
uri = URI.create(name.getScheme() + "://" + name.getAuthority());
workingDir = new Path("/user", System.getProperty("user.name")).makeQualified(this.uri,
this.getWorkingDirectory());
<BUG>String accessKey = conf.get(... | String accessKey = conf.get(NEW_ACCESS_KEY, conf.get(OLD_ACCESS_KEY, null));
String secretKey = conf.get(NEW_SECRET_KEY, conf.get(OLD_SECRET_KEY, null));
|
26,082 | } else {
accessKey = userInfo;
}
}
AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(
<BUG>new S3ABasicAWSCredentialsProvider(accessKey, secretKey),
new InstanceProfileCredentialsProvider(),
new S3AAnonymousAWSCredentialsProvider()
);</BUG>
bucket = name.getHost();
| new BasicAWSCredentialsProvider(accessKey, secretKey),
new AnonymousAWSCredentialsProvider()
|
26,083 |
awsConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT));
</BUG>
s3 = new AmazonS3Client(credentials, awsConf);
<BUG>maxKeys = conf.getInt(MAX_PAGING_KEYS, DEFAULT_MAX_PAGING_KEYS);
partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THR... | new InstanceProfileCredentialsProvider(),
new AnonymousAWSCredentialsProvider()
bucket = name.getHost();
ClientConfiguration awsConf = new ClientConfiguration();
awsConf.setMaxConnections(conf.getInt(NEW_MAXIMUM_CONNECTIONS, conf.getInt(OLD_MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS)));
awsConf.setProtocol(conf.g... |
26,084 | cannedACL = null;
}
if (!s3.doesBucketExist(bucket)) {
throw new IOException("Bucket " + bucket + " does not exist");
}
<BUG>boolean purgeExistingMultipart = conf.getBoolean(PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART);
long purgeExistingMultipartAge = conf.getLong(PURGE_EXISTING_MULTIPART_AGE, DEFAULT_... | boolean purgeExistingMultipart = conf.getBoolean(NEW_PURGE_EXISTING_MULTIPART, conf.getBoolean(OLD_PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART));
long purgeExistingMultipartAge = conf.getLong(NEW_PURGE_EXISTING_MULTIPART_AGE, conf.getLong(OLD_PURGE_EXISTING_MULTIPART_AGE, DEFAULT_PURGE_EXISTING_MULTIPART... |
26,085 | import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AOutputStream extends OutputStream {</BUG>
private OutputStream backupStream;
private File backup... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AOutputStream extends OutputStream {
|
26,086 | this.client = client;
this.progress = progress;
this.fs = fs;
this.cannedACL = cannedACL;
this.statistics = statistics;
<BUG>partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
</BUG>
if (conf.get(BUFFER_DIR, null) ... | partSize = conf.getLong(OLD_MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(OLD_MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
|
26,087 | import gov.loc.repository.bagit.domain.Manifest;
import gov.loc.repository.bagit.domain.Version;
import gov.loc.repository.bagit.hash.Hasher;
import javafx.util.Pair;
public class BagWriter {
<BUG>private static final Logger logger = LoggerFactory.getLogger(BagWriter.class);
private BagWriter(){}</BUG>
public static vo... | private static final Version VERSION_0_98 = new Version(0, 98);
private static final Version VERSION_0_95 = new Version(0, 95);
private BagWriter(){}
|
26,088 | public static void write(Bag bag, Path outputDir) throws IOException, NoSuchAlgorithmException{
Path bagitDir = writeVersionDependentPayloadFiles(bag, outputDir);
writeBagitFile(bag.getVersion(), bag.getFileEncoding(), bagitDir);
writePayloadManifests(bag.getPayLoadManifests(), bagitDir, bag.getRootDir(), bag.getFileEn... | writeBagitInfoFile(bag.getMetadata(), bag.getVersion(), bagitDir, bag.getFileEncoding());
|
26,089 | Files.createDirectories(dataDir);
writePayloadFiles(bag.getPayLoadManifests(), dataDir, bag.getRootDir().resolve("data"));
}
return bagitDir;
}
<BUG>public static void writeBagitFile(Version version, String encoding, Path outputDir) throws IOException{
logger.debug("Writing bagit.txt file to [{}]", outputDir);
Path bag... | Path bagitPath = outputDir.resolve("bagit.txt");
|
26,090 | Files.copy(entry.getKey(), writeTo);
}
}
}
}
<BUG>public static void writeBagitInfoFile(List<Pair<String, String>> metadata, Path outputDir, String charsetName) throws IOException{
logger.debug("Writing bag-info.txt to [{}]", outputDir);
Path bagInfoFilePath = outputDir.resolve("bag-info.txt");
Files.deleteIfExists(ba... | public static void writeBagitInfoFile(List<Pair<String, String>> metadata, Version version, Path outputDir, String charsetName) throws IOException{
if(VERSION_0_95.compareTo(version) >= 0){
bagInfoFilePath = outputDir.resolve("package-info.txt");
logger.debug("Writing {} to [{}]", bagInfoFilePath.getFileName(), outputD... |
26,091 | private volatile IndexProvider localIndexProvider;
private final int machineId;
private volatile MasterServer masterServer;
private final AtomicBoolean reevaluatingMyself = new AtomicBoolean();
private ScheduledExecutorService updatePuller;
<BUG>private volatile Machine cachedMaster = Machine.NO_MACHINE;
private volati... | [DELETED] |
26,092 | System.out.println( "looked up master " + master );
master = broker.getMasterReally();
<BUG>}
boolean iAmCurrentlyMaster = masterServer != null;
boolean restarted = false;
if ( cachedMaster.getMachineId() != master.other().getMachineId() )
{</BUG>
if ( master.other().getMachineId() == machineId )
{
if ( this.localGraph... | [DELETED] |
26,093 | if ( this.localGraph == null || !iAmCurrentlyMaster )
{
internalShutdown();
startAsMaster();
restarted = true;
<BUG>}
}</BUG>
else
{
if ( this.localGraph == null || iAmCurrentlyMaster )
| broker.rebindMaster();
|
26,094 | startAsSlave();
tryToEnsureIAmNotABrokenMachine( master );
restarted = true;
}
}
<BUG>}
if ( masterServer != null )
{
broker.rebindMaster();
}</BUG>
if ( restarted )
| [DELETED] |
26,095 | this.localGraph.registerKernelEventHandler( handler );
}
this.localDataSourceManager =
localGraph.getConfig().getTxModule().getXaDataSourceManager();
}
<BUG>cachedMaster = master.other();
started = true;</BUG>
}
finally
{
| [DELETED] |
26,096 | connectedSlaveChannels.remove( channel );
}
}
public void shutdown()
{
<BUG>deadConnectionsPoller.shutdown();
channelGroup.close().awaitUninterruptibly();</BUG>
}
private boolean channelIsClosed( Channel channel )
{
| System.out.println( "Master server shutdown, closing all channels" );
channelGroup.close().awaitUninterruptibly();
|
26,097 | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.DigestOutputStream;
import java.security.MessageDigest;
<BUG>import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;</BUG>
public final class ... | import java.text.DateFormat;
import java.util.Date;
import java.util.List;
|
26,098 | package org.jboss.as.patching.runner;
<BUG>import org.jboss.as.boot.DirectoryStructure;
import org.jboss.as.patching.LocalPatchInfo;</BUG>
import org.jboss.as.patching.PatchInfo;
import org.jboss.as.patching.PatchLogger;
import org.jboss.as.patching.PatchMessages;
| import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp;
import org.jboss.as.patching.CommonAttributes;
import org.jboss.as.patching.LocalPatchInfo;
|
26,099 | private static final String PATH_DELIMITER = "/";
public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT;
enum Element {
ADDED_BUNDLE("added-bundle"),
ADDED_MISC_CONTENT("added-misc-content"),
<BUG>ADDED_MODULE("added-module"),
BUNDLES("bundles"),</BUG>
CUMULATIVE("cumulative"),
DESCRIPTION("description"),
MIS... | APPLIES_TO_VERSION("applies-to-version"),
BUNDLES("bundles"),
|
26,100 | final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttributeValue(i);
final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
<BUG>case APPLIES_TO_VERSION:
builder.addAppliesTo(value);
break;</BUG>
case RESULTING_VE... | [DELETED] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.