nus-yam/ex-repair huggingface dataset:
Buggy code:
public class LoaderInterceptor11 extends BaseInterceptor { boolean useAL = false ; boolean useNoParent = false ; public LoaderInterceptor11 ( ) { } public void setUseApplicationLoader ( boolean b ) { } public void setUseNoParent ( boolean b ) { } public void addContext ( ContextManager cm , Context context ) throws TomcatException { } public void contextInit ( Context context ) throws TomcatException { if ( ( debug ) > 0 ) log ( ( "Init<seq2seq4repair_space>context<seq2seq4repair_space>" + ( context . getPath ( ) ) ) ) ; ContextManager cm = context . getContextManager ( ) ; URL [ ] classP = context . getClassPath ( ) ; if ( ( debug ) > 5 ) { log ( "<seq2seq4repair_space>Context<seq2seq4repair_space>classpath<seq2seq4repair_space>URLs:" ) ; for ( int i = 0 ; i < ( classP . length ) ; i ++ ) log ( ( "<seq2seq4repair_space>" + ( classP [ i ] . toString ( ) ) ) ) ; } DependManager dm = context . getDependManager ( ) ; if ( dm == null ) { dm = new DependManager ( ) ; context . setDependManager ( dm ) ; } ClassLoader parent = null ; <START_BUG> if ( useAL ) <END_BUG> parent = cm . getParentLoader ( ) ; else if ( useNoParent ) parent = null ; else parent = this . getClass ( ) . getClassLoader ( ) ; ClassLoader loader = LoaderInterceptor11 . jdk11Compat . newClassLoaderInstance ( classP , parent ) ; DependClassLoader dcl = new DependClassLoader ( dm , loader ) ; if ( ( debug ) > 0 ) log ( ( ( ( "Loader<seq2seq4repair_space>" + ( loader . getClass ( ) . getName ( ) ) ) + "<seq2seq4repair_space>" ) + parent ) ) ; context . setClassLoader ( dcl ) ; context . setAttribute ( "org.apache.tomcat.classloader" , context . getClassLoader ( ) ) ; } public void reload ( Request req , Context context ) throws TomcatException { } static final Jdk11Compat jdk11Compat = Jdk11Compat . getJdkCompat ( ) ; private void getJars ( Vector v , File f ) { } }

Fix:
if ( ( useAL ) && ( ! ( context . isTrusted ( ) ) ) )
Buggy code:
public class FeedAdder { private final DataModel dataModel ; private final ProgressListener progressListener ; private final NetworkChecker networkChecker ; public FeedAdder ( DataModel dataModel , NetworkChecker networkChecker , ProgressListener progressListener ) { } public String retrieveFeedFromClipboard ( ) { } public void askForFeedValidation ( final List < RSSChannel > channels , final String url ) { } private String getResourceString ( int resId ) { } public void tellToCopy ( ) { } private void addFeed ( List < RSSChannel > channels , final String url ) { boolean exists = false ; for ( RSSChannel channel : channels ) { if ( channel . getUrl ( ) . equals ( url ) ) { exists = true ; } } if ( exists ) { Toast . makeText ( dataModel . getContext ( ) , cannot_add_feed , LENGTH_SHORT ) . show ( ) ; } else if ( networkChecker . checkNetworkForRefresh ( dataModel . getContext ( ) , true ) ) { SaveFeedCallback callback = new SaveFeedCallback ( progressListener , dataModel ) ; <START_BUG> new fr . vpm . audiorss . http . AsyncFeedRefresh ( dataModel . getContext ( ) , callback ) . executeOnExecutor ( THREAD_POOL_EXECUTOR , url ) ; <END_BUG> } } }

Fix:
new fr . vpm . audiorss . http . AsyncFeedRefresh ( dataModel . getContext ( ) , callback , dataModel ) . executeOnExecutor ( THREAD_POOL_EXECUTOR , url ) ;
Buggy code:
public class OutgoingMessagesView extends YYViewBackList { private OutgoingMessagesView . MsgOpView answer_record_view ; private OutgoingMessagesView . MsgOpView answer_only_view ; public OutgoingMessagesView ( ) { } public String getViewTitle ( ) { } public List < Map < Integer , onYYListItemHandler > > getItemListData ( ) { } public class MsgOpView extends YYViewBackList { private String strTitle ; private int nMsgType ; public MsgOpView ( String title , int type ) { } public String getViewTitle ( ) { } public List < Map < Integer , onYYListItemHandler > > getItemListData ( ) { } public void playMessage ( ) { yy_data_source . treatOutgoingMsg ( OUTGOING_MSG_OPERATION_PLAY , nMsgType , new onTreatMsgLinstener ( ) { public void onSuccessfully ( ) { String title = "Play<seq2seq4repair_space>message" ; String tips = "Playing<seq2seq4repair_space>outgoing<seq2seq4repair_space>message" ; int nResOK = drawable . alert_dialog_ok ; int nResDelete = drawable . alert_delete ; main_activity . yy_playing_msg_dlg = yy_show_alert_dialog . showImageTipsAlertDialog ( title , play_message , tips , nResOK , nResDelete , new onAlertDialogClickHandler ( ) { public void onOK ( ) { main_activity . yy_playing_msg_dlg = null ; main_activity . changeShengDao ( true ) ; yy_data_source . treatOutgoingMsg ( OUTGOING_MSG_OPERATION_STOP_PLAY , nMsgType , new onTreatMsgLinstener ( ) { public void onSuccessfully ( ) { } public void onFailure ( ) { } } ) ; } public void onCancel ( ) { main_activity . yy_playing_msg_dlg = null ; main_activity . changeShengDao ( true ) ; deleteMessage ( ) ; } public boolean getIsCancelEnable ( ) { return false ; } public int getKeybackIsCancel ( ) { return 1 ; } public void onKeyback ( ) { } } ) ; <START_BUG> main_activity . changeShengDao ( true ) ; <END_BUG> } public void onFailure ( ) { } } ) ; } public void deleteMessage ( ) { } public void recordMessage ( ) { } } }

Fix:
main_activity . changeShengDao ( false ) ;
Buggy code:
public class SyncService extends IntentService { public static final String SYNC_SERVICE_TAG = "SyncService" ; public static final int SERVICE_TYPE_GET = 0 ; public static final int SERVICE_TYPE_POST = 1 ; private static final String HTTP_POST = "POST" ; private static final String HTTP_GET = "GET" ; private static final int CONN_TIMEOUT = Settings . CONN_TIMEOUT ; private static final int READ_TIMEOUT = Settings . READ_TIMEOUT ; public static final String SERVICE_RESPONSE = "service_response" ; private static final String SERVICE_RESPONSE_CODE = "service_response_code" ; protected static final String TEST_URL = "http:////www.google.com" ; public SyncService ( ) { } @ Override public void onCreate ( ) { } private Bundle doGetServiceCall ( Uri uri , Bundle bundle , Intent intent ) throws IOException { String param = intent . getStringExtra ( SYNC_INTENT_EXTRA_PARAM ) ; String sUrl = ( TextUtils . isEmpty ( param ) ) ? uri . toString ( ) : ( uri . toString ( ) ) + param ; <START_BUG> URL url = new URL ( uri . toString ( ) ) ; <END_BUG> HttpURLConnection urlConnection = getHttpUrlConnection ( url ) ; urlConnection . setRequestMethod ( SyncService . HTTP_GET ) ; try { InputStream in = urlConnection . getInputStream ( ) ; bundle = copyStreamToBundle ( in , bundle ) ; in . close ( ) ; bundle . putInt ( SyncService . SERVICE_RESPONSE_CODE , urlConnection . getResponseCode ( ) ) ; return bundle ; } finally { urlConnection . disconnect ( ) ; } } private Bundle doPostServiceCall ( Uri uri , Bundle bundle , Intent intent ) throws IOException , ProtocolException { } private Bundle copyStreamToBundle ( InputStream in , Bundle bundle ) throws IOException { } private HttpURLConnection getHttpUrlConnection ( URL url ) throws IOException , ProtocolException { } private void disableConnectionReuseIfNecessary ( ) { } private void enableHttpResponseCache ( ) { } @ Override protected void onHandleIntent ( final Intent intent ) { } private Bundle doServiceCall ( Uri uri , int serviceType , Bundle bundle , Intent intent ) throws IOException { } private void isNetworkAvailable ( NetworkAvailabilityCallback networkAvailabilityCallback ) { } No newline ; at end ; of file ; }

Fix:
URL url = new URL ( sUrl ) ;
Buggy code:
public class GCommand implements CommandExecutor { private Match match ; public GCommand ( ) { } @ Override public boolean onCommand ( CommandSender sender , Command cmd , String label , String [ ] args ) { if ( sender instanceof Player ) { Player player = ( ( Player ) ( sender ) ) ; if ( cmd . getName ( ) . equalsIgnoreCase ( "g" ) ) { if ( ( args . length ) == 0 ) { Channel channel = ChannelUtils . getChannel ( player ) ; ChannelChangeEvent event = new ChannelChangeEvent ( player , channel , ChannelUtils . getGlobalChannel ( ) ) ; this . match . getPluginManager ( ) . callEvent ( event ) ; } if ( ( args . length ) > 1 ) { player . sendMessage ( ( ( RED ) + "Too<seq2seq4repair_space>many<seq2seq4repair_space>arguments!" ) ) ; return false ; } if ( ( args . length ) == 1 ) { } } } else { <START_BUG> sender . sendMessage ( ( ( RED ) + "You<seq2seq4repair_space>need<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>to<seq2seq4repair_space>join<seq2seq4repair_space>a<seq2seq4repair_space>Channel" ) ) ; <END_BUG> } return false ; } }

Fix:
sender . sendMessage ( ( ( RED ) + "You<seq2seq4repair_space>need<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>to<seq2seq4repair_space>join<seq2seq4repair_space>the<seq2seq4repair_space>Global<seq2seq4repair_space>Channel" ) ) ;
Buggy code:
public class Scp extends SSHBase { private String fromUri ; private String toUri ; private List fileSets = null ; private boolean isFromRemote ; private boolean isToRemote ; private boolean isSftp = false ; public void setFile ( String aFromUri ) { } public void setTodir ( String aToUri ) { } public void setLocalFile ( String aFromUri ) { } public void setRemoteFile ( String aFromUri ) { } public void setLocalTodir ( String aToUri ) { } public void setRemoteTodir ( String aToUri ) { } public void setLocalTofile ( String aToUri ) { } public void setRemoteTofile ( String aToUri ) { } public void setSftp ( boolean yesOrNo ) { } public void addFileset ( FileSet set ) { } public void init ( ) throws BuildException { } public void execute ( ) throws BuildException { } private void download ( String fromSshUri , String toPath ) throws JSchException , IOException { } private void upload ( List fileSet , String toSshUri ) throws JSchException , IOException { } private void upload ( String fromPath , String toSshUri ) throws JSchException , IOException { } private String parseUri ( String uri ) { <START_BUG> int indexOfAt = uri . indexOf ( '@' ) ; <END_BUG> int indexOfColon = uri . indexOf ( ':' ) ; if ( ( indexOfColon > ( - 1 ) ) && ( indexOfColon < indexOfAt ) ) { setUsername ( uri . substring ( 0 , indexOfColon ) ) ; setPassword ( uri . substring ( ( indexOfColon + 1 ) , indexOfAt ) ) ; } else { setUsername ( uri . substring ( 0 , indexOfAt ) ) ; } if ( ( ( getUserInfo ( ) . getPassword ( ) ) == null ) && ( ( getUserInfo ( ) . getPassphrase ( ) ) == null ) ) { throw new BuildException ( ( ( ( "neither<seq2seq4repair_space>password<seq2seq4repair_space>nor<seq2seq4repair_space>passphrase<seq2seq4repair_space>for<seq2seq4repair_space>user<seq2seq4repair_space>" + ( getUserInfo ( ) . getName ( ) ) ) + "<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>" ) + "given.<seq2seq4repair_space>Can't<seq2seq4repair_space>authenticate." ) ) ; } int indexOfPath = uri . indexOf ( ':' , ( indexOfAt + 1 ) ) ; if ( indexOfPath == ( - 1 ) ) { throw new BuildException ( ( "no<seq2seq4repair_space>remote<seq2seq4repair_space>path<seq2seq4repair_space>in<seq2seq4repair_space>" + uri ) ) ; } setHost ( uri . substring ( ( indexOfAt + 1 ) , indexOfPath ) ) ; String remotePath = uri . substring ( ( indexOfPath + 1 ) ) ; if ( remotePath . equals ( "" ) ) { remotePath = "." ; } return remotePath ; } private boolean isRemoteUri ( String uri ) { } private Directory createDirectory ( FileSet set ) { } }

Fix:
int indexOfAt = uri . lastIndexOf ( '@' ) ;
Buggy code:
public class SchematicLever extends SchematicWallSide { @ Override public void rotateLeft ( IBuilderContext context ) { <START_BUG> int status = ( meta ) - ( ( meta ) & 7 ) ; <END_BUG> meta -= status ; super . rotateLeft ( context ) ; meta += status ; } }

Fix:
int status = ( meta ) & 8 ;
Buggy code:
public abstract class UIJob extends Job { private Display display ; public UIJob ( String name ) { } public UIJob ( Display jobDisplay , String name ) { } public static IStatus errorStatus ( Throwable exception ) { } public final IStatus run ( final IProgressMonitor monitor ) { Display asyncDisplay = getDisplay ( ) ; <START_BUG> if ( asyncDisplay == null ) { <END_BUG> return Status . CANCEL_STATUS ; } asyncDisplay . asyncExec ( new Runnable ( ) { public void run ( ) { IStatus result = null ; try { setThread ( Thread . currentThread ( ) ) ; result = runInUIThread ( monitor ) ; } finally { if ( result == null ) result = new Status ( IStatus . ERROR , PlatformUI . PLUGIN_ID , IStatus . ERROR , ProgressMessages . getString ( "Error" ) , null ) ; done ( result ) ; } } } ) ; return Job . ASYNC_FINISH ; } public abstract IStatus runInUIThread ( IProgressMonitor monitor ) { } public void setDisplay ( Display runDisplay ) { } public Display getDisplay ( ) { } }

Fix:
if ( ( asyncDisplay == null ) || ( display . isDisposed ( ) ) ) {
Buggy code:
public class MainActivity extends Activity { @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_main ) ; <START_BUG> String test = "test" ; <END_BUG> } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } }

Fix:
String test = "fix<seq2seq4repair_space>test" ;
Buggy code:
public abstract class TagList extends Tag { private List < Tag > value ; public TagList ( String id , String ... applicable ) { } public TagList ( ) { } @ Override public String display ( int details , int lvls ) { } public TagList setValue ( List < Tag > value ) { } public List < Tag > getValue ( ) { } @ Override public String commandStructure ( ) { String nbt = ( getId ( ) ) + ":[" ; for ( int i = 0 ; i < ( value . size ( ) ) ; i ++ ) { if ( i != 0 ) nbt += "," ; <START_BUG> nbt += value . get ( i ) . commandStructure ( ) ; <END_BUG> } return nbt + "]" ; } public Tag get ( int index ) { } }

Fix:
nbt += value . get ( i ) . commandStructure ( ) . substring ( ( ( value . get ( i ) . getId ( ) . length ( ) ) + 1 ) ) ;
Buggy code:
public class DatabaseHelper { public static final String GET_USER_BY_USERNAME = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; public static final String GET_USER_BY_CONFIRM_CODE = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>users<seq2seq4repair_space>WHERE<seq2seq4repair_space>confirmCode<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static JndiDataSourceLookup dsLookup = null ; private static DataSource dataSource = null ; public static DataSource getDataSource ( ) { } public static DbUser getDbUserByUsername ( String username ) { Connection connection = null ; PreparedStatement ps = null ; ResultSet rs = null ; try { connection = DatabaseHelper . dataSource . getConnection ( ) ; ps = connection . prepareStatement ( DatabaseHelper . GET_USER_BY_USERNAME ) ; ps . setString ( 1 , username ) ; rs = ps . executeQuery ( ) ; if ( ! ( rs . next ( ) ) ) { return null ; } else { DbUser user = new DbUser ( ) ; user . setUsername ( username ) ; <START_BUG> user . setPasswordHash ( rs . getString ( "passwordHash" ) ) ; <END_BUG> user . setEmail ( rs . getString ( "email" ) ) ; user . setConfirmCode ( rs . getString ( "confirmCode" ) ) ; user . setEnabled ( rs . getBoolean ( "enabled" ) ) ; user . setConfirmed ( rs . getBoolean ( "confirmed" ) ) ; return user ; } } catch ( Exception e ) { return null ; } finally { try { if ( ps != null ) { ps . close ( ) ; } if ( rs != null ) { rs . close ( ) ; } if ( connection != null ) { connection . close ( ) ; } } catch ( Exception e ) { } } } public static DbUser getDbUserByConfirmCode ( String confirmCode ) { } }

Fix:
user . setPasswordHash ( rs . getString ( "password" ) ) ;
Buggy code:
public class Main { static JList < PeykUser > userJList = null ; static ChatFrame chatFrame = null ; static Set < ChatFrame > openChatFrames = new HashSet < ChatFrame > ( ) ; public static void main ( String [ ] args ) { final int port = 8180 ; GreetingServer server = new GreetingServer ( port , Main . openChatFrames ) ; server . start ( ) ; final OnlineUser onlineUser = new OnlineUser ( port ) ; onlineUser . start ( ) ; JFrame peykFrame = new JFrame ( "Peyk<seq2seq4repair_space>Messenger" ) ; JPanel panel = new JPanel ( ) ; Main . userJList = new JList < PeykUser > ( ) ; Main . userJList . setListData ( onlineUser . getUserSet ( ) ) ; Main . userJList . setSelectedIndex ( 0 ) ; Main . userJList . addMouseListener ( new MouseAdapter ( ) { public void mouseClicked ( MouseEvent e ) { if ( ( e . getClickCount ( ) ) == 2 ) { int index = Main . userJList . locationToIndex ( e . getPoint ( ) ) ; ListModel < PeykUser > userListModel = Main . userJList . getModel ( ) ; Object item = userListModel . getElementAt ( index ) ; final PeykUser peykUser = ( ( PeykUser ) ( item ) ) ; Main . userJList . ensureIndexIsVisible ( index ) ; <START_BUG> if ( ( ( Main . chatFrame ) != null ) && ( ( Main . openChatFrames . size ( ) ) != 0 ) ) { <END_BUG> for ( JFrame ocf : Main . openChatFrames ) { if ( ocf . getTitle ( ) . equals ( peykUser . toString ( ) ) ) { ocf . setVisible ( true ) ; return ; } } } Main . chatFrame = new ChatFrame ( peykUser ) ; Main . openChatFrames . add ( Main . chatFrame ) ; } } } ) ; panel . add ( new JScrollPane ( Main . userJList ) ) ; peykFrame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; peykFrame . getContentPane ( ) . add ( panel , "Center" ) ; peykFrame . setSize ( 300 , 650 ) ; peykFrame . setVisible ( true ) ; ActionListener taskPerformer = new ActionListener ( ) { public void actionPerformed ( ActionEvent evt ) { Main . userJList . setListData ( onlineUser . getUserSet ( ) ) ; } } ; Timer timer = new Timer ( 2000 , taskPerformer ) ; timer . setRepeats ( true ) ; timer . start ( ) ; } }

Fix:
if ( ( Main . openChatFrames . size ( ) ) != 0 ) {
Buggy code:
public class SubscribeFolderAction extends AbstractColumbaAction implements SelectionListener { private IMAPRootFolder rootFolder ; public SubscribeFolderAction ( FrameMediator frameMediator ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> new org . columba . mail . gui . config . subscribe . SubscribeDialog ( rootFolder ) ; <END_BUG> } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
new org . columba . mail . gui . config . subscribe . SubscribeDialog ( getFrameMediator ( ) . getView ( ) . getFrame ( ) , rootFolder ) ;
Buggy code:
public class DummyNPCDataStore implements NPCDataStore { public static int NPC_ID_OFFSET = 2000 ; private int counter = 0 ; @ Override public void clearData ( NPC npc ) { } @ Override public int createUniqueNPCId ( NPCRegistry npcr ) { <START_BUG> return DummyNPCDataStore . NPC_ID_OFFSET = ( counter ) ++ ; <END_BUG> } @ Override public void loadInto ( NPCRegistry npcr ) { } @ Override public void saveToDisk ( ) { } @ Override public void saveToDiskImmediate ( ) { } @ Override public void store ( NPC npc ) { } @ Override public void storeAll ( NPCRegistry npcr ) { } }

Fix:
return ( DummyNPCDataStore . NPC_ID_OFFSET ) + ( ( counter ) ++ ) ;
Buggy code:
class VariableBinding implements IVariableBinding { private static final int VALID_MODIFIERS = ( ( ( ( ( ( Modifier . PUBLIC ) | ( Modifier . PROTECTED ) ) | ( Modifier . PRIVATE ) ) | ( Modifier . STATIC ) ) | ( Modifier . FINAL ) ) | ( Modifier . TRANSIENT ) ) | ( Modifier . VOLATILE ) ; private org . eclipse . jdt . internal . compiler . lookup . VariableBinding binding ; private ITypeBinding declaringClass ; private String key ; private String name ; private BindingResolver resolver ; private ITypeBinding type ; VariableBinding ( BindingResolver resolver , org . eclipse . jdt . internal . compiler . lookup . VariableBinding binding ) { } public IAnnotationBinding [ ] getAnnotations ( ) { } public Object getConstantValue ( ) { } public ITypeBinding getDeclaringClass ( ) { } public IMethodBinding getDeclaringMethod ( ) { } public IJavaElement getJavaElement ( ) { } public String getKey ( ) { } public int getKind ( ) { } public int getModifiers ( ) { if ( isField ( ) ) { return ( ( ( FieldBinding ) ( this . binding ) ) . getAccessFlags ( ) ) & ( VariableBinding . VALID_MODIFIERS ) ; } if ( binding . isFinal ( ) ) { return IModifierConstants . ACC_FINAL ; } <START_BUG> return 0 ; <END_BUG> } public String getName ( ) { } public ITypeBinding getType ( ) { } private JavaElement getUnresolvedJavaElement ( ) { } public IVariableBinding getVariableDeclaration ( ) { } public int getVariableId ( ) { } public boolean isParameter ( ) { } public boolean isDeprecated ( ) { } public boolean isEnumConstant ( ) { } public boolean isEqualTo ( IBinding other ) { } public boolean isField ( ) { } public boolean isSynthetic ( ) { } public boolean isRecovered ( ) { } public String toString ( ) { } }

Fix:
return Modifier . NONE ;
Buggy code:
public class Map { public Plot [ ] [ ] plots ; public static ColorOutput cop = new ColorOutput ( ) ; public Map ( ) { } public void Init ( ) { } public void setID ( ) { } public void setPoint ( ) { } public void Render ( ) { } public void Render_after_player_walks ( Player player ) { } public void playerWalk ( Player player ) { boolean flag = true ; while ( flag ) { <START_BUG> Map . cop . println ( ( ( ( player . getName ( ) ) + "->´ýÊäÈëÃüÁî" ) + "\t" ) , player . color , Color . black ) ; <END_BUG> String s ; s = Map . input ( true ) ; if ( s . equals ( "roll" ) ) { player . roll_the_Dice ( ) ; player . showDiceNum ( ) ; Render_after_player_walks ( player ) ; Map . cop . println ( ( ( ( "ÊÇ·ñ¹ºÂò¸Ã´¦¿ÕµØ£¬" + ( plots [ player . coor . x ] [ player . coor . y ] . price ) ) + "Ôª£¨Y//N£©" ) + "\t" ) , player . color , Color . black ) ; s = Map . input ( true ) ; if ( s . equals ( "Y" ) ) { player . money -= plots [ player . coor . x ] [ player . coor . y ] . price ; plots [ player . coor . x ] [ player . coor . y ] . owner = player . playerNum ; Map . cop . println ( ( ( ( ( ( "µØ¿é(" + ( plots [ player . coor . x ] [ player . coor . y ] . id ) ) + ")±»" ) + ( player . getName ( ) ) ) + "Õ¼ÓÐ" ) + "\t" ) , player . color , Color . black ) ; Map . cop . println ( ( ( ( ( ( "ÏµÍ³¿Û³ý" + ( player . getName ( ) ) ) + "ÏàÓ¦µÄ×Ê½ð" ) + ( plots [ player . coor . x ] [ player . coor . y ] . price ) ) + "Ôª" ) + "\t" ) , player . color , Color . black ) ; flag = false ; } else if ( s . equals ( "N" ) ) { Map . cop . println ( ( ( ( ( player . getName ( ) ) + "·ÅÆúÕ¼ÓÐµØ¿é£¨" ) + ( plots [ player . coor . x ] [ player . coor . y ] . id ) ) + "£©\t" ) , player . color , Color . black ) ; flag = false ; } else if ( s . equals ( "quit" ) ) { System . out . println ( "ÓÎÏ·ÒÑÍË³ö" ) ; System . exit ( 0 ) ; } } else if ( s . equals ( "quit" ) ) { System . out . println ( "ÓÎÏ·ÒÑÍË³ö" ) ; System . exit ( 0 ) ; } else if ( s . equals ( "query" ) ) { player . diaplay ( ) ; flag = true ; } } } public static String input ( boolean inputstate ) { } }

Fix:
Map . cop . println ( ( ( ( player . getName ( ) ) + "->´ýÊäÈëÃüÁî(help<seq2seq4repair_space>ÌáÊ¾)" ) + "\t" ) , player . color , Color . black ) ;
Buggy code:
public class GridAgent extends Agent implements SCADABasicListener , SCADADetailedListener { private static final long serialVersionUID = - 720095833750151495L ; private long productCounter = 0 ; private ArrayList < AID > basicListeners ; private ArrayList < AID > detailedListeners ; private ArrayList < BasicAgentInfo > agentInformation ; public GridAgent ( ) { } @ Override protected void setup ( ) { spawnTrafficAgent ( ) ; spawnSupplyAgent ( ) ; <START_BUG> spawnEquipletAgent ( "0" ) ; <END_BUG> addBehaviour ( new GridAgentListenerBehaviour ( this ) ) ; testGetAgents ( ) ; } class GridListenerBehaviour extends CyclicBehaviour { private static final long serialVersionUID = 1L ; @ Override public void action ( ) { } } private LinkedList < ProductStep > parseConfigurationProductSteps ( String source ) throws JSONException { } private JSONObject fillProductCriteria ( JSONObject criteria ) { } private void spawnTrafficAgent ( ) { } private void spawnSupplyAgent ( ) { } @ Override protected void takeDown ( ) { } public void testGetAgents ( ) { } public void getOverview ( ) { } private void spawnEquipletAgent ( String name ) { } void addBasicListener ( AID agent ) { } void addDetailedListener ( AID agent ) { } @ Override public void onBasicUpdate ( AID agent , String message ) { } public void sendAgentInfo ( String message ) { } @ Override public void onDetailedUpdate ( AID agent , String message ) { } private void sendUpdateMessage ( AID agent , String update ) { } public void addBasicAgentInfo ( BasicAgentInfo bai ) { } public void removeBasicAgentInfo ( BasicAgentInfo bai ) { } public JSONObject getJSONOfOverview ( ) { } }

Fix:
spawnEquipletAgent ( "2" ) ;
Buggy code:
public class Vec2i { public int x ; public int y ; public Vec2i ( int x , int y ) { } public Vec2i add ( Vec2i v ) { } public Vec2i sub ( Vec2i v ) { } public Vec2i mul ( float f ) { } public String toString ( ) { <START_BUG> return String . format ( "Vec2<seq2seq4repair_space>|<seq2seq4repair_space>x<seq2seq4repair_space>:<seq2seq4repair_space>%d;<seq2seq4repair_space>y<seq2seq4repair_space>:<seq2seq4repair_space>%d" , x , y ) ; <END_BUG> } }

Fix:
return String . format ( "Vec2i<seq2seq4repair_space>|<seq2seq4repair_space>x<seq2seq4repair_space>:<seq2seq4repair_space>%d;<seq2seq4repair_space>y<seq2seq4repair_space>:<seq2seq4repair_space>%d" , x , y ) ;
Buggy code:
public class Teleoperated implements RobotMode { private Robot robot ; public DriverStationGUI GUI ; boolean liftControl ; double buttonPOV ; boolean buttonA ; public int box ; public Teleoperated ( Robot r ) { } public void init ( ) { } private int lastPOV = Gamepad . POV_OFF ; public void run ( ) { double speedModifier = 1 ; GUI . update ( ) ; if ( ( ( robot . gamepad2 . getButtonA ( ) ) != ( buttonA ) ) && ( ! ( buttonA ) ) ) { box = 0 ; } if ( ( ( robot . gamepad2 . getPOV ( ) ) != ( buttonPOV ) ) && ( ( robot . gamepad2 . getPOV ( ) ) == 0 ) ) { ( box ) ++ ; if ( ( box ) > 6 ) { box = 6 ; } } else if ( ( ( robot . gamepad2 . getPOV ( ) ) != ( buttonPOV ) ) && ( ( robot . gamepad2 . getPOV ( ) ) == 180 ) ) { ( box ) -- ; if ( ( box ) < 0 ) { box = 0 ; } } buttonPOV = robot . gamepad2 . getPOV ( ) ; buttonA = robot . gamepad2 . getButtonA ( ) ; int POV = robot . gamepad . getPOV ( ) ; speedModifier = 0.75 ; if ( robot . gamepad . getButtonRightBack ( ) ) speedModifier = 1 ; else if ( robot . gamepad . getButtonLeftBack ( ) ) speedModifier = 0.5 ; if ( POV != ( lastPOV ) ) { lastPOV = POV ; if ( POV == 0 ) if ( POV <= 180 ) robot . drivetrain . turn ( ( ( ( POV // 45 ) * ( Math . PI ) ) // 4 ) ) ; else if ( ( POV > 180 ) && ( POV < 360 ) ) { POV -= 180 ; robot . drivetrain . turn ( ( ( ( ( - POV ) // 45 ) * ( Math . PI ) ) // 4 ) ) ; } } if ( ( Math . abs ( ( ( robot . gamepad . getLeftTrigger ( ) ) - ( robot . gamepad . getRightTrigger ( ) ) ) ) ) > ( Math . abs ( ( ( robot . gamepad2 . getLeftTrigger ( ) ) - ( robot . gamepad2 . getRightTrigger ( ) ) ) ) ) ) { robot . manipulator . liftPower ( ( ( ( robot . gamepad . getLeftTrigger ( ) ) - ( robot . gamepad . getRightTrigger ( ) ) ) * 2 ) ) ; } else { robot . manipulator . liftPower ( ( ( ( robot . gamepad2 . getLeftTrigger ( ) ) - ( robot . gamepad2 . getRightTrigger ( ) ) ) * 2 ) ) ; } double turnSpeed = SmartDashboard . getNumber ( ( ( "Turn<seq2seq4repair_space>Speed<seq2seq4repair_space>" + ( box ) ) + "<seq2seq4repair_space>Boxes" ) ) ; double accelLimit = SmartDashboard . getNumber ( ( ( "Stick<seq2seq4repair_space>change<seq2seq4repair_space>rate<seq2seq4repair_space>" + ( box ) ) + "<seq2seq4repair_space>boxes" ) ) ; double turnAccelLimit = SmartDashboard . getNumber ( ( ( "Angle<seq2seq4repair_space>stick<seq2seq4repair_space>rate<seq2seq4repair_space>" + ( box ) ) + "<seq2seq4repair_space>boxes" ) ) ; robot . drivetrain . setPrimaryLimit ( accelLimit ) ; robot . drivetrain . setStrafeLimit ( accelLimit ) ; robot . drivetrain . setAngleAccelLimit ( turnAccelLimit ) ; <START_BUG> robot . drivetrain . setMaxTurnSpeed ( turnSpeed ) ; <END_BUG> robot . drivetrain . setAngleTarget ( robot . gamepad . getLeftX ( ) ) ; robot . drivetrain . setStrafe ( ( ( ( robot . gamepad . getRightX ( ) ) * speedModifier ) * 1.33 ) ) ; robot . drivetrain . setPrimary ( ( ( robot . gamepad . getRightY ( ) ) * speedModifier ) ) ; } }

Fix:
robot . drivetrain . setMaxTurnSpeed ( ( turnSpeed * speedModifier ) ) ;
Buggy code:
public class SecurityRealmService implements SecurityRealm , Service < SecurityRealmService > { public static final ServiceName BASE_SERVICE_NAME = JBOSS . append ( "server" , "controller" , "management" , "security_realm" ) ; private final InjectedValue < DomainCallbackHandler > callbackHandler = new InjectedValue < DomainCallbackHandler > ( ) ; private final InjectedValue < SSLIdentityService > sslIdentity = new InjectedValue < SSLIdentityService > ( ) ; private final InjectedValue < CallbackHandlerFactory > secretCallbackFactory = new InjectedValue < CallbackHandlerFactory > ( ) ; private final String name ; public SecurityRealmService ( String name ) { } public void start ( StartContext context ) throws StartException { } public void stop ( StopContext context ) { } public SecurityRealmService getValue ( ) throws IllegalArgumentException , IllegalStateException { } public String getName ( ) { } public InjectedValue < DomainCallbackHandler > getCallbackHandlerInjector ( ) { } public InjectedValue < SSLIdentityService > getSSLIdentityInjector ( ) { } public InjectedValue < CallbackHandlerFactory > getSecretCallbackFactory ( ) { } public DomainCallbackHandler getCallbackHandler ( ) { } public SSLContext getSSLContext ( ) { SSLIdentityService service = sslIdentity . getOptionalValue ( ) ; <START_BUG> if ( ( sslIdentity ) != null ) { <END_BUG> return service . getSSLContext ( ) ; } return null ; } public boolean hasTrustStore ( ) { } public CallbackHandlerFactory getSecretCallbackHandlerFactory ( ) { } }

Fix:
if ( service != null ) {
Buggy code:
public class MainActivity extends ActionBarActivity { private TextView txt_tel ; private Button [ ] btn_nums ; private Button btn_star ; private Button btn_sharp ; private ImageButton btn_del ; private ImageButton btn_call ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; getWindow ( ) . setFlags ( FLAG_FULLSCREEN , FLAG_FULLSCREEN ) ; setContentView ( activity_main ) ; txt_tel = ( ( TextView ) ( findViewById ( R . id . txt_tel ) ) ) ; btn_nums = new Button [ ] { ( ( Button ) ( findViewById ( btn_0 ) ) ) , ( ( Button ) ( findViewById ( btn_1 ) ) ) , ( ( Button ) ( findViewById ( btn_2 ) ) ) , ( ( Button ) ( findViewById ( btn_3 ) ) ) , ( ( Button ) ( findViewById ( btn_4 ) ) ) , ( ( Button ) ( findViewById ( btn_5 ) ) ) , ( ( Button ) ( findViewById ( btn_6 ) ) ) , ( ( Button ) ( findViewById ( btn_7 ) ) ) , ( ( Button ) ( findViewById ( btn_8 ) ) ) , ( ( Button ) ( findViewById ( btn_9 ) ) ) } ; btn_star = ( ( Button ) ( findViewById ( R . id . btn_star ) ) ) ; btn_sharp = ( ( Button ) ( findViewById ( R . id . btn_sharp ) ) ) ; btn_del = ( ( ImageButton ) ( findViewById ( R . id . btn_del ) ) ) ; btn_call = ( ( ImageButton ) ( findViewById ( R . id . btn_call ) ) ) ; for ( int i = 0 ; i <= 9 ; i ++ ) { btn_nums [ i ] . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { String s = ( ( Button ) ( v ) ) . getText ( ) . toString ( ) ; append ( s ) ; if ( txt_tel . getText ( ) . toString ( ) . equals ( "4430203593" ) ) { startActivityForResult ( new Intent ( Settings . ACTION_SETTINGS ) , 0 ) ; } } } ) ; } btn_star . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { append ( "*" ) ; } } ) ; btn_sharp . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { append ( "#" ) ; } } ) ; btn_del . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { del ( ) ; } } ) ; btn_del . setOnLongClickListener ( new View . OnLongClickListener ( ) { @ Override public boolean onLongClick ( View view ) { txt_tel . setText ( "" ) ; return false ; } } ) ; btn_call . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { if ( ( txt_tel . getText ( ) . length ( ) ) > 0 ) { Intent intent = new Intent ( Intent . ACTION_CALL ) ; <START_BUG> intent . setData ( Uri . parse ( ( "tel:" + ( txt_tel . getText ( ) . toString ( ) ) ) ) ) ; <END_BUG> startActivity ( intent ) ; } } } ) ; } private void append ( String v ) { } private void del ( ) { } @ Override public void onBackPressed ( ) { } public void onWindowFocusChanged ( boolean hasFocus ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
intent . setData ( Uri . parse ( ( "tel:" + ( Uri . encode ( txt_tel . getText ( ) . toString ( ) ) ) ) ) ) ;
Buggy code:
public class MetricsInterceptor extends AbstractInterceptor implements MetricsConstants { private static Logger log = Logger . getLogger ( MetricsInterceptor . class ) ; private Container container = null ; private String applicationName = "<undefined>" ; private String beanName = "<undefined>" ; private Thread publisher = null ; private List msgQueue = new ArrayList ( 2000 ) ; public void setContainer ( Container container ) { this . container = container ; <START_BUG> applicationName = container . getApplication ( ) . getName ( ) ; <END_BUG> beanName = container . getBeanMetaData ( ) . getJndiName ( ) ; } public Container getContainer ( ) { } public Object invokeHome ( Invocation mi ) throws Exception { } public Object invoke ( Invocation mi ) throws Exception { } public void create ( ) { } public void destroy ( ) { } private final void addEntry ( Invocation mi , long begin , long end ) { } private Message createMessage ( Session session , String principal , int txID , String method , String checkpoint , long time ) { } public void sample ( Object s ) { } public Map retrieveStatistic ( ) { } public void resetStatistic ( ) { } private class Publisher implements Runnable { private boolean running = true ; private int delay = 2000 ; private TopicConnection connection = null ; public void run ( ) { } } private final class Entry { int id = - 1 ; long time ; String principal = null ; String checkpoint ; String method ; Entry ( Principal principal , Method method , Transaction tx , long time , String checkpoint ) { } } }

Fix:
applicationName = container . getEjbModule ( ) . getName ( ) ;
Buggy code:
public class Logistic implements DifferentiableUnivariateFunction , UnivariateDifferentiableFunction { private final double a ; private final double k ; private final double b ; private final double oneOverN ; private final double q ; private final double m ; public Logistic ( double k , double m , double b , double q , double a , double n ) throws NotStrictlyPositiveException { } public double value ( double x ) { } @ Deprecated public UnivariateFunction derivative ( ) { } public static class Parametric implements ParametricUnivariateFunction { public double value ( double x , double ... param ) throws DimensionMismatchException , NotStrictlyPositiveException , NullArgumentException { } public double [ ] gradient ( double x , double ... param ) throws DimensionMismatchException , NotStrictlyPositiveException , NullArgumentException { validateParameters ( param ) ; final double b = param [ 2 ] ; final double q = param [ 3 ] ; final double mMinusX = ( param [ 1 ] ) - x ; final double oneOverN = 1 // ( param [ 5 ] ) ; final double exp = FastMath . exp ( ( b * mMinusX ) ) ; final double qExp = q * exp ; final double qExp1 = qExp + 1 ; final double factor1 = ( ( ( param [ 0 ] ) - ( param [ 4 ] ) ) * oneOverN ) // ( FastMath . pow ( qExp1 , oneOverN ) ) ; final double factor2 = ( - factor1 ) // qExp1 ; final double gk = Logistic . value ( mMinusX , 1 , b , q , 0 , oneOverN ) ; final double gm = ( factor2 * b ) * qExp ; final double gb = ( factor2 * mMinusX ) * qExp ; final double gq = factor2 * exp ; final double ga = Logistic . value ( mMinusX , 0 , b , q , 1 , oneOverN ) ; <START_BUG> final double gn = ( factor1 * ( Math . log ( qExp1 ) ) ) * oneOverN ; <END_BUG> return new double [ ] { gk , gm , gb , gq , ga , gn } ; } private void validateParameters ( double [ ] param ) throws DimensionMismatchException , NotStrictlyPositiveException , NullArgumentException { } } private static double value ( double mMinusX , double k , double b , double q , double a , double oneOverN ) { } public DerivativeStructure value ( final DerivativeStructure t ) { } }

Fix:
final double gn = ( factor1 * ( FastMath . log ( qExp1 ) ) ) * oneOverN ;
Buggy code:
public class GaussNewtonEstimator extends AbstractEstimator implements Serializable { private static final long serialVersionUID = 5485001826076289109L ; private static final double DEFAULT_STEADY_STATE_THRESHOLD = 1.0E-6 ; private static final double DEFAULT_CONVERGENCE = 1.0E-6 ; private double steadyStateThreshold ; private double convergence ; public GaussNewtonEstimator ( ) { } public GaussNewtonEstimator ( final int maxCostEval , final double convergence , final double steadyStateThreshold ) { } public void setConvergence ( final double convergence ) { } public void setSteadyStateThreshold ( final double steadyStateThreshold ) { } public void estimate ( EstimationProblem problem ) throws EstimationException { initializeEstimate ( problem ) ; double [ ] grad = new double [ parameters . length ] ; RealVectorImpl bDecrement = new RealVectorImpl ( parameters . length ) ; double [ ] bDecrementData = bDecrement . getDataRef ( ) ; RealMatrix wGradGradT = MatrixUtils . createRealMatrix ( length , length ) ; double previous = Double . POSITIVE_INFINITY ; do { incrementJacobianEvaluationsCounter ( ) ; RealVector b = new RealVectorImpl ( parameters . length ) ; RealMatrix a = MatrixUtils . createRealMatrix ( length , length ) ; for ( int i = 0 ; i < ( measurements . length ) ; ++ i ) { if ( ! ( measurements [ i ] . isIgnored ( ) ) ) { double weight = measurements [ i ] . getWeight ( ) ; double residual = measurements [ i ] . getResidual ( ) ; for ( int j = 0 ; j < ( parameters . length ) ; ++ j ) { grad [ j ] = measurements [ i ] . getPartial ( parameters [ j ] ) ; bDecrementData [ j ] = ( weight * residual ) * ( grad [ j ] ) ; } for ( int k = 0 ; k < ( parameters . length ) ; ++ k ) { double gk = grad [ k ] ; for ( int l = 0 ; l < ( parameters . length ) ; ++ l ) { wGradGradT . setEntry ( k , l , ( ( weight * gk ) * ( grad [ l ] ) ) ) ; } } a = a . add ( wGradGradT ) ; b = b . add ( bDecrement ) ; } } try { RealVector dX = new org . apache . commons . math . linear . decomposition . LUDecompositionImpl ( a ) . getSolver ( ) . solve ( b ) ; for ( int i = 0 ; i < ( parameters . length ) ; ++ i ) { parameters [ i ] . setEstimate ( ( ( parameters [ i ] . getEstimate ( ) ) + ( dX . getEntry ( i ) ) ) ) ; } } catch ( InvalidMatrixException e ) { <START_BUG> throw new EstimationException ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>solve:<seq2seq4repair_space>singular<seq2seq4repair_space>problem" , null ) ; <END_BUG> } previous = cost ; updateResidualsAndCost ( ) ; } while ( ( ( getCostEvaluations ( ) ) < 2 ) || ( ( ( Math . abs ( ( previous - ( cost ) ) ) ) > ( ( cost ) * ( steadyStateThreshold ) ) ) && ( ( Math . abs ( cost ) ) > ( convergence ) ) ) ) ; } }

Fix:
throw new EstimationException ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>solve:<seq2seq4repair_space>singular<seq2seq4repair_space>problem" ) ;
Buggy code:
public class ElasticEdge extends ElasticElement implements Edge , Edge . Iterators { public static String OutId = "outId" ; public static String InId = "inId" ; private String inId ; private String outId ; private ElasticService elasticService ; public ElasticEdge ( final Object id , final String label , Object outId , Object inId , Object [ ] keyValues , final ElasticGraph graph ) { } @ Override public Property addPropertyLocal ( String key , Object value ) { } @ Override protected boolean shouldAddProperty ( String key ) { } @ Override public < V > Property < V > property ( String key , V value ) { } @ Override public void remove ( ) { } @ Override public String toString ( ) { } @ Override public Iterators iterators ( ) { } @ Override public Iterator < Vertex > vertexIterator ( final Direction direction ) { checkRemoved ( ) ; <START_BUG> return graph . vertexIterator ( getVertexId ( direction ) . toArray ( ) ) ; <END_BUG> } public List getVertexId ( Direction direction ) { } @ Override public < V > Iterator < Property < V > > propertyIterator ( final String ... propertyKeys ) { } @ Override protected void checkRemoved ( ) { } }

Fix:
return elasticService . getVertices ( getVertexId ( direction ) . toArray ( ) ) ;
Buggy code:
public final class ComponentResourceRequestTarget implements IRequestTarget { private static final Log log = LogFactory . getLog ( ComponentResourceRequestTarget . class ) ; private final Page page ; private final Component component ; private final RequestListenerInterface listener ; public ComponentResourceRequestTarget ( Page page , Component component , RequestListenerInterface listener ) { } public void respond ( RequestCycle requestCycle ) { } public void detach ( RequestCycle requestCycle ) { <START_BUG> page . internalDetach ( ) ; <END_BUG> } public boolean equals ( Object obj ) { } public int hashCode ( ) { } public String toString ( ) { } }

Fix:
page . detach ( ) ;
Buggy code:
public class PasswordEncoder { static final Logger logger = LogManager . getLogger ( PasswordEncoder . class . getName ( ) ) ; public static String encodeComplex ( String simpleEncodedPassword , String rid ) { try { MessageDigest messageDigestRid = MessageDigest . getInstance ( "MD5" ) ; messageDigestRid . reset ( ) ; messageDigestRid . update ( rid . getBytes ( Charset . forName ( "UTF8" ) ) ) ; final byte [ ] ridResultByte = messageDigestRid . digest ( ) ; final String ridResult = new String ( Hex . encode ( ridResultByte ) ) ; String finalString = simpleEncodedPassword + ridResult ; MessageDigest messageDigestFinal = MessageDigest . getInstance ( "MD5" ) ; messageDigestFinal . reset ( ) ; messageDigestFinal . update ( finalString . getBytes ( Charset . forName ( "UTF8" ) ) ) ; <START_BUG> final byte [ ] finalResultByte = messageDigestRid . digest ( ) ; <END_BUG> final String finalResult = new String ( Hex . encode ( finalResultByte ) ) ; return finalResult ; } catch ( NoSuchAlgorithmException e ) { PasswordEncoder . logger . error ( e ) ; } return null ; } public static String encodeSimple ( String valueToEncode ) { } }

Fix:
final byte [ ] finalResultByte = messageDigestFinal . digest ( ) ;
Buggy code:
public class QuickListAction extends QuickSwitchSchemeAction implements DumbAware { protected void fillActions ( @ Nullable final Project project , @ NotNull final DefaultActionGroup group , @ NotNull final DataContext dataContext ) { if ( project == null ) { return ; } addAction ( "adbtools.action.UninstallAction" , group ) ; addAction ( "adbtools.action.KillAction" , group ) ; addAction ( "adbtools.action.StartAction" , group ) ; addAction ( "adbtools.action.StartWithDebuggerAction" , group ) ; addAction ( "adbtools.action.RestartAction" , group ) ; addAction ( "adbtools.action.RestartWithDebuggerAction" , group ) ; addAction ( "adbtools.action.ClearDataAction" , group ) ; addAction ( "adbtools.action.ClearDataAndRestartAction" , group ) ; <START_BUG> addAction ( "adbtools.action.ClearDataAndRestartWithDebugerAction" , group ) ; <END_BUG> } protected boolean isEnabled ( ) { } private void addAction ( final String actionId , final DefaultActionGroup toGroup ) { } protected String getPopupTitle ( AnActionEvent e ) { } }

Fix:
addAction ( "adbtools.action.ClearDataAndRestartWithDebuggerAction" , group ) ;
Buggy code:
public class PageableListViewNavigation extends ListView { private static final long serialVersionUID = 8591577491410447609L ; protected PageableListView pageableListView ; public PageableListViewNavigation ( final String name , final PageableListView pageableListView ) { } protected IModel initModel ( ) { return new DetachableModel ( ) { protected void onAttach ( ) { setObject ( new AbstractList ( ) { public Object get ( final int index ) { return new Integer ( index ) ; } public int size ( ) { <START_BUG> return Integer . MAX_VALUE ; <END_BUG> } } ) ; } protected void onDetach ( ) { setObject ( null ) ; } } ; } public int getViewSize ( ) { } protected void populateItem ( final ListItem listItem ) { } }

Fix:
return pageableListView . getPageCount ( ) ;
Buggy code:
public class ObjectColorPicker implements IObjectPicker { private final ArrayList < Object3D > mObjectLookup = new ArrayList < > ( ) ; private final RajawaliRenderer mRenderer ; private int mColorIndex = 0 ; private RenderTarget mRenderTarget ; private Material mPickerMaterial ; private OnObjectPickedListener mObjectPickedListener ; public ObjectColorPicker ( RajawaliRenderer renderer ) { } public void initialize ( ) { final int size = Math . max ( mRenderer . getViewportWidth ( ) , mRenderer . getViewportHeight ( ) ) ; mRenderTarget = new RenderTarget ( "colorPickerTarget" , size , size , 0 , 0 , false , false , GLES20 . GL_TEXTURE_2D , Config . ARGB_8888 , FilterType . LINEAR , WrapType . CLAMP ) ; mRenderer . addRenderTarget ( mRenderTarget ) ; <START_BUG> mPickerMaterial = new Material ( this ) ; <END_BUG> MaterialManager . getInstance ( ) . addMaterial ( mPickerMaterial ) ; } public void setOnObjectPickedListener ( OnObjectPickedListener objectPickedListener ) { } public void registerObject ( Object3D object ) { } public void unregisterObject ( Object3D object ) { } public void getObjectAt ( float x , float y ) { } public RenderTarget getRenderTarget ( ) { } @ Deprecated public static void createColorPickingTexture ( ObjectColorPicker . ColorPickerInfo pickerInfo ) { } public static void pickObject ( ObjectColorPicker . ColorPickerInfo pickerInfo ) { } public Material getMaterial ( ) { } public class ColorPickerInfo { private int mX ; private int mY ; private ObjectColorPicker mPicker ; private ByteBuffer mColorPickerBuffer ; public ColorPickerInfo ( float x , float y , ObjectColorPicker picker ) { } public ObjectColorPicker getPicker ( ) { } public int getX ( ) { } public int getY ( ) { } public void setColorPickerBuffer ( ByteBuffer buffer ) { } public ByteBuffer getColorPickerBuffer ( ) { } } public static final class ObjectColorPickerException extends Exception { private static final long serialVersionUID = 3732833696361901287L ; public ObjectColorPickerException ( ) { } public ObjectColorPickerException ( final String msg ) { } public ObjectColorPickerException ( final Throwable throwable ) { } public ObjectColorPickerException ( final String msg , final Throwable throwable ) { } } }

Fix:
mPickerMaterial = new Material ( ) ;
Buggy code:
public class TableDetailsCache { private final Map < Class < ? > , TableDetails > cache ; public TableDetailsCache ( ) { } public synchronized void init ( Context context , List < Class < ? > > objects ) { } public synchronized TableDetails findTableDetails ( Context context , Class < ? > object ) { if ( ! ( cache . containsKey ( object ) ) ) { try { cache . put ( object , ReflectionHelper . getTableDetails ( context , object ) ) ; } catch ( Exception ex ) { <START_BUG> throw new IllegalArgumentException ( ( "Failed<seq2seq4repair_space>load<seq2seq4repair_space>table<seq2seq4repair_space>details<seq2seq4repair_space>for<seq2seq4repair_space>object<seq2seq4repair_space>" + ( object . getSimpleName ( ) ) ) ) ; <END_BUG> } if ( ! ( cache . containsKey ( object ) ) ) throw new IllegalArgumentException ( ( "No<seq2seq4repair_space>table<seq2seq4repair_space>details<seq2seq4repair_space>could<seq2seq4repair_space>be<seq2seq4repair_space>found<seq2seq4repair_space>for<seq2seq4repair_space>supplied<seq2seq4repair_space>object:<seq2seq4repair_space>" + ( object . getSimpleName ( ) ) ) ) ; } return cache . get ( object ) ; } }

Fix:
throw new IllegalArgumentException ( ( "Failed<seq2seq4repair_space>load<seq2seq4repair_space>table<seq2seq4repair_space>details<seq2seq4repair_space>for<seq2seq4repair_space>object<seq2seq4repair_space>" + ( object . getSimpleName ( ) ) ) , ex ) ;