diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import from OutboundEnvelopeEncoderTest |
<nb> public class PeopleInviteFragment extends Fragment implements
private void enableSendButton ( boolean enable ) {
mInviteOperationInProgress = ! enable ;
- getActivity ( ) . invalidateOptionsMenu ( ) ;
+ if ( getActivity ( ) != null ) {
+ getActivity ( ) . invalidateOptionsMenu ( ) ;
+ }
}
} | avoid potential NPE when getActivity being null when coming back from network call and no activity present |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | Set stop token in postamble |
<nb> public class MavenRunConfigurationType implements ConfigurationType {
}
}
- static RunnerAndConfigurationSettings createRunnerAndConfigurationSettings ( @ nullable MavenGeneralSettings generalSettings ,
+ public static RunnerAndConfigurationSettings createRunnerAndConfigurationSettings ( @ nullable Maven... | method made public |
<nb> public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo
myEditor . getScrollPane ( ) . getVerticalScrollBar ( ) . addAdjustmentListener ( new AdjustmentListener ( ) {
@ override
public void adjustmentValueChanged ( AdjustmentEvent e ) {
- JScrollBar scrollBar = ( JScrollBar ) e . ... | remove redundant cast |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMES... | Add parameter SET DEFINE OFF to prevent variable substitution |
<nb> public abstract class AbstractESNode extends PlanNode {
@ override
public Set < String > executionNodes ( ) {
+ SINGLE
return ImmutableSet . of ( ) ;
}
<nb> public class ESGetNode extends AbstractESNode {
public String index ( ) {
return index ;
}
-
- @ override
- public Set < String > ... | removed unused overrides |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RestSearchScrollAction extends BaseRestHandler {
@ override
public void handleRequest ( final RestRequest request , final RestChannel channel ... | scroll REST API should support source parameter |
<nb> public class TransitStop extends OffboardVertex {
public TransitStop ( Graph graph , Stop stop ) {
super ( graph , GtfsLibrary . convertIdToString ( stop . getId ( ) ) , stop ) ;
- if ( stop != null ) {
this . wheelchairEntrance = stop . getWheelchairBoarding ( ) == NUMBER0 ;
- }
- isEntrance = stop ... | remove unnecessary null check |
<nb> abstract class AbstractHistogramIterator implements Iterator < HistogramIterationV
this . currentValueAtIndex = NUMBER0 ;
this . nextBucketIndex = NUMBER0 ;
this . nextSubBucketIndex = NUMBER1 ;
- this . nextValueAtIndex = NUMBER1 ;
+ this . nextValueAtIndex = NUMBER1 < < histogram . unitMagnitude ;
th... | Fixed missing unitMagnitude scaling bug on initializing nextValueAtIndex only affected second subBucket value |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class OAbstractProfiler extends OSharedResourceAbstract implemen
private static final class MemoryC... | removed unused object |
<nb> public class Delete extends ConventionTask implements DeleteSpec {
private boolean followSymlinks ;
@ inject
- public FileSystem getFileSystem ( ) {
+ protected FileSystem getFileSystem ( ) {
SINGLE
throw new UnsupportedOperationException ( ) ;
}
@ inject
- public FileResolver getFileResolver... | Reduced visibility of some properties of Delete |
<nb> import NAMESPACE ;
import NAMESPACE ;
public interface DescriptorFinder {
- DescriptorFinder EMPTY = new DescriptorFinder ( ) {
- @ nullable
- @ override
- public ClassDescriptor findClass ( @ notnull ClassId classId ) {
- return null ;
- }
-
- @ notnull
- @ override
- public Collection <... | Drop DescriptorFinder EMPTY |
<nb> public final class OpenSslClientContext extends OpenSslContext {
}
synchronized ( OpenSslContext . class ) {
if ( trustCertChainFile != null ) {
- COMMENT
- if ( ! SSLContext . setCertificateChainFile ( ctx , trustCertChainFile . getPath ( ) , true ) ) {
+ COMMENT
+ if ( ! SSLContext . setCertificate... | Not skip first cert when using OpenSslClientContext |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class MediaStore {
COMMENT
COMMENT
public static final String MEDIA_IGNORE_FILENAME = STRING0 ;
+
+ COMMENT
+ COMME... | Add a convenience method for getting the media provider version |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MessageType {
new JBColor ( new Color ( NUMBER0 , NUMBER1 , NUMBER1 ) , new Color ( NUMBER2 , NUMBER3 , NUMBER4 ) ) ,
new JBColor ( new Color ( NUMBER5 ) , new Color ( NUMBER6 ) ) ) ;
public static final MessageType INFO = ne... | remove green background from darcula balloons |
<nb> public class Scheduler {
private long currentTime = NUMBER0 ;
private boolean paused = false ;
+ public long getCurrentTime ( ) {
+ return currentTime ;
+ }
public void pause ( ) {
paused = true ; | Added getCurrentTime to Scheduler |
<nb> public class BytesStreamsTests extends ESTestCase {
out . close ( ) ;
}
- private static abstract class BaseNamedWriteable implements NamedWriteable {
+ private abstract static class BaseNamedWriteable implements NamedWriteable {
} | Fix modifier order in BytesStreamsTests |
<nb> public class InspectionTree extends Tree {
}
private boolean isNodeValidAndIncluded ( ProblemDescriptionNode node ) {
- return node . isValid ( ) && ! node . isExcluded ( myExcludedManager ) ;
+ return node . isValid ( ) && ! node . isExcluded ( myExcludedManager ) && ! node . isQuickFixAppliedFromView (... | InspectionTree getDescriptors do not process applied fixes |
<nb> public abstract class SelectorManager extends AbstractLifeCycle implements Dumpa
if ( isRunning ( ) )
LOG . warn ( STRING0 + connection , x ) ;
else
- LOG . debug ( STRING1 , connection , x ) ;
+ LOG . debug ( STRING0 + connection , x ) ;
}
} | Fixed logging statement |
<nb> public class VizGui extends JFrame implements VertexSelector {
public void valueChanged ( ListSelectionEvent e ) {
outgoingEdges . removeAll ( ) ;
incomingEdges . removeAll ( ) ;
- Vertex nowSelected = ( ( DisplayVertex ) nearbyVertices . getSelectedValue ( ) ) . vertex ;
- outgoingEdges . setModel ( new... | handle case of no selected vertex in |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Fix copyright header first commit of Stephane |
<nb> public abstract class AbstractAQuery < T extends AbstractAQuery < T > > implements Con
COMMENT
COMMENT
public T invalidate ( String url ) {
-
- File file = getCachedFile ( url ) ;
- file . delete ( ) ;
+
+
+ File file = getCachedFile ( url ) ;
+ if ( file != null )
+ file . delete ( ) ;
r... | Prevent NullPointException during invalidate for no cached resource |
<nb> package NAMESPACE ;
SINGLE
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COM... | use the SessionID variable here since we have it |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PrestoS3FileSystem
SINGLE
Region region = Regions . getCurrentRegion ( ) ;
if ( region != null ) {
- SINGLE
client . ... | Remove redundant call to setEndpoint |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- SINGLE
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchCityByNameActivity extends SearchByNameAbstractActivity < City >
SINGLE
SINGLE
- SINGLE
+ SINGLE
new AsyncTask < Void... | try with re creating Comparator |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public enum Cmp implements TitanPredicate {
if ( condition == null ) {
return value == null ;
} else {
- return condition . equals ( value ) ;
+ if ( condition . equals (... | Make Cmp EQUAL array aware |
<nb> public class DefaultOnDoubleTapListener implements GestureDetector . OnDoubleTapLi
float x = ev . getX ( ) ;
float y = ev . getY ( ) ;
- if ( scale < photoViewAttacher . getMinimumScale ( ) ) {
+ if ( scale < photoViewAttacher . getMediumScale ( ) ) {
photoViewAttacher . setScale ( photoViewAttacher . ... | Allow images to be zoomed in when double clicked |
<nb> public class RuleMap {
private static DependencyGraph createGraphFromBuildRules ( Iterable < BuildRule > rules ) {
MutableDirectedGraph < BuildRule > graph = new MutableDirectedGraph < BuildRule > ( ) ;
for ( BuildRule rule : rules ) {
+ graph . addNode ( rule ) ;
for ( BuildRule dep : rule . getDeps ( )... | Fix testutil RuleMap for singleton or orphaned nodes |
<nb> public class HostConfig
for ( int i = NUMBER0 ; i < files . length ; i ++ ) {
- if ( files [ i ] . equalsIgnoreCase ( STRING0 ) )
- continue ;
- if ( files [ i ] . equalsIgnoreCase ( STRING1 ) )
- continue ;
File contextXml = new File ( configBase , files [ i ] ) ;
if ( files [ i ] . toLowerCase ... | Remove tests rendered unnecessary when context xml files were moved from appBase to configBase |
<nb> public final class RingBuffer < E >
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
public E get ( final long sequence ) | Javadoc for RingBuffer get method |
<nb> public final class EncryptedMapDecorator implements Map < String , String > {
}
private static byte [ ] generateIV ( final int size ) {
- SecureRandom srand = new SecureRandom ( ) ;
- byte [ ] ivValue = new byte [ size ] ;
+ final SecureRandom srand = new SecureRandom ( ) ;
+ final byte [ ] ivValue =... | Fix IV handling for ClearPass in clustered environments |
<nb> public class DownloadActivity extends BaseDownloadActivity {
String tab = getIntent ( ) == null || getIntent ( ) . getExtras ( ) == null ? null : getIntent ( ) . getExtras ( ) . getString ( TAB_TO_OPEN ) ;
if ( tab != null ) {
if ( tab . equals ( DOWNLOAD_TAB ) ) {
- currentTab = NUMBER0 ;
+ currentTab =... | Fix add constants |
<nb> import NAMESPACE ;
public class DesktopUtils {
private static enum BrowserInvoker { desktop , browserlauncher , none } ;
+
private static BrowserInvoker DEFAULT_INVOKER = BrowserInvoker . desktop ;
+ SINGLE
+ static {
+ if ( Desktop . isDesktopSupported ( ) )
+ DEFAULT_INVOKER = BrowserInvoker . ... | Made the default invoker of DesktopUtil to be the BrowserLauncher if |
<nb> public class SpongeWorldEdit {
com . sk89q . worldedit . world . World world = player . getWorld ( ) ;
BlockSnapshot targetBlock = event . getTargetBlock ( ) ;
- Location < World > loc = targetBlock . getLocation ( ) . get ( ) ;
+ Optional < Location < World > > optLoc = targetBlock . getLocation ( ) ;
... | A BlockSnapot does not always have a location in the InteractBlockEvent |
<nb> public final class ModelImporterVisualPanel1 extends JPanel {
DialogDisplayer . getDefault ( ) . notifyLater ( msg ) ;
Exceptions . printStackTrace ( e ) ;
}
- manager . setAssetEventListener ( null ) ;
manager . clearCache ( ) ;
} | remove futile call |
<nb> public class QueryParameterBindingsImpl implements QueryParameterBindings {
public void verifyParametersBound ( boolean reserveFirstParameter ) {
for ( Map . Entry < QueryParameter , QueryParameterBinding > bindEntry : parameterBindingMap . entrySet ( ) ) {
- if ( bindEntry . getValue ( ) == null ) {
+ i... | Fixed missing bound parameters not throwing QueryException |
<nb> class PackageDexOptimizer {
isProfileGuidedFilter = false ;
}
+ SINGLE
+ final boolean vmSafeMode = ( pkg . applicationInfo . flags & ApplicationInfo . FLAG_VM_SAFE_MODE )
+ != NUMBER0 ;
+ final boolean debuggable = ( pkg . applicationInfo . flags & ApplicationInfo . FLAG_DEBUGGABLE )
+ != NUMBER0 ... | Avoid profile guided compilation for vmSafeMode |
<nb> public class TriggerRedstoneInput extends BCTrigger {
@ override
public boolean isTriggerActive ( IGate gate , ITriggerParameter [ ] parameters ) {
TileGenericPipe tile = ( TileGenericPipe ) gate . getPipe ( ) . getTile ( ) ;
- int level = tile . redstoneInputSide [ gate . getSide ( ) . ordinal ( ) ] ;
+... | restore the old redstone i o behaviour in core triggers as well |
<nb> public class NotificationsActivity extends WPActionBarActivity
@ override
public void onNotes ( final List < Note > notes ) {
mFirstLoadComplete = true ;
+ mNotesList . setAllNotesLoaded ( false ) ;
SINGLE
new Thread ( ) {
@ override
<nb> public class NotificationsListFragment extends ListFragment ... | Added a setter for mAllNotesLoaded in NotificationsListFragment so we can set it back to false after refreshing the notifications list |
<nb> public class LayoutControllerImpl implements LayoutController {
@ override
public boolean cancel ( ) {
stopRun = true ;
- return true ;
+ if ( layout instanceof LongTask ) {
+ return ( ( LongTask ) layout ) . cancel ( ) ;
+ }
+ return false ;
}
@ override | Make layouts cancellable using LongTask |
<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
SQL_ERRORS . add ( STRING0 ) ; SINGLE
SQL_ERRORS . add ( STRING1 ) ; SINGLE
SQL_ERRORS . add ( STRING2 ) ; SINGLE
+ SQL_ERRORS . add ( STRING3 ) ; SINGLE
+ SQL_ERRORS . add ( STRING4 ) ; SINGLE
}
protected ConnectionProxy ( Hik... | add sybase exceptions |
<nb> public class ServiceBasedNamingStore implements NamingStore {
final ServiceName ceiling = boundServices . ceiling ( lookupName ) ;
if ( ceiling != null && lookupName . isParentOf ( ceiling ) ) {
+ if ( lookupName . equals ( ceiling ) ) {
+ SINGLE
+ return null ;
+ }
return new NamingContext ( ( Nam... | Don t return a NamingContext if the binder service returns null |
<nb> class BitronixJtaConfiguration {
@ bean
@ conditionalonmissingbean
- public static BitronixDependentBeanFactoryPostProcessor atomikosDependsOnBeanFactoryPostProcessor ( ) {
+ public static BitronixDependentBeanFactoryPostProcessor bitronixDependentBeanFactoryPostProcessor ( ) {
return new BitronixDepen... | Fix incorrect BitronixJtaConfiguration bean name |
<nb> public class QuickMenu
Messages . getI18NString ( STRING0 ) . getText ( ) ) ;
this . addButton . setToolTipText (
Messages . getI18NString ( STRING1 ) . getText ( ) ) ;
- this . addButton . setToolTipText (
+ this . soundButton . setToolTipText (
Messages . getI18NString ( STRING2 ) . getText ( ) ) ;
... | Fixed tooltip not matching the sound on of button |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class EmbeddedChannelFactory implements ChannelFactory {
+ class EmbeddedChannelFactory extends AbstractChannelFactory {
static f... | Fixed compilation errors |
<nb> public class TextureView extends View {
SINGLE
SINGLE
if ( visibility == VISIBLE ) {
- mSurface . setOnFrameAvailableListener ( mUpdateListener , mAttachInfo . mHandler ) ;
+ if ( mLayer != null ) {
+ mSurface . setOnFrameAvailableListener ( mUpdateListener , mAttachInfo . mHandler ) ;
+ }
updateLa... | Fix NPE in onVisibilityChanged |
<nb> public class BulletRigidBodyDebugControl extends AbstractPhysicsDebugControl {
Node node = ( Node ) this . spatial ;
node . detachChild ( geom ) ;
geom = DebugShapeFactory . getDebugShape ( body . getCollisionShape ( ) ) ;
- geom . setMaterial ( debugAppState . DEBUG_BLUE ) ;
node . attachChild ( geom ) ... | add active display for physics debug view |
<nb> public class MemoryLocker {
}
} catch ( UnsatisfiedLinkError e ) {
- OLogManager
- . instance ( )
- . warn ( null ,
- STRING0 ) ;
+ OLogManager . instance ( ) . config ( null ,
+ STRING1 ,
+ System . getProperty ( STRING2 ) ) ;
}
}
} | Changed messages from warn to config |
<nb>
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ COMMENT
COMMENT
COMMENT
package NAMESPACE ;
<nb> public class PsiConcurrencyStressTest extends PsiTestCase {
} . execut... | Do not allow test to quietly time out |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StoreWALTest extends StoreDirectTest < StoreWAL > {
}
+ @ ignore
@ test public void discard_corrupted_log ( ) throws IOException {
final AtomicBoolean replay = new Atomi... | Ignore failing test |
<nb> package NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Adding some comments |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
+ COMMENT
COMMENT
COMMENT
public interface GL10 extends GLCommon { | Fixed a typo in GL10 java |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TableNameSegmentPruner implements SegmentPruner {
SINGLE
SINGLE
if ( brokerRequest . getQuerySource ( ) . getResourceName ( ) == null
- || ( ! brokerRequest . getQuerySource ( ) . getRes... | Reverting rebase merge commit to be at xiafu s version |
<nb> import NAMESPACE ;
COMMENT
public class MasterServer extends Server < Master , Void >
{
- static final byte PROTOCOL_VERSION = NUMBER0 ;
-
+ static final byte PROTOCOL_VERSION = NUMBER1 ;
+
static final int FRAME_LENGTH = Protocol . DEFAULT_FRAME_LENGTH ;
-
+
public MasterServer ( Master real... | Bumped the Application Version since an HA request type has been added |
<nb> public class WebView extends AbsoluteLayout
COMMENT
COMMENT
public void notifyFindDialogDismissed ( ) {
+ if ( mWebViewCore == null ) {
+ return ;
+ }
clearMatches ( ) ;
setFindIsUp ( false ) ;
recordNewContentSize ( mContentWidth , mContentHeight - mFindHeight , | Check mWebViewCore to prevent potential NPE |
<nb> public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Projec
if ( target == null ) return ;
myForwardInProgress = true ;
- executeCommand ( new Runnable ( ) {
- @ override
- public void run ( ) {
- gotoPlaceInfo ( target ) ;
- }
- } , STRING0 , null ) ;
- myForwardInProgress... | Fix IDE history when exception thrown forward |
<nb> public class IrcStack
private ServerParameters ( String nickName , String realName ,
String ident , IRCServer server )
{
- this . nick = nickName ;
+ this . nick = checkNick ( nickName ) ;
this . alternativeNicks . add ( nickName + STRING0 ) ;
this . real = realName ;
this . ident = ident ;
<nb> ... | Verify nick name before setting |
<nb> public class SearchingForTestsTask extends Task . Backgroundable {
if ( methods == null ) {
for ( PsiClass c : classes ) {
- if ( ! results . containsKey ( c ) ) {
- results . put ( c , new LinkedHashSet < PsiMethod > ( ) ) ;
- }
+ results . put ( c , new LinkedHashSet < PsiMethod > ( ) ) ;
}
}
... | run all tests in class when methods to run were not specified |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NA... | Remove wildcard import |
<nb> public class MediaSourceWPImages implements MediaSource {
} while ( cursor . moveToNext ( ) ) ;
removeDeletedEntries ( ) ;
+ } else {
+ mLoading = false ;
+ notifyLoadingStatus ( ) ;
}
} | Removing loading indicator if no media is found |
<nb> class DataTable implements Disposable , Forceable {
}
public void reclaimSpace ( int len ) {
+ markDirty ( ) ;
myWasteSize += len ;
} | marking data table as dirty after record deletion |
<nb> public class StorageDirTest {
private static final String TEST_DIR_PATH = STRING0 ;
private static final int TEST_DIR_INDEX = NUMBER0 ;
private static final long TEST_DIR_CAPACITY = NUMBER1 ;
- @ rule
- public ExpectedException thrown = ExpectedException . none ( ) ;
private StorageTier mTier ;
priva... | Fix format in StorageDirTest |
<nb> public class XmppConnection extends ImConnection implements CallbackHandler {
{
debug ( TAG , STRING0 ) ;
- password = refreshGoogleToken ( userName , password , providerSettings . getDomain ( ) ) ;
+ String newPassword = refreshGoogleToken ( userName , password , providerSettings . getDomain ( ) ) ;
... | only remove old google password if new one was fetched successfully |
<nb> public class AggregationCompiler
aggregationAnnotation . approximate ( ) ) ;
GenericAccumulatorFactoryBinder factory = new AccumulatorCompiler ( ) . generateAccumulatorFactoryBinder ( metadata , classLoader ) ;
- SINGLE
- builder . add ( new GenericAggregationFunction ( name , inputTypes , intermediateTy... | Add support for decomposable aggregation in new framework |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
SINGLE
int viewType = lp . viewType ;
if ( ! shouldRecycleViewType ( viewType ) ) {
- removeDetachedView ( scrap , false ) ;
+ if ( viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER ) {
+ removeDetachedView ( scrap , false ) ... | Do not detach headers and footers from the list view |
<nb> public class LocalTimeClientHandler extends SimpleChannelUpstreamHandler {
LocalTimeClientHandler . class . getName ( ) ) ;
SINGLE
- private Channel channel ;
+ private volatile Channel channel ;
private final BlockingQueue < LocalTimes > answer = new LinkedBlockingQueue < LocalTimes > ( ) ;
public... | This should be volatile anyhow |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | remove javadoc warning |
<nb> public class Http11AprProcessor extends AbstractHttp11Processor < Long > {
response . setStatus ( NUMBER0 ) ;
setErrorState ( ErrorState . CLOSE_CLEAN , null ) ;
getAdapter ( ) . log ( request , response , NUMBER1 ) ;
- } else {
- return true ;
+ return false ;
}
- return false ;
+ return true ; ... | Simplify the logic |
<nb> public class CompileDriver {
}
} , new Runnable ( ) {
public void run ( ) {
+ if ( isRebuild ) {
+ final int rv = Messages . showDialog (
+ myProject , STRING0 , STRING1 ,
+ new String [ ] { STRING2 , STRING3 } , NUMBER0 , Messages . getQuestionIcon ( )
+ ) ;
+ if ( rv == NUMBER0 COMMENT ) {
+ ... | rerun full rebuild confirmation |
<nb> public class WordPressDB {
}
}
- public Post getPostForRemotePostId ( int blogID , String remotePostID ) {
- String [ ] args = { String . valueOf ( blogID ) , remotePostID } ;
- Cursor c = db . query ( POSTS_TABLE , null , STRING0 , args , null , null , null ) ;
- try {
- if ( c . moveToFirst ( ) )... | Drop unused method getPostForRemotePostId |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
Issue227_2_ScenarioTest . class ,
Issue247ScenarioTest . class ,
Issue288ScenarioTest . clas... | Add tests to TestSuite |
<nb>
package NAMESPACE ;
-
public class NoFizzNoBuzzStrategyConstants
{
public static final int NO_BUZZ_INTEGER_CONSTANT_VALUE = BuzzStrategyConstants . BUZZ_INTEGER_CONSTANT_VALUE ; | Fix redundant newline |
<nb> public class GoogleImportRedirectPage extends WebPage {
private static Logger log = Logger
. getLogger ( GoogleImportRedirectPage . class ) ;
- private static final String SCOPE = STRING0 ;
+ private static final String SCOPE = STRING1 ;
private static final String AUTH_URL = STRING2 ;
@ inject | added additional request infos in prevision of google sign in |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
final KeyPair keypair = g . genKeyPair ( ) ;
final PrivateKey privKey = keypair . getPrivate ( ) ;
final PublicKey pubKey = keypair . ... | Generate a new random serial number for new certs |
<nb> public abstract class PythonBinary
}
protected final Path getBinPath ( ) {
- return BuildTargets . getGenPath ( getProjectFilesystem ( ) , getBuildTarget ( ) , STRING0 + pexExtension ) ;
+ return BuildTargets . getGenPath (
+ getProjectFilesystem ( ) ,
+ getBuildTarget ( ) . withFlavors ( ) ,
+ STR... | Always output pexes to unflavoured location |
<nb> public class DataSchemaAnnotationValidator implements Validator
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add comments to clarify initialization error semantics |
<nb> public class EditConnectionDialog extends MultiPageWizardDialog
@ override
protected Control createContents ( Composite parent )
{
+ Control contents = super . createContents ( parent ) ;
DataSourceDescriptor activeDataSource = getWizard ( ) . getPageSettings ( ) . getActiveDataSource ( ) ;
getShell ( ... | Edit connection dialog fixes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class TestResources implements MethodRule {
+ private final Logger logger = LoggerFact... | Added some trace for int tests that are failing on CI machines |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
import static NAMESPACE ;
@ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest... | suppress extrasfs from corrupted file test |
<nb> public class SentimentTrainingITest extends TestCase {
assertTrue ( STRING0 + op . randomSeed ,
SentimentTraining . runGradientCheck ( model , trainingTrees ) ) ;
}
+
+ public void testRegularizationGradientCheck ( ) {
+ List < Tree > trainingTrees = SentimentUtils . readTreesWithGoldLabels ( TRAIN_PAT... | Add a check of the regularization component of the sentiment gradient |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
public enum GraphNodeType {
- USUAL ( NUMBER0 ) ,
- NOT_LOAD_COMMIT ( - NUMBER1 ) ,
- GRAY ( NUMBER1 ) ;
-
- private final byte myType ;
-
- GraphNodeType ( int type ) {
- myType = ( byte ) type ;
- }
-
- public byte getType ( ) {... | git log Remove unused code |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | remove unnecessary import |
<nb> public class RadosClientTest {
radosclient . setProperties ( p ) ;
radosclient . init ( ) ;
}
- catch ( DBException e ) {
+ catch ( DBException | UnsatisfiedLinkError e ) {
assumeNoException ( STRING0 , e ) ;
}
} | Catch additional exception |
<nb> public class RedeploySourceVerticle extends AbstractVerticle {
@ override
public void start ( ) throws Exception {
- System . out . println ( STRING0 ) ;
vertx . eventBus ( ) . publish ( STRING1 , vertx . context ( ) . deploymentID ( ) ) ;
- System . out . println ( vertx . context ( ) . deploymentID (... | Remove some System out println |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
COMMENT
@ override
public int getSystemDecorLayerLw ( ) {
- if ( mStatusBar != null ) return mStatusBar . getSurfaceLayer ( ) ;
- if ( mNavigationBar != null ) return mNavigationBar . getSurfaceLayer ( ) ;
+ if ( mStatusBar != null && mSt... | Do not use the status bar as the system decor layer if it is not visible |
<nb> public class SQLQuery {
}
} catch ( Throwable e ) {
this . type = SQLQueryType . UNKNOWN ;
- log . debug ( STRING0 + query + STRING1 + CommonUtils . getRootCause ( e ) . getMessage ( ) ) ;
+ SINGLE
}
} | Remove redundant logging |
<nb> public class DefaultConnectionProviderTest {
TimeoutTrackingConnectionGetter timeoutTrackingGetter = new TimeoutTrackingConnectionGetter ( pool ) ;
WaitQueueFullTrackingConnectionGetter waitQueueFullTrackingGetter = new WaitQueueFullTrackingConnectionGetter ( pool ) ;
new Thread ( timeoutTrackingGetter ) . s... | fix driver add delay before starting WaitQueueFullTrackingConnectionGetter in DefaultConnectionProviderTest shouldThrowOnWaitQueueFull |
<nb> public class BitcoindComparisonTool {
return null ;
} else if ( m instanceof GetHeadersMessage ) {
try {
+ if ( currentBlock . block == null ) {
+ log . info ( STRING0 ) ;
+ return null ;
+ }
LinkedList < Block > headers = new LinkedList < Block > ( ) ;
Block it = blockList . hashHeaderMap . get ... | Fix potential headers first NPE race |
<nb> public class IndexShard extends AbstractIndexShardComponent {
}
recoveryState . setStage ( RecoveryState . Stage . TRANSLOG ) ;
final EngineConfig . OpenMode openMode ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
if ( indexExists == false ) {
openMode = EngineConfi... | add a comment why and when we can ignore skipTranslogRecovery in IndexShard |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> im... | Fix assumption of watchman existing to get Travis passing |
<nb> public class IssuesTest {
DB db = DBMaker
. fileDB ( file )
. fileMmapEnable ( )
-
+ . fileMmapCleanerHackEnable ( )
. transactionDisable ( )
. cacheSize ( NUMBER0 )
. closeOnJvmShutdown ( ) | Fix broken windows test |
<nb> import NAMESPACE ;
COMMENT
COMMENT
private static String getHostForJSProxy ( ) {
- return STRING0 ;
+ return DEVICE_LOCALHOST ;
}
COMMENT | Fix Chrome debugging |
<nb> public class ChooseByNamePopup extends ChooseByNameBase implements ChooseByNameP
}
private static final Pattern patternToDetectLinesAndColumns = Pattern . compile ( STRING0 + SINGLE
- STRING1 + SINGLE
- STRING2 + SINGLE
+ STRING3 + SINGLE
STRING4 + SINGLE
STRING5 SINGLE
) ; | support more line number denotations fix ChooseByNameHddTest |
<nb> public class ShadowVideoViewTest {
}
@ test
- public void shoulDetermineIsPlaying ( ) throws Exception {
+ public void shouldDetermineIsPlaying ( ) throws Exception {
assertThat ( view . isPlaying ( ) ) . isFalse ( ) ;
view . start ( ) ;
assertThat ( view . isPlaying ( ) ) . isTrue ( ) ; | Fix typo in a ShadowVideoView test |
<nb> public class JingleConnection implements Transferable {
if ( cid != null ) {
Log . d ( Config . LOGTAG , STRING0 + cid ) ;
JingleCandidate candidate = getCandidate ( cid ) ;
+ if ( candidate == null ) {
+ Log . d ( Config . LOGTAG , STRING1 + cid ) ;
+ return false ;
+ }
candidate . flagAsUsedByCou... | fixed npe when jingle partner is using unknown candidate |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class IrcFirehoseFactory implements FirehoseFactory
@ override
public List < String > getAlternativeNicknames ( )
{
- return Lists . newArrayList ( nick + STRING0 ,
- nick ... | Reapply fix regex and assign random user ids from Xavier |
<nb> public class OPaginatedCluster extends ODurableComponent implements OCluster {
final OClusterPositionMapBucket . PositionEntry positionEntry = clusterPositionMap . get ( clusterPosition , NUMBER0 ) ;
if ( positionEntry != null ) {
SINGLE
- throw new OPaginatedClusterException ( STRING0 + new ORecordId ( id... | if the record wasn t deleted just ignore it |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public abstract class JavaPsiFacadeEx extends JavaPsiFacade {
public static JavaPsiFacadeEx getInstanceEx ( Project project ) {
return ( JavaPsiFacadeEx ) getInstance ( project ) ;
}
+ @ testonly... | bring test back |
<nb> public interface Status
ROLLBACK , NONE ,
}
-
private enum PublishingPolicy
{
REPORTS_TO_CLIENT , REFERS_TO_LOG | Remove empty line |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.