diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class PatternRuleQueryBuilderTest extends LuceneTestCase {
} catch ( UnsupportedPatternRuleException e ) {
query = queryBuilder . buildPossiblyRelaxedQuery ( patternRule ) ;
}
- System . out . println ( STRING0 + query ) ;
+ SINGLE
final int matches = searcher . search ( query , null , NUMBER0 )... | comment out printing to STDOUT |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CxfHttpJmsClientServerTest extends CamelSpringTestSupport {
@ test
+ @ ignore ( STRING0
+ + STRING1 )
public void t... | Added the ignore annotation for the CxfHttpJmsClientServerTest |
<nb> public class StructuralReplaceTest extends IdeaTestCase {
String s2 = STRING0 ;
String s2_2 = STRING1 ;
String s3 = STRING2 ;
- String expectedResult = STRING3 ;
+ String expectedResult = STRING4 ;
String actualResult = replacer . testReplace ( s1 , s2 , s3 , options ) ;
assertEquals (
<nb> publi... | Changing expected results according to new indent adjuster |
<nb> public class SitePickerActivity extends ActionBarActivity
new Handler ( ) . postDelayed ( new Runnable ( ) {
@ override
public void run ( ) {
- ReaderAnim . showFab ( mFabView , true ) ;
+ if ( ! isFinishing ( ) ) {
+ ReaderAnim . showFab ( mFabView , true ) ;
+ }
}
} , NUMBER0 ) ;
} | Added isFinishing check |
<nb> public class AutoPopupController implements Disposable {
}
}
- private void addRequest ( Runnable request , final int delay ) {
- myAlarm . addRequest ( request , delay ) ;
+ private void addRequest ( final Runnable request , final int delay ) {
+ Runnable runnable = new Runnable ( ) {
+ public voi... | user activity from the current action shouldn t cancel parameter info autopopup request |
<nb> class TagFileProcessor {
JspCompilationContext ctxt = compiler . getCompilationContext ( ) ;
JspRuntimeContext rctxt = ctxt . getRuntimeContext ( ) ;
- JspServletWrapper wrapper = rctxt . getWrapper ( tagFileJarPath + tagFilePath ) ;
+ String wrapperUri = tagFileJarPath + tagFilePath ;
+ JspServletWrap... | Do not evaluate the same string twice |
<nb> public class DiskThresholdDeciderTests extends ElasticsearchAllocationTestCase {
nodeWithPrimary = STRING0 ;
nodeWithoutPrimary = STRING1 ;
}
+ logger . info ( STRING2 , nodeWithPrimary ) ;
+ logger . info ( STRING3 , nodeWithoutPrimary ) ;
SINGLE
usages . put ( nodeWithoutPrimary , new DiskUsage (... | TEST Additional logging info for node with primary |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface Executor {
public Job newJob ( PlanNode node ) ;
- public List execute ( Job job ) ;
+ public List < ListenableFuture < Object [ ] [ ] > > execute ( Job job ) ;
} | make result of executor specific |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public final class LocalTachyonCluster extends AbstractLocalTachyonCluster {
- public static void main ( ... | Remove main function of tachyon master LocalTachyonCluster |
<nb> public enum ClusterState
if ( ! discoveredInstances . isEmpty ( ) )
{
Collections . sort ( discoveredInstances ) ;
- System . out . println ( context . getMe ( ) + STRING0 + discoveredInstances ) ;
COMMENT
COMMENT
COMMENT
<nb> public enum ClusterState
SINGLE
SINGLE
URI joiningInstanceUri = ne... | Revert Temporary printlns to look into state trying to debug this test |
<nb> public class ExpressionClause < T > extends ExpressionDefinition {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public T xpath ( String text , Class < ? > resultType ) {
<nb> public class GenericFileProducer < T > extends DefaultProducer {
SINGLE
SINGLE
if ( log . isTraceEnab... | Fixed log and spelling |
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
}
private void signInAndFetchBlogListWPOrg ( ) {
- String url = EditTextUtils . getText ( mUrlEditText ) . trim ( ) ;
+ String url = EditTextUtils . getText ( mUrlEditText ) . trim ( ) . toLowerCase ( ) ; SINGLE
FetchBlogList... | Always use lowercase URL |
<nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleBubbleData <
COMMENT
COMMENT
COMMENT
- public void zoomCenter ( float scaleX , float scaleY ) {
+ public void zoomToCenter ( float scaleX , float scaleY ) {
MPPointF center = getCenterOffsets ( ) ; | Renamed zoomCenter to zoomToCenter |
<nb> public class Camera implements IUpdateHandler {
this . mChaseShape = pChaseShape ;
}
+ public float getRotation ( ) {
+ return this . mRotation ;
+ }
+
public void setRotation ( final float pRotation ) {
this . mRotation = pRotation ;
}
+ public float getCameraSceneRotation ( ) {
+ return... | Added getters to rotation of Camera |
<nb> public class ByteBuddyAgent {
. invoke ( STATIC_MEMBER , runtimeName . substring ( NUMBER0 , runtimeName . indexOf ( STRING0 ) ) ) ;
try {
File agentFile = File . createTempFile ( AGENT_FILE_NAME , JAR_FILE_EXTENSION ) ;
- saveAgentJar ( agentFile ) ;
try {
+ saveAgentJar ( agentFile ) ;
virtualMachi... | Fixed scope of try finally block where file might not be deleted |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Node {
SINGLE
PubSubPersistenceManager . saveAffiliation ( this , affiliate , created ) ;
}
+
+ SINGLE
+ C... | Added cluster task to keep node affiliations in sync |
<nb> final class WebViewInputDispatcher {
mIsTapCandidate = true ;
mInitialDownX = event . getX ( ) ;
mInitialDownY = event . getY ( ) ;
- scheduleShowTapHighlightLocked ( ) ;
enqueueHitTestLocked ( event ) ;
+ if ( mIsDoubleTapCandidate ) {
+ hideTapCandidateLocked ( ) ;
+ } else {
+ scheduleShowTapH... | Don t show the touch highlight for double taps |
<nb> public class MavenImportingSettings implements Cloneable {
public final String title ;
- private GeneratedSourcesFolder ( String title ) {
+ GeneratedSourcesFolder ( String title ) {
this . title = title ;
}
} | remove unnecessary private statement |
<nb> public class DefaultLineWrapPositionStrategy extends GenericLineWrapPositionStra
public DefaultLineWrapPositionStrategy ( ) {
SINGLE
- addRule ( new Rule ( STRING0 , WrapCondition . AFTER , Rule . DEFAULT_WEIGHT * FLOAT0 ) ) ;
+ addRule ( new Rule ( STRING0 , WrapCondition . AFTER ) ) ;
SINGLE
addR... | Do not prefer wrap on comma in DefaultLineWrapPositionStrategy |
<nb> public class GrowlNotificationServiceImpl
String inDescription )
throws Exception
{
+ SINGLE
+ inDescription = inDescription . replaceAll ( STRING0 , STRING1 ) ;
+
notifyMethod . invoke (
notifier , new Object [ ] { inNotificationName , inImagePath ,
inTitle , inDescription } ) ; | Remove html code before showing the growl notification |
<nb> public class IrcStack
if ( nick == null )
throw new IllegalArgumentException (
STRING0 ) ;
- if ( nick . startsWith ( STRING1 ) )
+ if ( nick . startsWith ( STRING1 ) || nick . startsWith ( STRING2 ) )
throw new IllegalArgumentException (
- STRING3
+ STRING4
+ STRING5 ) ;
return nick ;
} | Extended nick check with check for channel prefix |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SimpleBloomCache extends AbstractIndexComponent implements BloomCac
fieldCache . put ( field , filterEntry ) ;
}
}
+ } ... | ignore closed exception when async loading bloom filters |
<nb> public class JavaStubGenerator
public void addCovariantMethods ( ClassNode cn ) { }
protected void addTimeStamp ( ClassNode node ) { }
protected void addInitialization ( ClassNode node ) { }
+ public void visitProperty ( PropertyNode node ) { }
} ;
verifier . visitClass ( classNode ) ; | Joint Compilation generates property body too early |
<nb> public class WebReaderOverlayView extends OverlayView {
public void onPageFinished ( WebView view , String url ) {
+ mLoadingState = LoadingState . Loaded ;
+ mContentView . setVisibility ( View . VISIBLE ) ;
+ mLoadingView . setVisibility ( View . INVISIBLE ) ;
+
+ updateViewLayout ( ) ;
+
+ W... | Move loading into the correct place |
<nb> public class WXSDKEngine {
COMMENT
COMMENT
public static boolean registerComponent ( Class < ? extends WXComponent > clazz , boolean appendTree , String . . . names ) throws WXException {
+ if ( clazz == null ) {
+ return false ;
+ }
SimpleComponentHolder holder = new SimpleComponentHolder ( clazz ) ... | android add null protection |
<nb> public class Differencer implements Runnable
}
SINGLE
- logger . info ( format , STRING0 , differences . size ( ) ) ;
+ logger . info ( String . format ( format , STRING1 + differences . size ( ) + STRING2 ) ) ;
performStreamingRepair ( ) ;
} | Fix incorrect logging output |
<nb> public class DefaultWorkspaceComponent extends WorkspaceComponent implements Com
return ;
}
}
+ createWorkspacePresenter . show ( workspaces , callback ) ;
}
- createWorkspacePresenter . show ( workspaces , callback ) ;
}
}
} ) . catchError ( new Operation < PromiseError > ( ) { | Fix appearing create ws pop up after start or open last used workspace |
<nb> public class PreviewTextFragment extends FileFragment {
private class TextLineAdapter extends BaseAdapter {
private static final int LIST_ITEM_LAYOUT = R . layout . text_file_preview_list_item ;
- private final List < String > items = new ArrayList < > ( ) ;
+ private final List < String > items = new Ar... | Fixed a mistake |
<nb> public class CVSRepositoryTest {
public void getDirectoryHistoryParser ( ) {
Class < ? extends HistoryParser > expResult = CVSHistoryParser . class ;
SINGLE
- result = null ;
+ Class result = null ;
assertEquals ( expResult , result ) ;
} | Really I should avoid python fixing the junit test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
@ implements ( ValueAnimator . class )
public class ShadowValueAnimator extends ShadowAnimator {
private TimeInterpolator interpolator ;
+ @ realobject
+ private ValueAnimator realObject ;
@ imp... | Patched a StackOverflowError when a ValueAnimator is animating |
<nb> final class PolymerPass extends AbstractPostOrderCallback implements HotSwapComp
return value != null && value . isExprResult ( )
&& value . getFirstChild ( ) . getFirstChild ( ) != null
&& value . getFirstChild ( ) . getFirstChild ( ) . isGetProp ( )
+ && value . getFirstChild ( ) . getFirstChild ( ) . is... | Fix crash in PolymerPass that can occur when people pass non externs code as externs |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MediaConductorTest
mediaConductor = new MediaConductor ( ctx , receiver , sender ) ;
}
+ @ after
... | fix missing close in conductor test |
<nb> public class ResourceHttpRequestHandler extends WebContentGenerator
out . write ( buffer , NUMBER0 , ( int ) bytesToCopy ) ;
bytesToCopy = NUMBER0 ;
}
- if ( bytesRead < buffer . length ) {
+ if ( bytesRead == - NUMBER1 ) {
break ;
}
} | Fix inputstream reading for HTTP range requests |
<nb> public class ServerClusterRemoteSQLGraphTest extends AbstractServerClusterSQLGra
@ override
public String getDatabaseName ( ) {
- return STRING0 ;
+ return STRING1 ;
}
protected String getDatabaseURL ( final ServerRun server ) { | Fixed test case |
<nb> public class CallPeerJabberImpl
JingleIQ errResp = JinglePacketFactory . createSessionTerminate (
sessionInitIQ . getTo ( ) , sessionInitIQ . getFrom ( ) ,
sessionInitIQ . getSID ( ) , Reason . INCOMPATIBLE_PARAMETERS ,
- exc . getClass ( ) . getSimpleName ( ) + STRING0 + exc . getMessage ( ) ) ;
+ STRIN... | Debugging a call establishment issue |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
COMMENT
public class LaunchParameters {
- private List < String > arguments = Collections . emptyList ( ) ;
+ private List < String > argu... | Made the arguments list in LaunchParameters modifiable |
<nb> public class PApplet extends Applet
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void textMode ( int mode ) {
if ( recorder != null ) recorder . textMode ( mode ) ; | Updated documentation of textMode method in PApplet |
<nb> public class PlayApplicationPlugin {
}
@ validate
- void failOnMultiplePlayComponents ( ComponentSpecContainer container ) {
- if ( container . withType ( PlayApplicationSpec . class ) . size ( ) >= NUMBER0 ) {
+ void failOnMultiplePlayComponents ( CollectionBuilder < PlayApplicationSpec > container ) ... | Validate the number play components using CollectionBuilder rather than ComponentSpecContainer |
<nb> public class CometdComponent extends DefaultComponent {
try {
sslContextFactory . setSslContext ( sslContextParameters . createSSLContext ( ) ) ;
} catch ( Exception e ) {
- throw new RuntimeCamelException ( STRING0 , e ) ;
+ throw new RuntimeCamelException ( STRING0 , e ) ;
}
sslSocketConnector = ne... | Fix up CS |
<nb> public class ClientInterceptorsTest {
@ override
protected void checkedStart ( ClientCall . Listener < RespT > responseListener ,
Metadata . Headers headers ) throws Exception {
- if ( this instanceof Object ) {
- throw error ;
- }
- delegate ( ) . start ( responseListener , headers ) ; SINGLE
+ th... | Remove unnecessary instanceof check |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class CondensedTextView extends TextView {
<nb> public class CondensedTextView extends TextView {
public CondensedTextView ( Context context , AttributeSet attrs , int defSt... | Fix Android Studio render issue with CondensedTextView |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractRingBufferOperation extends Operation
}
@ override
+ public void logErro... | Log StaleSequenceException in debug level |
<nb> public class SceneComposerToolController extends SceneToolController {
@ override
public void setLocalTranslation ( Vector3f location ) {
super . setLocalTranslation ( location ) ;
- audio . setLocalTranslation ( location ) ;
}
@ override
public void setLocalTranslation ( float x , float y , float ... | fixed an issue causing audio nodes to fly around when attached to a sub node with non zero translations |
<nb> public final class ExecutionStateTransition {
unexpectedStateChange = false ;
}
+ if ( oldState == ExecutionState . CREATED && newState == ExecutionState . ASSIGNED ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ unexpectedStateChange = false ;
+ }
+
if ( oldState == ExecutionState . SCHEDULED && newStat... | Fixed spurious error message for state transition from CREATED to ASSIGNED |
<nb> public class IPrintManagerParametersTest extends BasePrintTest {
public void testGetPrintServices ( ) throws Exception {
List < PrintServiceInfo > printServices = mIPrintManager . getPrintServices (
PrintManager . ALL_SERVICES , mUserId ) ;
- assertTrue ( printServices . size ( ) >= NUMBER0 ) ;
+ assertT... | We only have one mock service |
<nb> public class ChunkPlotWidget extends Composite
outer . getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING1 ) ;
outer . getElement ( ) . getStyle ( ) . setProperty ( STRING2 , STRING1 ) ;
outer . getElement ( ) . getStyle ( ) . setProperty ( STRING3 , STRING1 ) ;
+
+ outer . getElement ( ) . g... | enable plot to grow with plot warnings in satellite chunks |
<nb> public final class StorageTierView {
COMMENT
private final StorageTier mTier ;
COMMENT
- private final List < StorageDirView > mDirViews = new ArrayList < StorageDirView > ( ) ;
+ private final List < StorageDirView > mDirViews = new ArrayList < > ( ) ;
COMMENT
private final BlockMetadataManagerView ... | SMALLFIX Removed explicit type argument in StorageTierView |
<nb> public final class HttpServerExchange extends AbstractAttachable {
COMMENT
COMMENT
public void endExchange ( ) {
+ final int state = this . state ;
+ if ( allAreSet ( state , FLAG_REQUEST_TERMINATED | FLAG_RESPONSE_TERMINATED ) ) {
+ return ;
+ }
while ( ! defaultResponseListeners . isEmpty ( ) ) {... | Make endEchange a noop if request is done |
<nb> import NAMESPACE ;
import NAMESPACE ;
@ suppresswarnings ( STRING0 )
- public class ComplexIntegrationTest extends StreamingMultipleProgramsTestBase {
+ public class ComplexIntegrationITCase extends StreamingMultipleProgramsTestBase {
SINGLE
SINGLE | hotfix Properly declare ComplexIntegrationTest as an Integration Test Case |
<nb> public class ReferenceExpressionCompletionContributor extends ExpressionSmartCom
try {
PsiType itemType = JavaCompletionUtil . getLookupElementType ( baseItem ) ;
+ if ( itemType instanceof PsiWildcardType ) {
+ itemType = ( ( PsiWildcardType ) itemType ) . getExtendsBound ( ) ;
+ }
if ( itemType == ... | don t create variables with wildcard type |
<nb> public final class LineageMaster extends MasterBase {
COMMENT
public synchronized LineageCommand lineageWorkerHeartbeat ( long workerId ,
List < Long > persistedFiles ) throws FileDoesNotExistException , InvalidPathException {
- SINGLE
- persistFiles ( workerId , persistedFiles ) ;
+ if ( ! persistedFi... | Not call persistFiles when the files are empty |
<nb> public class JobGraph implements KryoSerializable {
public void read ( final Kryo kryo , final Input input ) {
SINGLE
- this . jobID = kryo . readObjectOrNull ( input , JobID . class ) ;
+ this . jobID = kryo . readObject ( input , JobID . class ) ;
SINGLE
this . jobName = input . readString ( ) ; | Fixed serialization bug in JobGraph java |
<nb> public class RCompletionManager implements CompletionManager
String currentToken = StringUtil . getToken (
currentLine , cursorColumn , STRING0 , false , false ) ;
- SINGLE
+ SINGLE
String [ ] keywords = {
STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 ,
- STRING7 , STRING8 , STRING9 , S... | avoid auto popup on some more symbols |
<nb> public class ApkBundleLauncher extends SoBundleLauncher {
File patch = bundle . getPatchFile ( ) ;
if ( patch . exists ( ) ) {
- PackageInfo patchInfo = pm . getPackageArchiveInfo ( plugin . getPath ( ) ,
+ PackageInfo patchInfo = pm . getPackageArchiveInfo ( patch . getPath ( ) ,
PackageManager . GET_... | Fix patch out of date check |
<nb> public final class AnalyzerFacadeProvider {
@ notnull
public static AnalyzerFacade getAnalyzerFacadeForFile ( @ notnull JetFile file ) {
- VirtualFile virtualFile = file . getVirtualFile ( ) ;
+ VirtualFile virtualFile = file . getOriginalFile ( ) . getVirtualFile ( ) ;
if ( virtualFile == null ) {
l... | Make module check work for non physical files produced with completion |
<nb> import NAMESPACE ;
public class PreferenceInitializer extends AbstractPreferenceInitializer {
+ private static final String OPENHAB_CONFIG_DIR = STRING0 ;
private static final Logger logger = LoggerFactory . getLogger ( PreferenceInitializer . class ) ;
public PreferenceInitializer ( ) {
<nb> publi... | changed config dir preference name |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class FieldPacker {
public FieldPacker ( int len ) {
mPos = NUMBER0 ; | Hide field packer |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ api
public class InteractionEndPredicted implements Event {
private EntityRef instigator ;
<nb> package NAMESPACE ;
import NAMESPACE... | Made the Interaction Predicted events accissible from modules |
<nb> public class OHazelcastDistributedDatabase implements ODistributedDatabase {
if ( req != null ) {
if ( req . getId ( ) >= waitForMessageId . get ( ) ) {
SINGLE
+ ODistributedServerLog . debug ( this , manager . getLocalNodeName ( ) , req . getSenderNodeName ( ) , DIRECTION . IN ,
+ STRING0 , req . getId ... | added more logs |
<nb> public class MaxCulGenericBindingProvider extends AbstractGenericBindingProvider
COMMENT
COMMENT
private void buildAssociationMap ( ) {
-
+ SINGLE
if ( super . bindingConfigs . values ( ) . isEmpty ( ) == false )
{
logger . debug ( STRING0 + super . bindingConfigs . values ( ) . size ( ) + STRING1 ... | Actually added TODO |
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
loadTaskListContent ( true ) ;
}
- protected Property < ? > [ ] taskProperties ( ) {
+ public Property < ? > [ ] taskProperties ( ) {
return TaskAdapter . PROPERTIES ;
}
<nb> public class TaskAdapter extends CursorAd... | Fixed a task adapter bug when requerying on background thread |
<nb> public class ViewListener implements TypeListener {
COMMENT
public void injectMembers ( T instance ) {
synchronized ( ViewMembersInjector . class ) {
- final Activity activity = activityProvider . get ( ) ; SINGLE
+ final Activity activity = activityProvider . get ( ) ;
ArrayList < ViewMembersInjecto... | Add back fragment injection |
<nb> public final class Some < T > implements Option < T > , Serializable {
COMMENT
COMMENT
COMMENT
- public static final Some < Void > NOTHING = new Some < > ( null ) ;
+ private static final Some < Void > NOTHING = new Some < > ( null ) ;
private final T value ; | Changed visibility of Some NOTHING constant |
<nb> public final class TempDirectories {
public void stop ( ) {
directoriesByKey . clear ( ) ;
LoggerFactory . getLogger ( getClass ( ) ) . debug ( STRING0 + rootDir . getAbsolutePath ( ) ) ;
+
+ SINGLE
FileUtils . deleteQuietly ( rootDir ) ;
}
} | add a comment |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public final class HttpConstants {
public static final class Methods { | Add missing file header |
<nb> public class GridGplayCABFragment extends BaseFragment {
@ override
public boolean onCreateActionMode ( ActionMode mode , Menu menu ) {
+ SINGLE
super . onCreateActionMode ( mode , menu ) ;
- mActionMode = mode ;
+
+ mActionMode = mode ; SINGLE
+
+ SINGLE
MenuInflater inflater = mode . getMen... | Added comment to GridGPlayCABFragment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AndroidDisplayer implements IDisplayer {
SINGLE
SINGLE
canvas . drawBitmap ( holder . bitmap , left , top , null ) ;
- Log . e ( STRING0 ,... | Recycle unuse cache before building new |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestDriver
public void setup ( )
throws Exception
{
+ Logging . initialize ( ) ;
server = new TestingPrestoServer ( ... | Configure logging for tests |
<nb> public class SingleConnectionFactory
}
else if ( method . getName ( ) . equals ( STRING0 ) ) {
SINGLE
- this . target . start ( ) ;
synchronized ( connectionMonitor ) {
+ this . target . start ( ) ;
started = true ;
}
return null ; | JMS SingleConnectionFactory performs start call within connection monitor for Oracle AQ |
<nb> public final class CdmaDataConnectionTracker extends DataConnectionTracker {
@ override
protected boolean isApnTypeActive ( String type ) {
return ( isApnTypeAvailable ( type ) &&
- ( state == State . CONNECTED || state == State . INITING ) ) ;
+ ( state != State . IDLE ) ) ;
}
@ override
<nb> pu... | Fix the reporting of ActiveApnTypes on CDMA |
<nb> public class PinpointClassFilter implements ClassFileFilter {
SINGLE
if ( className . startsWith ( STRING0 ) ) {
+ if ( className . startsWith ( STRING1 ) ) {
+ return CONTINUE ;
+ }
return SKIP ;
}
-
+
return CONTINUE ;
}
} | include pinpoint web package |
<nb> public abstract class HazelcastTestSupport {
sleepSeconds ( NUMBER0 ) ;
}
- printAllStackTraces ( ) ;
throw error ;
-
}
public static void assertTrueDelayed5sec ( AssertTask task ) { | printing all threads stack trace is making the console out put very large and not giving much info |
<nb> public class GuessManagerImpl extends GuessManager {
return typeMap ;
}
- return getAllTypeCasts ( forPlace ) ;
+ return Collections . emptyMap ( ) ;
}
@ nullable
<nb> public class GuessManagerImpl extends GuessManager {
return fromDfa . get ( expr ) ;
}
- return allCasts . get ( expr ) ;... | when method is too complex don t auto insert any casts |
<nb> public class DynamicContext {
}
@ override
- public Object put ( String key , Object value ) {
- return super . put ( key , value ) ;
- }
-
- @ override
public Object get ( Object key ) {
String strKey = ( String ) key ;
if ( super . containsKey ( strKey ) ) { | Removed unnecessary override |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class FlowContentObserver extends ContentObserver {
private static List < FlowContentObserver > mObserverList = new ArrayList < > ( ) ;
+ private static boolean forceNotify = false ;
... | added force notify method so can use in different processes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
@ retention ( RetentionPolicy . RUNTIME )
@ target ( ElementType . METHOD ) | Fixed eror in javadoc for AfterBridgeCall |
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ override
@ managedattribute ( value = STRING0 , readonly = true )
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClass... | Improve setParentLoaderPriorty javadoc |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
public class GitConsumerTest extends GitTestSu... | Check code style |
<nb> public class Notification implements Parcelable
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
public BigPictureStyle bigPicture ( Bitmap b ) {
mPicture = b ;
return this ;
<nb> public class Notification implements Parcelable
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ... | Add missing docs to notification style rebuilder functions |
<nb> public final class CheckDocsDoclet
}
removeClosingDot ( text ) ;
removeOpeningParagraphTag ( text ) ;
- System . out . println ( STRING0 + text + STRING1 ) ;
return text . toString ( ) . trim ( ) ;
}
} | avoid messages on System out |
<nb> final class ConfigurationClass {
return getMetadata ( ) . getClassName ( ) . hashCode ( ) ;
}
+ @ override
+ public String toString ( ) {
+ return String . format ( STRING0 , this . beanName , this . resource ) ;
+ }
+
COMMENT
COMMENT | Provide ConfigurationClass toString implementation |
<nb> public class LogConfigurator {
}
}
SINGLE
- props . put ( STRING0 , cleanPath ( environment . logsFile ( ) . toAbsolutePath ( ) . toString ( ) ) ) ;
+ props . setProperty ( STRING1 , cleanPath ( environment . logsFile ( ) . toAbsolutePath ( ) . toString ( ) ) ) ;
PropertyConfigurator . configure ( prop... | Add back path logs setup in internal settings preparer |
<nb> public class DeprecationLogger {
}
public static void nagUserOfReplacedProperty ( String propertyName , String replacement ) {
- if ( isEnabled ( ) && METHODS . add ( propertyName ) ) {
+ if ( isEnabled ( ) && PROPERTIES . add ( propertyName ) ) {
LOGGER . warn ( String . format (
STRING0 ,
propert... | added method nagUserOfDiscontinuedProperty |
<nb> public class BasicRawTableTest {
createRawTable ( ) ;
writeParition ( ) ;
readPartition ( ) ;
-
- int id = sTachyonClient . getFileId ( sTablePath ) ;
- sTachyonClient . deleteFile ( id ) ;
}
} | removed unnessary code in the raw table example |
<nb> public class GroovyCodeFragmentFactory extends CodeFragmentFactory {
return ;
}
- if ( resolved == null && context . getLanguage ( ) . equals ( JavaLanguage . INSTANCE ) &&
+ if ( context . getLanguage ( ) . equals ( JavaLanguage . INSTANCE ) &&
referenceExpression . getQualifier ( ) == null SINGLE
)... | adapt GroovyCodeFragmentFactory to new groovy resolve |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileHistoryDialog extends HistoryDialog < FileHistoryDialogModel > {
@ override
protected JComponent createDiffPanel ( ... | keeping focus in revisions list in FileHistoryDialog |
<nb> public class PipeItemsWood extends Pipe < PipeTransportItems > implements IPowerRec
if ( extracted == null )
return ;
+ tile . onInventoryChanged ( ) ;
+
for ( ItemStack stack : extracted ) {
if ( stack == null || stack . stackSize == NUMBER0 ) {
powerHandler . useEnergy ( NUMBER1 , NUMBER1 , true ... | Add call to onInventoryChanged to extraction pipes |
<nb> public class ShapeRenderer {
renderer . vertex ( x + cx , y + cy , NUMBER0 ) ;
}
- COMMENT
+ COMMENT
public void ellipse ( float x , float y , float width , float height ) {
ellipse ( x , y , width , height , ( int ) ( NUMBER1 * ( float ) Math . cbrt ( Math . max ( width * FLOAT0 , height * FLOAT0 ) ... | Fix javadoc for ellipse |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class DefaultTransform implements Transform {
this . scaleMode = scaleMode ;
}
+ final static Paint bilinearSamplingPaint = new Paint ( Paint . FILTER_BITMAP_FLAG ) ;
... | resize bitmaps to a better quality version with bilinear filtering |
<nb> public abstract class LightGrid extends Canvas {
break ;
}
}
+ } else if ( x <= rowHeaderWidth ) {
+ SINGLE
+ SINGLE
}
if ( overSorter != hoveringOnColumnSorter ) {
if ( overSorter ) {
<nb> public abstract class LightGrid extends Canvas {
int iterItem = endRow ;
do {
- getCells ( endRow... | Selecting multiple rows with mouse move fix |
<nb> public class PreparedDeleteObjects < T > extends PreparedDelete < DeleteResults < T > > {
COMMENT
@ nonnull
@ override
- public Builder < T > withDeleteResolver ( @ nonnull DeleteResolver deleteResolver ) {
+ public CompleteBuilder < T > withDeleteResolver ( @ nonnull DeleteResolver deleteResolver ) {
... | Right return type for setter in CompleteBuilder |
<nb> public class StandardAnnotationMetadata extends StandardClassMetadata implements
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in Javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ; | Add missing import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NA... | eliminate eclipse warnings |
<nb> public class HttpTest extends HttpTestBase {
@ test
public void testConnectInvalidHost ( ) {
client . exceptionHandler ( t - > testComplete ( ) ) ;
- client . getNow ( new RequestOptions ( ) . setPort ( DEFAULT_HTTP_PORT ) . setHost ( STRING0 ) . setRequestURI ( DEFAULT_TEST_URI ) , resp - > fail ( STRING1... | changed invalid host |
<nb> public class PrivacyManager {
@ override
public int hashCode ( ) {
- return mMethodName . hashCode ( ) ;
+ return ( mRestrictionName . hashCode ( ) ^ mMethodName . hashCode ( ) ) ;
}
@ override | Fix hash code for method descriptor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
public class ColumnFamilySerializer implements ICompactSerializer2 < ColumnFamily >
{
+ private static final Logger logger = LoggerFactory . getLogger (... | add logger field for ease of debugging |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaValue extends XNamedValue implements NodeDescriptorProvider , XV
renderer . renderStringValue ( myValue , STRING0 , XValu... | wrap toString based renderers label with double quote |
<nb> public class MemorySizeCalculatorTest {
int memoryCacheSize = harness . getCalculator ( ) . getMemoryCacheSize ( ) ;
int bitmapPoolSize = harness . getCalculator ( ) . getBitmapPoolSize ( ) ;
- String failHelpMessage =
- STRING0 + memoryCacheSize
- + STRING1 + bitmapPoolSize
- + STRING2 + memoryCache... | Remove unused code in MemorySizeCalculatorTest |
<nb> public class CRUDDocumentPhysicalTest {
record . field ( STRING0 , STRING1 ) ;
record . field ( STRING2 , ( i + NUMBER0 ) ) ;
record . field ( STRING3 , binary ) ;
+ record . field ( STRING4 , binary ) ;
record . field ( STRING5 , NUMBER1 ) ; SINGLE
record . field ( STRING6 , STRING7 ) ; | Added test with the write of a binary field in schema less mode |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.