nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Hex { public int x ; public int y ; public TerrainType tType ; public TerrainEnum tEnum ; public int elevation ; public int obsHeight ; public int density ; public int vapor ; public int vaporOut ; public int vaporIn ; public int deltaVapor ; public VaporEnum vaporType = VaporEnum . NONE ; public boolean shaded ; public Color shadedColor ; public boolean displayText ; public String hexText ; public Color textColor ; public boolean highlighted ; public int obscuration ; public Unit HexUnit = null ; public Hex ( int xi , int yi , TerrainEnum iTerrain , int iElev ) { } public Hex ( int xi , int yi , TerrainEnum iTerrain , int iElev , int iObsHeight , int iDensity , int iObsc , int iVapor , int dV , VaporEnum vType ) { } public void CloneHexData ( Hex h ) { } public void DisplayInfo ( ) { } public void GCODisplay ( ) { } public void SetVapor ( int vi ) { } public void UpdateVapor ( ) { vapor += vaporIn ; vapor -= vaporOut ; deltaVapor = ( vaporIn ) + ( vaporOut ) ; <START_BUG> if ( ( ( deltaVapor ) > ( GlobalFuncs . maxDelta ) ) && ( ( vaporType ) != ( VaporEnum . SINK ) ) ) { <END_BUG> GUI_NB . GCODTG ( ( ( ( ( "WARNING!!<seq2seq4repair_space>Hex<seq2seq4repair_space>(" + ( x ) ) + ",<seq2seq4repair_space>" ) + ( y ) ) + ")<seq2seq4repair_space>has<seq2seq4repair_space>greater<seq2seq4repair_space>DV<seq2seq4repair_space>than<seq2seq4repair_space>the<seq2seq4repair_space>sink!<seq2seq4repair_space>Reducing<seq2seq4repair_space>flow<seq2seq4repair_space>rate<seq2seq4repair_space>this<seq2seq4repair_space>tick." ) ) ; GlobalFuncs . ticksStable = 0 ; GlobalFuncs . reduceRate = true ; GlobalFuncs . flowRateCap = Math . max ( 2.95 , ( ( GlobalFuncs . flowRate ) - ( GlobalFuncs . flowStep ) ) ) ; } if ( ( ( vapor ) < 0 ) && ( ( vaporType ) != ( VaporEnum . SINK ) ) ) { if ( ! ( ClockControl . paused ) ) ClockControl . Pause ( ) ; GUI_NB . GCODTG ( ( ( ( ( "ERROR!!<seq2seq4repair_space>Hex<seq2seq4repair_space>(" + ( x ) ) + ",<seq2seq4repair_space>" ) + ( y ) ) + ")<seq2seq4repair_space>has<seq2seq4repair_space>negative<seq2seq4repair_space>vapor!<seq2seq4repair_space>Flow<seq2seq4repair_space>rate<seq2seq4repair_space>set<seq2seq4repair_space>to<seq2seq4repair_space>1." ) ) ; GlobalFuncs . flowRate = 1.0 ; } GlobalFuncs . totalVapor += vapor ; vaporIn = 0 ; vaporOut = 0 ; } public void SetVaporSink ( ) { } public void SetVaporSource ( ) { } public void SetVaporNormal ( ) { } public int ReturnVaporCalc ( ) { } public int CalcVaporOneHex ( Hex origin , Hex tgtHex ) { } public void CalcVapor ( ) { } public void DrawHex ( int xi , int yi , int size , Graphics g ) { } public static BufferedImage convertType ( BufferedImage img , int typeByteIndexed ) { } public static IndexColorModel rescale ( IndexColorModel icm , float scaleFactor , float offset ) { } public static void rescale ( byte [ ] comps , float scaleFactor , float offset ) { } public static BufferedImage rescale ( BufferedImage indexed , float scaleFactor , float offset ) { } public HexOff toHO ( ) { } public String saveHex ( ) { } }

Fix:
if ( ( ( deltaVapor ) > ( GlobalFuncs . maxDelta ) ) && ( ( vaporType ) == ( VaporEnum . NONE ) ) ) {
Buggy code:
public abstract class InvertibleRealLinearOperator extends RealLinearOperator { public double [ ] solve ( final double [ ] b ) { if ( ( b . length ) != ( getRowDimension ( ) ) ) { throw new org . apache . commons . math . exception . DimensionMismatchException ( b . length , getRowDimension ( ) ) ; } final RealVector x = solve ( new ArrayRealVector ( b , false ) ) ; if ( x instanceof ArrayRealVector ) { return ( ( ArrayRealVector ) ( x ) ) . getDataRef ( ) ; } else { <START_BUG> return x . getData ( ) ; <END_BUG> } } public abstract RealVector solve ( final RealVector b ) { } }

Fix:
return x . toArray ( ) ;
Buggy code:
public class StagehandSample extends AbstractSample { private Stagehand stagehand ; private String templateId ; public StagehandSample ( Stagehand stagehand , String templateId , String label , String description , String entrypoint ) { } @ Override public IFile generateInto ( IContainer container , String sampleName ) throws CoreException { File directory = new File ( container . getLocationURI ( ) ) . getAbsoluteFile ( ) ; if ( ! ( directory . exists ( ) ) ) { <START_BUG> directory . mkdir ( ) ; <END_BUG> } try { stagehand . generateInto ( directory , getStagehandId ( ) ) ; } catch ( StagehandException e ) { throw new CoreException ( new Status ( IStatus . ERROR , DartCore . PLUGIN_ID , e . getMessage ( ) , e ) ) ; } container . refreshLocal ( IResource . DEPTH_INFINITE , null ) ; if ( ( mainFile ) != null ) { IResource resource = container . findMember ( mainFile ) ; if ( resource instanceof IFile ) { return ( ( IFile ) ( resource ) ) ; } else { return null ; } } else { return null ; } } public String getStagehandId ( ) { } @ Override public boolean shouldBeDefault ( ) { } }

Fix:
directory . mkdirs ( ) ;
Buggy code:
public class LoginController extends Application implements Initializable { @ FXML private AnchorPane root ; @ FXML private TextField username ; @ FXML private TextField password ; @ FXML private Button register ; @ FXML private Button settings ; @ FXML private Button login ; @ FXML private CheckBox keepLoggedIn ; @ FXML private Button help ; @ FXML private Label errorMsg ; @ Override public void start ( Stage primaryStage ) throws Exception { } public static void main ( String [ ] args ) { } @ Override public void initialize ( URL url , ResourceBundle rb ) { } @ FXML private void onSettings ( ActionEvent event ) throws Exception { } @ FXML private void onLogin ( ActionEvent event ) throws Exception { <START_BUG> if ( User . login ( "dfs@live.no" , "12345" ) ) { <END_BUG> ( ( Node ) ( event . getSource ( ) ) ) . getScene ( ) . getWindow ( ) . hide ( ) ; login ( ) ; } } private void login ( ) throws Exception { } @ FXML private void onHelp ( ActionEvent event ) { } }

Fix:
if ( ( User . login ( username . getText ( ) , password . getText ( ) ) ) == true ) {
Buggy code:
public class GoMachineToStartState implements TreeModelPrereqs { public String toString ( ) { <START_BUG> return "State<seq2seq4repair_space>Machine->Start<seq2seq4repair_space>States" ; <END_BUG> } public Object getRoot ( ) { } public void setRoot ( Object r ) { } public Object getChild ( Object parent , int index ) { } public int getChildCount ( Object parent ) { } public int getIndexOfChild ( Object parent , Object child ) { } public boolean isLeaf ( Object node ) { } public void valueForPathChanged ( TreePath path , Object newValue ) { } public void addTreeModelListener ( TreeModelListener l ) { } public void removeTreeModelListener ( TreeModelListener l ) { } public Vector getPrereqs ( ) { } public Vector getProvidedTypes ( ) { } }

Fix:
return "State<seq2seq4repair_space>Machine->Initial<seq2seq4repair_space>States" ;
Buggy code:
@ Service public class SecurityService { @ Autowired UserService userService ; @ Autowired SessionDao sessionDao ; @ Autowired UserDao userDao ; @ Autowired LicenseService licenseService ; @ Autowired AuthorizationMappingDao authorizationMappingDao ; @ Value ( "${session.idle_timeout:30}" ) private int idle_session_timeout ; private static final Logger logger = Logger . getLogger ( SecurityService . class ) ; private static final String [ ] LOGIN_EXCEPTION_VALUES = new String [ ] { "//feedback-review//login" , "//feedback-review//license//register" } ; private static final Set < String > LOGIN_EXCEPTION_URIS = new HashSet < String > ( Arrays . asList ( SecurityService . LOGIN_EXCEPTION_VALUES ) ) ; @ Transactional public HttpStatus checkAuthenticationAndAuthorization ( HttpServletRequest httpRequest ) { } public UserDbType getUserDbType ( String sessionId ) { } @ Transactional public String createLogin ( final MultiValueMap < String , String > credentials , LoginResponse loginResponse ) { } @ Transactional public void deleteLogin ( String sessionId ) { } private boolean isUriTokenMatch ( UserDbType userDbType , String uriToken , String givenUriToken , String beforeToken ) { } private String findPath ( String uri ) { } private void printStrings ( String [ ] strings ) { } private boolean isPathMatch ( UserDbType userDbType , String uri , String givenUri ) { } public Map < String , String > splitQuery ( String queryString ) throws UnsupportedEncodingException { } private boolean isQueryStringMatch ( UserDbType userDbType , int roleType , String queryString , String givenQueryString ) { } private boolean isUriMatch ( UserDbType userDbType , int roleType , String uri , String givenUri , String givenQueryString ) { String uriPath = findPath ( uri ) ; String givenUriPath = findPath ( givenUri ) ; if ( ! ( isPathMatch ( userDbType , uriPath , givenUriPath ) ) ) { SecurityService . logger . debug ( "Path<seq2seq4repair_space>authorization<seq2seq4repair_space>failed" ) ; return false ; } String [ ] queryStrings = uri . split ( "\\?" ) ; <START_BUG> if ( ( queryStrings . length ) == 2 ) { <END_BUG> if ( ! ( isQueryStringMatch ( userDbType , roleType , queryStrings [ 1 ] , givenQueryString ) ) ) { SecurityService . logger . debug ( "Query<seq2seq4repair_space>string<seq2seq4repair_space>authorization<seq2seq4repair_space>failed" ) ; return false ; } } return true ; } public boolean isAuthorizedForApi ( String method , String uri , String queryString , SessionDbType sessionDbType ) { } }

Fix:
if ( ( ( queryStrings . length ) == 2 ) && ( roleType == ( BranchManager . getRoleValue ( ) ) ) ) {
Buggy code:
public class CopyLinkLocationAction extends FrameAction implements Observer { URL url = null ; public CopyLinkLocationAction ( AbstractFrameController controller ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> ( ( AbstractMailFrameController ) ( frameController ) ) . messageController . getView ( ) . getToolkit ( ) . getSystemClipboard ( ) . setContents ( new StringSelection ( url . toString ( ) ) , null ) ; <END_BUG> } public void update ( Observable arg0 , Object arg1 ) { } }

Fix:
( ( AbstractMailFrameController ) ( frameMediator ) ) . messageController . getView ( ) . getToolkit ( ) . getSystemClipboard ( ) . setContents ( new StringSelection ( url . toString ( ) ) , null ) ;
Buggy code:
public class MongoConnection extends Connection { MongoClient client ; static int MONGO_PORT = 27017 ; DB db ; public MongoConnection ( String user , String password , String host , int dbPort , int wsPort ) { } private void connect ( ) throws Exception { } private DBCollection getCollectionFromName ( String collName ) throws DbException { } @ Override public String getFromDbByField ( String collName , String value , String field ) throws DbException { } @ Override public String getFromDb ( String collName , String docID ) throws DbException { } @ Override public String putToDb ( String collName , String docID , String json ) throws DbException { } @ Override public String addToDb ( String collName , String json ) throws DbException { } @ Override public String removeFromDb ( String collName , String docID ) throws DbException { } @ Override public String removeFromDbByField ( String collName , String field , String value ) throws DbException { } public String removeFromDbByExpr ( String collName , String key , String expr ) throws DbException { } @ Override public String [ ] listDocuments ( String collName , String expr , String key ) throws DbException { } @ Override public String [ ] listCollection ( String collName ) throws DbException { if ( ! ( collName . equals ( CORPIX ) ) ) { try { connect ( ) ; } catch ( Exception e ) { throw new DbException ( e ) ; } DBCollection coll = getCollectionFromName ( collName ) ; BasicDBObject keys = new BasicDBObject ( ) ; keys . put ( DOCID , 1 ) ; DBCursor cursor = coll . find ( new BasicDBObject ( ) , keys ) ; if ( ( cursor . length ( ) ) > 0 ) { String [ ] docs = new String [ cursor . length ( ) ] ; Iterator < DBObject > iter = cursor . iterator ( ) ; int i = 0 ; while ( iter . hasNext ( ) ) docs [ ( i ++ ) ] = ( ( String ) ( iter . next ( ) . get ( DOCID ) ) ) ; return docs ; } else <START_BUG> throw new DbException ( ( "no<seq2seq4repair_space>docs<seq2seq4repair_space>in<seq2seq4repair_space>collection<seq2seq4repair_space>" + collName ) ) ; <END_BUG> } else { GridFS gfs = new GridFS ( db , collName ) ; DBCursor curs = gfs . getFileList ( ) ; int i = 0 ; List < DBObject > list = curs . toArray ( ) ; HashSet < String > set = new HashSet < String > ( ) ; Iterator < DBObject > iter = list . iterator ( ) ; while ( iter . hasNext ( ) ) { String name = ( ( String ) ( iter . next ( ) . get ( "filename" ) ) ) ; set . add ( name ) ; } String [ ] docs = new String [ set . size ( ) ] ; set . toArray ( docs ) ; return docs ; } } @ Override public byte [ ] getImageFromDb ( String collName , String docID , MimeType type ) { } public String getMetadata ( String coll , String docid ) { } public Rectangle getImageDimensions ( String coll , String docID , MimeType type ) { } @ Override public void putImageToDb ( String collName , String docID , byte [ ] data , int width , int height , String mimeType ) throws DbException { } @ Override public void removeImageFromDb ( String collName , String docID ) throws DbException { } No newline ; at end ; of file ; }

Fix:
return new String [ 0 ] ;
Buggy code:
public class DocumentProcessorTest extends MahoutTestCase { @ Test public void testTokenizeDocuments ( ) throws Exception { <START_BUG> Configuration configuration = new Configuration ( ) ; <END_BUG> Path input = new Path ( getTestTempDirPath ( ) , "inputDir" ) ; Path output = new Path ( getTestTempDirPath ( ) , "outputDir" ) ; FileSystem fs = FileSystem . get ( input . toUri ( ) , configuration ) ; String documentId1 = "123" ; String documentId2 = "456" ; SequenceFile . Writer writer = new SequenceFile . Writer ( fs , configuration , input , Text . class , Text . class ) ; try { String text1 = "A<seq2seq4repair_space>test<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>document<seq2seq4repair_space>processor" ; writer . append ( new Text ( documentId1 ) , new Text ( text1 ) ) ; String text2 = "and<seq2seq4repair_space>another<seq2seq4repair_space>one" ; writer . append ( new Text ( documentId2 ) , new Text ( text2 ) ) ; } finally { Closeables . closeQuietly ( writer ) ; } DocumentProcessor . tokenizeDocuments ( input , StandardAnalyzer . class , output , configuration ) ; FileStatus [ ] statuses = fs . listStatus ( output , PathFilters . logsCRCFilter ( ) ) ; assertEquals ( 1 , statuses . length ) ; Path filePath = statuses [ 0 ] . getPath ( ) ; SequenceFile . Reader reader = new SequenceFile . Reader ( fs , filePath , configuration ) ; Text key = ClassUtils . instantiateAs ( ( ( Class < ? extends Text > ) ( reader . getKeyClass ( ) ) ) , Text . class ) ; StringTuple value = ClassUtils . instantiateAs ( ( ( Class < ? extends StringTuple > ) ( reader . getValueClass ( ) ) ) , StringTuple . class ) ; reader . next ( key , value ) ; assertEquals ( documentId1 , key . toString ( ) ) ; assertEquals ( Arrays . asList ( "test" , "document" , "processor" ) , value . getEntries ( ) ) ; reader . next ( key , value ) ; assertEquals ( documentId2 , key . toString ( ) ) ; assertEquals ( Arrays . asList ( "another" , "one" ) , value . getEntries ( ) ) ; } }

Fix:
Configuration configuration = getConfiguration ( ) ;
Buggy code:
@ Named @ ViewScoped public class CurrentBookBean implements Serializable { private static final Logger LOG = Logger . getLogger ( CurrentBookBean . class ) ; private static final Random random = new Random ( ) ; @ Inject private Configuration configuration ; @ Inject private PageSwitcherBean pageSwitcher ; @ Inject private BookPersistence persistence ; private Book currentBook ; private String tag ; private Long id ; private Part imageFile ; private Part bookFile ; public CurrentBookBean ( ) { } public CurrentBookBean ( Long id ) { } protected Path getBasePath ( boolean isBook ) { } public void doSetCurrentBook ( ) { } public void doAddTags ( ) { } public void doAddTags ( String string ) { } public void removeTag ( String tag ) { if ( CurrentBookBean . LOG . isInfoEnabled ( ) ) { CurrentBookBean . LOG . info ( ( "Removed<seq2seq4repair_space>Tag:<seq2seq4repair_space>" + tag ) ) ; } <START_BUG> currentBook . getTags ( ) . removeIf ( ( bookTag ) -> bookTag . getTag ( ) . equals ( tag . toUpperCase ( ) . trim ( ) ) ) ; <END_BUG> } public void doSave ( ) { } protected void persistTagsIfNotAlreadyInDatabase ( Book currentBook ) { } protected DataFileLocation uploadAndSaveFiles ( ) { } private void uploadAndSaveImageLocation ( DataFileLocation location ) { } private void uploadAndSaveBookLocation ( DataFileLocation location ) { } protected Path uploadAndSaveFileToHardDisk ( Part part , boolean isBook ) { } private String createUniqueFileName ( String fileName ) { } @ RolesAllowed ( "user" ) public String deleteBook ( ) { } private void removeFiles ( ) { } public Long getId ( ) { } public void setId ( Long id ) { } public Book getCurrentBook ( ) { } public void setCurrentBook ( Book currentBook ) { } public String getTag ( ) { } public void setTag ( String tag ) { } public Part getImageFile ( ) { } public void setImageFile ( Part imageFile ) { } public Part getBookFile ( ) { } public void setBookFile ( Part bookFile ) { } public Configuration getConfiguration ( ) { } public void setConfiguration ( Configuration configuration ) { } public BookPersistence getPersistence ( ) { } public void setPersistence ( BookPersistence persistence ) { } public PageSwitcherBean getPageSwitcher ( ) { } public void setPageSwitcher ( PageSwitcherBean pageSwitcher ) { } }

Fix:
currentBook . getTags ( ) . removeIf ( ( bookTag ) -> bookTag . getTagName ( ) . equals ( tag . toUpperCase ( ) . trim ( ) ) ) ;
Buggy code:
public class NutritionGoalFragment extends Fragment { View rootView ; TextView weekDisplayNutrition ; TextView nutritionGoal ; TextView ngDescTextView ; Button linksButton ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; rootView = inflater . inflate ( nutrition_goal_fragment , container , false ) ; getActivity ( ) . getActionBar ( ) . setTitle ( "Step<seq2seq4repair_space>It<seq2seq4repair_space>Up" ) ; ngDescTextView = ( ( TextView ) ( rootView . findViewById ( nutrition_goal_desc ) ) ) ; ngDescTextView . setText ( globalWeekDataList . get ( ( ( sessionData . getWeekNumber ( ) ) - 1 ) ) . getNutrition_goal_description ( ) ) ; weekDisplayNutrition = ( ( TextView ) ( rootView . findViewById ( week_display_nutrition ) ) ) ; weekDisplayNutrition . setText ( ( ( "Week<seq2seq4repair_space>" + ( sessionData . getWeekNumber ( ) ) ) + ":<seq2seq4repair_space>Nutrition<seq2seq4repair_space>Goal" ) ) ; nutritionGoal = ( ( TextView ) ( rootView . findViewById ( nutrition_goal ) ) ) ; nutritionGoal . setText ( ( "Goal:<seq2seq4repair_space>" + ( globalWeekDataList . get ( ( ( sessionData . getWeekNumber ( ) ) - 1 ) ) . getNutrition_goal ( ) ) ) ) ; <START_BUG> linksButton = ( ( Button ) ( rootView . findViewById ( physical_activity_links_button ) ) ) ; <END_BUG> linksButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { LinksFragment linksFragment = new LinksFragment ( ) ; Bundle args = new Bundle ( ) ; args . putBoolean ( "from_physical_activity" , false ) ; linksFragment . setArguments ( args ) ; NutritionGoalFragment . this . getActivity ( ) . getFragmentManager ( ) . beginTransaction ( ) . replace ( main_nav_fragment , linksFragment ) . commit ( ) ; } } ) ; return rootView ; } }

Fix:
linksButton = ( ( Button ) ( rootView . findViewById ( nutrition_goal_links_button ) ) ) ;
Buggy code:
public class Algorithmes { private class SommetTarjan { Integer sommet ; int num ; int numAccessible ; boolean dansP ; public SommetTarjan ( Integer sommet ) { } } public static List < Set < Integer > > Tarjan ( Graphe g ) { int num = 0 ; Map < Integer , Algorithmes . SommetTarjan > sommets = new HashMap < Integer , Algorithmes . SommetTarjan > ( ) ; for ( Integer sommet : g . getSommets ( ) ) { sommets . put ( sommet , new Algorithmes . SommetTarjan ( sommet ) ) ; } List < Set < Integer > > partition = new ArrayList < Set < Integer > > ( ) ; Deque < Integer > pile = new LinkedList < Integer > ( ) ; for ( Integer sommet : g . getSommets ( ) ) { if ( ( sommets . get ( sommet ) . num ) == ( - 1 ) ) <START_BUG> Algorithmes . parcours ( sommet , partition , pile , num , g ) ; <END_BUG> } return partition ; } private static void parcours ( Integer v , List < Set < Integer > > partition , Deque < Integer > pile , int num , Graphe g , Map < Integer , Algorithmes . SommetTarjan > sommets ) { } }

Fix:
Algorithmes . parcours ( sommet , partition , pile , num , g , sommets ) ;
Buggy code:
public class LocalizedErrorMessageTest extends WicketTestCase { public void testWICKET_891 ( ) { tester . setupRequestAndResponse ( ) ; tester . getWicketSession ( ) . setLocale ( new Locale ( "nl" ) ) ; LocalizedMessagePage page = new LocalizedMessagePage ( ) ; tester . startPage ( page ) ; tester . processRequestCycle ( ) ; tester . setupRequestAndResponse ( ) ; tester . getServletRequest ( ) . setRequestToComponent ( page . form ) ; tester . getServletRequest ( ) . setParameter ( page . integerField . getInputName ( ) , "foo" ) ; page . form . onFormSubmitted ( ) ; <START_BUG> tester . assertErrorMessages ( new String [ ] { "'foo'<seq2seq4repair_space>is<seq2seq4repair_space>geen<seq2seq4repair_space>valide<seq2seq4repair_space>type<seq2seq4repair_space>van<seq2seq4repair_space>Integer." } ) ; <END_BUG> tester . getWicketSession ( ) . setLocale ( new Locale ( "us" ) ) ; tester . getWicketSession ( ) . cleanupFeedbackMessages ( ) ; tester . setupRequestAndResponse ( ) ; page = new LocalizedMessagePage ( ) ; tester . startPage ( page ) ; tester . processRequestCycle ( ) ; tester . setupRequestAndResponse ( ) ; tester . getServletRequest ( ) . setRequestToComponent ( page . form ) ; tester . getServletRequest ( ) . setParameter ( page . integerField . getInputName ( ) , "foo" ) ; page . form . onFormSubmitted ( ) ; tester . assertErrorMessages ( new String [ ] { "'foo'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>Integer." } ) ; } }

Fix:
tester . assertErrorMessages ( new String [ ] { "'foo'<seq2seq4repair_space>in<seq2seq4repair_space>veld<seq2seq4repair_space>'integer'<seq2seq4repair_space>moet<seq2seq4repair_space>een<seq2seq4repair_space>geheel<seq2seq4repair_space>getal<seq2seq4repair_space>zijn.<seq2seq4repair_space>" } ) ;
Buggy code:
public class JacksonEntitySerializer implements EntitySerializer { private final Database db ; private final ObjectMapper mapper = new ObjectMapper ( ) ; public JacksonEntitySerializer ( Database db ) { } @ SuppressWarnings ( "rawtypes" ) private void initDbMapper ( ) { } public String stringify ( Object value ) { } private byte [ ] stringifyWithExtras ( Object value , Object ... extras ) { } @ SuppressWarnings ( "unchecked" ) public < T > void parse ( byte [ ] bytes , T destination ) { try { Map < String , Object > map = mapper . readValue ( bytes , Map . class ) ; <START_BUG> Beany . update ( map , destination ) ; <END_BUG> } catch ( Exception e ) { Log . error ( "Cannot<seq2seq4repair_space>parse<seq2seq4repair_space>JSON!" , e ) ; throw new RuntimeException ( e ) ; } } @ Override public byte [ ] serialize ( Object entity ) { } @ Override public < T > void deserialize ( byte [ ] bytes , T destination ) { } }

Fix:
Beany . update ( destination , map , false ) ;
Buggy code:
public class FederatedQueryBitVectorJoin extends FederatedQueryWithSucceedingJoin { private FederatedQueryBitVectorJoin . IToStringHelper toStringHelper ; public FederatedQueryBitVectorJoin ( final Node federatedQuery ) { } public static int substringSize = 8 ; public static FederatedQueryBitVectorJoin . HASHFUNCTION hashFunction = FederatedQueryBitVectorJoin . HASHFUNCTION . MD5 ; public static Class < ? extends FederatedQueryBitVectorJoin . IToStringHelper > approachClass = FederatedQueryBitVectorJoin . BitVectorJoinToStringHelper . class ; public static enum HASHFUNCTION { MD5 , SHA1 , SHA256 ( ) { @ Override public String getName ( ) { } } , SHA384 ( ) { @ Override public String getName ( ) { } } , SHA512 ( ) { @ Override public String getName ( ) { } } ; public String getName ( ) { } } public static enum APPROACH { MD5 , SHA1 , SHA256 , SHA384 , SHA512 , Value , ValueSubstring , NonStandardSPARQL ; public void setup ( ) { if ( ( this ) == ( FederatedQueryBitVectorJoin . APPROACH . NonStandardSPARQL ) ) { ServiceApproaches . setNonStandardSPARQLBitVectorJoin ( true ) ; } else { ServiceApproaches . setNonStandardSPARQLBitVectorJoin ( false ) ; if ( ( this ) == ( FederatedQueryBitVectorJoin . APPROACH . Value ) ) { FederatedQueryBitVectorJoin . approachClass = FederatedQueryBitVectorJoin . SemiJoinToStringHelper . class ; <START_BUG> } <END_BUG> if ( ( this ) == ( FederatedQueryBitVectorJoin . APPROACH . ValueSubstring ) ) { FederatedQueryBitVectorJoin . approachClass = FederatedQueryBitVectorJoin . SubstringValueToStringHelper . class ; } else { FederatedQueryBitVectorJoin . approachClass = FederatedQueryBitVectorJoin . BitVectorJoinToStringHelper . class ; FederatedQueryBitVectorJoin . hashFunction = FederatedQueryBitVectorJoin . HASHFUNCTION . values ( ) [ this . ordinal ( ) ] ; } } } } public static interface IToStringHelper { public String functionCall ( Variable variable ) { } public String valueConverter ( final Literal value ) { } } public static class BitVectorJoinToStringHelper implements FederatedQueryBitVectorJoin . IToStringHelper { @ Override public String functionCall ( final Variable variable ) { } @ Override public String valueConverter ( final Literal value ) { } } public static class SemiJoinToStringHelper implements FederatedQueryBitVectorJoin . IToStringHelper { @ Override public String functionCall ( final Variable variable ) { } @ Override public String valueConverter ( final Literal value ) { } } public static class SubstringValueToStringHelper implements FederatedQueryBitVectorJoin . IToStringHelper { @ Override public String functionCall ( final Variable variable ) { } @ Override public String valueConverter ( final Literal value ) { } } @ Override public String toStringQuery ( final QueryResult queryResult ) { } }

Fix:
} else
Buggy code:
public class Tester extends APosition implements Сontractor { private int hourlyRate ; private double hoursWorked ; private float amountHoursOneInstructions ; public Tester ( String name ) { } @ Override public void setHourlyRate ( int hourlyRate ) { } @ Override public void setAmountHoursOneInstructions ( float amountHoursOneInstructions ) { } @ Override public double calcSalary ( ) { } @ Override public void getToWork ( ) { <START_BUG> hourlyRate += amountHoursOneInstructions ; <END_BUG> } @ Override public double paySalary ( ) { } }

Fix:
hoursWorked += amountHoursOneInstructions ;
Buggy code:
@ Component public class UserInternaturValidator implements GDEWebConstants , Validator { @ Autowired private FileValidator fileValidator ; @ Override public boolean supports ( final Class < ? > aClass ) { } @ Override public void validate ( final Object object , final Errors err ) { } protected void validateRequiredData ( final UserInternaturDetailDto dto , final Errors err ) { } protected void validateData ( final UserInternaturDetailDto dto , final Errors err ) { try { if ( ( ! ( GDEStringUtils . isNullOrEmpty ( dto . getStartDate ( ) ) ) ) && ( ! ( GDEStringUtils . isNullOrEmpty ( dto . getEndDate ( ) ) ) ) ) { if ( ! ( DateUtil . compareStringDates ( dto . getStartDate ( ) , dto . getEndDate ( ) , DISPLAY_FORMAT ) ) ) { err . rejectValue ( "userInternaturDetailDto.endDate" , "invalid.end.date" ) ; } } if ( ( ! ( GDEStringUtils . isNullOrEmpty ( dto . getValidUntil ( ) ) ) ) && ( ! ( GDEStringUtils . isNullOrEmpty ( dto . getEndDate ( ) ) ) ) ) { if ( ! ( DateUtil . compareStringDates ( dto . getEndDate ( ) , dto . getValidUntil ( ) , DISPLAY_FORMAT ) ) ) { <START_BUG> err . rejectValue ( "userInternaturDetailDto.validUntil" , "invalid.end.date" ) ; <END_BUG> } } List < DocumentDto > documentDtoList = new ArrayList < DocumentDto > ( ) ; dto . getCertificateInternatur ( ) . setHtmlPath ( "userInternaturDetailDto.certificateInternatur.file" ) ; if ( ( ( dto . getCertificateInternatur ( ) . getFile ( ) ) != null ) && ( ! ( dto . getCertificateInternatur ( ) . getFile ( ) . isEmpty ( ) ) ) ) { documentDtoList . add ( dto . getCertificateInternatur ( ) ) ; } List < String > hashValueList = new ArrayList < String > ( ) ; if ( ( documentDtoList != null ) && ( ( documentDtoList . size ( ) ) > 0 ) ) { for ( DocumentDto documentDto : documentDtoList ) { documentDto . setHashValue ( GDEFileUtil . getHashValue ( documentDto . getFile ( ) ) ) ; if ( hashValueList . contains ( documentDto . getHashValue ( ) ) ) { err . rejectValue ( documentDto . getHtmlPath ( ) , "file.already.uploaded.error" ) ; } else { fileValidator . validate ( documentDto , err ) ; } hashValueList . add ( documentDto . getHashValue ( ) ) ; } } } catch ( Exception e ) { throw new GDEException ( e ) ; } } }

Fix:
err . rejectValue ( "userInternaturDetailDto.validUntil" , "invalid.validuntil.date" ) ;
Buggy code:
public class ArtifactCreationTest { @ Test ( expected = IllegalArgumentException . class ) public void createBadArtifact ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void createBadArtifact2 ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void createBadArtifact3 ( ) throws Exception { <START_BUG> new Artifact ( "E:\\workspaceBranch\\iGrid\\rio\\lib\\rio-lib-5.1.1.jar;E:\\workspaceBranch\\iGrid\\rio\\lib-dl\\rio-proxy-5.1.1.jar;E:\\workspaceBranch\\iGrid\\rio\\lib-dl\\rio-api-5.1.1.jar;E:\\workspaceBranch\\iGrid\\rio\\lib-dl\\serviceui-2.2.2.jar" ) ; <END_BUG> } @ Test public void createGoodArtifact ( ) { } @ Test public void createGoodArtifactWithType ( ) { } @ Test public void createGoodArtifactWithClassifier ( ) { } }

Fix:
new Artifact ( "E:\\workspaceBranch\\iGrid\\rio\\lib\\rio-lib-5.1.2.jar;E:\\workspaceBranch\\iGrid\\rio\\lib-dl\\rio-proxy-5.1.2.jar;E:\\workspaceBranch\\iGrid\\rio\\lib-dl\\rio-api-5.1.2.jar;E:\\workspaceBranch\\iGrid\\rio\\lib-dl\\serviceui-2.2.2.jar" ) ;
Buggy code:
public class JSCFController { private static final Logger LOG = Logger . getLogger ( "org.columba.mail.pgp" ) ; private static JSCFController myInstance = null ; private static Map connectionMap ; public static JSCFController getInstance ( ) { } private static void registerDrivers ( ) { } public JSCFConnection getConnection ( String userID ) throws JSCFException { PGPItem pgpItem = config . getAccountList ( ) . getDefaultAccount ( ) . getPGPItem ( ) ; JSCFConnection con = ( ( JSCFConnection ) ( JSCFController . connectionMap . get ( userID ) ) ) ; if ( con == null ) { JSCFController . LOG . fine ( ( ( "no<seq2seq4repair_space>connection<seq2seq4repair_space>for<seq2seq4repair_space>userID<seq2seq4repair_space>(" + userID ) + ")<seq2seq4repair_space>found.<seq2seq4repair_space>Creating<seq2seq4repair_space>a<seq2seq4repair_space>new<seq2seq4repair_space>Connection." ) ) ; con = JSCFDriverManager . getConnection ( "jscf:gpg:" ) ; ExternalToolsPluginHandler handler = null ; String path = null ; try { JSCFController . LOG . fine ( "try<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>the<seq2seq4repair_space>handler" ) ; handler = ( ( ExternalToolsPluginHandler ) ( pluginManager . getHandler ( "org.columba.core.externaltools" ) ) ) ; JSCFController . LOG . fine ( "recived<seq2seq4repair_space>Handler<seq2seq4repair_space>...<seq2seq4repair_space>getting<seq2seq4repair_space>path<seq2seq4repair_space>from<seq2seq4repair_space>it" ) ; path = handler . getLocationOfExternalTool ( "gpg" ) . getPath ( ) ; JSCFController . LOG . fine ( ( "setting<seq2seq4repair_space>path:<seq2seq4repair_space>" + path ) ) ; } catch ( PluginHandlerNotFoundException e ) { JSCFController . LOG . fine ( ( "PluginHandler<seq2seq4repair_space>not<seq2seq4repair_space>found" + e ) ) ; if ( MainInterface . DEBUG ) { e . printStackTrace ( ) ; } } Properties props = con . getProperties ( ) ; if ( path == null ) { <START_BUG> path = pgpItem . get ( "PATH" ) ; <END_BUG> } props . put ( "PATH" , path ) ; if ( handler != null ) { JSCFController . LOG . fine ( ( "gpg<seq2seq4repair_space>userId:<seq2seq4repair_space>" + ( handler . getAttribute ( "gpg" , "id" ) ) ) ) ; } JSCFController . LOG . info ( ( "gpg<seq2seq4repair_space>path:<seq2seq4repair_space>" + ( props . get ( "PATH" ) ) ) ) ; props . put ( "USERID" , pgpItem . get ( "id" ) ) ; JSCFController . LOG . info ( ( "current<seq2seq4repair_space>gpg<seq2seq4repair_space>userID:<seq2seq4repair_space>" + ( props . get ( "USERID" ) ) ) ) ; con . setProperties ( props ) ; JSCFController . connectionMap . put ( userID , con ) ; } return con ; } public JSCFConnection getConnection ( ) throws JSCFException { } }

Fix:
throw new ProgramNotFoundException ( "invalid<seq2seq4repair_space>path" ) ;
Buggy code:
public class Player extends GameObject { private float velX ; private float velY ; public Player ( String ref , float x , float y ) { } @ Override public void update ( ) { } @ Override public void render ( Graphics g ) { <START_BUG> g . drawImage ( sprite . getImage ( ) , ( ( int ) ( x ) ) , ( ( int ) ( y ) ) , null ) ; <END_BUG> } public float getVelX ( ) { } public void setVelX ( float velX ) { } public float getVelY ( ) { } public void setVelY ( float velY ) { } }

Fix:
sprite . render ( g , x , y ) ;
Buggy code:
public class TestDoc extends LuceneTestCase { private File workDir ; private File indexDir ; private LinkedList < File > files ; @ Override public void setUp ( ) throws Exception { } private File createOutput ( String name , String text ) throws IOException { } public void testIndexAndMerge ( ) throws Exception { } private SegmentInfoPerCommit indexDoc ( IndexWriter writer , String fileName ) throws Exception { } private SegmentInfoPerCommit merge ( Directory dir , SegmentInfoPerCommit si1 , SegmentInfoPerCommit si2 , String merged , boolean useCompoundFile ) throws Exception { IOContext context = newIOContext ( random ( ) ) ; SegmentReader r1 = new SegmentReader ( si1 , DirectoryReader . DEFAULT_TERMS_INDEX_DIVISOR , context ) ; SegmentReader r2 = new SegmentReader ( si2 , DirectoryReader . DEFAULT_TERMS_INDEX_DIVISOR , context ) ; final Codec codec = Codec . getDefault ( ) ; TrackingDirectoryWrapper trackingDir = new TrackingDirectoryWrapper ( si1 . info . dir ) ; final SegmentInfo si = new SegmentInfo ( si1 . info . dir , Constants . LUCENE_MAIN_VERSION , merged , ( - 1 ) , false , codec , null , null ) ; <START_BUG> SegmentMerger merger = new SegmentMerger ( si , InfoStream . getDefault ( ) , trackingDir , IndexWriterConfig . DEFAULT_TERM_INDEX_INTERVAL , CheckAbort . NONE , null , new FieldInfos . FieldNumbers ( ) , context ) ; <END_BUG> merger . add ( r1 ) ; merger . add ( r2 ) ; MergeState mergeState = merger . merge ( ) ; r1 . close ( ) ; r2 . close ( ) ; final SegmentInfo info = new SegmentInfo ( si1 . info . dir , Constants . LUCENE_MAIN_VERSION , merged , ( ( si1 . info . getDocCount ( ) ) + ( si2 . info . getDocCount ( ) ) ) , false , codec , null , null ) ; info . setFiles ( new HashSet < String > ( trackingDir . getCreatedFiles ( ) ) ) ; if ( useCompoundFile ) { Collection < String > filesToDelete = IndexWriter . createCompoundFile ( InfoStream . getDefault ( ) , dir , NONE , info , newIOContext ( random ( ) ) ) ; info . setUseCompoundFile ( true ) ; for ( final String fileToDelete : filesToDelete ) { si1 . info . dir . deleteFile ( fileToDelete ) ; } } return new SegmentInfoPerCommit ( info , 0 , ( - 1L ) ) ; } private void printSegment ( PrintWriter out , SegmentInfoPerCommit si ) throws Exception { } }

Fix:
SegmentMerger merger = new SegmentMerger ( si , InfoStream . getDefault ( ) , trackingDir , IndexWriterConfig . DEFAULT_TERM_INDEX_INTERVAL , CheckAbort . NONE , new FieldInfos . FieldNumbers ( ) , context ) ;
Buggy code:
public class H2Dialect implements Dialect { @ Override public String paging ( String sql , long pageNumber , long pageSize ) throws SQLException { } @ Override public String count ( String sql ) throws SQLException { } @ Override public String createTableIfNotExist ( String tableName , Map < String , String > fields , String pk ) throws SQLException { StringBuilder sb = new StringBuilder ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + tableName ) + "<seq2seq4repair_space>(<seq2seq4repair_space>" ) ) ; for ( Map . Entry < String , String > field : fields . entrySet ( ) ) { String f = field . getValue ( ) . toLowerCase ( ) ; String t ; if ( ( f . equals ( "int" ) ) || ( f . equals ( "integer" ) ) ) { t = "INT" ; } else if ( f . equals ( "long" ) ) { t = "BIGINT" ; } else if ( f . equals ( "short" ) ) { t = "SMALLINT" ; } else if ( f . equals ( "string" ) ) { t = "VARCHAR(65535)" ; } else if ( ( f . equals ( "bool" ) ) || ( f . equals ( "boolean" ) ) ) { t = "BOOLEAN" ; } else if ( f . equals ( "float" ) ) { t = "FLOAT" ; } else if ( f . equals ( "double" ) ) { t = "DOUBLE" ; } else if ( f . equals ( "char" ) ) { t = "CHAR" ; } else if ( f . equals ( "date" ) ) { t = "TIMESTAMP" ; } else if ( f . equals ( "uuid" ) ) { t = "UUID" ; } else if ( f . equals ( "decimal" ) ) { t = "DECIMAL" ; } else { throw new SQLException ( ( "Not<seq2seq4repair_space>support<seq2seq4repair_space>type:" + f ) ) ; } sb . append ( ( ( ( ( field . getKey ( ) ) + "<seq2seq4repair_space>" ) + t ) + "<seq2seq4repair_space>," ) ) ; } if ( ( pk != null ) && ( ( pk . trim ( ) ) != "" ) ) { return sb . append ( ( ( "primary<seq2seq4repair_space>key(" + ( pk . trim ( ) ) ) + ")<seq2seq4repair_space>)" ) ) . toString ( ) ; } else { <START_BUG> return sb . substring ( 0 , ( ( sb . length ( ) ) - 1 ) ) . toString ( ) ; <END_BUG> } } }

Fix:
return ( sb . substring ( 0 , ( ( sb . length ( ) ) - 1 ) ) . toString ( ) ) + ")" ;
Buggy code:
public class JarTest extends BuildFileTest { private static long jarModifiedDate ; private static String tempJar = "tmp.jar" ; public JarTest ( String name ) { } public void setUp ( ) { } public void test1 ( ) { } public void test2 ( ) { <START_BUG> expectBuildException ( "test2" , "manifect<seq2seq4repair_space>file<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) ; <END_BUG> } public void test3 ( ) { } public void test4 ( ) { } public void XXXtest5 ( ) { } }

Fix:
expectBuildException ( "test2" , "manifest<seq2seq4repair_space>file<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) ;
Buggy code:
public abstract class AbstractButtonObject extends AbstractGameObject { public static final String TAG = AbstractButtonObject . class . getName ( ) ; protected Texture pixmapTexture = null ; protected Pixmap buttonPixmap = null ; public AbstractButtonObject ( int width , int height , float x , float y , Color outsideColor , Color insideColor ) { } protected void init ( int width , int height , float x , float y , Color outsideColor , Color insideColor ) { dimension . set ( width , height ) ; position . set ( x , y ) ; buttonPixmap = new Pixmap ( width , height , Format . RGBA8888 ) ; fillPixmap ( width , height , outsideColor , insideColor ) ; this . pixmapTexture = new Texture ( buttonPixmap , Format . RGBA8888 , false ) ; <START_BUG> pixmapTexture . setFilter ( Linear , Linear ) ; <END_BUG> origin . set ( ( ( dimension . x ) // 2 ) , ( ( dimension . y ) // 2 ) ) ; } public abstract void fillPixmap ( int width , int height , Color outsideColor , Color insideColor ) { } public abstract void fillInside ( int size ) { } public void render ( SpriteBatch batch ) { } public abstract boolean isTouched ( int x , int y ) { } }

Fix:
pixmapTexture . setFilter ( Nearest , Nearest ) ;
Buggy code:
public class ServiceAdapter extends BaseAdapter { private List < Service > mList ; private Context mContext ; public ServiceAdapter ( Context context , List < Service > list ) { } @ Override public int getCount ( ) { } @ Override public Object getItem ( int position ) { } @ Override public long getItemId ( int arg0 ) { } @ Override public View getView ( int position , View convertView , ViewGroup arg2 ) { ServiceAdapter . ViewHolder holder ; if ( ( mList . size ( ) ) == 0 ) { return convertView ; } if ( convertView == null ) { holder = new ServiceAdapter . ViewHolder ( ) ; convertView = LayoutInflater . from ( mContext ) . inflate ( item_service , null ) ; holder . imageView = ( ( ImageView ) ( convertView . findViewById ( service_img ) ) ) ; holder . personNum = ( ( TextView ) ( convertView . findViewById ( service_person ) ) ) ; holder . serviceName = ( ( TextView ) ( convertView . findViewById ( service_name ) ) ) ; holder . servicePrice = ( ( TextView ) ( convertView . findViewById ( service_price ) ) ) ; convertView . setTag ( holder ) ; } else { holder = ( ( ServiceAdapter . ViewHolder ) ( convertView . getTag ( ) ) ) ; } <START_BUG> ImageLoader . getInstance ( ) . displayImage ( mList . get ( position ) . getmServiceIcon ( ) , holder . imageView , mHallIconLoaderOptions ) ; <END_BUG> holder . personNum . setText ( ( ( mList . get ( position ) . getmServicePerson ( ) ) + "人体验" ) ) ; holder . serviceName . setText ( mList . get ( position ) . getmServiceName ( ) ) ; holder . servicePrice . setText ( ( "￥" + ( mList . get ( position ) . getmServicePrice ( ) ) ) ) ; return convertView ; } public List < Service > getmList ( ) { } public void setmList ( List < Service > mList ) { } class ViewHolder { private TextView serviceName ; private ImageView imageView ; private TextView personNum ; private TextView servicePrice ; } }

Fix:
ImageLoader . getInstance ( ) . displayImage ( mList . get ( position ) . getmServiceIcon ( ) , holder . imageView , mGridIconLoaderOptions ) ;
Buggy code:
public class NotationComboBox extends JComboBox implements ArgoNotationEventListener { private static NotationComboBox SINGLETON = null ; public static NotationComboBox getInstance ( ) { } public NotationComboBox ( ) { } public void notationChanged ( ArgoNotationEvent event ) { <START_BUG> Argo . log . info ( ( ( "NotationComboBox.notationChanged(" + event ) + ")" ) ) ; <END_BUG> refresh ( ) ; } public void notationAdded ( ArgoNotationEvent event ) { } public void notationRemoved ( ArgoNotationEvent event ) { } public void notationProviderAdded ( ArgoNotationEvent event ) { } public void notationProviderRemoved ( ArgoNotationEvent event ) { } public void refresh ( ) { } }

Fix:
cat . debug ( ( ( "NotationComboBox.notationChanged(" + event ) + ")" ) ) ;
Buggy code:
public class RouteFeedback { private static final Logger log = Logger . getLogger ( RouteFeedback . class . getName ( ) ) ; private static final String USERS_URI = "users//" ; private static final String ERROR_REPORT_URI = "error-report//" ; private static final String UPDATE_CHECK_URI = "update-check//" ; private final String rootUrl ; private final Credentials credentials ; public RouteFeedback ( String rootUrl , Credentials credentials ) { } private static final ObjectFactory gpxFactory = new ObjectFactory ( ) ; private static final ObjectFactory rcFactory = new slash . navigation . gpx . routecatalog10 . ObjectFactory ( ) ; private static GpxType createGpxType ( ) { } private static String toXml ( GpxType gpxType ) { } GpxType fetchGpx ( String url ) throws IOException { } private static String createUserXml ( String userName , String password , String firstName , String lastName , String email ) { } private String getUsersUrl ( ) { } private Post prepareAddUser ( String userName , String password , String firstName , String lastName , String email ) throws IOException { } public String addUser ( String userName , String password , String firstName , String lastName , String email ) throws IOException { } private String getErrorReportUrl ( ) { } private Post prepareSendErrorReport ( String logOutput , String description , File file ) throws IOException { } public String sendErrorReport ( String log , String description , File file ) throws IOException { Post request = prepareSendErrorReport ( log , description , file ) ; String result = request . execute ( ) ; if ( request . isUnAuthorized ( ) ) <START_BUG> throw new UnAuthorizedException ( ( "Cannot<seq2seq4repair_space>send<seq2seq4repair_space>error<seq2seq4repair_space>report<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ) , getErrorReportUrl ( ) ) ; <END_BUG> if ( ! ( request . isSuccessful ( ) ) ) throw new IOException ( ( ( ( ( ( ( ( ( ( ( "POST<seq2seq4repair_space>on<seq2seq4repair_space>" + ( getErrorReportUrl ( ) ) ) + "<seq2seq4repair_space>with<seq2seq4repair_space>log<seq2seq4repair_space>" ) + ( log . length ( ) ) ) + "<seq2seq4repair_space>characters" ) + ",<seq2seq4repair_space>description<seq2seq4repair_space>\"" ) + description ) + "\",<seq2seq4repair_space>file<seq2seq4repair_space>" ) + file ) + "<seq2seq4repair_space>not<seq2seq4repair_space>successful:<seq2seq4repair_space>" ) + result ) ) ; return request . getLocation ( ) ; } private String getUpdateCheckUrl ( ) { } public String checkForUpdate ( String routeConverterVersion , String routeConverterBits , long startCount , String javaVersion , String javaBits , String osName , String osVersion , String osArch , String webstartVersion , long startTime ) throws IOException { } }

Fix:
throw new UnAuthorizedException ( ( "Cannot<seq2seq4repair_space>send<seq2seq4repair_space>error<seq2seq4repair_space>report<seq2seq4repair_space>" + ( file != null ? ",<seq2seq4repair_space>file<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) : "" ) ) , getErrorReportUrl ( ) ) ;
Buggy code:
public class YearMonthDV extends AbstractDateTimeDV { public Object getActualValue ( String content , ValidationContext context ) throws InvalidDatatypeValueException { try { return parse ( content , null ) ; } catch ( Exception ex ) { <START_BUG> throw new InvalidDatatypeValueException ( "not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>yearMonth" ) ; <END_BUG> } } protected int [ ] parse ( String str , int [ ] date ) throws SchemaDateTimeException { } }

Fix:
throw new InvalidDatatypeValueException ( "cvc-datatype-valid.1.2.1" , new Object [ ] { content , "gYearMonth" } ) ;
Buggy code:
public class JUnitReportTest extends BuildFileTest { public JUnitReportTest ( String name ) { } protected void setUp ( ) { } protected void tearDown ( ) { } public void testNoFileJUnitNoFrames ( ) { executeTarget ( "reports1" ) ; <START_BUG> if ( new File ( "src//etc//testcases//taskdefs//optional//junitreport//test//html//junit-noframes.html" ) . exists ( ) ) { <END_BUG> fail ( "No<seq2seq4repair_space>file<seq2seq4repair_space>junit-noframes.html<seq2seq4repair_space>expected" ) ; } } }

Fix:
if ( new File ( System . getProperty ( "root" ) , "src//etc//testcases//taskdefs//optional//junitreport//test//html//junit-noframes.html" ) . exists ( ) ) {
Buggy code:
public class ClientMappingsHandler extends AbstractBindingWriteHandler { public static final ClientMappingsHandler INSTANCE = new ClientMappingsHandler ( ) ; private ClientMappingsHandler ( ) { } @ Override void handleRuntimeChange ( ModelNode operation , String attributeName , ModelNode attributeValue , SocketBinding binding ) throws OperationFailedException { } @ Override void handleRuntimeRollback ( ModelNode operation , String attributeName , ModelNode attributeValue , SocketBinding binding ) { try { binding . setClientMappings ( BindingAddHandler . parseClientMappings ( attributeValue ) ) ; } catch ( OperationFailedException e ) { <START_BUG> MESSAGES . failedToRecoverServices ( e ) ; <END_BUG> } } }

Fix:
throw MESSAGES . failedToRecoverServices ( e ) ;