nus-yam/ex-repair huggingface dataset:
Buggy code:
public class XposedApp extends Application implements ActivityLifecycleCallbacks { public static final String TAG = "XposedInstaller" ; @ SuppressLint ( "SdCardPath" ) public static final String BASE_DIR = "//data//data//de.robv.android.xposed.installer//" ; public static final String ENABLED_MODULES_LIST_FILE = ( XposedApp . BASE_DIR ) + "conf//enabled_modules.list" ; private static final File XPOSED_PROP_FILE = new File ( "//system//xposed.prop" ) ; private static XposedApp mInstance = null ; private static Thread mUiThread ; private static Handler mMainHandler ; private boolean mIsUiLoaded = false ; private Activity mCurrentActivity = null ; private SharedPreferences mPref ; private Map < String , String > mXposedProp ; public static XposedApp getInstance ( ) { } public static void runOnUiThread ( Runnable action ) { } public static Integer getActiveXposedVersion ( ) { } public static Map < String , String > getXposedProp ( ) { } public static SharedPreferences getPreferences ( ) { } public static int getColor ( Context context ) { } public static void setColors ( ActionBar actionBar , Object value , Activity activity ) { int color = ( ( int ) ( value ) ) ; actionBar . setBackgroundDrawable ( new ColorDrawable ( color ) ) ; if ( ( VERSION . SDK_INT ) >= 21 ) { ActivityManager . TaskDescription tDesc = new ActivityManager . TaskDescription ( activity . getString ( app_name ) , XposedApp . drawableToBitmap ( activity . getDrawable ( ic_launcher ) ) , color ) ; activity . setTaskDescription ( tDesc ) ; <START_BUG> if ( XposedApp . getPreferences ( ) . getBoolean ( "nav_bar" , true ) ) { <END_BUG> activity . getWindow ( ) . setNavigationBarColor ( XposedApp . darkenColor ( color , 0.85F ) ) ; } else { int black = activity . getResources ( ) . getColor ( android . R . color . black ) ; activity . getWindow ( ) . setNavigationBarColor ( black ) ; } } } public static Bitmap drawableToBitmap ( Drawable drawable ) { } public static int darkenColor ( int color , float factor ) { } public void onCreate ( ) { } private void createDirectories ( ) { } private void cleanup ( ) { } private void mkdirAndChmod ( String dir , int permissions ) { } private void reloadXposedProp ( ) { } private Map < String , String > parseXposedProp ( InputStream stream ) throws IOException { } public boolean areDownloadsEnabled ( ) { } public void updateProgressIndicator ( ) { } @ Override public synchronized void onActivityCreated ( Activity activity , Bundle savedInstanceState ) { } @ Override public synchronized void onActivityResumed ( Activity activity ) { } @ Override public synchronized void onActivityPaused ( Activity activity ) { } @ Override public void onActivityStarted ( Activity activity ) { } @ Override public void onActivityStopped ( Activity activity ) { } @ Override public void onActivitySaveInstanceState ( Activity activity , Bundle outState ) { } @ Override public void onActivityDestroyed ( Activity activity ) { } }

Fix:
if ( XposedApp . getPreferences ( ) . getBoolean ( "nav_bar" , false ) ) {
Buggy code:
public class ParentResourceEscapePathTest extends WicketTestCase { private static final Logger log = LoggerFactory . getLogger ( ParentResourceEscapePathTest . class ) ; public void testParentEscapeSequenceInRenderedHtml ( ) throws Exception { } private void parentEscapeSequenceInRenderedHtml ( ) { } private void assertContains ( String html , String expected ) { } public void testResourceUrlGeneratedByResourceReference ( ) { } private void resourceUrlGeneratedByResourceReference ( ) { } public void testRequestHandlingOfResourceUrlWithEscapeStringInside ( ) { } private void requestHandlingOfResourceUrlWithEscapeStringInside ( ) { tester . getRequest ( ) . setUrl ( Url . parse ( ( "wicket//" + ( expectedResourceUrl ( ) ) ) ) ) ; InputStream i = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "ParentResourceTest.js" ) ; i = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "//ParentResourceTest.js" ) ; tester . processRequest ( ) ; tester . assertNoErrorMessage ( ) ; <START_BUG> String res = new String ( tester . getLastResponse ( ) . getBinaryResponse ( ) ) ; <END_BUG> assertEquals ( "////<seq2seq4repair_space>ParentResourceTest.js" , res ) ; } private String expectedResourceUrl ( ) { } }

Fix:
String res = tester . getLastResponse ( ) . getBinaryResponse ( ) ;
Buggy code:
public class LightUniform implements DrawUnit { private final Vec3 mGlobalAmbient = new Vec3 ( ) ; private Light [ ] mLights = null ; private final Ubo mUbo ; private final UboMember mAmbient ; private final UboMember mColor ; private final UboMember mPos ; private final UboMember mDir ; private final UboMember mFalloff ; private final UboMember mShape ; private Vec4 [ ] mArr4 = new Vec4 [ ] { null } ; private Vec3 [ ] mArr3 = new Vec3 [ ] { null } ; public LightUniform ( int lightNum ) { } public LightUniform ( int lightNum , int bindingLoc ) { } public void ambient ( Vec3 color ) { } public void set ( int ind , Light light ) { } public void init ( DrawEnv d ) { } @ Override public void dispose ( DrawEnv d ) { } @ Override public void bind ( DrawEnv d ) { } public void bind ( DrawEnv d , int location ) { } @ Override public void unbind ( DrawEnv d ) { } public void unbind ( DrawEnv d , int location ) { } private void writeBuffer ( DrawEnv d ) { final Vec4 [ ] arr4 = mArr4 ; final Vec3 [ ] arr3 = mArr3 ; final Vec4 vec4 = d . mWorkVec4 ; final Vec3 vec3 = d . mWorkVec3 ; Mat4 view = d . mView . get ( ) ; Mat4 work = d . mWorkMat4 ; Mat3 norm = d . mWorkMat3 ; Mat . invert ( view , work ) ; Mat . put ( work , norm ) ; Mat . transpose ( norm , norm ) ; mAmbient . set ( mGlobalAmbient ) ; for ( int ind = 0 ; ind < ( mLights . length ) ; ind ++ ) { Light light = mLights [ ind ] ; if ( light == null ) { continue ; } arr3 [ 0 ] = light . mColor ; mColor . set ( ind , arr3 , 0 , 1 ) ; Mat . mult ( view , light . mPos , vec3 ) ; arr3 [ 0 ] = vec3 ; mPos . set ( ind , arr3 , 0 , 1 ) ; Mat . mult ( norm , light . mDir , vec3 ) ; Vec . normalize ( vec3 ) ; arr3 [ 0 ] = vec3 ; mDir . set ( ind , arr3 , 0 , 1 ) ; arr3 [ 0 ] = light . mFalloff ; mFalloff . set ( ind , arr3 , 0 , 1 ) ; if ( light . mPositional ) { vec4 . x = 1.0F ; vec4 . y = ( ( float ) ( SinCosTable . cos ( light . mSpotAngle ) ) ) ; vec4 . z = light . mSpotExp ; } else { vec4 . x = 0.0F ; <START_BUG> vec4 . y = 10.0F ; <END_BUG> vec4 . z = 0.0F ; } arr4 [ 0 ] = vec4 ; mShape . set ( ind , arr4 , 0 , 1 ) ; } } }

Fix:
vec4 . y = - 1.0F ;
Buggy code:
public class Checker extends ShadowMunger { private String msg ; private boolean isError ; public Checker ( DeclareErrorOrWarning deow ) { } public ShadowMunger concretize ( ResolvedTypeX fromType , World world , PerClause clause ) { } public void specializeOn ( Shadow shadow ) { } public void implementOn ( Shadow shadow ) { } public boolean match ( Shadow shadow , World world ) { if ( super . match ( shadow , world ) ) { IMessage message = new Message ( msg , shadow . toString ( ) , ( isError ? IMessage . ERROR : IMessage . WARNING ) , shadow . getSourceLocation ( ) , null , new ISourceLocation [ ] { this . getSourceLocation ( ) } , true , 0 , ( - 1 ) , ( - 1 ) ) ; world . getMessageHandler ( ) . handleMessage ( message ) ; if ( ( world . xrefHandler ) != null ) { world . xrefHandler . addCrossReference ( this . getSourceLocation ( ) , shadow . getSourceLocation ( ) , ( this . isError ? Kind . DECLARE_ERROR : Kind . DECLARE_WARNING ) , false ) ; } if ( ( world . getModel ( ) ) != null ) { <START_BUG> AsmRelationshipProvider . checkerMunger ( world . getModel ( ) , shadow , this ) ; <END_BUG> } } return false ; } public int compareTo ( Object other ) { } public Collection getThrownExceptions ( ) { } public boolean isError ( ) { } }

Fix:
AsmRelationshipProvider . getDefault ( ) . checkerMunger ( world . getModel ( ) , shadow , this ) ;
Buggy code:
public class HTTPAcceptorRemove extends AbstractRemoveStepHandler { static final HTTPAcceptorRemove INSTANCE = new HTTPAcceptorRemove ( ) ; protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model ) { } protected void recoverServices ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { final PathAddress address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; String hornetqServerName = address . getElement ( ( ( address . size ( ) ) - 2 ) ) . getValue ( ) ; String acceptorName = address . getLastElement ( ) . getValue ( ) ; <START_BUG> HTTPAcceptorAdd . INSTANCE . launchServices ( context , hornetqServerName , acceptorName , model ) ; <END_BUG> } }

Fix:
HTTPAcceptorAdd . INSTANCE . launchServices ( context , hornetqServerName , acceptorName , model , null , null ) ;
Buggy code:
public class JavaTest extends AbstractJavaSamplerClient implements Serializable { private long sleepTime ; public static final long DEFAULT_SLEEP_TIME = 100 ; private static final String SLEEP_NAME = "Sleep_Time" ; private long sleepMask ; public static final long DEFAULT_SLEEP_MASK = 255 ; private static final String DEFAULT_MASK_STRING = "0x" + ( Long . toHexString ( JavaTest . DEFAULT_SLEEP_MASK ) . toUpperCase ( Locale . ENGLISH ) ) ; private static final String MASK_NAME = "Sleep_Mask" ; private String label ; private static final String LABEL_NAME = "Label" ; private String responseMessage ; private static final String RESPONSE_MESSAGE_DEFAULT = "" ; private static final String RESPONSE_MESSAGE_NAME = "ResponseMessage" ; private String responseCode ; private static final String RESPONSE_CODE_DEFAULT = "" ; private static final String RESPONSE_CODE_NAME = "ResponseCode" ; private String samplerData ; private static final String SAMPLER_DATA_DEFAULT = "" ; private static final String SAMPLER_DATA_NAME = "SamplerData" ; private String resultData ; private static final String RESULT_DATA_DEFAULT = "" ; private static final String RESULT_DATA_NAME = "ResultData" ; private boolean success ; private static final String SUCCESS_DEFAULT = "OK" ; private static final String SUCCESS_NAME = "Status" ; public JavaTest ( ) { } private void setupValues ( JavaSamplerContext context ) { } @ Override public void setupTest ( JavaSamplerContext context ) { } @ Override public Arguments getDefaultParameters ( ) { } public SampleResult runTest ( JavaSamplerContext context ) { } @ Override public void teardownTest ( JavaSamplerContext context ) { } private void listParameters ( JavaSamplerContext context ) { } private String whoAmI ( ) { <START_BUG> StringBuffer sb = new StringBuffer ( ) ; <END_BUG> sb . append ( Thread . currentThread ( ) . toString ( ) ) ; sb . append ( "@" ) ; sb . append ( Integer . toHexString ( hashCode ( ) ) ) ; return sb . toString ( ) ; } }

Fix:
StringBuilder sb = new StringBuilder ( ) ;
Buggy code:
public class TestRunner extends BaseTestRunner { private ResultPrinter fPrinter ; public static final int SUCCESS_EXIT = 0 ; public static final int FAILURE_EXIT = 1 ; public static final int EXCEPTION_EXIT = 2 ; public TestRunner ( ) { } public TestRunner ( PrintStream writer ) { } public TestRunner ( ResultPrinter printer ) { } public static void run ( Class testClass ) { } public static TestResult run ( Test test ) { } public static void runAndWait ( Test suite ) { } public TestSuiteLoader getLoader ( ) { } public void testFailed ( int status , Test test , Throwable t ) { } public void testStarted ( String testName ) { } public void testEnded ( String testName ) { } protected TestResult createTestResult ( ) { } public TestResult doRun ( Test test ) { } public TestResult doRun ( Test suite , boolean wait ) { } protected void pause ( boolean wait ) { } public static void main ( String [ ] args ) { } public TestResult start ( String [ ] args ) throws Exception { String testCase = "" ; String method = "" ; boolean wait = false ; for ( int i = 0 ; i < ( args . length ) ; i ++ ) { if ( args [ i ] . equals ( "-wait" ) ) wait = true ; else if ( args [ i ] . equals ( "-c" ) ) testCase = extractClassName ( args [ ( ++ i ) ] ) ; else if ( args [ i ] . equals ( "-m" ) ) { String arg = args [ ( ++ i ) ] ; int lastIndex = arg . lastIndexOf ( '.' ) ; testCase = arg . substring ( 0 , lastIndex ) ; method = arg . substring ( ( lastIndex + 1 ) ) ; } else if ( args [ i ] . equals ( "-v" ) ) System . err . println ( ( ( "JUnit<seq2seq4repair_space>" + ( Version . id ( ) ) ) + "<seq2seq4repair_space>by<seq2seq4repair_space>Kent<seq2seq4repair_space>Beck<seq2seq4repair_space>and<seq2seq4repair_space>Erich<seq2seq4repair_space>Gamma" ) ) ; else testCase = args [ i ] ; } if ( testCase . equals ( "" ) ) throw new Exception ( "Usage:<seq2seq4repair_space>TestRunner<seq2seq4repair_space>[-wait]<seq2seq4repair_space>testCaseName,<seq2seq4repair_space>where<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>the<seq2seq4repair_space>name<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>TestCase<seq2seq4repair_space>class" ) ; try { <START_BUG> if ( method != null ) <END_BUG> return runSingleMethod ( testCase , method , wait ) ; Test suite = getTest ( testCase ) ; return doRun ( suite , wait ) ; } catch ( Exception e ) { throw new Exception ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>create<seq2seq4repair_space>and<seq2seq4repair_space>run<seq2seq4repair_space>test<seq2seq4repair_space>suite:<seq2seq4repair_space>" + e ) ) ; } } protected TestResult runSingleMethod ( String testCase , String method , boolean wait ) throws Exception { } protected void runFailed ( String message ) { } public void setPrinter ( ResultPrinter printer ) { } }

Fix:
if ( ! ( method . equals ( "" ) ) )
Buggy code:
public class MenuManager { private static Logger log = LoggerFactory . getLogger ( MenuManager . class ) ; public static void main ( String [ ] args ) throws UnsupportedEncodingException { } private static JSONObject getMenu ( ) throws UnsupportedEncodingException { String oauthUrl = "https:////open.weixin.qq.com//connect//oauth2//authorize?appid=$appid&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect" ; ViewButton btn11 = new ViewButton ( ) ; btn11 . setName ( MENU_GO_ORDER ) ; btn11 . setUrl ( oauthUrl . replace ( "$appid" , APPID ) . replace ( "$redirect_uri" , URLEncoder . encode ( SERVER , "UTF-8" ) ) ) ; ViewButton btn21 = new ViewButton ( ) ; btn21 . setName ( MENU_MY_ORDER ) ; <START_BUG> btn21 . setUrl ( oauthUrl . replace ( "$appid" , APPID ) . replace ( "$redirect_uri" , URLEncoder . encode ( ( ( PropertyHolder . SERVER ) + "#//order//history" ) , "UTF-8" ) ) ) ; <END_BUG> ClickButton btn31 = new ClickButton ( ) ; btn31 . setName ( MENU_ABOUT_US ) ; btn31 . setKey ( MENU_ABOUT_US ) ; ClickButton btn32 = new ClickButton ( ) ; btn32 . setName ( MENU_NEW_PRODUCT ) ; btn32 . setKey ( MENU_NEW_PRODUCT ) ; ComplexButton mainBtn1 = new ComplexButton ( ) ; mainBtn1 . setName ( MENU_GO_ORDER ) ; mainBtn1 . setSub_button ( new ViewButton [ ] { btn11 } ) ; ComplexButton mainBtn2 = new ComplexButton ( ) ; mainBtn2 . setName ( MENU_MY_ORDER ) ; mainBtn2 . setSub_button ( new ViewButton [ ] { btn21 } ) ; ComplexButton mainBtn3 = new ComplexButton ( ) ; mainBtn3 . setName ( MENU_ABOUT_US ) ; mainBtn3 . setSub_button ( new ClickButton [ ] { btn31 , btn32 } ) ; JSONArray jsonArray = new JSONArray ( ) ; jsonArray . add ( btn11 ) ; jsonArray . add ( btn21 ) ; jsonArray . add ( mainBtn3 ) ; JSONObject menu = new JSONObject ( ) ; menu . put ( "button" , jsonArray ) ; System . out . println ( menu ) ; return menu ; } }

Fix:
btn21 . setUrl ( oauthUrl . replace ( "$appid" , APPID ) . replace ( "$redirect_uri" , URLEncoder . encode ( ( ( PropertyHolder . SERVER ) + "//#//order//history" ) , "UTF-8" ) ) ) ;
Buggy code:
public class JaxrsSpringProcessor implements DeploymentUnitProcessor { private static final String VERSION_KEY = "resteasy.version" ; private static final String SPRING_INT_JAR_BASE = "resteasy-spring" ; private static final String JAR_LOCATION = "resteasy-spring-jar" ; private static final ModuleIdentifier MODULE = ModuleIdentifier . create ( "org.jboss.resteasy.resteasy-spring" ) ; public static final String SPRING_LISTENER = "org.jboss.resteasy.plugins.spring.SpringContextLoaderListener" ; public static final String SPRING_SERVLET = "org.springframework.web.servlet.DispatcherServlet" ; @ Deprecated public static final String DISABLE_PROPERTY = "org.jboss.as.jaxrs.disableSpringIntegration" ; public static final String ENABLE_PROPERTY = "org.jboss.as.jaxrs.enableSpringIntegration" ; public static final String SERVICE_NAME = "resteasy-spring-integration-resource-root" ; private final ServiceTarget serviceTarget ; private VirtualFile resourceRoot ; public JaxrsSpringProcessor ( ServiceTarget serviceTarget ) { } protected synchronized VirtualFile getResteasySpringVirtualFile ( ) throws DeploymentUnitProcessingException { try { Module module = Module . getBootModuleLoader ( ) . loadModule ( JaxrsSpringProcessor . MODULE ) ; URL fileUrl = module . getClassLoader ( ) . getResource ( JaxrsSpringProcessor . JAR_LOCATION ) ; if ( fileUrl == null ) { throw JAXRS_LOGGER . noSpringIntegrationJar ( ) ; } <START_BUG> File dir = new File ( fileUrl . toURI ( ) ) ; <END_BUG> File file = null ; for ( String jar : dir . list ( ) ) { if ( jar . endsWith ( ".jar" ) ) { file = new File ( dir , jar ) ; break ; } } if ( file == null ) { throw JAXRS_LOGGER . noSpringIntegrationJar ( ) ; } VirtualFile vf = VFS . getChild ( file . toURI ( ) ) ; final Closeable mountHandle = VFS . mountZip ( file , vf , TempFileProviderService . provider ( ) ) ; Service < Closeable > mountHandleService = new Service < Closeable > ( ) { public void start ( StartContext startContext ) throws StartException { } public void stop ( StopContext stopContext ) { VFSUtils . safeClose ( mountHandle ) ; } public Closeable getValue ( ) throws IllegalArgumentException , IllegalStateException { return mountHandle ; } } ; ServiceBuilder < Closeable > builder = serviceTarget . addService ( JBOSS . append ( JaxrsSpringProcessor . SERVICE_NAME ) , mountHandleService ) ; builder . setInitialMode ( ACTIVE ) . install ( ) ; resourceRoot = vf ; return resourceRoot ; } catch ( Exception e ) { throw new DeploymentUnitProcessingException ( e ) ; } } public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } public void undeploy ( DeploymentUnit context ) { } }

Fix:
File dir = new File ( fileUrl . getFile ( ) ) ;
Buggy code:
public abstract class Continuus extends Task { private static final String CCM_EXE = "ccm" ; public static final String COMMAND_CREATE_TASK = "create_task" ; public static final String COMMAND_CHECKOUT = "co" ; public static final String COMMAND_CHECKIN = "ci" ; public static final String COMMAND_RECONFIGURE = "reconfigure" ; public static final String COMMAND_DEFAULT_TASK = "default_task" ; private String _ccmDir = "" ; private String _ccmAction = "" ; public final void setCcmDir ( String dir ) { } public void setCcmAction ( String v ) { } public String getCcmAction ( ) { } protected final String getCcmCommand ( ) { } protected int run ( Commandline cmd , ExecuteStreamHandler handler ) throws TaskException { try { Execute exe = new Execute ( handler ) ; exe . setAntRun ( getProject ( ) ) ; <START_BUG> exe . setWorkingDirectory ( getProject ( ) . getBaseDir ( ) ) ; <END_BUG> exe . setCommandline ( cmd . getCommandline ( ) ) ; return exe . execute ( ) ; } catch ( IOException e ) { throw new TaskException ( "Error" , e ) ; } } protected int run ( Commandline cmd ) throws TaskException { } }

Fix:
exe . setWorkingDirectory ( getBaseDirectory ( ) ) ;
Buggy code:
public class UnknownElement extends Task { private String elementName ; private String namespace ; private String qname ; private Object realThing ; private List children = null ; public UnknownElement ( String elementName ) { } public String getTag ( ) { } public String getNamespace ( ) { } public void setNamespace ( String namespace ) { } public String getQName ( ) { } public void setQName ( String qname ) { } public RuntimeConfigurable getWrapper ( ) { <START_BUG> return wrapper ; <END_BUG> } public void maybeConfigure ( ) throws BuildException { } public void configure ( Object realObject ) { } protected void handleOutput ( String output ) { } protected int handleInput ( byte [ ] buffer , int offset , int length ) throws IOException { } protected void handleFlush ( String output ) { } protected void handleErrorOutput ( String output ) { } protected void handleErrorFlush ( String output ) { } public void execute ( ) { } public void addChild ( UnknownElement child ) { } protected void handleChildren ( Object parent , RuntimeConfigurable parentWrapper ) throws BuildException { } protected String getComponentName ( ) { } protected Object makeObject ( UnknownElement ue , RuntimeConfigurable w ) { } protected Task makeTask ( UnknownElement ue , RuntimeConfigurable w ) { } protected BuildException getNotFoundException ( String what , String elementName ) { } public String getTaskName ( ) { } public Task getTask ( ) { } public Object getRealThing ( ) { } private boolean handleChild ( IntrospectionHelper ih , Object parent , UnknownElement child , RuntimeConfigurable childWrapper ) { } }

Fix:
return super . getWrapper ( ) ;
Buggy code:
public class AjBuildManagerTest extends TestCase { private StreamPrintWriter outputWriter = new StreamPrintWriter ( new PrintWriter ( System . out ) ) ; private MessageWriter messageWriter = new MessageWriter ( outputWriter , false ) ; public static File source1 = new File ( "testdata//src1//A.java" ) ; public static File source2 = new File ( "testdata//src1//Hello.java" ) ; public static File source3 = new File ( "testdata//src1//X.java" ) ; public static void assertCompileMessagesValid ( MessageHandler handler ) { } public AjBuildManagerTest ( String name ) { } public void testSimpleStructure ( ) throws IOException , CoreException { AjBuildManager manager = new AjBuildManager ( messageWriter ) ; BuildArgParser parser = new BuildArgParser ( ) ; String javaClassPath = System . getProperty ( "java.class.path" ) ; AjBuildConfig buildConfig = parser . genBuildConfig ( new String [ ] { "-d" , "out" , "-classpath" , javaClassPath , "testdata//src1//A.java" } , messageWriter ) ; String err = parser . getOtherMessages ( true ) ; assertTrue ( err , ( null == err ) ) ; <START_BUG> manager . setStructureModel ( AsmManager . getDefault ( ) . getModel ( ) ) ; <END_BUG> MessageHandler handler = new MessageHandler ( ) ; manager . batchBuild ( buildConfig , handler ) ; AjBuildManagerTest . assertCompileMessagesValid ( handler ) ; } private void touch ( File file , boolean isAppend ) throws IOException { } }

Fix:
manager . setStructureModel ( AsmManager . getDefault ( ) . getHierarchy ( ) ) ;
Buggy code:
public abstract class AbstractContainerEntityManagerFactoryIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests { @ NotTransactional public void testEntityManagerFactoryImplementsEntityManagerFactoryInfo ( ) { } public void testStateClean ( ) { } @ Repeat ( 5 ) public void testJdbcTx1 ( ) throws Exception { } @ Timed ( millis = 273 ) public void testJdbcTx2 ( ) throws InterruptedException { assertEquals ( "Any<seq2seq4repair_space>previous<seq2seq4repair_space>tx<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>rolled<seq2seq4repair_space>back" , 0 , countRowsInTable ( "person" ) ) ; <START_BUG> executeSqlScript ( "//sql//insertPerson.sql" , false ) ; <END_BUG> } public void testEntityManagerProxyIsProxy ( ) { } @ ExpectedException ( RuntimeException . class ) public void testBogusQuery ( ) { } @ ExpectedException ( EntityNotFoundException . class ) public void testGetReferenceWhenNoRow ( ) { } public void testLazyLoading ( ) { } public void testMultipleResults ( ) { } protected final void insertPerson ( String firstName ) { } public void testEntityManagerProxyRejectsProgrammaticTxManagement ( ) { } public void testSharedEntityManagerProxyRejectsProgrammaticTxJoining ( ) { } public void testInstantiateAndSaveWithSharedEmProxy ( ) { } protected void testInstantiateAndSave ( EntityManager em ) { } public void testQueryNoPersons ( ) { } @ NotTransactional public void testQueryNoPersonsNotTransactional ( ) { } public void testQueryNoPersonsShared ( ) { } @ NotTransactional public void testQueryNoPersonsSharedNotTransactional ( ) { } }

Fix:
executeSqlScript ( "//org//springframework//orm//jpa//insertPerson.sql" , false ) ;
Buggy code:
public abstract class AbstractIntegrator implements FirstOrderIntegrator { protected Collection < StepHandler > stepHandlers ; protected double stepStart ; protected double stepSize ; protected boolean isLastStep ; protected boolean resetOccurred ; private Collection < EventState > eventsStates ; private boolean statesInitialized ; private final String name ; private Incrementor evaluations ; private transient ExpandableStatefulODE expandable ; public AbstractIntegrator ( final String name ) { } protected AbstractIntegrator ( ) { } public String getName ( ) { } public void addStepHandler ( final StepHandler handler ) { } public Collection < StepHandler > getStepHandlers ( ) { } public void clearStepHandlers ( ) { } public void addEventHandler ( final EventHandler handler , final double maxCheckInterval , final double convergence , final int maxIterationCount ) { } public void addEventHandler ( final EventHandler handler , final double maxCheckInterval , final double convergence , final int maxIterationCount , final UnivariateSolver solver ) { } public Collection < EventHandler > getEventHandlers ( ) { <START_BUG> final List < EventHandler > list = new ArrayList < EventHandler > ( ) ; <END_BUG> for ( EventState state : eventsStates ) { list . add ( state . getEventHandler ( ) ) ; } return Collections . unmodifiableCollection ( list ) ; } public void clearEventHandlers ( ) { } public double getCurrentStepStart ( ) { } public double getCurrentSignedStepsize ( ) { } public void setMaxEvaluations ( int maxEvaluations ) { } public int getMaxEvaluations ( ) { } public int getEvaluations ( ) { } protected void initIntegration ( final double t0 , final double [ ] y0 , final double t ) { } protected void setEquations ( final ExpandableStatefulODE equations ) { } protected ExpandableStatefulODE getExpandable ( ) { } protected Incrementor getEvaluationsCounter ( ) { } public double integrate ( final FirstOrderDifferentialEquations equations , final double t0 , final double [ ] y0 , final double t , final double [ ] y ) throws DimensionMismatchException , MaxCountExceededException , NoBracketingException , NumberIsTooSmallException { } public abstract void integrate ( ExpandableStatefulODE equations , double t ) throws DimensionMismatchException , MaxCountExceededException , NoBracketingException , NumberIsTooSmallException { } public void computeDerivatives ( final double t , final double [ ] y , final double [ ] yDot ) throws DimensionMismatchException , MaxCountExceededException { } protected void setStateInitialized ( final boolean stateInitialized ) { } protected double acceptStep ( final AbstractStepInterpolator interpolator , final double [ ] y , final double [ ] yDot , final double tEnd ) throws DimensionMismatchException , MaxCountExceededException , NoBracketingException { } protected void sanityChecks ( final ExpandableStatefulODE equations , final double t ) throws DimensionMismatchException , NumberIsTooSmallException { } }

Fix:
final List < EventHandler > list = new ArrayList < EventHandler > ( eventsStates . size ( ) ) ;
Buggy code:
public class ServiceActivatorDependencyProcessor implements DeploymentUnitProcessor { private static final ModuleDependency MSC_DEP = new ModuleDependency ( Module . getBootModuleLoader ( ) , ModuleIdentifier . create ( "org.jboss.msc" ) , false , false , false ) ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final ResourceRoot deploymentRoot = phaseContext . getDeploymentUnit ( ) . getAttachment ( DEPLOYMENT_ROOT ) ; final ModuleSpecification moduleSpecification = phaseContext . getDeploymentUnit ( ) . getAttachment ( MODULE_SPECIFICATION ) ; if ( deploymentRoot == null ) return ; final ServicesAttachment servicesAttachments = phaseContext . getDeploymentUnit ( ) . getAttachment ( SERVICES ) ; if ( ( servicesAttachments != null ) && ( ! ( servicesAttachments . getServiceImplementations ( ServiceActivator . class . getName ( ) ) . isEmpty ( ) ) ) ) { <START_BUG> moduleSpecification . addDependency ( ServiceActivatorDependencyProcessor . MSC_DEP ) ; <END_BUG> } } public void undeploy ( final DeploymentUnit context ) { } }

Fix:
moduleSpecification . addSystemDependency ( ServiceActivatorDependencyProcessor . MSC_DEP ) ;
Buggy code:
public class TestStopAnalyzer extends BaseTokenStreamTestCase { private StopAnalyzer stop = new StopAnalyzer ( TEST_VERSION_CURRENT ) ; private Set < Object > inValidTokens = new HashSet < Object > ( ) ; @ Override public void setUp ( ) throws Exception { } public void testDefaults ( ) throws IOException { } public void testStopList ( ) throws IOException { CharArraySet stopWordsSet = new CharArraySet ( TEST_VERSION_CURRENT , asSet ( "good" , "test" , "analyzer" ) , false ) ; <START_BUG> StopAnalyzer newStop = new StopAnalyzer ( Version . LUCENE_40 , stopWordsSet ) ; <END_BUG> TokenStream stream = newStop . tokenStream ( "test" , "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>good<seq2seq4repair_space>test<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>english<seq2seq4repair_space>stop<seq2seq4repair_space>analyzer" ) ; try { assertNotNull ( stream ) ; CharTermAttribute termAtt = stream . getAttribute ( CharTermAttribute . class ) ; stream . reset ( ) ; while ( stream . incrementToken ( ) ) { String text = termAtt . toString ( ) ; assertFalse ( stopWordsSet . contains ( text ) ) ; } stream . end ( ) ; } finally { IOUtils . closeWhileHandlingException ( stream ) ; } } public void testStopListPositions ( ) throws IOException { } }

Fix:
StopAnalyzer newStop = new StopAnalyzer ( TEST_VERSION_CURRENT , stopWordsSet ) ;
Buggy code:
class Utils { static Intent getPlayStoreIntent ( String referrer ) { } static boolean isImojiAppInstalled ( Context context ) { } static boolean canHandleUserOauth ( Context context ) { Intent intent = new Intent ( ) ; intent . setAction ( INTENT_REQUEST_ACCESS ) ; intent . addCategory ( EXTERNAL_CATEGORY ) ; PackageManager pm = context . getPackageManager ( ) ; List < ResolveInfo > resolveInfoList = pm . queryBroadcastReceivers ( intent , 0 ) ; if ( ( resolveInfoList != null ) && ( ! ( resolveInfoList . isEmpty ( ) ) ) ) { for ( ResolveInfo info : resolveInfoList ) { <START_BUG> if ( info . resolvePackageName . contains ( IMOJI_APP_PACKAGE ) ) { <END_BUG> return true ; } } } return false ; } }

Fix:
if ( ( ( info . activityInfo ) != null ) && ( info . activityInfo . packageName . contains ( IMOJI_APP_PACKAGE ) ) ) {
Buggy code:
public class ParseBenchmark { public ParseBenchmark ( ) { } public static void main ( String [ ] args ) { if ( ( args . length ) == 3 ) { int parser = 0 ; String file = null ; int loops = 1000 ; if ( ( args [ 0 ] ) != null ) { if ( ! ( args [ 0 ] . equals ( "jaxb" ) ) ) { parser = 1 ; } } if ( ( args [ 1 ] ) != null ) { file = args [ 1 ] ; } if ( ( args [ 2 ] ) != null ) { loops = Integer . parseInt ( args [ 2 ] ) ; } File infile = new File ( file ) ; FileInputStream fis = null ; InputStreamReader isr = null ; StringBuffer buf = new StringBuffer ( ) ; try { fis = new FileInputStream ( infile ) ; isr = new InputStreamReader ( fis ) ; BufferedReader br = new BufferedReader ( isr ) ; String line = null ; while ( ( line = br . readLine ( ) ) != null ) { buf . append ( line ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } long start = 0 ; long end = 0 ; String contents = new String ( buf . toString ( ) ) ; contents . trim ( ) ; System . out . println ( ( ( "start<seq2seq4repair_space>test:<seq2seq4repair_space>" + loops ) + "<seq2seq4repair_space>iterations" ) ) ; System . out . println ( "content:" ) ; System . out . println ( contents ) ; if ( parser == 0 ) { } else { org . apache . jmeter . monitor . model . ObjectFactory of = org . apache . jmeter . monitor . model . ObjectFactory . getInstance ( ) ; start = System . currentTimeMillis ( ) ; for ( int idx = 0 ; idx < loops ; idx ++ ) { <START_BUG> org . apache . jmeter . monitor . model . Status st = of . parseBytes ( contents . getBytes ( ) ) ; <END_BUG> } end = System . currentTimeMillis ( ) ; System . out . println ( ( "elapsed<seq2seq4repair_space>Time:<seq2seq4repair_space>" + ( end - start ) ) ) ; } } else { System . out . println ( "missing<seq2seq4repair_space>paramters:" ) ; System . out . println ( "parser<seq2seq4repair_space>file<seq2seq4repair_space>iterations" ) ; System . out . println ( "example:<seq2seq4repair_space>jaxb<seq2seq4repair_space>status.xml<seq2seq4repair_space>1000" ) ; } } }

Fix:
of . parseBytes ( contents . getBytes ( ) ) ;
Buggy code:
public class ModItems { public static final Item mobEssence = new ItemMobEssence ( ) ; public static final Item mobAgglomeration = new ItemMobAgglomeration ( ) ; public static final Item mobSpirit = new ItemMobSpirit ( ) ; @ SuppressWarnings ( "unchecked" ) public static void init ( ) { GameRegistry . registerItem ( ModItems . mobEssence , "mobEssence" ) ; GameRegistry . registerItem ( ModItems . mobAgglomeration , "mobAgglomeration" ) ; GameRegistry . registerItem ( ModItems . mobSpirit , "mobSpirit" ) ; for ( EntityList . EntityEggInfo entityEggInfo : ( ( Collection < EntityList . EntityEggInfo > ) ( entityEggs . values ( ) ) ) ) { ModelLoader . setCustomModelResourceLocation ( ModItems . mobEssence , entityEggInfo . spawnedID , new ModelResourceLocation ( "spawnercraft:mobEssence" , "inventory" ) ) ; ModelLoader . setCustomModelResourceLocation ( ModItems . mobAgglomeration , entityEggInfo . spawnedID , new ModelResourceLocation ( "spawnercraft:mobAgglomeration" , "inventory" ) ) ; <START_BUG> ModelLoader . setCustomModelResourceLocation ( ModItems . mobSpirit , entityEggInfo . spawnedID , new ModelResourceLocation ( "minecraft:spawn_egg" , "inventory" ) ) ; <END_BUG> } LogHelper . info ( ( ( Reference . MOD_NAME ) + "<seq2seq4repair_space>Items<seq2seq4repair_space>initialized" ) ) ; } }

Fix:
ModelLoader . setCustomModelResourceLocation ( ModItems . mobSpirit , entityEggInfo . spawnedID , new ModelResourceLocation ( "spawnercraft:mobSpirit" , "inventory" ) ) ;
Buggy code:
public class PatientFlatReader implements AutoCloseable { protected LineNumberReader _reader ; protected RuntimeNaaccrDictionary _dictionary ; protected RuntimeNaaccrDictionaryItem _patientIdNumberItem ; protected String _previousLine ; public PatientFlatReader ( Reader reader , RuntimeNaaccrDictionary dictionary ) throws IOException { } public Patient readPatient ( ) throws IOException { } @ Override public void close ( ) throws IOException { } protected String getPatientIdNumber ( String line ) { } protected Patient createPatientFromLines ( int lineNumber , List < String > lines ) throws IOException { } protected List < Item > createItemsFromLine ( String line , RuntimeNaaccrDictionaryItem itemDef ) { List < Item > items = new ArrayList < > ( ) ; int start = ( itemDef . getStartColumn ( ) ) - 1 ; int end = start + ( itemDef . getLength ( ) ) ; if ( end <= ( line . length ( ) ) ) { String value = line . substring ( start , end ) ; <START_BUG> String trimmedValue = value . trim ( ) ; <END_BUG> if ( ( itemDef . getSubItems ( ) . isEmpty ( ) ) || ( trimmedValue . isEmpty ( ) ) ) value = trimmedValue ; if ( ! ( value . isEmpty ( ) ) ) { Item item = new Item ( ) ; item . setId ( itemDef . getNaaccrId ( ) ) ; item . setNum ( itemDef . getNaaccrNum ( ) ) ; item . setValue ( value ) ; items . add ( item ) ; if ( ! ( itemDef . getSubItems ( ) . isEmpty ( ) ) ) { for ( RuntimeNaaccrDictionaryItem subItemDef : itemDef . getSubItems ( ) ) { start = ( subItemDef . getStartColumn ( ) ) - 1 ; end = start + ( subItemDef . getLength ( ) ) ; value = line . substring ( start , end ) . trim ( ) ; if ( ! ( value . isEmpty ( ) ) ) { Item subItem = new Item ( ) ; subItem . setId ( subItemDef . getNaaccrId ( ) ) ; subItem . setNum ( subItemDef . getNaaccrNum ( ) ) ; subItem . setValue ( value ) ; items . add ( subItem ) ; } } } } } return items ; } public static void main ( String [ ] args ) throws IOException { } }

Fix:
String trimmedValue = ( NAACCR_DATA_TYPE_STRING_WITH_LEADING_SPACES . equals ( itemDef . getDataType ( ) ) ) ? value : value . trim ( ) ;
Buggy code:
public class GameView extends JPanel { private static final int PREF_WIDTH = 800 ; private static final int PREF_HEIGHT = 600 ; private static final int BUTTON_PANEL_WIDTH = 100 ; private static GameView instance ; private static final JFrame frame = new JFrame ( "Game<seq2seq4repair_space>-<seq2seq4repair_space>Save<seq2seq4repair_space>My<seq2seq4repair_space>Cheese" ) ; private static final JButton jbStartPause = new JButton ( "Pause" ) ; private static final JButton jbRestart = new JButton ( "Restart" ) ; private static final JButton jbNext = new JButton ( "Next" ) ; private static final JButton jbBack = new JButton ( "Back" ) ; private static JPanel jpCanvas ; private static final JPanel jpButtons = new JPanel ( ) ; private static final Font BUTTON_FONT = new Font ( "Tahoma" , 1 , 12 ) ; private static final Font LEVEL_SUCCESS_FONT = new Font ( "Tahoma" , 1 , 24 ) ; private static final Font LEVEL_FAIL_FONT = new Font ( "Tahoma" , 1 , 24 ) ; private static final int SUCCESS_FAIL_X = 10 ; private static final int SUCCESS_FAIL_Y = 10 ; private static final int SUCCESS_FAIL_WIDTH = 400 ; private static final int SUCCESS_FAIL_HEIGHT = 50 ; private static final Color SUCCESS_FG_COLOR = Color . BLUE ; private static final Color SUCCESS_BG_COLOR = Color . LIGHT_GRAY ; private static final Color FAIL_FG_COLOR = Color . RED ; private static final Color FAIL_BG_COLOR = Color . YELLOW ; private static final String SUCCESS_TEXT = "Level<seq2seq4repair_space>%d<seq2seq4repair_space>completed<seq2seq4repair_space>successfully!" ; private static final String FAIL_TEXT = "Game<seq2seq4repair_space>over:<seq2seq4repair_space>Mouse<seq2seq4repair_space>ate<seq2seq4repair_space>the<seq2seq4repair_space>cheese!" ; private static final JLabel jlSuccessFail = new JLabel ( ) ; private static boolean isPause = true ; @ Override public final Dimension getPreferredSize ( ) { } public static void createAndShowGUI ( ) { } private GameView ( ) { } public static void makeVisible ( boolean isVisible ) { } public static void initLevel ( ) { GameController . start ( ) ; <START_BUG> CanvasPanel . resetMap ( ) ; <END_BUG> GameView . jlSuccessFail . setOpaque ( false ) ; GameView . jlSuccessFail . setText ( "" ) ; GameView . jpCanvas . repaint ( ) ; GameView . jbNext . setEnabled ( false ) ; } public static void setLevelSuccess ( ) { } public static void setLevelFail ( ) { } }

Fix:
CanvasPanel . reset ( ) ;
Buggy code:
public final class XMLUtils { private XMLUtils ( ) { } public static void addOrSetAttribute ( final AttributesImpl atts , final String uri , final String localName , final String qName , final String type , final String value ) { } public static void addOrSetAttribute ( final AttributesImpl atts , final String localName , final String value ) { } public static void addOrSetAttribute ( final AttributesImpl atts , final Node att ) { if ( ( att . getNodeType ( ) ) != ( Node . ATTRIBUTE_NODE ) ) { throw new IllegalArgumentException ( ) ; } final Attr a = ( ( Attr ) ( att ) ) ; <START_BUG> XMLUtils . addOrSetAttribute ( atts , ( ( a . getNamespaceURI ( ) ) != null ? a . getNamespaceURI ( ) : XMLConstants . NULL_NS_URI ) , ( ( a . getLocalName ( ) ) != null ? a . getLocalName ( ) : "" ) , ( ( a . getName ( ) ) != null ? a . getName ( ) : "" ) , ( a . isId ( ) ? "ID" : "CDATA" ) , a . getValue ( ) ) ; <END_BUG> } public static void removeAttribute ( final AttributesImpl atts , final String qName ) { } public static String getStringValue ( final Element element ) { } }

Fix:
XMLUtils . addOrSetAttribute ( atts , ( ( a . getNamespaceURI ( ) ) != null ? a . getNamespaceURI ( ) : XMLConstants . NULL_NS_URI ) , ( ( a . getLocalName ( ) ) != null ? a . getLocalName ( ) : ( a . getName ( ) ) != null ? a . getName ( ) : "" ) , ( ( a . getName ( ) ) != null ? a . getName ( ) : "" ) , ( a . isId ( ) ? "ID" : "CDATA" ) , a . getValue ( ) ) ;
Buggy code:
public class HandleFactory { private String lastPkgFragmentRootPath ; private PackageFragmentRoot lastPkgFragmentRoot ; private HashtableOfArrayToObject packageHandles ; private JavaModel javaModel ; public HandleFactory ( ) { } public Openable createOpenable ( String resourcePath , IJavaSearchScope scope ) { } public IJavaElement createElement ( ClassScope scope , ICompilationUnit unit , HashSet existingElements , HashMap knownScopes ) { } private IJavaElement createElement ( Scope scope , int elementPosition , ICompilationUnit unit , HashSet existingElements , HashMap knownScopes ) { } private PackageFragmentRoot getJarPkgFragmentRoot ( String jarPathString , IJavaSearchScope scope ) { IPath jarPath = new Path ( jarPathString ) ; Object target = JavaModel . getTarget ( jarPath , false ) ; if ( target instanceof IFile ) { IFile jarFile = ( ( IFile ) ( target ) ) ; JavaProject javaProject = ( ( JavaProject ) ( this . javaModel . getJavaProject ( jarFile ) ) ) ; try { IClasspathEntry entry = javaProject . getClasspathEntryFor ( jarPath ) ; if ( entry != null ) { return ( ( PackageFragmentRoot ) ( javaProject . getPackageFragmentRoot ( jarFile ) ) ) ; } } catch ( JavaModelException e ) { } } IJavaProject [ ] projects ; if ( scope != null ) { IPath [ ] enclosingProjectsAndJars = scope . enclosingProjectsAndJars ( ) ; int length = enclosingProjectsAndJars . length ; projects = new IJavaProject [ length ] ; int index = 0 ; for ( int i = 0 ; i < length ; i ++ ) { IPath path = enclosingProjectsAndJars [ i ] ; <START_BUG> if ( ! ( org . eclipse . jdt . internal . compiler . util . Util . isArchiveFileName ( path . lastSegment ( ) ) ) ) { <END_BUG> projects [ ( index ++ ) ] = this . javaModel . getJavaProject ( path . segment ( 0 ) ) ; } } if ( index < length ) { System . arraycopy ( projects , 0 , ( projects = new IJavaProject [ index ] ) , 0 , index ) ; } PackageFragmentRoot root = getJarPkgFragmentRoot ( jarPath , target , projects ) ; if ( root != null ) { return root ; } } try { projects = this . javaModel . getJavaProjects ( ) ; } catch ( JavaModelException e ) { return null ; } return getJarPkgFragmentRoot ( jarPath , target , projects ) ; } private PackageFragmentRoot getJarPkgFragmentRoot ( IPath jarPath , Object target , IJavaProject [ ] projects ) { } private PackageFragmentRoot getPkgFragmentRoot ( String pathString ) { } }

Fix:
if ( ( path . segmentCount ( ) ) == 1 ) {
Buggy code:
public class ContactItemMap { private Map map ; public ContactItemMap ( ) { } <START_BUG> public void add ( Object uid , ContactItem contactItem ) { <END_BUG> map . put ( uid , contactItem ) ; } public ContactItem get ( Object uid ) { } public void remove ( Object uid ) { } public boolean exists ( Object uid ) { } public int count ( ) { } public Iterator iterator ( ) { } public void clear ( ) { } }

Fix:
public void add ( Object uid , IContactItem contactItem ) {
Buggy code:
public class Download extends SettingsPreferenceFragment implements OnPreferenceChangeListener { Preference mContest ; Preference mSupport ; Preference mBanksGapps ; Preference mBlissOfficial ; Preference mBlissNightly ; Preference mPAGapps ; Preference mKernels ; Preference mAddons ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onResume ( ) { } @ Override public boolean onPreferenceTreeClick ( PreferenceScreen preferenceScreen , Preference preference ) { if ( preference == ( mContest ) ) { <START_BUG> Uri uri = Uri . parse ( "https:////blissroms.com//index.php?page=giveaways" ) ; <END_BUG> Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mSupport ) ) { Uri uri = Uri . parse ( "https:////www.paypal.com//cgi-bin//webscr?cmd=_s-xclick&hosted_button_id=S8QQ4AG7Y9RL6" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mBanksGapps ) ) { Uri uri = Uri . parse ( "http:////fitsnugly.euroskank.com//?rom=banks&device=gapps" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mPAGapps ) ) { Uri uri = Uri . parse ( "https:////s.basketbuild.com//devs//TKruzze//Android%205.0.1%20GApps" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mBlissOfficial ) ) { Uri uri = Uri . parse ( "http:////downloads.blissroms.com//BlissPop//Official//" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mBlissNightly ) ) { Uri uri = Uri . parse ( "http:////downloads.blissroms.com//BlissPop//Nightlies//" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mKernels ) ) { Uri uri = Uri . parse ( "http:////downloads.blissroms.com//Kernels//" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } else if ( preference == ( mAddons ) ) { Uri uri = Uri . parse ( "http:////downloads.blissroms.com//Add-ons//" ) ; Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; startActivity ( intent ) ; return true ; } return super . onPreferenceTreeClick ( preferenceScreen , preference ) ; } public boolean onPreferenceChange ( Preference preference , Object value ) { } public static class DeviceAdminLockscreenReceiver extends DeviceAdminReceiver { } }

Fix:
Uri uri = Uri . parse ( "blissroms.com//index.php?page=giveaways" ) ;
Buggy code:
public interface UserBeansDao { public UserBeans query ( UserBeans userBeans ) { } public int insert ( UserBeans userBeans ) { } public void update ( UserBeans userBeans ) { } public void delete ( UserBeans userBeans ) { } <START_BUG> public void updateAdd ( UserBeans userBeans ) ; <END_BUG> public void updateReduction ( UserBeans userBeans ) { } }

Fix:
public int updateAdd ( UserBeans userBeans ) ;
Buggy code:
public class StringResourceModel extends AbstractReadOnlyDetachableModel { private static final long serialVersionUID = 1L ; private transient Locale locale ; private transient Localizer localizer ; private IModel model ; private Object [ ] parameters ; private Component component ; private String resourceKey ; public StringResourceModel ( final String resourceKey , final Component component , final IModel model ) { } public StringResourceModel ( final String resourceKey , final Component component , final IModel model , final Object [ ] parameters ) { } public Localizer getLocalizer ( ) { } public final IModel getNestedModel ( ) { } public final String getString ( ) { } public void setLocalizer ( final Localizer localizer ) { } public String toString ( ) { } protected final Object [ ] getParameters ( ) { } protected final String getResourceKey ( ) { } protected final void onAttach ( ) { final Session session = Session . get ( ) ; if ( session != null ) { <START_BUG> this . localizer = session . getApplication ( ) . getMarkupSettings ( ) . getLocalizer ( ) ; <END_BUG> this . locale = session . getLocale ( ) ; } else { throw new WicketRuntimeException ( "Cannot<seq2seq4repair_space>attach<seq2seq4repair_space>a<seq2seq4repair_space>string<seq2seq4repair_space>resource<seq2seq4repair_space>model<seq2seq4repair_space>without<seq2seq4repair_space>a<seq2seq4repair_space>Session<seq2seq4repair_space>context<seq2seq4repair_space>because<seq2seq4repair_space>that<seq2seq4repair_space>is<seq2seq4repair_space>required<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>Localizer" ) ; } } protected final void onDetach ( ) { } protected final Object onGetObject ( final Component component ) { } }

Fix:
this . localizer = session . getApplication ( ) . getResourceSettings ( ) . getLocalizer ( ) ;