id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
41,801 | private final Map<String, Fare> fares;
public Loader(GTFSFeed feed, Map<String, Fare> fares) {
super(feed, "fare_rules");
this.fares = fares;
}
<BUG>@Override
public void loadOneRow() throws IOException {</BUG>
String fareId = getStringField("fare_id", true);
if (!fares.containsKey(fareId)) {
this.feed.errors.add(new ReferentialIntegrityError(tableName, row, "fare_id", fareId));
| protected boolean isRequired() {
return false;
public void loadOneRow() throws IOException {
|
41,802 | t.shape_id = getStringField("shape_id", false);
t.bikes_allowed = getIntField("bikes_allowed", false, 0, 2);
t.wheelchair_accessible = getIntField("wheelchair_accessible", false, 0, 2);
t.feed = feed;
t.feed_id = feed.feedId;
<BUG>feed.trips.put(t.trip_id, t);
}</BUG>
}
public static class Writer extends Entity.Writer<Trip> {
public Writer (GTFSFeed feed) {
| getRefField("service_id", true, feed.services);
getRefField("route_id", true, feed.routes);
|
41,803 | public String service_id;
public static class Loader extends Entity.Loader<Calendar> {
private final Map<String, Service> services;
public Loader(GTFSFeed feed, Map<String, Service> services) {
super(feed, "calendar");
<BUG>this.services = services;
}</BUG>
@Override
public void loadOneRow() throws IOException {
String service_id = getStringField("service_id", true); // TODO service_id can reference either calendar or calendar_dates.
| }
protected boolean isRequired() {
return true;
}
|
41,804 | import com.conveyal.gtfs.error.EmptyFieldError;
import com.conveyal.gtfs.error.MissingColumnError;
import com.conveyal.gtfs.error.MissingTableError;
import com.conveyal.gtfs.error.NumberParseError;
import com.conveyal.gtfs.error.RangeError;
<BUG>import com.conveyal.gtfs.error.ReferentialIntegrityError;
import com.conveyal.gtfs.error.TimeParseError;</BUG>
import com.conveyal.gtfs.error.URLParseError;
import com.conveyal.gtfs.util.Deduplicator;
import com.csvreader.CsvReader;
| import com.conveyal.gtfs.error.TableInSubdirectoryError;
import com.conveyal.gtfs.error.TimeParseError;
|
41,805 | import java.io.Serializable;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import java.time.LocalDate;
<BUG>import java.time.format.DateTimeFormatter;
import java.util.Iterator;</BUG>
import java.util.Locale;
import java.util.Map;
import java.util.Set;
| import java.util.Enumeration;
import java.util.Iterator;
|
41,806 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceForestsPerHost%%", hubConfig.traceForestsPerHost.toString());
<BUG>customTokens.put("%%mlModulesDbName%%", hubConfig.modulesDbName);
}</BUG>
public void init() {
try {
LOGGER.error("PLUGINS DIR: " + pluginsDir.toString());
| customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
41,807 | package com.cronutils.model.time.generator;
import java.util.Collections;
<BUG>import java.util.List;
import org.apache.commons.lang3.Validate;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.expression.FieldExpression;
public abstract class FieldValueGenerator {
| import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.Validate;
|
41,808 | import java.util.ResourceBundle;
import java.util.function.Function;</BUG>
class DescriptionStrategyFactory {
private DescriptionStrategyFactory() {}
public static DescriptionStrategy daysOfWeekInstance(final ResourceBundle bundle, final FieldExpression expression) {
<BUG>final Function<Integer, String> nominal = integer -> new DateTime().withDayOfWeek(integer).dayOfWeek().getAsText(bundle.getLocale());
</BUG>
NominalDescriptionStrategy dow = new NominalDescriptionStrategy(bundle, nominal, expression);
dow.addDescription(fieldExpression -> {
if (fieldExpression instanceof On) {
| import java.util.function.Function;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
final Function<Integer, String> nominal = integer -> DayOfWeek.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale());
|
41,809 | return dom;
}
public static DescriptionStrategy monthsInstance(final ResourceBundle bundle, final FieldExpression expression) {
return new NominalDescriptionStrategy(
bundle,
<BUG>integer -> new DateTime().withMonthOfYear(integer).monthOfYear().getAsText(bundle.getLocale()),
expression</BUG>
);
}
public static DescriptionStrategy plainInstance(ResourceBundle bundle, final FieldExpression expression) {
| integer -> Month.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale()),
expression
|
41,810 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.mapper.WeekDay;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.constraint.FieldConstraintsBuilder;
| import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.Validate;
import com.cronutils.mapper.WeekDay;
|
41,811 | import com.cronutils.model.field.expression.Between;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.parser.CronParserField;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateTime;
import java.util.Collections;
import java.util.List;
import java.util.Set;</BUG>
class BetweenDayOfWeekValueGenerator extends FieldValueGenerator {
| [DELETED] |
41,812 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
| import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.List;
import org.apache.commons.lang3.Validate;
import com.cronutils.model.field.CronField;
|
41,813 | import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
import com.google.common.collect.Lists;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateTime;
import java.util.List;</BUG>
class OnDayOfMonthValueGenerator extends FieldValueGenerator {
private int year;
| package com.cronutils.model.time.generator;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.List;
import com.cronutils.model.field.CronField;
|
41,814 | class OnDayOfMonthValueGenerator extends FieldValueGenerator {
private int year;
private int month;
public OnDayOfMonthValueGenerator(CronField cronField, int year, int month) {
super(cronField);
<BUG>Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of month");
this.year = year;</BUG>
this.month = month;
}
| Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of" +
" month");
this.year = year;
|
41,815 | package com.cronutils.mapper;
public class ConstantsMapper {
private ConstantsMapper() {}
public static final WeekDay QUARTZ_WEEK_DAY = new WeekDay(2, false);
<BUG>public static final WeekDay JODATIME_WEEK_DAY = new WeekDay(1, false);
</BUG>
public static final WeekDay CRONTAB_WEEK_DAY = new WeekDay(1, true);
public static int weekDayMapping(WeekDay source, WeekDay target, int weekday){
return source.mapTo(weekday, target);
| public static final WeekDay JAVA8 = new WeekDay(1, false);
|
41,816 | return nextMatch;
} catch (NoSuchValueException e) {
throw new IllegalArgumentException(e);
}
}
<BUG>DateTime nextClosestMatch(DateTime date) throws NoSuchValueException {
</BUG>
List<Integer> year = yearsValueGenerator.generateCandidates(date.getYear(), date.getYear());
TimeNode days = null;
int lowestMonth = months.getValues().get(0);
| ZonedDateTime nextClosestMatch(ZonedDateTime date) throws NoSuchValueException {
|
41,817 | boolean questionMarkSupported =
cronDefinition.getFieldDefinition(DAY_OF_WEEK).getConstraints().getSpecialChars().contains(QUESTION_MARK);
if(questionMarkSupported){
return new TimeNode(
generateDayCandidatesQuestionMarkSupported(
<BUG>date.getYear(), date.getMonthOfYear(),
</BUG>
((DayOfWeekFieldDefinition)
cronDefinition.getFieldDefinition(DAY_OF_WEEK)
).getMondayDoWValue()
| date.getYear(), date.getMonthValue(),
|
41,818 | )
);
}else{
return new TimeNode(
generateDayCandidatesQuestionMarkNotSupported(
<BUG>date.getYear(), date.getMonthOfYear(),
</BUG>
((DayOfWeekFieldDefinition)
cronDefinition.getFieldDefinition(DAY_OF_WEEK)
).getMondayDoWValue()
| date.getYear(), date.getMonthValue(),
|
41,819 | }
public DateTime lastExecution(DateTime date){
</BUG>
Validate.notNull(date);
try {
<BUG>DateTime previousMatch = previousClosestMatch(date);
</BUG>
if(previousMatch.equals(date)){
previousMatch = previousClosestMatch(date.minusSeconds(1));
}
| public java.time.Duration timeToNextExecution(ZonedDateTime date){
return java.time.Duration.between(date, nextExecution(date));
public ZonedDateTime lastExecution(ZonedDateTime date){
ZonedDateTime previousMatch = previousClosestMatch(date);
|
41,820 | return previousMatch;
} catch (NoSuchValueException e) {
throw new IllegalArgumentException(e);
}
}
<BUG>public Duration timeFromLastExecution(DateTime date){
return new Interval(lastExecution(date), date).toDuration();
}
public boolean isMatch(DateTime date){
</BUG>
return nextExecution(lastExecution(date)).equals(date);
| [DELETED] |
41,821 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.expression.Every;
import com.cronutils.model.field.expression.FieldExpression;
import com.google.common.annotations.VisibleForTesting;
| import java.time.ZonedDateTime;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.cronutils.model.field.CronField;
|
41,822 | import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.expression.Every;
import com.cronutils.model.field.expression.FieldExpression;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.Lists;
<BUG>import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;</BUG>
class EveryFieldValueGenerator extends FieldValueGenerator {
| package com.cronutils.model.time.generator;
import java.time.ZonedDateTime;
import java.util.List;
import com.cronutils.model.field.CronField;
|
41,823 | private static final Logger log = LoggerFactory.getLogger(EveryFieldValueGenerator.class);
public EveryFieldValueGenerator(CronField cronField) {
super(cronField);
log.trace(String.format(
"processing \"%s\" at %s",
<BUG>cronField.getExpression().asString(), DateTime.now()
</BUG>
));
}
@Override
| cronField.getExpression().asString(), ZonedDateTime.now()
|
41,824 | import java.util.Iterator;
import java.util.List;
import org.sonatype.nexus.maven.staging.deploy.strategy.DeployPerModuleRequest;
import org.sonatype.nexus.maven.staging.deploy.strategy.DeployStrategy;
import org.sonatype.nexus.maven.staging.deploy.strategy.FinalizeDeployRequest;
<BUG>import org.sonatype.nexus.maven.staging.deploy.strategy.Parameters;
</BUG>
import org.sonatype.nexus.maven.staging.deploy.strategy.Strategies;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.deployer.ArtifactDeploymentException;
| import org.sonatype.nexus.maven.staging.remote.Parameters;
|
41,825 | if (!isPomArtifact) {
artifact.addMetadata(new ProjectArtifactMetadata(artifact, pomFile));
}
if (updateReleaseInfo) {
artifact.setRelease(true);
<BUG>}
try {</BUG>
if (isPomArtifact) {
deployables.add(new DeployableArtifact(pomFile, artifact));
}
| final DeployStrategy deployStrategy;
try {
|
41,826 | "Artifacts locally gathered under directory " + getWorkDirectoryRoot().getAbsolutePath()
+ ", skipping remote staging at user's demand.");
return;
}
try {
<BUG>final FinalizeDeployRequest request = new FinalizeDeployRequest(getMavenSession(), parameters);
deployStrategy.finalizeDeploy(request);</BUG>
}
catch (ArtifactDeploymentException e) {
throw new MojoExecutionException(e.getMessage(), e);
| final FinalizeDeployRequest request = new FinalizeDeployRequest();
deployStrategy.finalizeDeploy(request);
|
41,827 | package org.sonatype.nexus.maven.staging.deploy;
import org.sonatype.nexus.maven.staging.deploy.strategy.DeployStrategy;
import org.sonatype.nexus.maven.staging.deploy.strategy.FinalizeDeployRequest;
<BUG>import org.sonatype.nexus.maven.staging.deploy.strategy.Parameters;
</BUG>
import org.sonatype.nexus.maven.staging.deploy.strategy.Strategies;
import org.apache.maven.artifact.deployer.ArtifactDeploymentException;
import org.apache.maven.plugin.MojoExecutionException;
| import org.sonatype.nexus.maven.staging.remote.Parameters;
|
41,828 | package org.sonatype.nexus.maven.staging.deploy;
import java.util.Map;
import org.sonatype.nexus.maven.staging.AbstractStagingMojo;
import org.sonatype.nexus.maven.staging.deploy.strategy.DeployStrategy;
<BUG>import org.sonatype.nexus.maven.staging.deploy.strategy.Parameters;
import org.sonatype.nexus.maven.staging.deploy.strategy.ParametersImpl;
import org.sonatype.nexus.maven.staging.deploy.strategy.StagingParameters;
import org.sonatype.nexus.maven.staging.deploy.strategy.StagingParametersImpl;</BUG>
import org.apache.maven.plugin.MojoExecutionException;
| import org.sonatype.nexus.maven.staging.remote.Parameters;
|
41,829 | private boolean keepStagingRepositoryOnFailure;
@Parameter(property = "skipStagingRepositoryClose")
private boolean skipStagingRepositoryClose;
@Parameter(property = "skipStaging")
private boolean skipStaging;
<BUG>protected DeployStrategy getDeployStrategy(final String key)
</BUG>
throws MojoExecutionException
{
final DeployStrategy deployStrategy = deployStrategies.get(key);
| protected DeployStrategy getDeployStrategy(final String key, final Parameters parameters)
|
41,830 | import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
<BUG>import com.google.common.base.Preconditions;
import com.google.common.base.Strings;</BUG>
import com.google.common.io.Closeables;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact;
| import org.sonatype.nexus.maven.staging.remote.Parameters;
import com.google.common.base.Strings;
|
41,831 | import org.apache.maven.artifact.versioning.VersionRange;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.artifact.ProjectArtifactMetadata;
import org.codehaus.plexus.component.annotations.Requirement;
<BUG>import org.codehaus.plexus.logging.AbstractLogEnabled;
public abstract class AbstractDeployStrategy</BUG>
extends AbstractLogEnabled
implements DeployStrategy
{
| import static com.google.common.base.Preconditions.checkNotNull;
public abstract class AbstractDeployStrategy
|
41,832 | catch (IOException e) {
throw new ArtifactInstallationException("Cannot locally stage and maintain the index file!", e);
}
}
private final Pattern indexProps = Pattern.compile("(.*):(.*):(.*):(.*):(.*):(.*):(.*):(.*)");
<BUG>protected void deployUp(final MavenSession mavenSession, final File sourceDirectory,
final ArtifactRepository remoteRepository)</BUG>
throws ArtifactDeploymentException, IOException
{
final FileInputStream fis = new FileInputStream(new File(sourceDirectory, ".index"));
| protected void deployUp(final File sourceDirectory,
final ArtifactRepository remoteRepository)
|
41,833 | public static class FakeArtifactHandler
extends DefaultArtifactHandler
{
private final String extension;
public FakeArtifactHandler(final String type, final String extension) {
<BUG>super(Preconditions.checkNotNull(type));
this.extension = Preconditions.checkNotNull(extension);
}</BUG>
@Override
public String getExtension() {
| super(checkNotNull(type));
this.extension = checkNotNull(extension);
}
|
41,834 | @Override
public String getExtension() {
return extension;
}
}
<BUG>protected ArtifactRepository getDeploymentRepository(final MavenSession mavenSession)
throws MojoExecutionException</BUG>
{
final ArtifactRepository repo = mavenSession.getCurrentProject().getDistributionManagementArtifactRepository();
if (repo == null) {
| protected ArtifactRepository getDeploymentRepository()
throws MojoExecutionException
|
41,835 | final TypeSpec deleteEndClass = buildDeleteEndClass(signature, lastSignature, hasCounter);
partitionKeysWhereClasses.addAll(clusteringColsWhereClasses);
partitionKeysWhereClasses.add(deleteEndClass);
return partitionKeysWhereClasses;
}
<BUG>default List<TypeSpec> buildWhereClassesForStatic(EntityMetaSignature signature) {
</BUG>
final List<FieldSignatureInfo> partitionKeys = getPartitionKeysSignatureInfo(signature.fieldMetaSignatures);
final ClassSignatureParams classSignatureParams = ClassSignatureParams.of(DELETE_STATIC_DSL_SUFFIX,
DELETE_STATIC_WHERE_DSL_SUFFIX, DELETE_STATIC_END_DSL_SUFFIX,
| public List<TypeSpec> buildWhereClassesForStatic(EntityMetaSignature signature) {
|
41,836 | final List<TypeSpec> partitionKeysWhereClasses = buildWhereClassesForPartitionKeys(partitionKeys, classesSignature, false);
final TypeSpec deleteEndClass = buildDeleteEndClass(signature, lastSignature, hasCounter);
partitionKeysWhereClasses.add(deleteEndClass);
return partitionKeysWhereClasses;
}
<BUG>default TypeSpec buildDeleteEndClass(EntityMetaSignature signature,
</BUG>
ClassSignatureInfo lastSignature,
boolean hasCounter) {
final TypeSpec.Builder builder = TypeSpec.classBuilder(lastSignature.className)
| public TypeSpec buildDeleteEndClass(EntityMetaSignature signature,
|
41,837 | classesSignature, hasClusterings);
typeSpecs.add(0, typeSpec);
return typeSpecs;
}
}
<BUG>default TypeSpec buildDeleteWhereForPartitionKey(FieldSignatureInfo partitionInfo,
</BUG>
ClassSignatureInfo classSignature,
ClassSignatureInfo nextSignature,
boolean hasClusterings) {
| public TypeSpec buildDeleteWhereForPartitionKey(FieldSignatureInfo partitionInfo,
|
41,838 | final List<TypeSpec> typeSpecs = buildWhereClassesForClusteringColumns(clusteringCols, classesSignature);
typeSpecs.add(0, currentType);
return typeSpecs;
}
}
<BUG>default TypeSpec buildDeleteWhereForClusteringColumn(FieldSignatureInfo clusteringColumnInfo,
</BUG>
ClassSignatureInfo classSignature,
ClassSignatureInfo nextSignature) {
final TypeSpec.Builder builder = TypeSpec.classBuilder(classSignature.className)
| public TypeSpec buildDeleteWhereForClusteringColumn(FieldSignatureInfo clusteringColumnInfo,
|
41,839 | builder.addMethod(buildAllColumns(deleteFromTypeName, DELETE_WHERE, "delete"));
builder.addMethod(buildAllColumnsWithSchemaProvider(deleteFromTypeName, DELETE_WHERE, "delete"));
deleteWhereDSLCodeGen.buildWhereClasses(signature).forEach(builder::addType);
return builder.build();
}
<BUG>default TypeSpec buildDeleteStaticClass(EntityMetaSignature signature, DeleteWhereDSLCodeGen deleteWhereDSLCodeGen) {
</BUG>
final String firstPartitionKey = signature.fieldMetaSignatures
.stream()
.filter(x -> x.context.columnType == ColumnType.PARTITION)
| public TypeSpec buildDeleteStaticClass(EntityMetaSignature signature, DeleteWhereDSLCodeGen deleteWhereDSLCodeGen) {
|
41,840 | .addParameter(metaClassType, "meta")
.addStatement("super(rte)")
.addStatement("this.meta = meta")
.build();
}
<BUG>default TypeSpec buildDeleteColumns(EntityMetaSignature signature,
</BUG>
String deleteColumnClass,
TypeName deleteColumnsTypeName,
TypeName deleteFromTypeName,
| public TypeSpec buildDeleteColumns(EntityMetaSignature signature,
|
41,841 | .forEach(x -> builder.addMethod(buildDeleteColumnMethod(deleteColumnsTypeName, x, ReturnType.THIS)));
builder.addMethod(buildFrom(deleteFromTypeName, DELETE_WHERE, "deleteColumns"));
builder.addMethod(buildFromWithSchemaProvider(deleteFromTypeName, DELETE_WHERE, "deleteColumns"));
return builder.build();
}
<BUG>default TypeSpec buildDeleteFrom(EntityMetaSignature signature,
</BUG>
String deleteFromClassName,
TypeName deleteWhereTypeName) {
return TypeSpec.classBuilder(deleteFromClassName)
| public TypeSpec buildDeleteFrom(EntityMetaSignature signature,
|
41,842 | .addStatement("return new $T(where)", deleteWhereTypeName)
.returns(deleteWhereTypeName)
.build())
.build();
}
<BUG>default MethodSpec buildDeleteColumnMethod(TypeName deleteTypeName, FieldMetaSignature parsingResult, ReturnType returnType) {
</BUG>
final MethodSpec.Builder builder = MethodSpec.methodBuilder(parsingResult.context.fieldName)
.addJavadoc("Generate DELETE <strong>$L</strong> ...", parsingResult.context.quotedCqlColumn)
.addModifiers(Modifier.PUBLIC, Modifier.FINAL)
| public MethodSpec buildDeleteColumnMethod(TypeName deleteTypeName, FieldMetaSignature parsingResult, ReturnType returnType) {
|
41,843 | final ClassName abstractEndType = classSignatureParams.abstractEndType.orElse(classSignatureParams.abstractWhereType);
signatures.add(ClassSignatureInfo.of(endTypeName, endReturnTypeName, genericType(abstractEndType, endReturnTypeName, signature.entityRawClass),
endClassName));
return signatures;
}
<BUG>default MethodSpec buildWhereConstructor(TypeName whereType) {
</BUG>
return MethodSpec.constructorBuilder()
.addModifiers(Modifier.PUBLIC)
.addParameter(whereType, "where")
| public MethodSpec buildWhereConstructor(TypeName whereType) {
|
41,844 | .addModifiers(Modifier.PUBLIC)
.addParameter(whereType, "where")
.addStatement("super(where)")
.build();
}
<BUG>default MethodSpec buildColumnRelation(String relation, TypeName nextType, FieldSignatureInfo fieldInfo) {
final String methodName = fieldInfo.fieldName + "_" + upperCaseFirst(relation);
final MethodSpec.Builder builder = MethodSpec.methodBuilder(methodName)</BUG>
.addJavadoc("Generate a SELECT ... FROM ... WHERE ... <strong>$L $L ?</strong>", fieldInfo.quotedCqlColumn, relationToSymbolForJavaDoc(relation))
| public MethodSpec buildColumnRelation(String relation, TypeName nextType, FieldSignatureInfo fieldInfo, FieldNamePrefix fieldNamePrefix) {
final String methodName = fieldNamePrefix == FieldNamePrefix.YES
? fieldInfo.fieldName + "_" + upperCaseFirst(relation)
: upperCaseFirst(relation);
final MethodSpec.Builder builder = MethodSpec.methodBuilder(methodName)
|
41,845 | .addStatement("boundValues.add($N)", fieldInfo.fieldName)
.addStatement("encodedValues.add(meta.$L.encodeFromJava($N))", fieldInfo.fieldName, fieldInfo.fieldName)
.returns(nextType);
return builder.addStatement("return new $T(where)", nextType).build();
}
<BUG>default MethodSpec buildColumnInVarargs(TypeName nextType, FieldSignatureInfo fieldInfo) {
final String methodName = fieldInfo.fieldName + "_IN";
final String param = fieldInfo.fieldName;</BUG>
final MethodSpec.Builder builder = MethodSpec.methodBuilder(methodName)
| public MethodSpec buildColumnInVarargs(TypeName nextType, FieldSignatureInfo fieldInfo, FieldNamePrefix fieldNamePrefix) {
final String methodName = fieldNamePrefix == FieldNamePrefix.YES
? fieldInfo.fieldName + "_IN"
: "IN";
final String param = fieldInfo.fieldName;
|
41,846 | .addStatement("boundValues.add(varargs)")
.addStatement("encodedValues.add(encodedVarargs)")
.returns(nextType);
return builder.addStatement("return new $T(where)", nextType).build();
}
<BUG>static MethodSpec buildGetThis(TypeName currentType) {
</BUG>
return MethodSpec
.methodBuilder("getThis")
.addAnnotation(Override.class)
| public MethodSpec buildGetThis(TypeName currentType) {
|
41,847 | .addModifiers(Modifier.FINAL, Modifier.PROTECTED)
.returns(currentType)
.addStatement("return this")
.build();
}
<BUG>default MethodSpec buildGetMetaInternal(TypeName currentType) {
</BUG>
return MethodSpec
.methodBuilder("getMetaInternal")
.addAnnotation(Override.class)
| public MethodSpec buildGetMetaInternal(TypeName currentType) {
|
41,848 | .fieldMetaSignatures
.stream()
.filter(x -> x.context.columnType == ColumnType.COUNTER || x.context.columnType == ColumnType.STATIC_COUNTER)
.count() > 0;
}
<BUG>default FieldSpec buildExactEntityMetaField(EntityMetaSignature signature) {
</BUG>
String entityMetaClassName = signature.className + META_SUFFIX;
TypeName entityMetaExactType = ClassName.get(ENTITY_META_PACKAGE, entityMetaClassName);
return FieldSpec.builder(entityMetaExactType, "meta", Modifier.FINAL, Modifier.PROTECTED).build();
| public FieldSpec buildExactEntityMetaField(EntityMetaSignature signature) {
|
41,849 | </BUG>
String entityMetaClassName = signature.className + META_SUFFIX;
TypeName entityMetaExactType = ClassName.get(ENTITY_META_PACKAGE, entityMetaClassName);
return FieldSpec.builder(entityMetaExactType, "meta", Modifier.FINAL, Modifier.PROTECTED).build();
}
<BUG>default FieldSpec buildEntityClassField(EntityMetaSignature signature) {
</BUG>
return FieldSpec.builder(classTypeOf(signature.entityRawClass), "entityClass", Modifier.FINAL, Modifier.PROTECTED)
.initializer("$T.class", signature.entityRawClass)
.build();
| .fieldMetaSignatures
.stream()
.filter(x -> x.context.columnType == ColumnType.COUNTER || x.context.columnType == ColumnType.STATIC_COUNTER)
.count() > 0;
public FieldSpec buildExactEntityMetaField(EntityMetaSignature signature) {
public FieldSpec buildEntityClassField(EntityMetaSignature signature) {
|
41,850 | whereTypeName, privateFieldName, "unknown_keyspace_for_")
.addStatement("return new $T(where)", newTypeName)
.returns(newTypeName)
.build();
}
<BUG>static MethodSpec buildAllColumnsWithSchemaProvider(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) {
</BUG>
return MethodSpec.methodBuilder("allColumns_From")
.addModifiers(Modifier.PUBLIC, Modifier.FINAL)
.addJavadoc("Generate ... * FROM ... using the given SchemaNameProvider")
| public MethodSpec buildAllColumnsWithSchemaProvider(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) {
|
41,851 | .addStatement("final $T where = $L.all().from(currentKeyspace, currentTable).where()", whereTypeName, privateFieldName)
.addStatement("return new $T(where)", newTypeName)
.returns(newTypeName)
.build();
}
<BUG>static MethodSpec buildFrom(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) {
</BUG>
return MethodSpec.methodBuilder("fromBaseTable")
.addJavadoc("Generate a ... <strong>FROM xxx</strong> ... ")
.addModifiers(Modifier.PUBLIC, Modifier.FINAL)
| public MethodSpec buildFrom(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) {
|
41,852 | "meta.getTableOrViewName()).where()", whereTypeName, privateFieldName, "unknown_keyspace_for_")
.addStatement("return new $T(where)", newTypeName)
.returns(newTypeName)
.build();
}
<BUG>static MethodSpec buildFromWithSchemaProvider(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) {
</BUG>
return MethodSpec.methodBuilder("from")
.addJavadoc("Generate a ... <strong>FROM xxx</strong> ... using the given SchemaNameProvider")
.addModifiers(Modifier.PUBLIC, Modifier.FINAL)
| public MethodSpec buildFromWithSchemaProvider(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) {
|
41,853 | .addStatement("final $T where = $L.from(currentKeyspace, currentTable).where()", whereTypeName, privateFieldName)
.addStatement("return new $T(where)", newTypeName)
.returns(newTypeName)
.build();
}
<BUG>default List<FieldSignatureInfo> getPartitionKeysSignatureInfo(List<FieldMetaSignature> parsingResults) {
</BUG>
return new ArrayList<>(parsingResults
.stream()
.filter(x -> x.context.columnType == ColumnType.PARTITION)
| public List<FieldSignatureInfo> getPartitionKeysSignatureInfo(List<FieldMetaSignature> parsingResults) {
|
41,854 | .map(x -> Tuple4.of(x.context.fieldName, x.context.cqlColumn, x.sourceType, (PartitionKeyInfo) x.context.columnInfo))
.sorted(TUPLE4_PARTITION_KEY_SORTER)
.map(x -> FieldSignatureInfo.of(x._1(), x._2(), x._3()))
.collect(toList()));
}
<BUG>default List<FieldSignatureInfo> getClusteringColsSignatureInfo(List<FieldMetaSignature> parsingResults) {
</BUG>
return new ArrayList<>(parsingResults
.stream()
.filter(x -> x.context.columnType == ColumnType.CLUSTERING)
| public List<FieldSignatureInfo> getClusteringColsSignatureInfo(List<FieldMetaSignature> parsingResults) {
|
41,855 | .map(x -> Tuple4.of(x.context.fieldName, x.context.cqlColumn, x.sourceType, (ClusteringColumnInfo) x.context.columnInfo))
.sorted(TUPLE4_CLUSTERING_COLUMN_SORTER)
.map(x -> FieldSignatureInfo.of(x._1(), x._2(), x._3()))
.collect(toList()));
}
<BUG>default void buildLWtConditionMethods(EntityMetaSignature signature, ClassSignatureInfo currentSignature, boolean hasCounter, TypeSpec.Builder builder) {
</BUG>
if (!hasCounter) {
signature.fieldMetaSignatures.stream()
.filter(x -> x.context.columnType == ColumnType.NORMAL || x.context.columnType == ColumnType.STATIC)
| public void buildLWtConditionMethods(EntityMetaSignature signature, String parentFQCN, ClassSignatureInfo currentSignature, boolean hasCounter, TypeSpec.Builder parentBuilder) {
|
41,856 | </BUG>
.returns(currentType)
.build();
}
<BUG>default MethodSpec buildLWTNotEqual(FieldSignatureInfo fieldSignatureInfo, TypeName currentType) {
String methodName = "if" + upperCaseFirst(fieldSignatureInfo.fieldName) + "_NotEq";
return MethodSpec.methodBuilder(methodName)</BUG>
.addJavadoc("Generate an ... <strong>IF $L != ?</strong>", fieldSignatureInfo.fieldName)
.addAnnotation(AnnotationSpec.builder(SuppressWarnings.class).addMember("value", "$S", "static-access").build())
| .addParameter(fieldSignatureInfo.typeName, fieldSignatureInfo.fieldName, Modifier.FINAL)
.addStatement("boundValues.add($N)", fieldSignatureInfo.fieldName)
.addStatement("encodedValues.add(meta.$L.encodeFromJava($N))", fieldSignatureInfo.fieldName, fieldSignatureInfo.fieldName)
.addStatement("where.onlyIf($T.$L($S, $T.bindMarker($S)))",
QUERY_BUILDER, relation, fieldSignatureInfo.cqlColumn, QUERY_BUILDER, fieldSignatureInfo.cqlColumn)
.addStatement("return $T.this", currentType)
public MethodSpec buildLWTNotEqual(FieldSignatureInfo fieldSignatureInfo, TypeName currentType) {
String methodName = "NotEq";
return MethodSpec.methodBuilder(methodName)
|
41,857 | loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);
}
}
}
if (maybeOriginalService.isPresent() && request.getReplaceServiceId().isPresent() && maybeOriginalService.get().getServiceId().equals(request.getReplaceServiceId().get())) {
<BUG>lockBasePaths(request.getLoadBalancerService().getLoadBalancerGroups(), request.getLoadBalancerService().getServiceBasePath(), request.getLoadBalancerService().getAdditionalPaths(), maybeOriginalService.get().getServiceId());
</BUG>
}
}
public Set<String> getMissingLoadBalancerGroups(BaragonRequest request) {
| lockBasePaths(request.getLoadBalancerService().getLoadBalancerGroups(), request.getLoadBalancerService().getAllPaths(), maybeOriginalService.get().getServiceId());
|
41,858 | private void updateStateDatastore(BaragonRequest request) throws Exception {
stateDatastore.updateService(request);
try {
stateDatastore.incrementStateVersion();
} catch (Exception e) {
<BUG>LOG.error(String.format("Error updating state datastore %s", e));
}</BUG>
}
private void removeOldService(BaragonRequest request, Optional<BaragonService> maybeOriginalService) {
if (maybeOriginalService.isPresent() && !maybeOriginalService.get().getServiceId().equals(request.getLoadBalancerService().getServiceId())) {
| LOG.error("Error updating state datastore", e);
|
41,859 | }
private void clearBasePathsWithNoUpstreams(BaragonRequest request) {
try {
if (stateDatastore.getUpstreams(request.getLoadBalancerService().getServiceId()).isEmpty()) {
for (String loadBalancerGroup : request.getLoadBalancerService().getLoadBalancerGroups()) {
<BUG>if (loadBalancerDatastore.getBasePathServiceId(loadBalancerGroup, request.getLoadBalancerService().getServiceBasePath()).or("").equals(request.getLoadBalancerService().getServiceId())) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, request.getLoadBalancerService().getServiceBasePath());
for (String path : request.getLoadBalancerService().getAdditionalPaths()) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);</BUG>
}
| private void deleteRemovedServices(BaragonRequest request) {
stateDatastore.removeService(request.getLoadBalancerService().getServiceId());
if (request.getReplaceServiceId().isPresent() && stateDatastore.getService(request.getReplaceServiceId().get()).isPresent()) {
stateDatastore.removeService(request.getReplaceServiceId().get());
|
41,860 | }
}
}
}
} catch (Exception e) {
<BUG>LOG.info(String.format("Error clearing base path %s", e));
</BUG>
}
}
private void clearChangedBasePaths(BaragonRequest request, Optional<BaragonService> maybeOriginalService) {
| private Optional<BaragonService> getOriginalService(BaragonRequest request) {
Optional<BaragonService> maybeOriginalService = Optional.absent();
if (request.getReplaceServiceId().isPresent()) {
maybeOriginalService = stateDatastore.getService(request.getReplaceServiceId().get());
|
41,861 | }
}
private void clearChangedBasePaths(BaragonRequest request, Optional<BaragonService> maybeOriginalService) {
<BUG>if (maybeOriginalService.isPresent() && !maybeOriginalService.get().getServiceBasePath().equals(request.getLoadBalancerService().getServiceBasePath())) {
for (String loadBalancerGroup : maybeOriginalService.get().getLoadBalancerGroups()) {
if (loadBalancerDatastore.getBasePathServiceId(loadBalancerGroup, maybeOriginalService.get().getServiceBasePath()).or("").equals(maybeOriginalService.get().getServiceId())) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, maybeOriginalService.get().getServiceBasePath());
for (String path : maybeOriginalService.get().getAdditionalPaths()) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);
</BUG>
}
| updateLastRequestForGroups(request);
|
41,862 | Set<String> removedLbGroups = maybeOriginalService.get().getLoadBalancerGroups();
removedLbGroups.removeAll(request.getLoadBalancerService().getLoadBalancerGroups());
if (!removedLbGroups.isEmpty()) {
try {
for (String loadBalancerGroup : removedLbGroups) {
<BUG>if (loadBalancerDatastore.getBasePathServiceId(loadBalancerGroup, maybeOriginalService.get().getServiceBasePath()).or("").equals(maybeOriginalService.get().getServiceId())) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, maybeOriginalService.get().getServiceBasePath());
for (String path : maybeOriginalService.get().getAdditionalPaths()) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);</BUG>
}
| for (String path : maybeOriginalService.get().getAllPaths()) {
if (loadBalancerDatastore.getBasePathServiceId(loadBalancerGroup, path).or("").equals(maybeOriginalService.get().getServiceId())) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);
|
41,863 | loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);</BUG>
}
}
}
} catch (Exception e) {
<BUG>LOG.info(String.format("Error clearing base path %s", e));
</BUG>
}
}
}
| Set<String> removedLbGroups = maybeOriginalService.get().getLoadBalancerGroups();
removedLbGroups.removeAll(request.getLoadBalancerService().getLoadBalancerGroups());
if (!removedLbGroups.isEmpty()) {
try {
for (String loadBalancerGroup : removedLbGroups) {
for (String path : maybeOriginalService.get().getAllPaths()) {
if (loadBalancerDatastore.getBasePathServiceId(loadBalancerGroup, path).or("").equals(maybeOriginalService.get().getServiceId())) {
loadBalancerDatastore.clearBasePath(loadBalancerGroup, path);
LOG.error("Error clearing base path", e);
|
41,864 | import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
<BUG>import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;</BUG>
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;
import com.google.common.base.Optional;
| import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
41,865 | public static boolean debugMode = false;
@ModConfigProperty(category = "Debug", name = "debugModeGOTG", comment = "Enable/Disable Debug Mode for the Gift Of The Gods")
public static boolean debugModeGOTG = false;
@ModConfigProperty(category = "Debug", name = "debugModeEnchantments", comment = "Enable/Disable Debug Mode for the Enchantments")
public static boolean debugModeEnchantments = false;
<BUG>@ModConfigProperty(category = "Weapons", name = "enableSwordsRecipes", comment = "Enable/Disable The ArmorPlus Sword's Recipes")
public static boolean enableSwordsRecipes = true;
@ModConfigProperty(category = "Weapons", name = "enableBattleAxesRecipes", comment = "Enable/Disable The ArmorPlus Battle Axes's Recipes")
public static boolean enableBattleAxesRecipes = true;
@ModConfigProperty(category = "Weapons", name = "enableBowsRecipes", comment = "Enable/Disable The ArmorPlus Bows's Recipes")
public static boolean enableBowsRecipes = true;
@ModConfigProperty(category = "Armors.SuperStarArmor.Effects", name = "enableSuperStarHRegen", comment = "Enable/Disable The Super Star Helmet Regeneration")
</BUG>
public static boolean enableSuperStarHRegen = true;
| @ModConfigProperty(category = "Weapons", name = "enableSwordsRecipes", comment = "Enable/Disable ArmorPlus Sword's Recipes")
@ModConfigProperty(category = "Weapons", name = "enableBattleAxesRecipes", comment = "Enable/Disable ArmorPlus Battle Axes's Recipes")
@ModConfigProperty(category = "Weapons", name = "enableBowsRecipes", comment = "Enable/Disable ArmorPlus Bows's Recipes")
|
41,866 | import org.jetbrains.plugins.groovy.lang.psi.GrControlFlowOwner;
import org.jetbrains.plugins.groovy.lang.psi.GroovyPsiElement;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrIfStatement;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrWhileStatement;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.clauses.GrTraditionalForClause;
<BUG>import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrBinaryExpression;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrUnaryExpression;</BUG>
import org.jetbrains.plugins.groovy.lang.psi.controlFlow.ControlFlowBuilderUtil;
import org.jetbrains.plugins.groovy.lang.psi.controlFlow.Instruction;
import org.jetbrains.plugins.groovy.lang.psi.controlFlow.ReadWriteVariableInstruction;
| import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpression;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrUnaryExpression;
|
41,867 | private static boolean isCheckForNull(PsiElement parent, PsiElement element) {
if (!(parent instanceof GrBinaryExpression)) return false;
final IElementType tokenType = ((GrBinaryExpression)parent).getOperationTokenType();
if (!(tokenType == GroovyTokenTypes.mEQUAL || tokenType == GroovyTokenTypes.mNOT_EQUAL)) return false;
if (element == ((GrBinaryExpression)parent).getLeftOperand()) {
<BUG>return GrInspectionUtil.isNull(((GrBinaryExpression)parent).getRightOperand());
}</BUG>
else {
return GrInspectionUtil.isNull(((GrBinaryExpression)parent).getLeftOperand());
}
| final GrExpression rightOperand = ((GrBinaryExpression)parent).getRightOperand();
return rightOperand != null && GrInspectionUtil.isNull(rightOperand);
|
41,868 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceForestsPerHost%%", hubConfig.traceForestsPerHost.toString());
<BUG>customTokens.put("%%mlModulesDbName%%", hubConfig.modulesDbName);
}</BUG>
public void init() {
try {
LOGGER.error("PLUGINS DIR: " + pluginsDir.toString());
| customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
41,869 | import com.fincatto.nfe310.FabricaDeObjetosFake;
import org.junit.Assert;
import org.junit.Test;
import java.math.BigDecimal;
import java.util.ArrayList;
<BUG>import java.util.Arrays;
import java.util.List;</BUG>
public class NFEnviaEventoCancelamentoTest {
@Test
public void deveObterEventosComoFoiSetado() {
| import java.util.Collections;
import java.util.List;
|
41,870 | import com.fincatto.nfe310.FabricaDeObjetosFake;
import com.fincatto.nfe310.classes.nota.NFNota;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
<BUG>import java.util.Arrays;
import java.util.List;</BUG>
public class NFLoteEnvioTest {
@Test
public void devePermitirNotasComTamanho50() {
| import java.util.Collections;
import java.util.List;
|
41,871 | public void deveGerarXMLDeAcordoComOPadraoEstabelecido() {
final NFLoteEnvio loteEnvio = new NFLoteEnvio();
loteEnvio.setIdLote("333972757970401");
loteEnvio.setVersao("3.10");
loteEnvio.setIndicadorProcessamento(NFLoteIndicadorProcessamento.PROCESSAMENTO_ASSINCRONO);
<BUG>loteEnvio.setNotas(Arrays.asList(FabricaDeObjetosFake.getNFNota()));
</BUG>
final String xmlEsperado = "<enviNFe versao=\"3.10\" xmlns=\"http://www.portalfiscal.inf.br/nfe\"><idLote>333972757970401</idLote><indSinc>0</indSinc><NFe><infNFe Id=\"NFe89172658591754401086218048846976493475937081\" versao=\"3.10\"><ide><cUF>43</cUF><cNF>99999999</cNF><natOp>qGYcW8I1iak14NF7vnfc8XpPYkrHWB5J7Vm3eOAe57azf1fVP7vEOY7TrRVQ</natOp><indPag>1</indPag><mod>55</mod><serie>999</serie><nNF>999999999</nNF><dhEmi>2010-10-27T10:10:10-02:00</dhEmi><dhSaiEnt>2013-09-24T10:10:10-03:00</dhSaiEnt><tpNF>0</tpNF><idDest>1</idDest><cMunFG>1612675</cMunFG><tpImp>2</tpImp><tpEmis>1</tpEmis><cDV>8</cDV><tpAmb>1</tpAmb><finNFe>1</finNFe><indFinal>1</indFinal><indPres>0</indPres><procEmi>0</procEmi><verProc>532ng7VURPgovC5BYaZy</verProc><dhCont>2014-10-10T10:10:10-03:00</dhCont><xJust>b1Aj7VBU5I0LDthlrWTk73otsFXSVbiNYyAgGZjLYT0pftpjhGzQEAtnolQoAEB3omnxNq8am4iMqwwviuaXRHjiYWY7YaPITlDN7cDN9obnhEqhDhkgKphRBY5frTfD6unwTB4w7j6hpY2zNNzWwbNJzPGgDmQ8WhBDnpq1fQOilrcDspY7SGkNDfjxpGTQyNSNsmF4B2uHHLhGhhxG2qVq2bFUvHFqSL8atQAuYpyn3wplW21v88N96PnF0MEV</xJust><NFref><refCTe>19506188293993666630760813709064781438945816</refCTe></NFref></ide><emit><CPF>12345678901</CPF><xNome>Rhass3yMarv7W26gljGNMGXXyPZfSFDEiN472mTU7UWxokviyHMfeD7vCVg3</xNome><xFant>TKuTABBqcwEOeMwQepTIAvhOPx8qDf8Q5C8fbGgjonxl1ML9NErg9yVk2bGn</xFant><enderEmit><xLgr>NKwaAJ5ZJ49aQYmqBvxMhBzkGUqvtXnqusGEtjDzKCXPGwrEZCS8LGKHyBbV</xLgr><nro>11mzXHR8rZTgfE35EqfGhiShiIwQfLCAziFDXVgs3EjLSPkZkCvfGNLMEf5y</nro><xCpl>Fr3gSvoAeKbGpQD3r98KFeB50P3Gq14XBVsv5fpiaBvJ3HTOpREiwYGs20Xw</xCpl><xBairro>67LQFlXOBK0JqAE1rFi2CEyUGW5Z8QmmHhzmZ9GABVLKa9AbV0uFR0onl7nU</xBairro><cMun>9999999</cMun><xMun>s1Cr2hWP6bptQ80A9vWBuTaODR1U82LtKQi1DEm3LsAXu9AbkSeCtfXJVTKG</xMun><UF>RS</UF><CEP>88095550</CEP><cPais>1058</cPais><fone>12345678901324</fone></enderEmit><IE>12345678901234</IE><IEST>84371964648860</IEST><IM>zjfBnFVG8TBq8iW</IM><CNAE>0111111</CNAE><CRT>3</CRT></emit><avulsa><CNPJ>12345678901234</CNPJ><xOrgao>qNre0x2eJthUYIoKBuBbbGSeA4R2wrDLxNwCuDFkYD54flBLbBBMakGDgQUV</xOrgao><matr>Nn5PPREBbkfmmk4lBFwgvkuKg8prnY5CPqHIzqGiD1lTnZJ37nAZ4NBc8XwM</matr><xAgente>lkLip3hIYSAIzH3Tf1LWQsaybqB76V66lMgWBcHVwcOKInuJ8mGUyY8DT4NL</xAgente><fone>81579357</fone><UF>RS</UF><nDAR>qqDt1f1ulcahrBnUH0otPFkjYqD2tH4ktYsR71WSYZLFW1zZObAqajHHkyxi</nDAR><dEmi>2014-01-13</dEmi><vDAR>999999999999.99</vDAR><repEmi>YQFmDI2HBjjfZpRjR2ghwmSo1oWk5QgUEYf2oG46uEHwY4zsXyH1ORSr8oq3</repEmi><dPag>2014-03-21</dPag></avulsa><dest><CNPJ>12345678901234</CNPJ><xNome>F7HL85M9v7jW5lX4Z9V7sF3kshuj967gj4uACEmpmVQgM9yYeQAgaY5EcSfR</xNome><enderDest><xLgr>NKwaAJ5ZJ49aQYmqBvxMhBzkGUqvtXnqusGEtjDzKCXPGwrEZCS8LGKHyBbV</xLgr><nro>11mzXHR8rZTgfE35EqfGhiShiIwQfLCAziFDXVgs3EjLSPkZkCvfGNLMEf5y</nro><xCpl>Fr3gSvoAeKbGpQD3r98KFeB50P3Gq14XBVsv5fpiaBvJ3HTOpREiwYGs20Xw</xCpl><xBairro>67LQFlXOBK0JqAE1rFi2CEyUGW5Z8QmmHhzmZ9GABVLKa9AbV0uFR0onl7nU</xBairro><cMun>9999999</cMun><xMun>s1Cr2hWP6bptQ80A9vWBuTaODR1U82LtKQi1DEm3LsAXu9AbkSeCtfXJVTKG</xMun><UF>RS</UF><CEP>88095550</CEP><cPais>1058</cPais><fone>12345678901324</fone></enderDest><indIEDest>9</indIEDest><IE>13245678901234</IE><ISUF>999999999</ISUF><IM>5ow5E1mZQPe1VUR</IM><email>ivU3ctXKzImStrYzRpDTXRyCfSzxlEe5GTbeyVZ1OlIvgKGLJJMJlaKtYj8K</email></dest><retirada><CNPJ>12345678901234</CNPJ><xLgr>t59le7pl2eVn390y026Ebgh3HXtvEBzsMp4BzZJEwIazezToxeeKJCvm1GoG</xLgr><nro>YHTewrLNvzYaBmSbwxkDYcEZTCMORFVPAc6t6C5p0Bfu1globey70KWnaHHa</nro><xCpl>ifyKIg3j3eZtlNVAj3XJYZiJCrul6VLL85E7x6Kx6DVeChwlRLEkCQn7k5pe</xCpl><xBairro>JE17uXBNBnYTSTSQgqXcGLOR6f22SnahtFHr5MoHQZtZhTowVe3SVwl57kil</xBairro><cMun>9999999</cMun><xMun>OpXKhaHINo7OwLkVGvRq43HNwyBAgXTKcarl6Jsq8NzOBs70eZM4zL6fELOI</xMun><UF>RS</UF></retirada><entrega><CNPJ>12345678901234</CNPJ><xLgr>t59le7pl2eVn390y026Ebgh3HXtvEBzsMp4BzZJEwIazezToxeeKJCvm1GoG</xLgr><nro>YHTewrLNvzYaBmSbwxkDYcEZTCMORFVPAc6t6C5p0Bfu1globey70KWnaHHa</nro><xCpl>ifyKIg3j3eZtlNVAj3XJYZiJCrul6VLL85E7x6Kx6DVeChwlRLEkCQn7k5pe</xCpl><xBairro>JE17uXBNBnYTSTSQgqXcGLOR6f22SnahtFHr5MoHQZtZhTowVe3SVwl57kil</xBairro><cMun>9999999</cMun><xMun>OpXKhaHINo7OwLkVGvRq43HNwyBAgXTKcarl6Jsq8NzOBs70eZM4zL6fELOI</xMun><UF>RS</UF></entrega><autXML><CNPJ>12345678901234</CNPJ></autXML><det nItem=\"990\"><prod><cProd>ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcq</cProd><cEAN>36811963532505</cEAN><xProd>OBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74DyJuIM0X7L0cqWPZQii5JtP</xProd><NCM>99999999</NCM><NVE>AZ0123</NVE><CEST>9999999</CEST><EXTIPI>999</EXTIPI><CFOP>1302</CFOP><uCom>Bta64y</uCom><qCom>9999999999.9999</qCom><vUnCom>9999999999.9999999999</vUnCom><vProd>999999999999.99</vProd><cEANTrib>36811963532505</cEANTrib><uTrib>7wqG4h</uTrib><qTrib>9999999999.9999</qTrib><vUnTrib>9999999999.9999999999</vUnTrib><vFrete>999999999999.99</vFrete><vSeg>999999999999.99</vSeg><vDesc>999999999999.99</vDesc><vOutro>999999999999.99</vOutro><indTot>1</indTot><DI><nDI>ZRJihqWLyHnb</nDI><dDI>2014-02-02</dDI><xLocDesemb>kiVfWKB94ggsrWND0XBXwEjJkoiTXhkmX9qKGKzjpnEHHp852bDkYeEUkzpU</xLocDesemb><UFDesemb>RS</UFDesemb><dDesemb>2014-01-01</dDesemb><tpViaTransp>4</tpViaTransp><vAFRMM>999999999999.99</vAFRMM><tpIntermedio>3</tpIntermedio><CNPJ>12345678901234</CNPJ><UFTerceiro>RS</UFTerceiro><cExportador>E9jBqM65b0MiCiRnYil203iNGJOSZs8iU1KGmQsj2N0kw6QMuvhbsQosFGcU</cExportador><adi><nAdicao>999</nAdicao><nSeqAdic>999</nSeqAdic><cFabricante>sA2FBRFMMNgF1AKRDDXYOlc3zGvzEc69l6zQ5O5uAUe82XZ3szQfw01DW0Ki</cFabricante><vDescDI>999999999999.99</vDescDI><nDraw>99999999999</nDraw></adi></DI><xPed>NNxQ9nrQ3HCe5Mc</xPed><nItemPed>999999</nItemPed><med><nLote>yq50jVDZsvQVNuWoS45U</nLote><qLote>9999999.999</qLote><dFab>2014-01-01</dFab><dVal>2015-01-01</dVal><vPMC>999999999999.99</vPMC></med></prod><imposto><vTotTrib>999999999999.99</vTotTrib><ICMS><ICMS00><orig>0</orig><CST>00</CST><modBC>1</modBC><vBC>999999999999.99</vBC><pICMS>99.99</pICMS><vICMS>999999999999.99</vICMS></ICMS00></ICMS><IPI><clEnq>157br</clEnq><CNPJProd>12345678901234</CNPJProd><cSelo>iNEFifS1jexTxcCvgjlQ186nR6JAwM2koyjbWKA1DJSLmZy432GoSwoygXc5</cSelo><qSelo>999999999999</qSelo><cEnq>aT2</cEnq><IPITrib><CST>49</CST><vBC>999999999999.99</vBC><pIPI>99.99</pIPI><vIPI>999999999999.99</vIPI></IPITrib></IPI><II><vBC>999999999999.99</vBC><vDespAdu>999999999999.99</vDespAdu><vII>999999999999.99</vII><vIOF>999999999999.99</vIOF></II><PIS><PISAliq><CST>01</CST><vBC>999999999999.99</vBC><pPIS>99.99</pPIS><vPIS>999999999999.99</vPIS></PISAliq></PIS><PISST><qBCProd>99999999999.9999</qBCProd><vAliqProd>9999999999.9999</vAliqProd><vPIS>999999999999.99</vPIS></PISST><COFINS><COFINSAliq><CST>01</CST><vBC>999999999999.99</vBC><pCOFINS>99.99</pCOFINS><vCOFINS>999999999999.99</vCOFINS></COFINSAliq></COFINS><COFINSST><vBC>999999999999.99</vBC><pCOFINS>99.99</pCOFINS><vCOFINS>999999999999.00</vCOFINS></COFINSST><ICMSUFDest><vBCUFDest>9999999999999.99</vBCUFDest><pFCPUFDest>999.9999</pFCPUFDest><pICMSUFDest>999.9999</pICMSUFDest><pICMSInter>7.00</pICMSInter><pICMSInterPart>999.9999</pICMSInterPart><vFCPUFDest>9999999999999.99</vFCPUFDest><vICMSUFDest>9999999999999.99</vICMSUFDest><vICMSUFRemet>9999999999999.99</vICMSUFRemet></ICMSUFDest></imposto><impostoDevol><pDevol>100.00</pDevol><IPI><vIPIDevol>9999999999999.99</vIPIDevol></IPI></impostoDevol><infAdProd>R3s36BVI9k15xOe3hnlEpZRpPHEom9inv4hE1oo8hzHYG8X6D9sQjt6oLYiH6yToSFM95zueMhE4s270GB7iLUKcQTRHWLcHb1TU2fSYx2NAz5ZflI3hoTnN8zmqJtGzneaNpDRA5gJW7wxMg9IXIuUCxg25MlIQ46AbDQNc3HLl82g3awWKigBMli0bUEWIMf8C2GG2sB2Y9w1GnsfiDvw7RUuU5vATfWWvYFRCehm2UpDhBlrBjjXcWKYzXsT3x2PNtCC82JqY1nkKrgt2AHCPUjM0tCQk5EHFcssb8I0Rkc4s8aNcARXtFrBzmWqXDQPmCpLIGaAo7LlypOKKaqUNqkRkf8c930p8HaRDvQJealZsVnpwJn3Ev7yEaBZ9INe5PXFwkTQEfpNE3B8IokFMh0aUbu8mfzjKLBazSKW2qA4faIo2Wp5FmOmTzCMiPqznOq3Bl0zM4wmuo0rOXbswjaCUzPB0KpM8Yaze9TArOEDrV6Li</infAdProd></det><total><ICMSTot><vBC>999999999999.99</vBC><vICMS>999999999999.99</vICMS><vICMSDeson>999999999999.99</vICMSDeson><vFCPUFDest>999999999999.99</vFCPUFDest><vICMSUFDest>999999999999.99</vICMSUFDest><vICMSUFRemet>999999999999.99</vICMSUFRemet><vBCST>999999999999.99</vBCST><vST>999999999999.99</vST><vProd>999999999999.99</vProd><vFrete>999999999999.99</vFrete><vSeg>999999999999.99</vSeg><vDesc>999999999999.99</vDesc><vII>999999999999.99</vII><vIPI>999999999999.99</vIPI><vPIS>999999999999.99</vPIS><vCOFINS>999999999999.99</vCOFINS><vOutro>999999999999.99</vOutro><vNF>999999999999.99</vNF></ICMSTot><ISSQNtot><vServ>999999999999.99</vServ><vBC>999999999999.99</vBC><vISS>999999999999.99</vISS><vPIS>999999999999.99</vPIS><vCOFINS>999999999999.99</vCOFINS><dCompet>2014-01-01</dCompet><vDeducao>999999999999.99</vDeducao><vOutro>999999999999.99</vOutro><vDescIncond>999999999999.99</vDescIncond><vDescCond>999999999999.99</vDescCond><vISSRet>999999999999.99</vISSRet><cRegTrib>3</cRegTrib></ISSQNtot><retTrib><vRetPIS>999999999999.99</vRetPIS><vRetCOFINS>999999999999.99</vRetCOFINS><vRetCSLL>999999999999.99</vRetCSLL><vBCIRRF>999999999999.99</vBCIRRF><vIRRF>999999999999.99</vIRRF><vBCRetPrev>999999999999.99</vBCRetPrev><vRetPrev>999999999999.99</vRetPrev></retTrib></total><transp><modFrete>9</modFrete><transporta><CNPJ>34843274000164</CNPJ><xNome>4lb4Qv5yi9oYq7s8fF98a0EEv98oAxl0CIs5gzyKNVp1skE3IHD9Z7JbjHCn</xNome><IE>ISENTO</IE><xEnder>D8nOWsHxI5K4RgYTUGwWgIKajhiUf4Q7aOOmaTV2wnYV0kQ5MezOjqfoPcNY</xEnder><xMun>4lb4Qv5yi9oYq7s8fF98a0EEv98oAxl0CIs5gzyKNVp1skE3IHD9Z7JbjHCn</xMun><UF>SP</UF></transporta><retTransp><vServ>999999999999.99</vServ><vBCRet>999999999999.99</vBCRet><pICMSRet>99.99</pICMSRet><vICMSRet>999999999999.99</vICMSRet><CFOP>5351</CFOP><cMunFG>9999999</cMunFG></retTransp><reboque><placa>MKZ4891</placa><UF>SC</UF></reboque><vol><qVol>99999999999</qVol><esp>3Qf46HFs7FcWlhuQqLJ96vsrgJHu6B5ZXmmwMZ1RtvQVOV4Yp6M9VNqn5Ecb</esp><marca>lc0w13Xw2PxsSD4u4q3N6Qix9ZuCFm0HXo6BxBmKnjVbh9Xwy3k9UwBNfuYo</marca><nVol>mcBUtZwnI5DKj2YZNAcLP7W9h6j1xKmF5SX1BTKmsvyg0H5xSrfVw8HGn8eb</nVol><pesoL>1.000</pesoL><pesoB>1.358</pesoB><lacres><nLacre>gvmjb9BB2cmwsLbzeR3Bsk8QbA7b1XEgXUhKeS9QZGiwhFnqDtEzS3377MP2</nLacre></lacres></vol></transp><cobr><fat><nFat>KDVAp0aewPjmHaTsjbDX1O6NOR9tc7TxGflFLXsMZt2hEKar3oqzZ11uzEQF</nFat><vOrig>3001.15</vOrig><vDesc>0.15</vDesc><vLiq>3000.00</vLiq></fat><dup><nDup>TQ49cyOL5KtBAUTF0LShhThpUbtCK1fQH1PH4AMcKzMNLxyDbV957IRhWK8Z</nDup><dVenc>2014-07-10</dVenc><vDup>999999.99</vDup></dup></cobr><pag><tPag>03</tPag><vPag>999999999999.99</vPag><card><tpIntegra>1</tpIntegra><CNPJ>12345678901234</CNPJ><tBand>02</tBand><cAut>9ItpS1hBk3TyhjUB3I90</cAut></card></pag><infAdic><infAdFisco>qe7Qi21GMSBan0iZLatpXAQAEhXEWZAO0HhHlQLlX18rryo9e1IX5Prav6fvNgZwfppMXa2RzJ7wyDH4gK3VEjeTARJ2iOLtZFDWrEaNMcGnKiusILw5bnRqBLxQfrtkTwcikLpsoI3ULurBUMMbSh1nJboZzwHUhWfArMie6CK1qBWeqgDUqMLXvkyZN66tOcBU4gv6oPZLaIJkblNYTZTEe4L1B5fx2TWec7P5Fi6HTWZiupnonWvZ51tPotK8g52ZUPXSl0lDbtWEkCGgWch0LX5xaalPL4taLgXJo1aJ1KwqSGh2SXPX9Vp316yZX6kiw6Z2yQnBN0cEfbVLp8wlYaAtsyWRGBSpqg6L3yjyciUeXkIWziOzuK0mtHsgqlXVcXLbh6sfx1zv9R3E3ITMbWOKMknfnrvoffPGJYj6p3300K4vfvUBo8ryf54eEHDhNHeegc4LMtrg2KYmr1a3QweF5B2lgNsWoyKkZ1eBU81vBNJsK9qwgeRxwBj5wqbYkk6JIKKiSbhPgP0IE7NsuobmoSyraX5QJCNyayP1oGJxLSuHR7YCGNXYJIDv3LErhgyo3qKPsLHznYP0PfSrlOSjkJzMT4A0jUrXBH3g2coof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8fpV402GXe3nXEHXJKJo</xTexto></obsCont><obsFisco xCampo=\"kRkrK4FGWOn27RSjYjMB\"><xTexto>ML73tIXUvsLEMijwgwjHVRfpP6upxiuipvEcQcSp8fpV402GXe3nXEHXJKJo</xTexto></obsFisco><procRef><nProc>SziSRSIRZvYWlxcbmmJfRZsLgVHaHTurUL9ea1kwFe7fssrxTVSK6uaFwGO5</nProc><indProc>1</indProc></procRef></infAdic><exporta><UFSaidaPais>RS</UFSaidaPais><xLocExporta>xEb99u9TExujbhMIcO9u9ycsZAg2gtKzIFgsUogoVjuyDAhnlkZz3I5Hpccm</xLocExporta><xLocDespacho>xEb99u9TExujbhMIcO9u9ycsZAg2gtKzIFgsUogoVjuyDAhnlkZz3I5Hpccm</xLocDespacho></exporta><compra><xNEmp>abcefghijklmnopqrstuvx</xNEmp><xPed>1kG8gghJ0YTrUZnt00BJlOsFCtj43eV5mEHHXUzp3rD6QwwUwX4GPavXkMB1</xPed><xCont>9tQtearTIcXmO9vxNr3TPhSaItw5mk3zyTVlf2aIFXqqvtXrHoa0qPWKzUzc</xCont></compra><cana><safra>2013/2014</safra><ref>06/2013</ref><forDia dia=\"15\"><qtde>3</qtde></forDia><qTotMes>30.0000001</qTotMes><qTotAnt>10</qTotAnt><qTotGer>80</qTotGer><vFor>900.00</vFor><vTotDed>2000.70</vTotDed><vLiqFor>980.00</vLiqFor></cana></infNFe></NFe></enviNFe>";
Assert.assertEquals(xmlEsperado, loteEnvio.toString());
}
| loteEnvio.setNotas(Collections.singletonList(FabricaDeObjetosFake.getNFNota()));
|
41,872 | import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
<BUG>import java.util.Arrays;
public class FabricaDeObjetosFake {</BUG>
public static NFInformacaoImpostoDevolvido getNFInformacaoImpostoDevolvido() {
final NFInformacaoImpostoDevolvido informacaoImpostoDevolvido = new NFInformacaoImpostoDevolvido();
informacaoImpostoDevolvido.setValorIPIDevolvido(new BigDecimal("9999999999999.99"));
| import java.util.Collections;
public class FabricaDeObjetosFake {
|
41,873 | info.setEmitente(FabricaDeObjetosFake.getNFNotaInfoEmitente());
info.setEntrega(FabricaDeObjetosFake.getNFNotaInfoLocal());
info.setExportacao(FabricaDeObjetosFake.getNFNotaInfoExportacao());
info.setIdentificador("89172658591754401086218048846976493475937081");
info.setInformacoesAdicionais(FabricaDeObjetosFake.getNFNotaInfoInformacoesAdicionais());
<BUG>info.setPessoasAutorizadasDownloadNFe(Arrays.asList(FabricaDeObjetosFake.getPessoaAutorizadaDownloadNFe()));
</BUG>
final NFNotaInfoItem item = new NFNotaInfoItem();
final NFNotaInfoItemImposto imposto = new NFNotaInfoItemImposto();
final NFNotaInfoItemImpostoCOFINS cofins = new NFNotaInfoItemImpostoCOFINS();
| info.setPessoasAutorizadasDownloadNFe(Collections.singletonList(FabricaDeObjetosFake.getPessoaAutorizadaDownloadNFe()));
|
41,874 | imposto.setValorTotalTributos(new BigDecimal("999999999999.99"));
item.setImposto(imposto);
item.setNumeroItem(990);
item.setProduto(FabricaDeObjetosFake.getProdutoMedicamento());
item.setImpostoDevolvido(FabricaDeObjetosFake.getNFImpostoDevolvido());
<BUG>info.setItens(Arrays.asList(item));
info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal());</BUG>
info.setTotal(FabricaDeObjetosFake.getNFNotaInfoTotal());
info.setTransporte(FabricaDeObjetosFake.getNFNotaInfoTransporte());
info.setVersao(new BigDecimal("3.10"));
| info.setItens(Collections.singletonList(item));
info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal());
|
41,875 | identificacao.setFormaPagamento(NFFormaPagamentoPrazo.A_PRAZO);
identificacao.setModelo(NFModelo.NFE);
identificacao.setNaturezaOperacao("qGYcW8I1iak14NF7vnfc8XpPYkrHWB5J7Vm3eOAe57azf1fVP7vEOY7TrRVQ");
identificacao.setNumeroNota("999999999");
identificacao.setProgramaEmissor(NFProcessoEmissor.CONTRIBUINTE);
<BUG>identificacao.setReferenciadas(Arrays.asList(referenciada));
</BUG>
identificacao.setSerie("999");
identificacao.setTipo(NFTipo.ENTRADA);
identificacao.setTipoEmissao(NFTipoEmissao.EMISSAO_NORMAL);
| identificacao.setReferenciadas(Collections.singletonList(referenciada));
|
41,876 | produtoMedicamento.setCfop("1302");
produtoMedicamento.setCodigo("ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcq");
produtoMedicamento.setCodigoDeBarras("36811963532505");
produtoMedicamento.setCodigoDeBarrasTributavel("36811963532505");
produtoMedicamento.setCampoeValorNota(NFProdutoCompoeValorNota.SIM);
<BUG>produtoMedicamento.setDeclaracoesImportacao(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacao()));
</BUG>
produtoMedicamento.setDescricao("OBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74DyJuIM0X7L0cqWPZQii5JtP");
produtoMedicamento.setExtipi("999");
produtoMedicamento.setNcm("99999999");
| produtoMedicamento.setDeclaracoesImportacao(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacao()));
|
41,877 | produtoMedicamento.setValorSeguro(new BigDecimal("999999999999.99"));
produtoMedicamento.setValorTotalBruto(new BigDecimal("999999999999.99"));
produtoMedicamento.setValorUnitario(new BigDecimal("9999999999.9999999999"));
produtoMedicamento.setValorUnitarioTributavel(new BigDecimal("9999999999.9999999999"));
produtoMedicamento.setVeiculo(FabricaDeObjetosFake.getNFNotaInfoItemProdutoVeiculo());
<BUG>produtoMedicamento.setNomeclaturaValorAduaneiroEstatistica(Arrays.asList("AZ0123"));
</BUG>
return produtoMedicamento;
}
public static NFNota getNFNota() {
| produtoMedicamento.setNomeclaturaValorAduaneiroEstatistica(Collections.singletonList("AZ0123"));
|
41,878 | info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal());
info.setTotal(FabricaDeObjetosFake.getNFNotaInfoTotal());
info.setTransporte(FabricaDeObjetosFake.getNFNotaInfoTransporte());
info.setVersao(new BigDecimal("3.10"));
<BUG>info.setPessoasAutorizadasDownloadNFe(Arrays.asList(FabricaDeObjetosFake.getPessoaAutorizadaDownloadNFe()));
</BUG>
return info;
}
public static NFNota getNotaQRCode(){
NFNota nota = new NFNota();
| info.setPessoasAutorizadasDownloadNFe(Collections.singletonList(FabricaDeObjetosFake.getPessoaAutorizadaDownloadNFe()));
|
41,879 | identificacao.setFormaPagamento(NFFormaPagamentoPrazo.A_PRAZO);
identificacao.setModelo(NFModelo.NFE);
identificacao.setNaturezaOperacao("qGYcW8I1iak14NF7vnfc8XpPYkrHWB5J7Vm3eOAe57azf1fVP7vEOY7TrRVQ");
identificacao.setNumeroNota("999999999");
identificacao.setProgramaEmissor(NFProcessoEmissor.CONTRIBUINTE);
<BUG>identificacao.setReferenciadas(Arrays.asList(FabricaDeObjetosFake.getNFInfoReferenciada()));
</BUG>
identificacao.setSerie("999");
identificacao.setTipo(NFTipo.ENTRADA);
identificacao.setTipoEmissao(NFTipoEmissao.EMISSAO_NORMAL);
| identificacao.setReferenciadas(Collections.singletonList(FabricaDeObjetosFake.getNFInfoReferenciada()));
|
41,880 | return compra;
}
public static NFNotaInfoCobranca getNFNotaInfoCobranca() {
final NFNotaInfoCobranca cobranca = new NFNotaInfoCobranca();
cobranca.setFatura(FabricaDeObjetosFake.getNFNotaInfoFatura());
<BUG>cobranca.setDuplicatas(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoDuplicata()));
</BUG>
return cobranca;
}
public static NFNotaInfoAvulsa getNFNotaInfoAvulsa() {
| cobranca.setDuplicatas(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoDuplicata()));
|
41,881 | </BUG>
produto.setDescricao("OBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74DyJuIM0X7L0cqWPZQii5JtP");
produto.setExtipi("999");
produto.setCodigoEspecificadorSituacaoTributaria("9999999");
<BUG>produto.setMedicamentos(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoMedicamento()));
</BUG>
produto.setNcm("99999999");
produto.setNumeroPedidoCliente("NNxQ9nrQ3HCe5Mc");
produto.setNumeroPedidoItemCliente(999999);
produto.setQuantidadeComercial(new BigDecimal("9999999999.9999"));
| produto.setCfop("1302");
produto.setCodigo("ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcq");
produto.setCodigoDeBarras("36811963532505");
produto.setCodigoDeBarrasTributavel("36811963532505");
produto.setCampoeValorNota(NFProdutoCompoeValorNota.SIM);
produto.setDeclaracoesImportacao(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacao()));
produto.setMedicamentos(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoMedicamento()));
|
41,882 | produto.setValorFrete(new BigDecimal("999999999999.99"));
produto.setValorOutrasDespesasAcessorias(new BigDecimal("999999999999.99"));
produto.setValorSeguro(new BigDecimal("999999999999.99"));
produto.setValorTotalBruto(new BigDecimal("999999999999.99"));
produto.setValorUnitario(new BigDecimal("9999999999.9999999999"));
<BUG>produto.setNomeclaturaValorAduaneiroEstatistica(Arrays.asList("AZ0123"));
</BUG>
produto.setValorUnitarioTributavel(new BigDecimal("9999999999.9999999999"));
return produto;
}
| produto.setNomeclaturaValorAduaneiroEstatistica(Collections.singletonList("AZ0123"));
|
41,883 | medicamento.setQuantidade(new BigDecimal("9999999.999"));
return medicamento;
}
public static NFNotaInfoItemProdutoDeclaracaoImportacao getNFNotaInfoItemProdutoDeclaracaoImportacao() {
final NFNotaInfoItemProdutoDeclaracaoImportacao declaraoImportacao = new NFNotaInfoItemProdutoDeclaracaoImportacao();
<BUG>declaraoImportacao.setAdicoes(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacaoAdicao()));
</BUG>
declaraoImportacao.setCodigoExportador("E9jBqM65b0MiCiRnYil203iNGJOSZs8iU1KGmQsj2N0kw6QMuvhbsQosFGcU");
declaraoImportacao.setDataDesembaraco(new LocalDate(2014, 1, 1));
declaraoImportacao.setDataRegistro(new LocalDate(2014, 2, 2));
| declaraoImportacao.setAdicoes(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacaoAdicao()));
|
41,884 | public static NFNotaInfoVolume getNFNotaInfoVolume() {
final NFNotaInfoVolume volume = new NFNotaInfoVolume();
volume.setEspecieVolumesTransportados("3Qf46HFs7FcWlhuQqLJ96vsrgJHu6B5ZXmmwMZ1RtvQVOV4Yp6M9VNqn5Ecb");
final NFNotaInfoLacre notaInfoLacre = new NFNotaInfoLacre();
notaInfoLacre.setNumeroLacre("gvmjb9BB2cmwsLbzeR3Bsk8QbA7b1XEgXUhKeS9QZGiwhFnqDtEzS3377MP2");
<BUG>volume.setLacres(Arrays.asList(notaInfoLacre));
</BUG>
volume.setMarca("lc0w13Xw2PxsSD4u4q3N6Qix9ZuCFm0HXo6BxBmKnjVbh9Xwy3k9UwBNfuYo");
volume.setNumeracaoVolumesTransportados("mcBUtZwnI5DKj2YZNAcLP7W9h6j1xKmF5SX1BTKmsvyg0H5xSrfVw8HGn8eb");
volume.setPesoBruto(new BigDecimal("1.358"));
| volume.setLacres(Collections.singletonList(notaInfoLacre));
|
41,885 | public void deveGerarXMLDeAcordoComOPadraoEstabelecido() {
final NFLoteConsultaRetorno retorno = new NFLoteConsultaRetorno();
retorno.setAmbiente(NFAmbiente.HOMOLOGACAO);
retorno.setMotivo("8CwtnC5gWwUncMBYAZl9p4fvVx8RkCH2EKx2mtUNVA5tLoJsjNWL5CJ6DXNUHTWKpPl6fMKKxA0aXBu6IfmJLIHlPxtF0oZkKrNsGyGpwKqWxvDZ9HQGqscmhtTrp5NbNzk9TOsCJaMU59tF8kOxu0EUZAMLF8bGJteg86T4hQ6ej5Zi0n1Tin0vFAtN1ue68NWrfQWM11VPpqvSXRlaa8qIw1Qal8tWCFGJA0wZpl7eV98bAYL18pt3e71yKcX");
retorno.setNumeroRecibo("123456789012345");
<BUG>retorno.setProtocolos(Arrays.asList(FabricaDeObjetosFake.getNFProtocolo()));
</BUG>
retorno.setStatus("eeowo");
retorno.setUf(NFUnidadeFederativa.SC);
retorno.setVersao("3.10");
| retorno.setProtocolos(Collections.singletonList(FabricaDeObjetosFake.getNFProtocolo()));
|
41,886 | import java.util.Set;
public class AddressSettingsElement extends AbstractModelElement<AddressSettingsElement> implements ServiceActivator {
private static final long serialVersionUID = 1L;
private static final Logger log = Logger.getLogger("org.jboss.as.messaging");
public AddressSettingsElement(final XMLExtendedStreamReader reader, Configuration config) throws XMLStreamException {
<BUG>System.out.println("Begin " + reader.getLocation() + reader.getLocalName());
int tag = reader.getEventType();</BUG>
String localName = null;
do {
tag = reader.nextTag();
| boolean trace = log.isTraceEnabled();
if(trace)
log.trace("Begin " + reader.getLocation() + reader.getLocalName()); // Handle elements
int tag = reader.getEventType();
|
41,887 | String match = reader.getAttributeValue(0);
Pair<String, AddressSettings> settings = parseAddressSettings(reader, match);
config.getAddressesSettings().put(settings.a, settings.b);
break;
}
<BUG>} while (reader.hasNext() && localName.equals(Element.ADDRESS_SETTING.getLocalName()));
}</BUG>
@Override
public long elementHash() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
| if(trace)
log.trace("End " + reader.getLocation() + reader.getLocalName());
|
41,888 | public long elementHash() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
protected Class<AddressSettingsElement> getElementClass() {
<BUG>return null; //To change body of implemented methods use File | Settings | File Templates.
</BUG>
}
@Override
public void writeContent(XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
| return AddressSettingsElement.class; //To change body of implemented methods use File | Settings | File Templates.
|
41,889 | import java.util.List;
import java.util.Set;
public class AcceptorsElement extends AbstractModelElement<AcceptorsElement> implements ServiceActivator {
private static final long serialVersionUID = 1L;
private static final Logger log = Logger.getLogger("org.jboss.as.messaging");
<BUG>public AcceptorsElement(final XMLExtendedStreamReader reader, Configuration config) throws XMLStreamException {
System.out.println("Begin " + reader.getLocation() + reader.getLocalName());
</BUG>
int tag = reader.getEventType();
String localName = null;
| boolean trace = log.isTraceEnabled();
if(trace)
log.trace("Begin " + reader.getLocation() + reader.getLocalName());
|
41,890 | String name = reader.getAttributeValue(0);
TransportConfiguration acceptorConfig = ElementUtils.parseTransportConfiguration(reader, name, Element.ACCEPTOR);
config.getAcceptorConfigurations().add(acceptorConfig);
break;
}
<BUG>} while (reader.hasNext() && localName.equals(Element.ACCEPTOR.getLocalName()));
}</BUG>
@Override
public long elementHash() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
| if(trace)
log.trace("End " + reader.getLocation() + reader.getLocalName());
|
41,891 | public long elementHash() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
protected Class<AcceptorsElement> getElementClass() {
<BUG>return null; //To change body of implemented methods use File | Settings | File Templates.
}</BUG>
@Override
public void writeContent(XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
}
| return AcceptorsElement.class;
|
41,892 | import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
public class DependencyConvergenceReport
extends AbstractProjectInfoReport
<BUG>{
private List reactorProjects;
private static final int PERCENTAGE = 100;</BUG>
public String getOutputName()
{
| private static final int PERCENTAGE = 100;
private static final List SUPPORTED_FONT_FAMILY_NAMES = Arrays.asList( GraphicsEnvironment
.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() );
|
41,893 | sink.section1();
sink.sectionTitle1();
sink.text( getI18nString( locale, "title" ) );
sink.sectionTitle1_();
Map dependencyMap = getDependencyMap();
<BUG>generateLegend( locale, sink );
generateStats( locale, sink, dependencyMap );
generateConvergence( locale, sink, dependencyMap );
sink.section1_();</BUG>
sink.body_();
| sink.lineBreak();
sink.section1_();
|
41,894 | Iterator it = artifactMap.keySet().iterator();
while ( it.hasNext() )
{
String version = (String) it.next();
sink.tableRow();
<BUG>sink.tableCell();
sink.text( version );</BUG>
sink.tableCell_();
sink.tableCell();
generateVersionDetails( sink, artifactMap, version );
| sink.tableCell( String.valueOf( cellWidth ) + "px" );
sink.text( version );
|
41,895 | sink.tableCell();
sink.text( getI18nString( locale, "legend.shared" ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableCell();
iconError( sink );</BUG>
sink.tableCell_();
sink.tableCell();
sink.text( getI18nString( locale, "legend.different" ) );
| sink.tableCell( "15px" ); // according /images/icon_error_sml.gif
iconError( sink );
|
41,896 | sink.tableCaption();
sink.text( getI18nString( locale, "stats.caption" ) );
sink.tableCaption_();</BUG>
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.subprojects" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
sink.tableCell_();
| sink.bold();
sink.bold_();
sink.tableCaption_();
sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.subprojects" ) );
sink.tableHeaderCell_();
|
41,897 | sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( depCount ) );
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.dependencies" ) );
sink.tableHeaderCell_();
|
41,898 | sink.text( String.valueOf( convergence ) + "%" );
sink.bold_();
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.readyrelease" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
if ( convergence >= PERCENTAGE && snapshotCount <= 0 )
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.readyrelease" ) );
sink.tableHeaderCell_();
|
41,899 | {
ReverseDependencyLink p1 = (ReverseDependencyLink) o1;
ReverseDependencyLink p2 = (ReverseDependencyLink) o2;
return p1.getProject().getId().compareTo( p2.getProject().getId() );
}
<BUG>else
{</BUG>
return 0;
}
}
| iconError( sink );
|
41,900 | private String ref;
private String priority;
private String name;
private String message;
private List<PmdProperty> properties = new ArrayList<PmdProperty>();
<BUG>private String clazz;// NOSONAR unused private field
public PmdRule(String ref) {</BUG>
this(ref, null);
}
public PmdRule(String ref, String priority) {
| private String clazz;
public PmdRule(String ref) {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.