nus-yam/ex-repair huggingface dataset:
Buggy code:
public class AnnotationProcessorPerformanceTests { private static final Log factoryLog = LogFactory . getLog ( DefaultListableBeanFactory . class ) ; @ Test public void testPrototypeCreationWithResourcePropertiesIsFastEnough ( ) { } @ Test public void testPrototypeCreationWithOverriddenResourcePropertiesIsFastEnough ( ) { } @ Test public void testPrototypeCreationWithAutowiredPropertiesIsFastEnough ( ) { } @ Test public void testPrototypeCreationWithOverriddenAutowiredPropertiesIsFastEnough ( ) { Assume . group ( PERFORMANCE ) ; Assume . notLogging ( AnnotationProcessorPerformanceTests . factoryLog ) ; GenericApplicationContext ctx = new GenericApplicationContext ( ) ; AnnotationConfigUtils . registerAnnotationConfigProcessors ( ctx ) ; ctx . refresh ( ) ; RootBeanDefinition rbd = new RootBeanDefinition ( AnnotationProcessorPerformanceTests . AutowiredAnnotatedTestBean . class ) ; rbd . setScope ( SCOPE_PROTOTYPE ) ; rbd . getPropertyValues ( ) . add ( "spouse" , new RuntimeBeanReference ( "spouse" ) ) ; ctx . registerBeanDefinition ( "test" , rbd ) ; ctx . registerBeanDefinition ( "spouse" , new RootBeanDefinition ( TestBean . class ) ) ; TestBean spouse = ( ( TestBean ) ( ctx . getBean ( "spouse" ) ) ) ; StopWatch sw = new StopWatch ( ) ; sw . start ( "prototype" ) ; for ( int i = 0 ; i < 100000 ; i ++ ) { TestBean tb = ( ( TestBean ) ( ctx . getBean ( "test" ) ) ) ; assertSame ( spouse , tb . getSpouse ( ) ) ; } sw . stop ( ) ; <START_BUG> assertTrue ( ( "Prototype<seq2seq4repair_space>creation<seq2seq4repair_space>took<seq2seq4repair_space>too<seq2seq4repair_space>long:<seq2seq4repair_space>" + ( sw . getTotalTimeMillis ( ) ) ) , ( ( sw . getTotalTimeMillis ( ) ) < 4000 ) ) ; <END_BUG> } private static class ResourceAnnotatedTestBean extends TestBean { @ Override @ Resource @ Required public void setSpouse ( ITestBean spouse ) { } } private static class AutowiredAnnotatedTestBean extends TestBean { @ Override @ Autowired @ Required public void setSpouse ( ITestBean spouse ) { } } }

Fix:
assertTrue ( ( "Prototype<seq2seq4repair_space>creation<seq2seq4repair_space>took<seq2seq4repair_space>too<seq2seq4repair_space>long:<seq2seq4repair_space>" + ( sw . getTotalTimeMillis ( ) ) ) , ( ( sw . getTotalTimeMillis ( ) ) < 4500 ) ) ;
Buggy code:
public class HockeyApp extends CordovaPlugin { String appId ; public enum DefinedAction { register , reportCrash ; } @ Override public boolean execute ( String action , JSONArray args , CallbackContext callbackContext ) throws JSONException { try { HockeyApp . DefinedAction definedAction = HockeyApp . DefinedAction . valueOf ( action ) ; switch ( definedAction ) { case register : PluginResult result = null ; result = register ( args ) ; result . setKeepCallback ( false ) ; callbackContext . sendPluginResult ( result ) ; break ; case reportCrash : String message = args . getString ( 0 ) ; cordova . getActivity ( ) . runOnUiThread ( new Runnable ( ) { @ Override public void run ( ) { Exception e = new Exception ( message ) ; ExceptionHandler . saveException ( e , new CrashManagerListener ( ) { public String getDescription ( ) { <START_BUG> return description ; <END_BUG> } } ) ; } } ) ; callbackContext . success ( ) ; return true ; break ; } return true ; } catch ( RuntimeException e ) { callbackContext . success ( ( "Reported<seq2seq4repair_space>error:<seq2seq4repair_space>" + ( e . toString ( ) ) ) ) ; throw e ; } catch ( JSONException e ) { callbackContext . error ( e . getMessage ( ) ) ; return false ; } } @ Override public void onResume ( boolean multitasking ) { } private void checkForCrashes ( ) { } private void checkForUpdates ( ) { } private PluginResult register ( JSONArray args ) throws JSONException { } private PluginResult reportCrash ( JSONArray args ) throws JSONException { } }

Fix:
return message ;
Buggy code:
public class Enemy { private Bitmap bitmap ; private final int x ; private final int y ; private final int width ; private final int height ; private int hp ; private final int armor ; private final int money ; public Enemy ( int x , int y , IEnemyTemplate template ) { } public int getX ( ) { } public float getY ( ) { } public Bitmap getBitmap ( ) { } public boolean inRange ( int x , int y ) { } public boolean hit ( int damage ) { } private void onDestroy ( ) { <START_BUG> Player . getInstance ( ) . setMoney ( ( ( Player . getInstance ( ) . getMoney ( ) ) + ( Player . getInstance ( ) . getIncome ( ) ) ) ) ; <END_BUG> } public int getWidth ( ) { } public int getHeight ( ) { } }

Fix:
Player . getInstance ( ) . setMoney ( ( ( ( Player . getInstance ( ) . getMoney ( ) ) + ( money ) ) + ( Player . getInstance ( ) . getIncome ( ) ) ) ) ;
Buggy code:
public class PebbleServiceCommand implements IServiceCommand { @ Inject @ ForApplication Context _applicationContext ; @ Inject IMessageManager _messageManager ; @ Inject ICanvasWrapper _canvasWrapper ; @ Inject SharedPreferences _sharedPreferences ; @ Inject Bus _bus ; private static final String TAG = "PB-PebbleServiceCommand" ; private Status _currentStatus = Status . NOT_INITIALIZED ; @ Subscribe public void onNewLocationEvent ( NewLocation newLocation ) { } @ Subscribe public void onGPSServiceState ( GPSStatus event ) { } @ Subscribe public void onNewMessageEvent ( NewMessage message ) { } @ Subscribe public void onLiveMessage ( LiveMessage msg ) { } @ Override public void execute ( IInjectionContainer container ) { } @ Override public void dispose ( ) { } @ Override public Status getStatus ( ) { } private void notifyPebbleGPSStarted ( ) { } private void notifyPebbleGPSStopped ( ) { } private void notifyPebbleGPSDisable ( ) { } private void sendLiveMessage ( LiveMessage message ) { } private void sendLocationToCanvas ( NewLocation newLocation ) { } private void sendLocationToPebble ( NewLocation newLocation ) { PebbleDictionary dictionary = new com . njackson . adapters . NewLocationToPebbleDictionary ( newLocation , true , _sharedPreferences . getBoolean ( "PREF_DEBUG" , false ) , _sharedPreferences . getBoolean ( "LIVE_TRACKING" , false ) , Integer . valueOf ( _sharedPreferences . getString ( "REFRESH_INTERVAL" , String . valueOf ( REFRESH_INTERVAL_DEFAULT ) ) ) , newLocation . getHeartRate ( ) ) ; <START_BUG> sendDataToPebble ( dictionary ) ; <END_BUG> } private void sendDataToPebble ( PebbleDictionary data ) { } private void sendDataToPebbleIfPossible ( PebbleDictionary data ) { } private void sendDataToPebble ( PebbleDictionary data , boolean forceSend ) { } No newline ; at end ; of file ; }

Fix:
sendDataToPebbleIfPossible ( dictionary ) ;
Buggy code:
public class Vector3Test { public static double eps = 0.01 ; @ Test public void testVector3DoubleDoubleDouble ( ) { } @ Test public void testVector3 ( ) { } @ Test public void testVector3Vector3 ( ) { } @ Test public void testVector3Vector2Double ( ) { } @ Test public void testVector3Vector2 ( ) { } @ Test public void testLengthVector3 ( ) { } @ Test public void testLengthSquaredVector3 ( ) { } @ Test public void testNormalizeVector3 ( ) { } @ Test public void testSubtractVector3Vector3 ( ) { } @ Test public void testAddVector3Vector3 ( ) { } @ Test public void testScaleVector3Double ( ) { } @ Test public void testDotVector3Vector3 ( ) { } @ Test public void testCrossVector3Vector3 ( ) { } @ Test public void testToArrayVector3 ( ) { } @ Test public void testTransformVector3Matrix ( ) { } @ Test public void testTransformVector3Quaternion ( ) { Vector3 x = new Vector3 ( 1 , 0 , 0 ) ; Vector3 u = x . transform ( new Quaternion ( 90 , new Vector3 ( 0 , 1 , 0 ) ) ) ; if ( ! ( u . equals ( new Vector3 ( 0 , 0 , ( - 1 ) ) ) ) ) <START_BUG> fail ( "{1,0,0}<seq2seq4repair_space>rotated<seq2seq4repair_space>about<seq2seq4repair_space>Y<seq2seq4repair_space>" ) ; <END_BUG> Vector3 y = new Vector3 ( 2 , 4 , 5 ) ; Vector3 v = y . transform ( new Quaternion ( 30 , new Vector3 ( 1 , 0 , 0 ) ) ) ; Vector3 res = new Vector3 ( 2 , 0.964F , 6.33F ) ; if ( ! ( v . equals ( res ) ) ) fail ( ( ( ( "{2,4,5}<seq2seq4repair_space>rotated<seq2seq4repair_space>about<seq2seq4repair_space>X,<seq2seq4repair_space>expected" + res ) + "<seq2seq4repair_space>Got<seq2seq4repair_space>" ) + v ) ) ; } @ Test public void testCompareToVector3Vector3 ( ) { } @ Test public void testEqualsObjectObject ( ) { } }

Fix:
fail ( ( "{1,0,0}<seq2seq4repair_space>rotated<seq2seq4repair_space>about<seq2seq4repair_space>Y,<seq2seq4repair_space>got<seq2seq4repair_space>" + u ) ) ;
Buggy code:
public class DisableRequiredWriteAttributeHandler extends AbstractWriteAttributeHandler < Void > { public DisableRequiredWriteAttributeHandler ( ) { } public DisableRequiredWriteAttributeHandler ( final ParameterValidator validator ) { } public DisableRequiredWriteAttributeHandler ( final AttributeDefinition ... definitions ) { } public DisableRequiredWriteAttributeHandler ( final ParameterValidator unresolvedValidator , final ParameterValidator resolvedValidator ) { } @ Override protected boolean applyUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode resolvedValue , ModelNode currentValue , HandbackHolder < Void > voidHandback ) { ModelNode submodel = context . readResource ( EMPTY_ADDRESS ) . getModel ( ) ; <START_BUG> if ( ( ( submodel . hasDefined ( ENABLED . getName ( ) ) ) && ( submodel . get ( ENABLED . getName ( ) ) . asBoolean ( ) ) ) || ( JNDINAME . getName ( ) . equals ( attributeName ) ) ) { <END_BUG> return true ; } else { return false ; } } @ Override protected void revertUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode valueToRestore , ModelNode resolvedValue , Void handback ) { } }

Fix:
if ( ( ( submodel . hasDefined ( ENABLED . getName ( ) ) ) && ( submodel . get ( ENABLED . getName ( ) ) . asBoolean ( ) ) ) || ( JNDI_NAME . getName ( ) . equals ( attributeName ) ) ) {
Buggy code:
public class StressNDC extends Thread { static Category root = Category . getRoot ( ) ; static Random random = new Random ( 101 ) ; static final int LOOP_LENGTH = 24 ; static final int PUSH_MISS = ( StressNDC . LOOP_LENGTH ) // 2 ; static final int POP_MISS = ( StressNDC . PUSH_MISS ) * 2 ; static final int BRANCHING_FACTOR = 4 + 1 ; static int maxThreads ; static int msgCounter = 0 ; static int threadCounter = 0 ; static double LOG_2 = Math . log ( 2 ) ; static Object lock = new Object ( ) ; public static void main ( String [ ] args ) { } static void usage ( ) { } Stack parentDC ; public StressNDC ( Stack parentDC ) { } public void run ( ) { } public static void createChildren ( int n ) { } public static int maxThreadsConstained ( int a ) { } public static int randomInt ( int n ) { } public static String randomID ( ) { <START_BUG> return Integer . toHexString ( ( ( StressNDC . random . nextInt ( ) ) & 16777215 ) ) ; <END_BUG> } }

Fix:
return Integer . toString ( ( ( StressNDC . random . nextInt ( ) ) & 16777215 ) ) ;
Buggy code:
public class ContactManagerImpl implements ContactManager { private Set < Contact > allContacts ; private int lastContactId ; private List < Meeting > allMeetings ; private int lastMeetingId ; private File config ; public ContactManagerImpl ( ) { } @ Override public int addFutureMeeting ( Set < Contact > contacts , Calendar date ) { } @ Override public PastMeeting getPastMeeting ( int id ) { } @ Override public FutureMeeting getFutureMeeting ( int id ) { Meeting meeting = getMeeting ( id ) ; if ( meeting == null ) { return null ; } else if ( ( meeting . getClass ( ) ) == ( PastMeetingImpl . class ) ) { <START_BUG> throw new IllegalArgumentException ( "Meeting<seq2seq4repair_space>with<seq2seq4repair_space>that<seq2seq4repair_space>ID<seq2seq4repair_space>happend<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>past<seq2seq4repair_space>meeting!" ) ; <END_BUG> } else { return ( ( FutureMeeting ) ( meeting ) ) ; } } @ Override public Meeting getMeeting ( int id ) { } @ Override public List < Meeting > getFutureMeetingList ( Contact contact ) { } @ Override public List < Meeting > getFutureMeetingList ( Calendar date ) { } @ Override public List < PastMeeting > getPastMeetingList ( Contact contact ) { } @ Override public void addNewPastMeeting ( Set < Contact > contacts , Calendar date , String text ) { } @ Override public void addMeetingNotes ( int id , String text ) { } @ Override public void addNewContact ( String name , String notes ) { } @ Override public Set < Contact > getContacts ( int ... ids ) { } @ Override public Set < Contact > getContacts ( String name ) { } @ Override public void flush ( ) { } private boolean hasUnknownContact ( Set < Contact > contacts ) { } private boolean isSameDay ( Calendar one , Calendar two ) { } No newline ; at end ; of file ; }

Fix:
throw new IllegalArgumentException ( "Meeting<seq2seq4repair_space>with<seq2seq4repair_space>that<seq2seq4repair_space>ID<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>past<seq2seq4repair_space>meeting!" ) ;
Buggy code:
public class PostWriter { protected static final String BOUNDARY = "---------------------------7d159c1302d0y0" ; protected static final byte [ ] CRLF = new byte [ ] { 13 , 10 } ; protected static int fudge = - 20 ; protected static String encoding = "iso-8859-1" ; public void sendPostData ( URLConnection connection , HTTPSampler sampler ) throws IOException { <START_BUG> String filename = sampler . getFileField ( ) ; <END_BUG> if ( ( filename != null ) && ( ( filename . trim ( ) . length ( ) ) > 0 ) ) { OutputStream out = connection . getOutputStream ( ) ; writeln ( out , ( "--" + ( PostWriter . BOUNDARY ) ) ) ; Iterator args = sampler . getArguments ( ) . iterator ( ) ; while ( args . hasNext ( ) ) { Argument arg = ( ( Argument ) ( args . next ( ) ) ) ; writeFormMultipartStyle ( out , arg . getName ( ) , ( ( String ) ( arg . getValue ( ) ) ) ) ; writeln ( out , ( "--" + ( PostWriter . BOUNDARY ) ) ) ; } writeFileToURL ( out , filename , sampler . getFileField ( ) , getFileStream ( filename ) , sampler . getMimetype ( ) ) ; writeln ( out , ( ( "--" + ( PostWriter . BOUNDARY ) ) + "--" ) ) ; out . flush ( ) ; out . close ( ) ; } else { String postData = sampler . getQueryString ( ) ; PrintWriter out = new PrintWriter ( connection . getOutputStream ( ) ) ; out . print ( postData ) ; out . flush ( ) ; } } public void setHeaders ( URLConnection connection , HTTPSampler sampler ) throws IOException { } private InputStream getFileStream ( String filename ) throws IOException { } private String getContentLength ( MultipartUrlConfig config ) { } private void writeFileToURL ( OutputStream out , String filename , String fieldname , InputStream in , String mimetype ) throws IOException { } private void writeFormMultipartStyle ( OutputStream out , String name , String value ) throws IOException { } private String encode ( String value ) { } private void write ( OutputStream out , String value ) throws IOException , UnsupportedEncodingException { } private void writeln ( OutputStream out , String value ) throws IOException , UnsupportedEncodingException { } }

Fix:
String filename = sampler . getFilename ( ) ;
Buggy code:
public class LibRec { private static String version = "1.2" ; private static Configer cf ; private static String configFile = "librec.conf" ; private static String algorithm ; private static DataDAO rateDao ; private static SparseMatrix rateMatrix = null ; public static void main ( String [ ] args ) { } private static void cmdLine ( String [ ] args ) throws Exception { } private static void runAlgorithm ( ) throws Exception { } private static void runCrossValidation ( ) throws Exception { } private static void runRatio ( ) throws Exception { } private static void runGiven ( ) throws Exception { } private static void runTestFile ( String path ) throws Exception { DataDAO testDao = new DataDAO ( path , LibRec . rateDao . getUserIds ( ) , LibRec . rateDao . getItemIds ( ) ) ; <START_BUG> SparseMatrix testMatrix = testDao . readData ( false ) ; <END_BUG> Recommender algo = LibRec . getRecommender ( new SparseMatrix [ ] { LibRec . rateMatrix , testMatrix } , ( - 1 ) ) ; algo . execute ( ) ; LibRec . printEvalInfo ( algo , algo . measures ) ; } private static void printEvalInfo ( Recommender algo , Map < Measure , Double > ms ) { } private static void notifyMe ( String attachment ) throws Exception { } private static Recommender getRecommender ( SparseMatrix [ ] data , int fold ) throws Exception { } private static void debugInfo ( ) { } public static void printMe ( ) { } }

Fix:
SparseMatrix testMatrix = testDao . readData ( ) ;
Buggy code:
public class STextualRelationImpl extends SSequentialRelationImpl implements STextualRelation { private static final long serialVersionUID = - 7182563392385532812L ; protected STextualRelationImpl ( ) { } private void init ( ) { } @ Override protected EClass eStaticClass ( ) { } @ Override public boolean equals ( EList < String > differences , Object obj ) { } @ Override public boolean equals ( Object obj ) { } public SToken getSToken ( ) { } public SToken basicGetSToken ( ) { } public void setSToken ( SToken newSToken ) { } public void setSSource ( SNode sSource ) { } public void setSTarget ( SNode sTarget ) { if ( sTarget instanceof STextualDS ) { this . setSTextualDS ( ( ( STextualDS ) ( sTarget ) ) ) ; } else { <START_BUG> throw new SaltImproperSTypeException ( "Parameter<seq2seq4repair_space>for<seq2seq4repair_space>STextualRelation.setSTarget<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>an<seq2seq4repair_space>instance<seq2seq4repair_space>of<seq2seq4repair_space>STextualDS." ) ; <END_BUG> } } public STextualDS getSTextualDS ( ) { } public STextualDS basicGetSTextualDS ( ) { } public void setSTextualDS ( STextualDS newSTextualDS ) { } public SDocumentGraph getSDocumentGraph ( ) { } public void setSDocumentGraph ( SDocumentGraph newSDocumentGraph ) { } private STextOverlappingRelationAccessor sTextOverlappingRelAccessor = null ; public Boolean isSTextOverlapping ( ) { } @ Override public NotificationChain eBasicRemoveFromContainerFeature ( NotificationChain msgs ) { } @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } @ Override public void eSet ( int featureID , Object newValue ) { } @ Override public void eUnset ( int featureID ) { } @ Override public boolean eIsSet ( int featureID ) { } }

Fix:
throw new de . hu_berlin . german . korpling . saltnpepper . salt . saltCommon . exceptions . SaltImproperSTypeException ( ( ( "Parameter<seq2seq4repair_space>for<seq2seq4repair_space>STextualRelation.setSTarget<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>an<seq2seq4repair_space>instance<seq2seq4repair_space>of<seq2seq4repair_space>STextualDS,<seq2seq4repair_space>but<seq2seq4repair_space>was<seq2seq4repair_space>'" + ( sTarget . getClass ( ) ) ) + "'.<seq2seq4repair_space>" ) ) ;
Buggy code:
public class nsIContextMenuListener extends nsISupports { static final int LAST_METHOD_ID = ( nsISupports . LAST_METHOD_ID ) + 1 ; public static final String NS_ICONTEXTMENULISTENER_IID_STRING = "3478b6b0-3875-11d4-94ef-0020183bf181" ; public static final nsID NS_ICONTEXTMENULISTENER_IID = new nsID ( nsIContextMenuListener . NS_ICONTEXTMENULISTENER_IID_STRING ) ; public nsIContextMenuListener ( int address ) { } public static final int CONTEXT_NONE = 0 ; public static final int CONTEXT_LINK = 1 ; public static final int CONTEXT_IMAGE = 2 ; public static final int CONTEXT_DOCUMENT = 4 ; public static final int CONTEXT_TEXT = 8 ; public static final int CONTEXT_INPUT = 16 ; public int OnShowContextMenu ( int aContextFlags , int aEvent , int aNode ) { <START_BUG> return XPCOM . VtblCall ( ( ( super . LAST_METHOD_ID ) + 1 ) , getAddress ( ) , aContextFlags , aEvent , aNode ) ; <END_BUG> } }

Fix:
return XPCOM . VtblCall ( ( ( nsISupports . LAST_METHOD_ID ) + 1 ) , getAddress ( ) , aContextFlags , aEvent , aNode ) ;
Buggy code:
public class Homepage extends MenuNavigation { private TextView date ; private TextView caloriesRemaining ; private TextView name ; private TextView goalTime ; private TextView fullWeightGoal ; private TextView calConsumed ; private TextView dailyCalGoal ; private TextView calBurned ; private TextView net ; private ImageView profilePicture ; private int caloriegoal ; protected void onCreate ( Bundle savedInstanceState ) { } private void setDisplay ( ) { SharedPreferences userInfo = getSharedPreferences ( "UserInfo" , MODE_PRIVATE ) ; SharedPreferences dailyExercises = getSharedPreferences ( "dailyExercises" , MODE_PRIVATE ) ; SharedPreferences foodLogs = getSharedPreferences ( "foodLogs" , MODE_PRIVATE ) ; UserProfile userInfo1 = new UserProfile ( ) ; @ SuppressLint ( "SimpleDateFormat" ) SimpleDateFormat sdf = new SimpleDateFormat ( "dd//MM//yyyy" ) ; String currentDateandTime = sdf . format ( new Date ( ) ) ; date . setText ( currentDateandTime ) ; name . setText ( userInfo . getString ( "Username" , "" ) . toString ( ) ) ; fullWeightGoal . setText ( ( ( ( ( userInfo . getString ( "Usergoal" , "" ) ) + "<seq2seq4repair_space>" ) + ( Integer . toString ( userInfo . getInt ( "Usergoalpounds" , 0 ) ) ) ) + "<seq2seq4repair_space>pounds" ) ) ; goalTime . setText ( ( ( "in<seq2seq4repair_space>" + ( Integer . toString ( userInfo . getInt ( "Userweeks" , 0 ) ) ) ) + "<seq2seq4repair_space>weeks" ) ) ; dailyCalGoal . setText ( Integer . toString ( userInfo . getInt ( "Caloriegoal" , 1 ) ) ) ; caloriesRemaining . setText ( Integer . toString ( ( ( userInfo . getInt ( "Caloriegoal" , 0 ) ) - ( ( foodLogs . getInt ( "CaloriesConsumed" , 0 ) ) + ( dailyExercises . getInt ( "dailyExerciseValue" , 0 ) ) ) ) ) ) ; calBurned . setText ( Integer . toString ( dailyExercises . getInt ( "dailyExerciseValue" , 0 ) ) ) ; calConsumed . setText ( Integer . toString ( foodLogs . getInt ( "CaloriesConsumed" , 0 ) ) ) ; net . setText ( Integer . toString ( ( ( foodLogs . getInt ( "CaloriesConsumed" , 0 ) ) + ( dailyExercises . getInt ( "dailyExerciseValue" , 0 ) ) ) ) ) ; EditProfile editProfile = new EditProfile ( ) ; if ( editProfile . visited ) { profilePicture . setImageBitmap ( editProfile . bitmap ) ; } else { <START_BUG> profilePicture . setImageResource ( ic_launcher ) ; <END_BUG> } } }

Fix:
profilePicture . setImageResource ( ic_profile ) ;
Buggy code:
public class GlusterfsCluster extends UnderFileSystemCluster { public GlusterfsCluster ( String baseDir ) { } @ Override public String getUnderFilesystemAddress ( ) { <START_BUG> return "glusterfs://////" ; <END_BUG> } @ Override public boolean isStarted ( ) { } @ Override public void shutdown ( ) throws IOException { } @ Override public void start ( ) throws IOException { } No newline ; at end ; of file ; }

Fix:
return "glusterfs://////tachyon_test" ;
Buggy code:
public class CoarseSessionFactory < L > implements SessionFactory < CoarseSessionEntry < L > , L > { private final SessionContext context ; private final Cache < String , CoarseSessionCacheEntry < L > > sessionCache ; private final Cache < SessionAttributesCacheKey , MarshalledValue < Map < String , Object > , MarshallingContext > > attributesCache ; private final SessionAttributeMarshaller < Map < String , Object > , MarshalledValue < Map < String , Object > , MarshallingContext > > marshaller ; private final LocalContextFactory < L > localContextFactory ; public CoarseSessionFactory ( Cache < String , CoarseSessionCacheEntry < L > > sessionCache , Cache < SessionAttributesCacheKey , MarshalledValue < Map < String , Object > , MarshallingContext > > attributesCache , SessionContext context , SessionAttributeMarshaller < Map < String , Object > , MarshalledValue < Map < String , Object > , MarshallingContext > > marshaller , LocalContextFactory < L > localContextFactory ) { } @ Override public Session < L > createSession ( String id , CoarseSessionEntry < L > entry ) { } @ Override public ImmutableSession createImmutableSession ( String id , CoarseSessionEntry < L > entry ) { } @ Override public CoarseSessionEntry < L > createValue ( String id ) { } @ Override public CoarseSessionEntry < L > findValue ( String id ) { TransactionConfiguration transaction = this . sessionCache . getCacheConfiguration ( ) . transaction ( ) ; boolean pessimistic = ( transaction . transactionMode ( ) . isTransactional ( ) ) && ( ( transaction . lockingMode ( ) ) == ( LockingMode . PESSIMISTIC ) ) ; Cache < String , CoarseSessionCacheEntry < L > > cache = ( pessimistic ) ? this . sessionCache . getAdvancedCache ( ) . withFlags ( FORCE_WRITE_LOCK ) : this . sessionCache ; CoarseSessionCacheEntry < L > entry = cache . get ( id ) ; if ( entry == null ) return null ; MarshalledValue < Map < String , Object > , MarshallingContext > value = this . attributesCache . get ( new SessionAttributesCacheKey ( id ) ) ; <START_BUG> return value != null ? new CoarseSessionEntry ( entry , value ) : null ; <END_BUG> } @ Override public void remove ( String id ) { } @ Override public void evict ( String id ) { } }

Fix:
return new CoarseSessionEntry ( entry , value ) ;
Buggy code:
class PackageFragmentInfo extends OpenableElementInfo { protected Object [ ] nonJavaResources ; public PackageFragmentInfo ( ) { } boolean containsJavaResources ( ) { <START_BUG> return ( fChildren . length ) != 0 ; <END_BUG> } Object [ ] getNonJavaResources ( IResource underlyingResource , PackageFragmentRoot rootHandle ) { } void setNonJavaResources ( Object [ ] resources ) { } }

Fix:
return ( this . children . length ) != 0 ;
Buggy code:
public class TestTermsEnum2 extends LuceneTestCase { private Directory dir ; private IndexReader reader ; private IndexSearcher searcher ; private SortedSet < BytesRef > terms ; private Automaton termsAutomaton ; int numIterations ; public void setUp ( ) throws Exception { } public void tearDown ( ) throws Exception { } public void testFiniteVersusInfinite ( ) throws Exception { } public void testSeeking ( ) throws Exception { } public void testSeekingAndNexting ( ) throws Exception { } public void testIntersect ( ) throws Exception { for ( int i = 0 ; i < ( numIterations ) ; i ++ ) { String reg = AutomatonTestUtil . randomRegexp ( random ) ; Automaton automaton = new org . apache . lucene . util . automaton . RegExp ( reg , org . apache . lucene . util . automaton . RegExp . NONE ) . toAutomaton ( ) ; CompiledAutomaton ca = new CompiledAutomaton ( automaton , SpecialOperations . isFinite ( automaton ) , false ) ; TermsEnum te = MultiFields . getTerms ( reader , "field" ) . intersect ( ca , null ) ; Automaton expected = BasicOperations . intersection ( termsAutomaton , automaton ) ; TreeSet < BytesRef > found = new TreeSet < BytesRef > ( ) ; while ( ( te . next ( ) ) != null ) { <START_BUG> found . add ( new BytesRef ( te . term ( ) ) ) ; <END_BUG> } Automaton actual = DaciukMihovAutomatonBuilder . build ( found ) ; assertTrue ( BasicOperations . sameLanguage ( expected , actual ) ) ; } } }

Fix:
found . add ( BytesRef . deepCopyOf ( te . term ( ) ) ) ;
Buggy code:
public class Util { public static ArrayList < File > list ( File folder ) { ArrayList < File > files = new ArrayList < File > ( ) ; <START_BUG> if ( folder . isDirectory ( ) ) <END_BUG> return files ; File [ ] folderFiles = folder . listFiles ( ) ; if ( folderFiles != null ) for ( File f : folderFiles ) if ( f . isDirectory ( ) ) files . addAll ( Util . list ( f ) ) ; else files . add ( f ) ; return files ; } public static void printAndWriteProcessOutput ( Process process , File logsFile ) throws IOException { } }

Fix:
if ( ! ( folder . isDirectory ( ) ) )
Buggy code:
public class SelectPalinaActivity extends ListActivity { private static final int MENU_ABOUT = 0 ; private int linea ; private String destinazione ; private Vector < DBObject > list ; public SelectPalinaActivity ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onResume ( ) { } @ Override protected void onListItemClick ( ListView l , View v , int position , long id ) { Intent showOrario = new Intent ( this , ShowOrariActivity . class ) ; showOrario . putExtra ( "linea" , linea ) ; showOrario . putExtra ( "destinazione" , destinazione ) ; Palina palina = ( ( Palina ) ( list . get ( position ) ) ) ; <START_BUG> showOrario . putExtra ( "palina" , palina . getName_de ( ) ) ; <END_BUG> startActivity ( showOrario ) ; } private void fillData ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
showOrario . putExtra ( "palina" , palina . getId ( ) ) ;
Buggy code:
public class Sash extends Control { Cursor sizeCursor ; boolean dragging ; int lastX ; int lastY ; int startX ; int startY ; private static final int INCREMENT = 1 ; private static final int PAGE_INCREMENT = 9 ; NSArray accessibilityAttributes = null ; public Sash ( Composite parent , int style ) { } int accessibilityAttributeNames ( int id , int sel ) { } public int accessibilityAttributeValue ( int id , int sel , int arg0 ) { } boolean accessibilityIsIgnored ( int id , int sel ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } boolean becomeFirstResponder ( int id , int sel ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { NSView widget = ( ( NSView ) ( new SWTView ( ) . alloc ( ) ) ) ; <START_BUG> widget . initWithFrame ( new NSRect ( ) ) ; <END_BUG> view = widget ; } void drawWidget ( int id , NSRect rect ) { } Cursor findCursor ( ) { } boolean sendKeyEvent ( NSEvent nsEvent , int type ) { } void mouseDown ( int id , int sel , int theEvent ) { } void mouseDragged ( int id , int sel , int theEvent ) { } void mouseUp ( int id , int sel , int theEvent ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } int traversalCode ( int key , NSEvent theEvent ) { } }

Fix:
widget . init ( ) ;
Buggy code:
class GenericOutboundConnectionAdd extends AbstractOutboundConnectionAddHandler { static final GenericOutboundConnectionAdd INSTANCE = new GenericOutboundConnectionAdd ( ) ; static ModelNode getAddOperation ( final String connectionName , final String uri , PathAddress address ) { } private GenericOutboundConnectionAdd ( ) { } @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } @ Override protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { } ServiceController installRuntimeService ( final OperationContext context , final ModelNode operation , final ModelNode fullModel , ServiceVerificationHandler verificationHandler ) throws OperationFailedException { final PathAddress pathAddress = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final String connectionName = pathAddress . getLastElement ( ) . getValue ( ) ; <START_BUG> final OptionMap connectionCreationOptions = ConnectorResource . getOptions ( context , fullModel . get ( PROPERTY ) ) ; <END_BUG> final URI uri = getDestinationURI ( context , operation ) ; final GenericOutboundConnectionService outboundRemotingConnectionService = new GenericOutboundConnectionService ( connectionName , uri , connectionCreationOptions ) ; final ServiceName serviceName = OUTBOUND_CONNECTION_BASE_SERVICE_NAME . append ( connectionName ) ; final ServiceName aliasServiceName = GENERIC_OUTBOUND_CONNECTION_BASE_SERVICE_NAME . append ( connectionName ) ; final ServiceBuilder < GenericOutboundConnectionService > svcBuilder = context . getServiceTarget ( ) . addService ( serviceName , outboundRemotingConnectionService ) . addAliases ( aliasServiceName ) . addDependency ( SUBSYSTEM_ENDPOINT , Endpoint . class , outboundRemotingConnectionService . getEndpointInjector ( ) ) ; if ( verificationHandler != null ) { svcBuilder . addListener ( verificationHandler ) ; } return svcBuilder . install ( ) ; } URI getDestinationURI ( final OperationContext context , final ModelNode outboundConnection ) throws OperationFailedException { } }

Fix:
final OptionMap connectionCreationOptions = ConnectorUtils . getOptions ( context , fullModel . get ( PROPERTY ) ) ;
Buggy code:
public class LocalSSVDSolverDenseTest extends MahoutTestCase { private static final double s_epsilon = 1.0E-10 ; private static final double s_precisionPct = 10 ; @ Test public void testSSVDSolverDense ( ) throws IOException { } @ Test public void testSSVDSolverPowerIterations1 ( ) throws IOException { } public void runSSVDSolver ( int q ) throws IOException { <START_BUG> Configuration conf = new Configuration ( ) ; <END_BUG> conf . set ( "mapred.job.tracker" , "local" ) ; conf . set ( "fs.default.name" , "file://////" ) ; File tmpDir = getTestTempDir ( "svdtmp" ) ; conf . set ( "hadoop.tmp.dir" , tmpDir . getAbsolutePath ( ) ) ; Path aLocPath = new Path ( getTestTempDirPath ( "svdtmp//A" ) , "A.seq" ) ; int n = 100 ; int m = 2000 ; Vector singularValues = new DenseVector ( new double [ ] { 10 , 4 , 1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 } ) ; SSVDTestsHelper . generateDenseInput ( aLocPath , FileSystem . getLocal ( conf ) , singularValues , m , n ) ; FileSystem fs = FileSystem . get ( aLocPath . toUri ( ) , conf ) ; Path tempDirPath = getTestTempDirPath ( "svd-proc" ) ; Path aPath = new Path ( tempDirPath , "A//A.seq" ) ; fs . copyFromLocalFile ( aLocPath , aPath ) ; Path svdOutPath = new Path ( tempDirPath , "SSVD-out" ) ; System . out . println ( "Input<seq2seq4repair_space>prepared,<seq2seq4repair_space>starting<seq2seq4repair_space>solver..." ) ; int ablockRows = 867 ; int p = 10 ; int k = 3 ; SSVDSolver ssvd = new SSVDSolver ( conf , new Path [ ] { aPath } , svdOutPath , ablockRows , k , p , 3 ) ; ssvd . setOuterBlockHeight ( 500 ) ; ssvd . setAbtBlockHeight ( 400 ) ; ssvd . setOverwrite ( true ) ; ssvd . setQ ( q ) ; ssvd . setBroadcast ( false ) ; ssvd . run ( ) ; Vector stochasticSValues = ssvd . getSingularValues ( ) ; System . out . println ( "--SSVD<seq2seq4repair_space>solver<seq2seq4repair_space>singular<seq2seq4repair_space>values:" ) ; LocalSSVDSolverDenseTest . dumpSv ( stochasticSValues ) ; for ( int i = 0 ; i < k ; i ++ ) { assertTrue ( ( ( Math . abs ( ( ( ( singularValues . getQuick ( i ) ) - ( stochasticSValues . getQuick ( i ) ) ) // ( singularValues . getQuick ( i ) ) ) ) ) <= ( ( LocalSSVDSolverDenseTest . s_precisionPct ) // 100 ) ) ) ; } DenseMatrix mQ = SSVDHelper . drmLoadAsDense ( fs , new Path ( svdOutPath , ( ( "Bt-job//" + ( BtJob . OUTPUT_Q ) ) + "-*" ) ) , conf ) ; SSVDCommonTest . assertOrthonormality ( mQ , false , LocalSSVDSolverDenseTest . s_epsilon ) ; DenseMatrix u = SSVDHelper . drmLoadAsDense ( fs , new Path ( svdOutPath , "U//*" ) , conf ) ; SSVDCommonTest . assertOrthonormality ( u , false , LocalSSVDSolverDenseTest . s_epsilon ) ; DenseMatrix v = SSVDHelper . drmLoadAsDense ( fs , new Path ( svdOutPath , "V//*" ) , conf ) ; SSVDCommonTest . assertOrthonormality ( v , false , LocalSSVDSolverDenseTest . s_epsilon ) ; } static void dumpSv ( Vector s ) { } }

Fix:
Configuration conf = getConfiguration ( ) ;
Buggy code:
public class WorkbenchErrorHandler extends AbstractStatusHandler { private WorkbenchStatusDialog statusDialog ; void setStatusDialog ( WorkbenchStatusDialog dialog ) { } public void handle ( final StatusAdapter statusAdapter , int style ) { if ( ( ( style & ( StatusManager . SHOW ) ) == ( StatusManager . SHOW ) ) || ( ( style & ( StatusManager . BLOCK ) ) == ( StatusManager . BLOCK ) ) ) { if ( ( ( statusAdapter . getStatus ( ) . getSeverity ( ) ) == ( IStatus . OK ) ) || ( ( statusAdapter . getStatus ( ) . getSeverity ( ) ) == ( IStatus . CANCEL ) ) ) { IStatus status = statusAdapter . getStatus ( ) ; statusAdapter . setStatus ( new Status ( IStatus . INFO , status . getPlugin ( ) , status . getMessage ( ) , status . getException ( ) ) ) ; } boolean modal = ( style & ( StatusManager . BLOCK ) ) == ( StatusManager . BLOCK ) ; <START_BUG> getStatusDialog ( ) . addError ( statusAdapter , modal ) ; <END_BUG> } if ( ( style & ( StatusManager . LOG ) ) == ( StatusManager . LOG ) ) { StatusManager . getManager ( ) . addLoggedStatus ( statusAdapter . getStatus ( ) ) ; WorkbenchPlugin . getDefault ( ) . getLog ( ) . log ( statusAdapter . getStatus ( ) ) ; } } private WorkbenchStatusDialog getStatusDialog ( ) { } protected void configureStatusDialog ( final WorkbenchStatusDialog statusDialog ) { } private void initStatusDialog ( ) { } }

Fix:
getStatusDialog ( ) . addStatusAdapter ( statusAdapter , modal ) ;
Buggy code:
public class FloatingActionButtonLayout extends ViewGroup { SlidingUpPanelLayout mSlidingUpPanelLayout ; View mFloatingActionButton ; boolean mFirstLayout = true ; public FloatingActionButtonLayout ( Context context ) { } public FloatingActionButtonLayout ( Context context , AttributeSet attrs ) { } public FloatingActionButtonLayout ( Context context , AttributeSet attrs , int defStyleAttr ) { } @ Override protected void onAttachedToWindow ( ) { } @ Override protected void onDetachedFromWindow ( ) { } @ Override protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { } public void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { int widthSize = MeasureSpec . getSize ( widthMeasureSpec ) ; int heightSize = MeasureSpec . getSize ( heightMeasureSpec ) ; mSlidingUpPanelLayout = ( ( SlidingUpPanelLayout ) ( getChildAt ( 0 ) ) ) ; <START_BUG> measureChildWithMargins ( mSlidingUpPanelLayout , widthMeasureSpec , widthSize , heightMeasureSpec , heightSize ) ; <END_BUG> mFloatingActionButton = getChildAt ( 1 ) ; measureChildWithMargins ( mFloatingActionButton , widthMeasureSpec , widthSize , heightMeasureSpec , heightSize ) ; setMeasuredDimension ( widthSize , heightSize ) ; } @ Override protected void onLayout ( boolean changed , int l , int t , int r , int b ) { } @ Override public FloatingActionButtonLayout . LayoutParams generateLayoutParams ( AttributeSet attrs ) { } @ Override protected FloatingActionButtonLayout . LayoutParams generateDefaultLayoutParams ( ) { } @ Override protected ViewGroup . LayoutParams generateLayoutParams ( ViewGroup . LayoutParams p ) { } @ Override protected boolean checkLayoutParams ( ViewGroup . LayoutParams p ) { } public static class LayoutParams extends MarginLayoutParams { public LayoutParams ( Context c , AttributeSet attrs ) { } public LayoutParams ( int width , int height ) { } public LayoutParams ( int width , int height , int gravity ) { } public LayoutParams ( ViewGroup . LayoutParams source ) { } public LayoutParams ( ViewGroup . MarginLayoutParams source ) { } public LayoutParams ( FloatingActionButtonLayout . LayoutParams source ) { } } No newline ; at end ; of file ; }

Fix:
mSlidingUpPanelLayout . measure ( widthMeasureSpec , heightMeasureSpec ) ;
Buggy code:
public class ResourceTransformerSupportTests { private ResourceTransformerChain transformerChain ; private ResourceTransformerSupportTests . TestResourceTransformerSupport transformer ; private MockHttpServletRequest request ; @ Before public void setUp ( ) { } protected ResourceUrlProvider createResourceUrlProvider ( List < ResourceResolver > resolvers ) { } @ Test public void resolveUrlPath ( ) throws Exception { this . request . setRequestURI ( "//context//servlet//resources//main.css" ) ; <START_BUG> this . request . setAttribute ( PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE , "//resources//main.css" ) ; <END_BUG> String resourcePath = "//context//servlet//resources//bar.css" ; Resource css = new ClassPathResource ( "test//main.css" , getClass ( ) ) ; String actual = this . transformer . resolveUrlPath ( resourcePath , this . request , css , this . transformerChain ) ; assertEquals ( "//context//servlet//resources//bar-11e16cf79faee7ac698c805cf28248d2.css" , actual ) ; } @ Test public void resolveUrlPathWithoutHandlerMappingAttribute ( ) throws Exception { } @ Test public void resolveUrlPathWithRelativePath ( ) throws Exception { } @ Test public void resolveUrlPathWithRelativePathInParentDirectory ( ) throws Exception { } private static class TestResourceTransformerSupport extends ResourceTransformerSupport { @ Override public Resource transform ( HttpServletRequest request , Resource resource , ResourceTransformerChain chain ) { } } }

Fix:
this . request . setAttribute ( PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE , "resources//main.css" ) ;
Buggy code:
public final class WorkbenchKeyboard { private static final boolean DEBUG = Policy . DEBUG_KEY_BINDINGS ; private static final boolean DEBUG_VERBOSE = Policy . DEBUG_KEY_BINDINGS_VERBOSE ; private static final int MULTI_KEY_ASSIST_SHELL_MAX_HEIGHT = 175 ; private static final int MULTI_KEY_ASSIST_SHELL_MAX_WIDTH = 300 ; static final String OUT_OF_ORDER_KEYS = "OutOfOrderKeys" ; static KeySequence outOfOrderKeys ; private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle . getBundle ( WorkbenchKeyboard . class . getName ( ) ) ; public static List generatePossibleKeyStrokes ( Event event ) { } private static void initializeOutOfOrderKeys ( ) { } private static boolean isOutOfOrderKey ( List keyStrokes ) { } private final IActivityManager activityManager ; private final ICommandManager commandManager ; private final Listener keyDownFilter = new Listener ( ) { public void handleEvent ( Event event ) { } } ; private Shell multiKeyAssistShell = null ; private long startTime = Long . MAX_VALUE ; private final KeyBindingState state ; private final IWindowListener windowListener = new IWindowListener ( ) { public void windowActivated ( IWorkbenchWindow window ) { } public void windowClosed ( IWorkbenchWindow window ) { } public void windowDeactivated ( IWorkbenchWindow window ) { } public void windowOpened ( IWorkbenchWindow window ) { } } ; private final IWorkbench workbench ; public WorkbenchKeyboard ( Workbench associatedWorkbench , IActivityManager associatedActivityManager , ICommandManager associatedCommandManager ) { } private void checkActiveWindow ( IWorkbenchWindow window ) { } private void closeMultiKeyAssistShell ( ) { } private static boolean isEnabled ( ICommand command ) { } private boolean executeCommand ( String commandId ) throws CommandException { } private void filterKeySequenceBindings ( Event event ) { } public Listener getKeyDownFilter ( ) { } private String getPerfectMatch ( KeySequence keySequence ) { } private void incrementState ( KeySequence sequence ) { } private boolean isPartialMatch ( KeySequence keySequence ) { } private boolean isPerfectMatch ( KeySequence keySequence ) { } private final void logException ( CommandException e ) { } private void openMultiKeyAssistShell ( final Display display ) { } public boolean press ( List potentialKeyStrokes , Event event ) throws CommandException { } void processKeyEvent ( List keyStrokes , Event event ) { boolean eatKey = false ; if ( ! ( keyStrokes . isEmpty ( ) ) ) { try { eatKey = press ( keyStrokes , event ) ; } catch ( CommandException e ) { logException ( e ) ; eatKey = true ; } } if ( eatKey ) { switch ( event . type ) { case SWT . KeyDown : event . doit = false ; break ; case SWT . Traverse : event . detail = SWT . TRAVERSE_NONE ; <START_BUG> event . doit = false ; <END_BUG> break ; default : } event . type = SWT . NONE ; } } private void resetState ( ) { } }

Fix:
event . doit = true ;
Buggy code:
public class MapViewActivity extends MapActivity implements OnClickListener { private static final String TAG = "MapViewActivity" ; public MapViewActivity ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_map_view ) ; setUpMapView ( savedInstanceState ) ; setUpLoadingScreen ( ) ; Log . i ( MapViewActivity . TAG , "Added<seq2seq4repair_space>User<seq2seq4repair_space>Location<seq2seq4repair_space>Overlay<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>map" ) ; mapView . getOverlays ( ) . add ( myLocationOverlay ) ; final DataBaseHandler db = new DataBaseHandler ( this ) ; try { final List < AbstractDataElement > list = db . getAllDataElements ( ) ; mapView . addOsmElementsToMap ( this , list ) ; } catch ( JSONException e ) { <START_BUG> e . printStackTrace ( ) ; <END_BUG> } db . close ( ) ; int id = id . return_to_actual_Position ; final ImageButton returnToPosition = ( ( ImageButton ) ( findViewById ( id ) ) ) ; returnToPosition . setOnClickListener ( this ) ; id = id . switch_maps ; final ImageButton satelliteMap = ( ( ImageButton ) ( findViewById ( id ) ) ) ; satelliteMap . setOnClickListener ( this ) ; id = id . to_camera ; final ImageButton camera = ( ( ImageButton ) ( findViewById ( id ) ) ) ; camera . setOnClickListener ( this ) ; id = id . new_point ; final ImageButton newPoint = ( ( ImageButton ) ( findViewById ( id ) ) ) ; newPoint . setOnClickListener ( this ) ; } @ Override public void onClick ( View v ) { } @ Override public void onResume ( ) { } @ Override public void onPause ( ) { } private void createNewPOI ( ) { } private void returnToActualPosition ( ) { } }

Fix:
Log . e ( MapViewActivity . TAG , "" , e ) ;
Buggy code:
public class NSTabView extends NSView { public NSTabView ( ) { } public NSTabView ( int id ) { } public void addTabViewItem ( NSTabViewItem tabViewItem ) { } public boolean allowsTruncatedLabels ( ) { } public NSRect contentRect ( ) { } public int controlSize ( ) { } public int controlTint ( ) { } public id delegate ( ) { } public boolean drawsBackground ( ) { } public NSFont font ( ) { } public int indexOfTabViewItem ( NSTabViewItem tabViewItem ) { } public int indexOfTabViewItemWithIdentifier ( id identifier ) { } public void insertTabViewItem ( NSTabViewItem tabViewItem , int index ) { } public NSSize minimumSize ( ) { NSSize result = new NSSize ( ) ; <START_BUG> OS . objc_msgSend_struct ( result , this . id , sel_minimumSize ) ; <END_BUG> return result ; } public int numberOfTabViewItems ( ) { } public void removeTabViewItem ( NSTabViewItem tabViewItem ) { } public void selectFirstTabViewItem ( id sender ) { } public void selectLastTabViewItem ( id sender ) { } public void selectNextTabViewItem ( id sender ) { } public void selectPreviousTabViewItem ( id sender ) { } public void selectTabViewItem ( NSTabViewItem tabViewItem ) { } public void selectTabViewItemAtIndex ( int index ) { } public void selectTabViewItemWithIdentifier ( id identifier ) { } public NSTabViewItem selectedTabViewItem ( ) { } public void setAllowsTruncatedLabels ( boolean allowTruncatedLabels ) { } public void setControlSize ( int controlSize ) { } public void setControlTint ( int controlTint ) { } public void setDelegate ( id anObject ) { } public void setDrawsBackground ( boolean flag ) { } public void setFont ( NSFont font ) { } public void setTabViewType ( int tabViewType ) { } public NSTabViewItem tabViewItemAtIndex ( int index ) { } public NSTabViewItem tabViewItemAtPoint ( NSPoint point ) { } public NSArray tabViewItems ( ) { } public int tabViewType ( ) { } public void takeSelectedTabViewItemFromSender ( id sender ) { } }

Fix:
OS . objc_msgSend_stret ( result , this . id , sel_minimumSize ) ;