nus-yam/ex-repair huggingface dataset:
Buggy code:
public class ShoppingCartItem { private final String name ; private final String type ; private final String size ; private final String logo ; private int amount ; private double price ; public ShoppingCartItem ( String name , String type , String size , String logo , int amount , double price ) { } public ShoppingCartItem ( String name , String type , String size , String logo , int amount ) { } public int getAmount ( ) { } public void setAmount ( int amount ) { } public String getName ( ) { } public String getType ( ) { } public String getSize ( ) { } public String getLogo ( ) { } public double getPrice ( ) { } @ Override public String toString ( ) { } public String toFileString ( ) { } public JocolateModel toJocolateModel ( ) { <START_BUG> if ( ( ( ( ! ( logo . equals ( "Default" ) ) ) || ( ! ( logo . equals ( "PetritzDesigns" ) ) ) ) || ( ! ( logo . equals ( "jCorn" ) ) ) ) || ( ! ( logo . equals ( "Happy<seq2seq4repair_space>Birthday" ) ) ) ) { <END_BUG> return new JocolateModel ( type , size , "Text" , logo , amount ) ; } else { return new JocolateModel ( type , size , logo , amount ) ; } } }

Fix:
if ( ( ( ( ! ( logo . equals ( "Default" ) ) ) && ( ! ( logo . equals ( "PetritzDesigns" ) ) ) ) && ( ! ( logo . equals ( "jCorn" ) ) ) ) && ( ! ( logo . equals ( "Happy<seq2seq4repair_space>Birthday" ) ) ) ) {
Buggy code:
public final class JVMEnvironmentVariableRemoveHandler implements OperationStepHandler , DescriptionProvider { public static final String OPERATION_NAME = "remove-item-from-environment-variables-list" ; static final JVMEnvironmentVariableRemoveHandler INSTANCE = new JVMEnvironmentVariableRemoveHandler ( ) ; private final ParameterValidator validator = new StringLengthValidator ( 1 ) ; @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { validator . validateParameter ( NAME , operation . get ( NAME ) ) ; final Resource resource = context . readResourceForUpdate ( EMPTY_ADDRESS ) ; final ModelNode model = resource . getModel ( ) ; final String name = operation . require ( NAME ) . asString ( ) ; ModelNode variables = model . get ( JVM_ENV_VARIABLES ) ; if ( variables . isDefined ( ) ) { final ModelNode values = variables . clone ( ) ; model . get ( JVM_ENV_VARIABLES ) . setEmptyList ( ) ; for ( Property value : values . asPropertyList ( ) ) { if ( ! ( value . getName ( ) . equals ( name ) ) ) { model . get ( JVM_ENV_VARIABLES ) . add ( value . getName ( ) , value . getValue ( ) ) ; } } } <START_BUG> context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> } @ Override public ModelNode getModelDescription ( Locale locale ) { } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public abstract class RestartParentWriteAttributeHandler extends AbstractWriteAttributeHandler < ModelNode > { private final String parentKeyName ; public RestartParentWriteAttributeHandler ( String parentKeyName ) { } public RestartParentWriteAttributeHandler ( String parentKeyName , ParameterValidator validator ) { } public RestartParentWriteAttributeHandler ( String parentKeyName , AttributeDefinition ... definitions ) { } public RestartParentWriteAttributeHandler ( String parentKeyName , ParameterValidator unresolvedValidator , ParameterValidator resolvedValidator ) { } @ Override protected boolean applyUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode resolvedValue , ModelNode currentValue , HandbackHolder < ModelNode > handbackHolder ) throws OperationFailedException { } protected boolean isResourceServiceRestartAllowed ( final OperationContext context , final ServiceController < ? > service ) { } protected void removeServices ( final OperationContext context , final ServiceName parentService , final ModelNode parentModel ) throws OperationFailedException { } protected abstract void recreateParentService ( OperationContext context , PathAddress parentAddress , ModelNode parentModel , ServiceVerificationHandler verificationHandler ) throws OperationFailedException { } protected abstract ServiceName getParentServiceName ( PathAddress parentAddress ) { } protected PathAddress getParentAddress ( PathAddress address ) { } @ Override protected void revertUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode valueToRestore , ModelNode resolvedValue , ModelNode invalidatedParentModel ) throws OperationFailedException { } private ModelNode getModel ( OperationContext ctx , PathAddress address ) { try { <START_BUG> Resource resource = ctx . getRootResource ( ) . navigate ( address ) ; <END_BUG> return Tools . readModel ( resource ) ; } catch ( NoSuchElementException e ) { return null ; } } private ModelNode getOriginalModel ( OperationContext ctx , PathAddress address ) { } }

Fix:
Resource resource = ctx . readResourceFromRoot ( address ) ;
Buggy code:
public class LongPeriodSummary implements Command { @ Override public void accepts ( List < String > arguments , Collection < String > errors , String fileName ) { } @ Override public void execute ( String fileName , List < String > arguments ) throws IOException , ParseException { final List < File > files = Arrays . asList ( new File ( "." ) . listFiles ( ) ) ; final NavigableSet < String > fileNames = new TreeSet < String > ( ) ; for ( final File file : files ) { fileNames . add ( file . getName ( ) ) ; } <START_BUG> final NavigableSet < String > subSet = fileNames . subSet ( arguments . get ( 0 ) , true , fileName , false ) ; <END_BUG> final List < Account > historyAccounts = new ArrayList < Account > ( subSet . size ( ) ) ; for ( final String hFileName : subSet ) { final File hFile = new File ( hFileName ) ; historyAccounts . add ( Parser . read ( hFile ) ) ; } final Map < String , BigDecimal > totals = new TreeMap < String , BigDecimal > ( ) ; for ( final Account acc : historyAccounts ) { for ( final Operation op : acc . getOperations ( ) ) { BigDecimal total = totals . get ( op . getCategory ( ) ) ; if ( null == total ) { total = new BigDecimal ( 0 ) ; } totals . put ( op . getCategory ( ) , total . add ( op . getAmount ( ) ) ) ; } } final TableRenderer tr = new TableRenderer ( ) ; tr . left ( "Category" ) ; tr . left ( "Opers" ) ; tr . newLine ( ) ; for ( Map . Entry < String , BigDecimal > e : totals . entrySet ( ) ) { tr . left ( e . getKey ( ) ) ; tr . right ( Util . renderNumber ( e . getValue ( ) ) ) ; tr . newLine ( ) ; } System . out . println ( tr . toString ( ) ) ; } }

Fix:
final NavigableSet < String > subSet = fileNames . subSet ( arguments . get ( 0 ) , true , fileName , true ) ;
Buggy code:
public class PersistenceExceptions extends Exceptions { public static final RuntimeExceptionTranslator TRANSLATOR = new RuntimeExceptionTranslator ( ) { public RuntimeException translate ( RuntimeException re ) { } } ; public static RuntimeExceptionTranslator getRollbackTranslator ( final OpenJPAEntityManager em ) { return new RuntimeExceptionTranslator ( ) { private boolean throwing = false ; public RuntimeException translate ( RuntimeException re ) { RuntimeException ex = PersistenceExceptions . toPersistenceException ( re ) ; if ( ( ( ! ( ex instanceof NonUniqueResultException ) ) && ( ! ( ex instanceof NoResultException ) ) ) && ( ! ( throwing ) ) ) { try { throwing = true ; if ( ( em . isOpen ( ) ) && ( ( ( EntityManagerImpl ) ( em ) ) . isActive ( ) ) ) <START_BUG> ( ( EntityManagerImpl ) ( em ) ) . setRollbackOnly ( re ) ; <END_BUG> } finally { throwing = false ; } } return ex ; } } ; } public static RuntimeException toPersistenceException ( Throwable t ) { } private static Throwable translateException ( Throwable t , boolean checked ) { } private static Throwable translateStoreException ( OpenJPAException ke ) { } private static Exception translateUserException ( OpenJPAException ke ) { } private static Exception translateCause ( OpenJPAException ke ) { } private static Throwable translateGeneralException ( OpenJPAException ke ) { } private static boolean isPersistenceException ( Throwable t ) { } private static Throwable [ ] getNestedThrowables ( OpenJPAException ke ) { } private static Object getFailedObject ( OpenJPAException ke ) { } static Throwable getCause ( Throwable [ ] nested ) { } }

Fix:
( ( EntityManagerImpl ) ( em ) ) . setRollbackOnly ( ex ) ;
Buggy code:
public abstract class ShoppingCart { private List < Item > items = new ArrayList < Item > ( ) ; public void addItem ( Item addThis ) { } public void removeItem ( Item removeThis ) { } public List < Item > getItems ( ) { } public int getSum ( ) { int sum = 0 ; for ( Item item : items ) { <START_BUG> sum += items . getPrice ( ) ; <END_BUG> } return sum ; } @ Override public String toString ( ) { } }

Fix:
sum += item . getPrice ( ) ;
Buggy code:
public class RpcTcpListener implements RpcListener { private int port ; private Logger logger ; private AsynchronousServerSocketChannel listener ; private ExecutorService executorService ; private List < AsynchronousSocketChannel > connections ; public RpcTcpListener ( int port ) { } @ Override public void startListening ( RaftMessageHandler messageHandler ) { } @ Override public void stop ( ) { } private void acceptRequests ( RaftMessageHandler messageHandler ) { } private void readRequest ( final AsynchronousSocketChannel connection , RaftMessageHandler messageHandler ) { } private void processRequest ( AsynchronousSocketChannel connection , RaftRequestMessage request , RaftMessageHandler messageHandler ) { try { RaftResponseMessage response = messageHandler . processRequest ( request ) ; final ByteBuffer buffer = ByteBuffer . wrap ( BinaryUtils . messageToBytes ( response ) ) ; AsyncUtility . writeToChannel ( connection , buffer , null , handlerFrom ( ( Integer bytesSent , Object attachment ) -> { if ( ( bytesSent . intValue ( ) ) < ( buffer . limit ( ) ) ) { logger . info ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>completely<seq2seq4repair_space>send<seq2seq4repair_space>the<seq2seq4repair_space>response." ) ; closeSocket ( connection ) ; } else { <START_BUG> logger . debug ( String . format ( "response<seq2seq4repair_space>message<seq2seq4repair_space>%d<seq2seq4repair_space>sent." , response . getDestination ( ) ) ) ; <END_BUG> if ( connection . isOpen ( ) ) { logger . debug ( "try<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>next<seq2seq4repair_space>request" ) ; readRequest ( connection , messageHandler ) ; } } } , connection ) ) ; } catch ( Throwable error ) { closeSocket ( connection ) ; logger . error ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>process<seq2seq4repair_space>the<seq2seq4repair_space>request<seq2seq4repair_space>or<seq2seq4repair_space>send<seq2seq4repair_space>the<seq2seq4repair_space>response" , error ) ; } } private < V , A > CompletionHandler < V , A > handlerFrom ( BiConsumer < V , A > completed , AsynchronousSocketChannel connection ) { } private void closeSocket ( AsynchronousSocketChannel connection ) { } }

Fix:
logger . debug ( "response<seq2seq4repair_space>message<seq2seq4repair_space>sent." ) ;
Buggy code:
class OSGiSubsystemAdd extends AbstractBoottimeAddStepHandler { static final OSGiSubsystemAdd INSTANCE = new OSGiSubsystemAdd ( ) ; private OSGiRuntimeResource resource ; private OSGiSubsystemAdd ( ) { } @ Override protected Resource createResource ( OperationContext context ) { } protected void populateModel ( final ModelNode operation , final ModelNode model ) { } protected void performBoottime ( final OperationContext context , final ModelNode operation , final ModelNode model , final ServiceVerificationHandler verificationHandler , final List < ServiceController < ? > > newControllers ) { OSGiLogger . LOGGER . infoActivatingSubsystem ( ) ; final ServiceTarget serviceTarget = context . getServiceTarget ( ) ; final Activation activationMode = getActivationMode ( operation ) ; final InitialDeploymentTracker deploymentTracker = new InitialDeploymentTracker ( context , activationMode ) ; context . addStep ( new OperationStepHandler ( ) { public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { newControllers . add ( PersistentBundlesIntegration . addService ( serviceTarget , deploymentTracker ) ) ; newControllers . add ( FrameworkBootstrapService . addService ( serviceTarget , resource , verificationHandler ) ) ; <START_BUG> context . completeStep ( ) ; <END_BUG> } } , RUNTIME ) ; context . addStep ( new AbstractDeploymentChainStep ( ) { protected void execute ( DeploymentProcessorTarget processorTarget ) { processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , STRUCTURE , STRUCTURE_OSGI_MANIFEST , new OSGiManifestStructureProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , PARSE , PARSE_OSGI_BUNDLE_INFO , new OSGiBundleInfoParseProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , PARSE , PARSE_OSGI_XSERVICE_PROPERTIES , new OSGiXServiceParseProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , PARSE , PARSE_OSGI_DEPLOYMENT , new BundleDeploymentProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , INSTALL , INSTALL_BUNDLE_CONTEXT_BINDING , new BundleContextBindingProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , INSTALL , INSTALL_OSGI_DEPLOYMENT , new org . jboss . as . osgi . deployment . BundleInstallProcessor ( deploymentTracker ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , INSTALL , INSTALL_OSGI_MODULE , new ModuleRegisterProcessor ( ) ) ; } } , RUNTIME ) ; newControllers . add ( SubsystemState . addService ( serviceTarget , activationMode ) ) ; } private Activation getActivationMode ( ModelNode operation ) { } }

Fix:
context . completeStep ( NOOP_ROLLBACK_HANDLER ) ;
Buggy code:
public class EchoHandler { static final Logger log = LoggerFactory . getLogger ( EchoHandler . class ) ; public static void handleEcho ( IRCbutt butt , BotResponse response , String [ ] cmd , String nick ) { } public static String parseCommands ( IRCbutt butt , BotResponse response , String input , String nick ) { Pattern p = Pattern . compile ( "\\$\\([^)]*\\)" ) ; Matcher m = p . matcher ( input ) ; while ( m . find ( ) ) { String command = m . group ( ) . substring ( 2 , ( ( m . group ( ) . length ( ) ) - 1 ) ) ; BotResponse botResponse = new BotResponse ( response . getEvent ( ) ) ; butt . getCommandHandler ( ) . handleCommand ( response . getEvent ( ) , command . split ( "<seq2seq4repair_space>" ) , botResponse ) ; if ( ( botResponse . toString ( ) ) != null ) { <START_BUG> input = input . replace ( m . group ( ) , botResponse . toString ( ) ) ; <END_BUG> } else { botResponse . privateMessage ( response . getRecipient ( ) , ( "butt<seq2seq4repair_space>didnt<seq2seq4repair_space>get<seq2seq4repair_space>this<seq2seq4repair_space>part:<seq2seq4repair_space>" + ( m . group ( ) ) ) ) ; } } return input . replaceAll ( "\\$USER" , nick ) ; } }

Fix:
input = input . replaceFirst ( Pattern . quote ( m . group ( ) ) , botResponse . toString ( ) ) ;
Buggy code:
public class EpubCheck implements DocumentValidator { private static String VERSION = null ; private static String BUILD_DATE = null ; private File epubFile ; private Report report ; public static String version ( ) { } public static String buildDate ( ) { } public EpubCheck ( File epubFile ) { } public EpubCheck ( File epubFile , PrintWriter out ) { } public EpubCheck ( File epubFile , Report report ) { } private void setReport ( Report report ) { } public EpubCheck ( InputStream inputStream , Report report , String uri ) { } public boolean validate ( ) { int validateResult = doValidate ( ) ; <START_BUG> return validateResult > 0 ; <END_BUG> } public int doValidate ( ) { } public void CheckMultiplePaginationSchemes ( ) { } void checkExtension ( String extension ) { } void checkEpubHeader ( FileInputStream epubIn ) throws IOException { } private int getIntFromBytes ( byte [ ] bytes , int offset ) { } }

Fix:
return validateResult == 0 ;
Buggy code:
public class Cell { private AgentClass agent = null ; private Set < Neighborhood > neighborhood = new HashSet < Neighborhood > ( ) ; private final int x ; private final int y ; public Cell ( int x , int y , Neighborhood n ) { } public Cell ( int x , int y , Neighborhood n , AgentClass agent ) { } public boolean setAgent ( AgentClass agent ) { <START_BUG> if ( ( this . agent ) != null ) { <END_BUG> this . agent = agent ; return true ; } return false ; } public AgentClass getAgent ( ) { } public int [ ] getCoordinates ( ) { } public boolean isEmpty ( ) { } public boolean isConsumer ( ) { } public boolean isBanker ( ) { } }

Fix:
if ( ( this . agent ) == null ) {
Buggy code:
@ Component public class InputsBinding { @ Autowired private ScriptEvaluator scriptEvaluator ; public Map < String , Serializable > bindInputs ( List < Input > inputs , Map < String , ? extends Serializable > context , Map < String , ? extends Serializable > systemProperties ) { } private void bindInput ( Input input , Map < String , ? extends Serializable > context , Map < String , Serializable > targetContext , Map < String , ? extends Serializable > systemProperties ) { String inputName = input . getName ( ) ; Validate . notEmpty ( inputName ) ; Serializable value = resolveValue ( input , context , targetContext , systemProperties ) ; if ( ( input . isRequired ( ) ) && ( value == null ) ) { <START_BUG> throw new RuntimeException ( ( ( "Input<seq2seq4repair_space>with<seq2seq4repair_space>name<seq2seq4repair_space>:<seq2seq4repair_space>" + inputName ) + "<seq2seq4repair_space>is<seq2seq4repair_space>Required,<seq2seq4repair_space>but<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ) ; <END_BUG> } targetContext . put ( inputName , value ) ; } private Serializable resolveValue ( Input input , Map < String , ? extends Serializable > context , Map < String , ? extends Serializable > targetContext , Map < String , ? extends Serializable > systemProperties ) { } }

Fix:
throw new RuntimeException ( ( ( "Input<seq2seq4repair_space>with<seq2seq4repair_space>name:<seq2seq4repair_space>\'" + inputName ) + "\'<seq2seq4repair_space>is<seq2seq4repair_space>Required,<seq2seq4repair_space>but<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ) ;
Buggy code:
public final class IllinoisSolverTest extends BaseSecantSolverAbstractTest { @ Override <START_BUG> protected UnivariateRealSolver getSolver ( ) { <END_BUG> return new IllinoisSolver ( ) ; } @ Override protected int [ ] getQuinticEvalCounts ( ) { } }

Fix:
protected UnivariateSolver getSolver ( ) {
Buggy code:
public class MasterDomainControllerOperationHandlerImpl extends ModelControllerOperationHandlerImpl { private static final Logger log = Logger . getLogger ( "org.jboss.as.host.controller" ) ; public MasterDomainControllerOperationHandlerImpl ( DomainController modelController ) { } @ Override protected DomainController getController ( ) { } @ Override public ManagementRequestHandler getRequestHandler ( byte id ) { } private abstract class RegistryOperation extends ManagementRequestHandler { String hostId ; RegistryOperation ( ) { } @ Override protected void readRequest ( final DataInput input ) throws IOException { } } private class RegisterOperation extends MasterDomainControllerOperationHandlerImpl . RegistryOperation { @ Override protected void readRequest ( final DataInput input ) throws IOException { } @ Override protected void writeResponse ( final FlushableDataOutput output ) throws IOException { ModelNode node ; try { <START_BUG> getController ( ) . addClient ( new RemoteDomainControllerSlaveClient ( hostId , getChannel ( ) ) ) ; <END_BUG> node = getController ( ) . getDomainModel ( ) ; } catch ( IllegalArgumentException e ) { MasterDomainControllerOperationHandlerImpl . log . error ( e ) ; node = new ModelNode ( ) ; node . get ( "protocol-error" ) . set ( e . getMessage ( ) ) ; } output . write ( PARAM_MODEL ) ; node . writeExternal ( output ) ; } } private class UnregisterOperation extends MasterDomainControllerOperationHandlerImpl . RegistryOperation { @ Override protected void writeResponse ( final FlushableDataOutput output ) throws IOException { getController ( ) . removeClient ( hostId ) ; } } private class GetFileOperation extends MasterDomainControllerOperationHandlerImpl . RegistryOperation { private File localPath ; @ Override protected void readRequest ( final DataInput input ) throws IOException { } @ Override protected void writeResponse ( final FlushableDataOutput output ) throws IOException { output . writeByte ( PARAM_NUM_FILES ) ; if ( ( ( localPath ) == null ) || ( ! ( localPath . exists ( ) ) ) ) { output . writeInt ( ( - 1 ) ) ; } else if ( localPath . isFile ( ) ) { output . writeInt ( 1 ) ; writeFile ( localPath , output ) ; } else { final List < File > childFiles = getChildFiles ( localPath ) ; output . writeInt ( childFiles . size ( ) ) ; for ( File child : childFiles ) { writeFile ( child , output ) ; } } } private List < File > getChildFiles ( final File base ) { } private void getChildFiles ( final File base , final List < File > childFiles ) { } private String getRelativePath ( final File parent , final File child ) { } private void writeFile ( final File file , final FlushableDataOutput output ) throws IOException { } } }

Fix:
getController ( ) . addClient ( new RemoteDomainControllerSlaveClient ( hostId , getContext ( ) . getChannel ( ) ) ) ;
Buggy code:
public class ApothecariesBackpack extends BaseBackpack { private static ApothecariesBackpack instance ; public static ApothecariesBackpack getInstance ( ) { } protected ApothecariesBackpack ( ) { } public void setup ( ) { } @ Override public String getKey ( ) { } @ Override public int getPrimaryColour ( ) { } @ Override public int getSecondaryColour ( ) { } public static void registerThaumcraftResearch ( ) { try { IArcaneRecipe recipe = ThaumcraftApi . addArcaneCraftingRecipe ( "RC_ApothecariesBackpack" , new net . minecraft . item . ItemStack ( ForestryPlugin . apothecariesBackpackT1 ) , new AspectList ( ) . add ( AIR , 16 ) . add ( ORDER , 16 ) , "X#X" , "VYV" , "X#X" , '#' , wool , 'V' , new net . minecraft . item . ItemStack ( Items . potionitem , 1 , 8197 ) , 'X' , string , 'Y' , new net . minecraft . item . ItemStack ( Blocks . chest ) ) ; AspectList aspects = new AspectList ( ) ; aspects . add ( VOID , 3 ) . add ( CLOTH , 3 ) . add ( TRAVEL , 2 ) ; ResearchItem backpack = new mods . railcraft . common . plugins . thaumcraft . ResearchItemRC ( "RC_ApothecariesBackpack" , ThaumcraftPlugin . RESEARCH_CATEGORY , aspects , 2 , 0 , 6 , new net . minecraft . item . ItemStack ( ForestryPlugin . apothecariesBackpackT1 ) ) ; <START_BUG> backpack . setPages ( new ResearchPage [ ] { ThaumcraftPlugin . createResearchPage ( "RC_ApothecariesBackpack" , 1 ) , new ResearchPage ( recipe ) } ) . setParentsHidden ( new String [ ] { "ENCHFABRIC" } ) . registerResearchItem ( ) ; <END_BUG> } catch ( Throwable error ) { Game . logErrorAPI ( "Thaumcraft" , error , ResearchItem . class ) ; } } }

Fix:
backpack . setPages ( new ResearchPage [ ] { ThaumcraftPlugin . getResearchPage ( "RC_ApothecariesBackpack" ) , new ResearchPage ( recipe ) } ) . setParentsHidden ( new String [ ] { "ENCHFABRIC" } ) . registerResearchItem ( ) ;
Buggy code:
public class SpikeTrainDistanceMetrics { private double activationThreshold ; private double kTimeStep ; private ArrayList < Integer > phenotypeSpikePositions ; private ArrayList < Integer > targetSpikePositions ; private ArrayList < Double > trainingSpikeTrain ; private ArrayList < Double > phenotypeSpikeTrain ; public SpikeTrainDistanceMetrics ( ) { } public void findPhenotypeSpikePosition ( ArrayList < Double > phenotypeSpikeTrain ) { } private void readTrainingData ( int trainingDataSet ) { } public void findTargetSpikePosition ( ) { } private ArrayList < Integer > findSpikePositions ( ArrayList < Integer > newList , ArrayList < Double > phenotypeSpikeTrain ) { } public double spikeTimeDistanceMetrics ( ) { } public double spikeIntervalDistanceMetrics ( ArrayList < Double > neuronSpikeTrain , ArrayList < Double > targetSpikeTrain ) { double fitnessValue = 0 ; double p = 2 ; double N = Math . min ( phenotypeSpikePositions . size ( ) , targetSpikePositions . size ( ) ) ; double sumOfDifferences = 0 ; for ( int i = 1 ; i < N ; i ++ ) { sumOfDifferences += Math . abs ( ( ( ( targetSpikePositions . get ( i ) ) - ( targetSpikePositions . get ( ( i - 1 ) ) ) ) - ( ( phenotypeSpikePositions . get ( i ) ) - ( phenotypeSpikePositions . get ( ( i - 1 ) ) ) ) ) ) ; sumOfDifferences = Math . pow ( sumOfDifferences , p ) ; } fitnessValue = Math . pow ( sumOfDifferences , ( 1 // p ) ) ; <START_BUG> fitnessValue += spikeCountDifferancePenalty ; <END_BUG> fitnessValue = ( 1 // ( N - 1 ) ) * fitnessValue ; return fitnessValue ; } public double waveFormDistanceMetrics ( ) { } public double spikeCountDifferancePenalty ( ) { } public double getFintesss ( ) { } public String toString ( ) { } }

Fix:
fitnessValue += spikeCountDifferancePenalty ( ) ;
Buggy code:
public class CSVRecordTest { private enum EnumFixture { UNKNOWN_COLUMN ; } private String [ ] values ; private CSVRecord record ; private CSVRecord recordWithHeader ; private Map < String , Integer > header ; @ Before public void setUp ( ) throws Exception { } @ Test public void testGetInt ( ) { } @ Test public void testGetString ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testGetStringInconsistentRecord ( ) { } @ Test ( expected = IllegalStateException . class ) public void testGetStringNoHeader ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testGetUnmappedEnum ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testGetUnmappedName ( ) { } @ Test ( expected = ArrayIndexOutOfBoundsException . class ) public void testGetUnmappedNegativeInt ( ) { } @ Test ( expected = ArrayIndexOutOfBoundsException . class ) public void testGetUnmappedPositiveInt ( ) { } @ Test public void testIsConsistent ( ) { } @ Test public void testIsMapped ( ) { } @ Test public void testIsSet ( ) { } @ Test public void testIterator ( ) { } @ Test public void testPutInMap ( ) { } @ Test public void testRemoveAndAddColumns ( ) throws IOException { } @ Test public void testToMap ( ) { } @ Test public void testToMapWithShortRecord ( ) throws Exception { } @ Test public void testToMapWithNoHeader ( ) throws Exception { final CSVParser parser = CSVParser . parse ( "a,b" , CSVFormat . newFormat ( ',' ) ) ; final CSVRecord shortRec = parser . iterator ( ) . next ( ) ; <START_BUG> Map < String , String > map = shortRec . toMap ( ) ; <END_BUG> assertNotNull ( "Map<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>null." , map ) ; assertTrue ( "Map<seq2seq4repair_space>is<seq2seq4repair_space>empty." , map . isEmpty ( ) ) ; } private void validateMap ( final Map < String , String > map , final boolean allowsNulls ) { } }

Fix:
final Map < String , String > map = shortRec . toMap ( ) ;
Buggy code:
public class StandardSolver { private static final int NUM_PIECES = Pieces . getNumPieces ( ) ; private static final int SIZE_OF_BOARD = ( ( int ) ( Math . sqrt ( StandardSolver . NUM_PIECES ) ) ) ; public static long startTime ; public static int max_board_size = - 1 ; public static int board_count = 0 ; public static List < Integer > board = new ArrayList < Integer > ( ) ; public static void main ( String [ ] args ) { } public static void runOnce ( Set < Pair < Integer > > pieces ) { } public static void reset ( ) { } public static void add ( Integer pieceToAdd ) { } public static Integer getAbovePieceSouthEdge ( ) { } public static Integer getLeftPieceEastEdge ( ) { } public static void next ( ) { } private static void saveBoard ( ) { try { <START_BUG> BufferedWriter bw = new BufferedWriter ( new FileWriter ( ( ( "solution" + ( StandardSolver . startTime ) ) + ".txt" ) ) ) ; <END_BUG> int pieceNum = 1 ; for ( Integer pieceId : StandardSolver . board ) { bw . write ( ( ( ( pieceId + "-" ) + ( Orientation . getOrientation ( pieceId ) ) ) + "<seq2seq4repair_space>" ) ) ; if ( pieceNum == ( StandardSolver . SIZE_OF_BOARD ) ) { bw . write ( "\n" ) ; pieceNum = 0 ; } pieceNum ++ ; } bw . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } private static void backTrack ( ) { } }

Fix:
BufferedWriter bw = new BufferedWriter ( new FileWriter ( ( ( "bestSolution" + ( StandardSolver . startTime ) ) + ".txt" ) ) ) ;
Buggy code:
public final class ServerGroupDeploymentElement extends AbstractModelElement < ServerGroupDeploymentElement > implements ServiceActivator { private static final long serialVersionUID = - 7282640684801436543L ; private static final Logger log = Logger . getLogger ( "org.jboss.as.model" ) ; private final DeploymentUnitKey key ; private boolean start ; public ServerGroupDeploymentElement ( final Location location , final String deploymentName , final byte [ ] deploymentHash , final boolean start ) { } public ServerGroupDeploymentElement ( XMLExtendedStreamReader reader ) throws XMLStreamException { } public DeploymentUnitKey getKey ( ) { } public String getName ( ) { } public byte [ ] getSha1Hash ( ) { } public boolean isStart ( ) { } void setStart ( boolean start ) { } public long elementHash ( ) { } protected void appendDifference ( final Collection < AbstractModelUpdate < ServerGroupDeploymentElement > > target , final ServerGroupDeploymentElement other ) { } protected Class < ServerGroupDeploymentElement > getElementClass ( ) { } public void writeContent ( final XMLExtendedStreamWriter streamWriter ) throws XMLStreamException { } @ Override public void activate ( final ServiceActivatorContext context ) { } private String getFullyQualifiedDeploymentPath ( final String fileName ) { <START_BUG> return fileName ; <END_BUG> } }

Fix:
return ( ( System . getProperty ( "jboss.server.deploy.dir" ) ) + "//" ) + fileName ;
Buggy code:
public class UserSocial extends User { private JSONObject socialDetails ; private String socialId ; private String socialUser ; private String socialDisplay ; private String socialType ; public UserSocial ( String socialId , String socialType ) { } public String getUserName ( ) { } public String getDisplayName ( ) { } public String getSocialUser ( ) { } public void setSocialUser ( String socialUser ) { } public String getSocialDisplay ( ) { } public String getType ( ) { } public void setSocialDisplay ( String socialDisplay ) { } public JSONObject getSocialDetails ( ) { } public Object getSocialDetail ( String key ) { } public void setSocialDetails ( JSONObject social_details ) { } public String getSocialId ( ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object obj ) { } @ Override public String toString ( ) { } public JSONObject toJSON ( ) { JSONObject result = super . toJSON ( ) ; result . put ( "social_id" , socialId ) ; result . put ( "social_user" , socialUser ) ; <START_BUG> result . put ( "social_display" , socialDisplay ) ; <END_BUG> result . put ( "social_type" , socialType ) ; result . put ( "social_details" , socialDetails ) ; return result ; } }

Fix:
result . put ( "social_display" , getDisplayName ( ) ) ;
Buggy code:
public class MessageDrivenAnnotationProcessor implements DeploymentUnitProcessor { static final DotName MESSAGE_DRIVEN_ANNOTATION_NAME = DotName . createSimple ( MessageDriven . class . getName ( ) ) ; @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final EEModuleDescription moduleDescription = deploymentUnit . getAttachment ( EE_MODULE_DESCRIPTION ) ; final CompositeIndex compositeIndex = deploymentUnit . getAttachment ( COMPOSITE_ANNOTATION_INDEX ) ; if ( compositeIndex == null ) { return ; } final List < AnnotationInstance > instances = compositeIndex . getAnnotations ( MessageDrivenAnnotationProcessor . MESSAGE_DRIVEN_ANNOTATION_NAME ) ; if ( ( instances == null ) || ( instances . isEmpty ( ) ) ) { return ; } EjbDeploymentMarker . mark ( deploymentUnit ) ; EjbJarDescription ejbJarDescription = deploymentUnit . getAttachment ( EJB_JAR_DESCRIPTION ) ; if ( ejbJarDescription == null ) { ejbJarDescription = new EjbJarDescription ( moduleDescription ) ; deploymentUnit . putAttachment ( EJB_JAR_DESCRIPTION , ejbJarDescription ) ; } for ( final AnnotationInstance instance : instances ) { final AnnotationTarget target = instance . target ( ) ; if ( ! ( target instanceof ClassInfo ) ) { throw new DeploymentUnitProcessingException ( ( "The<seq2seq4repair_space>@MessageDriven<seq2seq4repair_space>annotation<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>allowed<seq2seq4repair_space>at<seq2seq4repair_space>the<seq2seq4repair_space>class<seq2seq4repair_space>level:<seq2seq4repair_space>" + target ) ) ; } final ClassInfo beanClassInfo = ( ( ClassInfo ) ( target ) ) ; final String beanClassName = beanClassInfo . name ( ) . toString ( ) ; final String ejbName = beanClassInfo . name ( ) . local ( ) ; final AnnotationValue nameValue = instance . value ( "name" ) ; final String beanName = ( ( nameValue == null ) || ( nameValue . asString ( ) . isEmpty ( ) ) ) ? ejbName : nameValue . asString ( ) ; final String messageListenerInterfaceName = instance . value ( "messageListenerInterface" ) . asClass ( ) . name ( ) . toString ( ) ; <START_BUG> MessageDrivenComponentDescription messageDrivenComponentDescription = new MessageDrivenComponentDescription ( beanName , beanClassName , moduleDescription , deploymentUnit . getServiceName ( ) ) ; <END_BUG> messageDrivenComponentDescription . setMessageListenerInterfaceName ( messageListenerInterfaceName ) ; if ( ( moduleDescription . getComponentByName ( messageDrivenComponentDescription . getComponentName ( ) ) ) == null ) { moduleDescription . addComponent ( messageDrivenComponentDescription ) ; } } } @ Override public void undeploy ( DeploymentUnit context ) { } }

Fix:
MessageDrivenComponentDescription messageDrivenComponentDescription = new MessageDrivenComponentDescription ( beanName , beanClassName , ejbJarDescription , deploymentUnit . getServiceName ( ) ) ;
Buggy code:
public class CommonsPoolTargetSourceTests { private static final int INITIAL_COUNT = 10 ; private XmlBeanFactory beanFactory ; @ Before public void setUp ( ) throws Exception { <START_BUG> this . beanFactory = new XmlBeanFactory ( new ClassPathResource ( "commonsPoolTests.xml" , getClass ( ) ) ) ; <END_BUG> } @ After public void tearDown ( ) { } private void testFunctionality ( String name ) { } @ Test public void testFunctionality ( ) { } @ Test public void testFunctionalityWithNoInterceptors ( ) { } @ Test public void testConfigMixin ( ) { } @ Test public void testTargetSourceSerializableWithoutConfigMixin ( ) throws Exception { } @ Test public void testProxySerializableWithoutConfigMixin ( ) throws Exception { } @ Test public void testHitMaxSize ( ) throws Exception { } @ Test public void testHitMaxSizeLoadedFromContext ( ) throws Exception { } @ Test public void testSetWhenExhaustedAction ( ) { } private void prepareTargetSource ( CommonsPoolTargetSource targetSource ) { } }

Fix:
this . beanFactory = new XmlBeanFactory ( new ClassPathResource ( "org//springframework//aop//target//commonsPoolTests.xml" ) ) ;
Buggy code:
public class WebRequestCrawlerSave extends ServletWebRequest { private final String queryString ; private ValueMap parameters ; private String path ; public WebRequestCrawlerSave ( final HttpServletRequest request ) { } private ValueMap analyzeQueryString ( final String queryString ) { } public String getParameter ( final String key ) { } public Map getParameterMap ( ) { } public String [ ] getParameters ( final String key ) { if ( ( parameters ) != null ) { <START_BUG> return ( ( String [ ] ) ( parameters . keySet ( ) . toArray ( ) ) ) ; <END_BUG> } return super . getParameters ( key ) ; } public String toString ( ) { } public String getPath ( ) { } }

Fix:
return new String [ ] { getParameter ( key ) } ;
Buggy code:
public class DeclareDominates extends Declare { private TypePatternList patterns ; public DeclareDominates ( List patterns ) { } private DeclareDominates ( TypePatternList patterns ) { } public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; <START_BUG> buf . append ( "declare<seq2seq4repair_space>dominates:<seq2seq4repair_space>" ) ; <END_BUG> buf . append ( patterns ) ; buf . append ( ";" ) ; return buf . toString ( ) ; } public boolean equals ( Object other ) { } public int hashCode ( ) { } public void write ( DataOutputStream s ) throws IOException { } public static Declare read ( DataInputStream s , ISourceContext context ) throws IOException { } public void resolve ( IScope scope ) { } public TypePatternList getPatterns ( ) { } private int matchingIndex ( ResolvedTypeX a ) { } public int compare ( ResolvedTypeX aspect1 , ResolvedTypeX aspect2 ) { } public boolean isAdviceLike ( ) { } }

Fix:
buf . append ( "declare<seq2seq4repair_space>precedence:<seq2seq4repair_space>" ) ;
Buggy code:
public class EvaluationResult { static final IProblem [ ] NO_PROBLEMS = new IProblem [ 0 ] ; char [ ] evaluationID ; int evaluationType ; IProblem [ ] problems ; char [ ] displayString ; char [ ] typeName ; public static final int T_VARIABLE = 1 ; public static final int T_CODE_SNIPPET = 2 ; public static final int T_IMPORT = 3 ; public static final int T_PACKAGE = 4 ; public static final int T_INTERNAL = 5 ; public EvaluationResult ( char [ ] evaluationID , int evaluationType , char [ ] displayString , char [ ] typeName ) { } public EvaluationResult ( char [ ] evaluationID , int evaluationType , IProblem [ ] problems ) { } void addProblem ( IProblem problem ) { } public char [ ] getEvaluationID ( ) { } public int getEvaluationType ( ) { } public IProblem [ ] getProblems ( ) { } public Object getValue ( ) { } public char [ ] getValueDisplayString ( ) { } public char [ ] getValueTypeName ( ) { } public boolean hasErrors ( ) { } public boolean hasProblems ( ) { } public boolean hasValue ( ) { } public boolean hasWarnings ( ) { } public String toString ( ) { StringBuffer buffer = new StringBuffer ( ) ; switch ( this . evaluationType ) { case EvaluationResult . T_CODE_SNIPPET : buffer . append ( "Code<seq2seq4repair_space>snippet" ) ; break ; case EvaluationResult . T_IMPORT : buffer . append ( "Import" ) ; break ; case EvaluationResult . T_INTERNAL : buffer . append ( "Internal<seq2seq4repair_space>problem" ) ; break ; case EvaluationResult . T_PACKAGE : buffer . append ( "Package" ) ; break ; case EvaluationResult . T_VARIABLE : buffer . append ( "Global<seq2seq4repair_space>variable" ) ; break ; } buffer . append ( ":<seq2seq4repair_space>" ) ; <START_BUG> buffer . append ( this . evaluationID ) ; <END_BUG> buffer . append ( "\n" ) ; if ( hasProblems ( ) ) { buffer . append ( "Problems:\n" ) ; for ( int i = 0 ; i < ( this . problems . length ) ; i ++ ) { buffer . append ( this . problems [ i ] . toString ( ) ) ; } } else { if ( hasValue ( ) ) { buffer . append ( "(" ) ; buffer . append ( this . typeName ) ; buffer . append ( ")<seq2seq4repair_space>" ) ; buffer . append ( this . displayString ) ; } else { buffer . append ( "(No<seq2seq4repair_space>explicit<seq2seq4repair_space>return<seq2seq4repair_space>value)" ) ; } } return buffer . toString ( ) ; } }

Fix:
buffer . append ( ( ( this . evaluationID ) == null ? "<unknown>" . toCharArray ( ) : this . evaluationID ) ) ;
Buggy code:
public class ThunderClap extends Skill { static final int MIN_TICKS = 40 ; static final int MAX_TICKS = 60 ; public static final ThunderClap instance = new ThunderClap ( ) ; private ThunderClap ( ) { } private static float getDamage ( float exp , int ticks ) { } private static float getRange ( float exp ) { } private static int getCooldown ( float exp , int ticks ) { <START_BUG> return ( ( int ) ( ticks * ( lerpf ( 500 , 300 , exp ) ) ) ) ; <END_BUG> } @ Override public SkillInstance createSkillInstance ( EntityPlayer player ) { } public static class ThunderClapAction extends SkillSyncAction { float exp ; int ticks ; double hitX ; double hitY ; double hitZ ; public ThunderClapAction ( ) { } @ Override public void onStart ( ) { } @ Override public void onTick ( ) { } @ Override public void writeNBTFinal ( NBTTagCompound tag ) { } @ Override public void readNBTFinal ( NBTTagCompound tag ) { } @ Override public void onEnd ( ) { } @ Override public void onAbort ( ) { } @ SideOnly ( Side . CLIENT ) EntitySurroundArc surroundArc ; @ SideOnly ( Side . CLIENT ) EntityRippleMark mark ; @ SideOnly ( Side . CLIENT ) private void startEffects ( ) { } @ SideOnly ( Side . CLIENT ) private void updateEffects ( ) { } @ SideOnly ( Side . CLIENT ) private void endEffects ( ) { } } }

Fix:
return ( ( int ) ( ticks * ( lerpf ( 10 , 6 , exp ) ) ) ) ;
Buggy code:
public class ImportWizardLauncher { private IFrameMediator mediator ; public ImportWizardLauncher ( IFrameMediator mediator ) { } public void launchWizard ( ) { final IExtensionHandler pluginHandler ; try { <START_BUG> pluginHandler = PluginManager . getInstance ( ) . getHandler ( "org.columba.mail.import" ) ; <END_BUG> } catch ( PluginHandlerNotFoundException ex ) { throw new RuntimeException ( ex ) ; } DataModel data = new DataModel ( ) ; data . registerDataLookup ( "Plugin.handler" , new DataLookup ( ) { public Object lookupData ( ) { return pluginHandler ; } } ) ; WizardModel model = new net . javaprog . ui . wizard . DefaultWizardModel ( new Step [ ] { new PluginStep ( data ) , new LocationStep ( mediator , data ) } ) ; model . addWizardModelListener ( new MailboxImporter ( data ) ) ; Wizard wizard = new Wizard ( model , MailResourceLoader . getString ( "dialog" , "mailboximport" , "title" ) , ImageLoader . getIcon ( PREFERENCES ) ) ; wizard . setStepListRenderer ( null ) ; CSH . setHelpIDString ( wizard , "organising_and_managing_your_email_1" ) ; JavaHelpSupport . enableHelp ( wizard , HelpManager . getInstance ( ) . getHelpBroker ( ) ) ; wizard . pack ( ) ; wizard . setLocationRelativeTo ( null ) ; wizard . setVisible ( true ) ; } }

Fix:
pluginHandler = PluginManager . getInstance ( ) . getExtensionHandler ( "org.columba.mail.import" ) ;
Buggy code:
public interface IMAPServerOwner { <START_BUG> public IMAPServer getServer ( ) ; <END_BUG> }

Fix:
public IImapServer getServer ( ) ;
Buggy code:
public class Button extends FormComponent { private boolean defaultFormProcessing = true ; public Button ( String id ) { } public Button ( final String id , final IModel object ) { } public final boolean getDefaultFormProcessing ( ) { } public final Button setDefaultFormProcessing ( boolean defaultFormProcessing ) { } public void updateModel ( ) { } protected String getOnClickScript ( ) { } protected void onComponentTag ( final ComponentTag tag ) { final ValueMap attributes = tag . getAttributes ( ) ; super . onComponentTag ( tag ) ; try { String value = getValue ( ) ; if ( value != null ) { <START_BUG> tag . put ( "value" , getValue ( ) ) ; <END_BUG> } } catch ( Exception e ) { } final String onClickJavaScript = getOnClickScript ( ) ; if ( onClickJavaScript != null ) { tag . put ( "onclick" , onClickJavaScript ) ; } } protected void onSubmit ( ) { } }

Fix:
tag . put ( "value" , value ) ;
Buggy code:
public class DefaultTopologyValidator implements ITopologyValidator { @ Override public void prepare ( Map StormConf ) { } @ Override <START_BUG> public void validate ( String topologyName , Map topologyConf , StormTopology topology , Map NimbusConf ) throws InvalidTopologyException { <END_BUG> } }

Fix:
public void validate ( String topologyName , Map topologyConf , StormTopology topology ) throws InvalidTopologyException {
Buggy code:
public class WebRequestCycle extends RequestCycle { private static final Logger log = LoggerFactory . getLogger ( WebRequestCycle . class ) ; private static final MetaDataKey < Boolean > BROWSER_WAS_POLLED_KEY = new MetaDataKey < Boolean > ( ) { private static final long serialVersionUID = 1L ; } ; public WebRequestCycle ( final WebApplication application , final WebRequest request , final Response response ) { } @ Override public IRequestCycleProcessor getProcessor ( ) { } public WebRequest getWebRequest ( ) { } public WebResponse getWebResponse ( ) { } public WebSession getWebSession ( ) { } @ Override public final void redirectTo ( final Page page ) { } @ Override protected ClientInfo newClientInfo ( ) { if ( getApplication ( ) . getRequestCycleSettings ( ) . getGatherExtendedBrowserInfo ( ) ) { Session session = getSession ( ) ; if ( ( session . getMetaData ( WebRequestCycle . BROWSER_WAS_POLLED_KEY ) ) == null ) { session . setMetaData ( WebRequestCycle . BROWSER_WAS_POLLED_KEY , Boolean . TRUE ) ; <START_BUG> String url = "//" + ( getRequest ( ) . getURL ( ) ) ; <END_BUG> throw new org . apache . wicket . RestartResponseException ( newBrowserInfoPage ( url ) ) ; } session . setMetaData ( WebRequestCycle . BROWSER_WAS_POLLED_KEY , ( ( Boolean ) ( null ) ) ) ; } return new WebClientInfo ( this ) ; } protected WebPage newBrowserInfoPage ( String url ) { } @ Override public final boolean isRedirect ( ) { } void unset ( ) { } }

Fix:
String url = "//" + ( getRequest ( ) . getUrl ( ) ) ;
Buggy code:
public class JRLandingFragment extends JRUiFragment { public static final String KEY_ALERT_DIALOG_TITLE = "jr_alert_dialog_title" ; public static final String KEY_ALERT_DIALOG_MESSAGE = "jr_alert_dialog_message" ; public static final int DIALOG_GENERIC_ALERT = 1 ; public static final int RESULT_SWITCH_ACCOUNTS = 1 ; public static final int RESULT_RESTART = 2 ; private OnClickListener mButtonListener ; private boolean mIsAlertShowing = false ; private boolean mIsFinishPending = false ; private ImageView mLogo ; private EditText mUserInput ; private TextView mWelcomeLabel ; private Button mSwitchAccountButton ; private ColorButton mSignInButton ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private void onSignInClick ( ) { } private void onSwitchAccountsClick ( ) { } @ Override protected void onPrepareDialog ( int id , Dialog d , Bundle options ) { } @ Override protected Dialog onCreateDialog ( int id , Bundle options ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override protected void tryToFinishActivity ( ) { } private void prepareUserInterface ( ) { } private void configureButtonVisibility ( boolean isSingleButtonLayout ) { } private String getCustomTitle ( ) { JRProvider provider = mSession . getCurrentlyAuthenticatingProvider ( ) ; if ( provider . requiresInput ( ) ) { <START_BUG> return provider . getShortText ( ) ; <END_BUG> } else { return getString ( jr_landing_default_custom_title ) ; } } @ Override protected void onBackPressed ( ) { } No newline ; at end ; of file ; }

Fix:
return provider . getUserInputDescriptor ( ) ;