diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class DeskShareApplet extends Applet implements ClientListener {
Boolean aspectRatioValue = false ;
Integer xValue = new Integer ( NUMBER0 ) ;
Integer yValue = new Integer ( NUMBER0 ) ;
- Boolean tunnelValue = false ;
+ Boolean tunnelValue = true ;
DeskshareClient client ;
Image icon ; | have the applet tunnel by default |
<nb> public final class HikariPool implements HikariPoolMBean
}
catch ( SQLException e )
{
- LOGGER . error ( STRING0 , e ) ;
+ LOGGER . warn ( STRING1 , e ) ;
return false ;
}
} | Demote error log to warn |
<nb> public class SwipeHelper implements Gefingerpoken {
mWatchLongPress = new Runnable ( ) {
@ override
public void run ( ) {
- float pos = getPos ( ev ) ;
- float delta = pos - mInitialTouchPos ;
- if ( mCurrView != null && ! mLongPressSent
- && Math . abs ( delta ) < mPagingTouchSlop ) {
+ if ( mCurr... | Fixed a bug where longpress was not possible in landscape |
<nb> public interface InternalTaskDescriptor extends InternalProtocolInterface {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
String getDisplayName ( ) ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
String getTaskPath ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
... | Add some Javadoc |
<nb> public class ODataLocal extends OMultiFileSegment {
final int [ ] fileRanges ;
if ( pos [ NUMBER0 ] == NUMBER0 )
fileRanges = new int [ ] { NUMBER0 , file . getFilledUpTo ( ) } ;
- else
- fileRanges = new int [ ] { files [ ( int ) pos [ NUMBER0 ] - NUMBER1 ] . getFileSize ( ) , file . getFilledUpTo ( ) }... | Fixed bug on defrag with multiple files |
<nb> public abstract class HibernateDaoSupport extends DaoSupport {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo in JavaDoc |
<nb> public class GitBranchUtil {
@ nullable
public static GitRepository getRepositoryOrGuess ( @ notnull Project project , @ nullable VirtualFile file ) {
if ( project . isDisposed ( ) ) return null ;
- return DvcsUtil . guessRepositoryForFile ( project , GitUtil . getRepositoryManager ( project ) , GitVcs . g... | Fix method call after changing signature |
<nb> public class DebuggerManagerImpl extends DebuggerManagerEx {
}
private static boolean shouldAddXdebugKey ( Sdk jdk ) {
- if ( jdk == null || DebuggerSettings . getInstance ( ) . DISABLE_JIT ) {
+ if ( DebuggerSettings . getInstance ( ) . DISABLE_JIT ) {
return true ;
}
+ if ( jdk == null ) {
+ re... | expect newer jdk by default |
<nb> public class KafkaJournal extends AbstractIdleService implements Journal {
SINGLE
SINGLE
if ( line != null ) {
- nextReadOffset = Long . parseLong ( line . trim ( ) ) + NUMBER0 ;
+ committedOffset . set ( Long . parseLong ( line . trim ( ) ) ) ;
+ nextReadOffset = committedOffset . get ( ) + NUMBER0 ; ... | Also set committedOffset to the value read from the file |
<nb> public abstract class MatchState {
protected static final double NEW_SEGMENT_PENALTY = FLOAT0 ;
- protected static final double NO_TRAVERSE_PENALTY = NUMBER0 ;
+ SINGLE
+ protected static final double NO_TRAVERSE_PENALTY = NUMBER1 ;
public double currentError ; | temporarily remove broken feature |
<nb> public class LocalExecutor implements PlanExecutor {
Logger root = Logger . getRootLogger ( ) ;
PatternLayout layout = new PatternLayout ( STRING0 ) ;
ConsoleAppender appender = new ConsoleAppender ( layout , STRING1 ) ;
- appender . setThreshold ( Level . ERROR ) ;
root . addAppender ( appender ) ;
ro... | Fixed accidentally committed log level change in local executor |
<nb> public class CommittedChangesTreeBrowser extends JPanel implements TypeSafeDataP
} ) ;
myChangesTree . addMouseListener ( new MouseAdapter ( ) {
public void mouseClicked ( final MouseEvent e ) {
+ if ( e . isPopupTrigger ( ) ) return ;
final TreePath path = myChangesTree . getPathForLocation ( e . getX (... | fixed more link hit testing |
<nb> public class BoundingBox extends BoundingVolume {
public float distanceToEdge ( Vector3f point ) {
SINGLE
- Vector3f closest = point . subtract ( center ) ;
+ TempVars vars = TempVars . get ( ) ;
+ Vector3f closest = vars . vect1 ;
+
+ point . subtract ( center , closest ) ;
SINGLE
float sqrD... | Prevent boundingBox to create new vectors in distanceToEdge thanks to maximusgrey |
<nb> public class LeakyOnJava7GroovySystemLoader implements GroovySystemLoader {
@ override
public void shutdown ( ) {
+ if ( leakingLoader == getClass ( ) . getClassLoader ( ) ) {
+ throw new IllegalStateException ( STRING0 ) ;
+ }
SINGLE
try {
Iterator < ? > it = globalClassSetIterator ( ) ; | Don t allow the main Groovy version to be shutdown |
<nb> public class SftpConsumer extends RemoteFileConsumer {
SINGLE
pollDirectory ( file . getFilename ( ) , fileList ) ;
}
- } else if ( ! file . getAttrs ( ) . isLink ( ) ) {
+ SINGLE
+ SINGLE
+ } else {
if ( isValidFile ( remote , false ) ) {
SINGLE
fileList . add ( remote ) ;
}
- } else {
-... | Fixed sftp consumer not working on Windows platforms due no symlinks |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed useless import |
<nb> abstract class AbstractInvocationHandler extends org . jboss . ws . common . invocation .
wsInvocation . setReturnValue ( retObj ) ;
}
catch ( Throwable t ) {
- WSLogger . ROOT_LOGGER . methodInvocationFailed ( t , t . getLocalizedMessage ( ) ) ;
handleInvocationException ( t ) ;
}
finally {
<nb> p... | Fix excessive ERROR logging on webservices invocation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class OnlineBackup
{
<nb> public class OnlineBackup
throw new RuntimeException ( targetDirectory + STRING0 ) ;
}
- SINGLE
+ SINGLE
BackupClient client = new BackupClient ( hostNameOrI... | Added an ugly StringLogger close when doing full backup when you pass in a fake graph database |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused import statement |
<nb> class TokenStream
if ( c == STRING0 ) {
c = getChar ( ) ;
- if ( c != quoteChar ) {
+ if ( c != STRING1 && c != STRING2 ) {
addToString ( STRING0 ) ;
}
} | Optimize the amount of quote escaping |
<nb> public class ApplicationSettings extends AbstractModel {
private int queryTimeout ;
private boolean crawlingPaused ;
private int keepStatusDays = NUMBER0 ;
- private int refreshIntervalMinutes ;
+ private int refreshIntervalMinutes = NUMBER1 ;
@ column ( length = NUMBER2 )
private String announceme... | set default value |
<nb> public class PShape3D extends PShape {
if ( modifiedPointAttributes ) {
if ( root . pointAttributesCache == null ) {
- root . pointAttributesCache = new VertexCache ( NUMBER0 ) ;
+ root . pointAttributesCache = new VertexCache ( NUMBER1 ) ;
}
root . pointAttributesCache . add ( root . pointVertCopyOf... | Corrected size of cache of point attributes in PShape3D |
<nb> public abstract class JBListTable {
}
@ override
+ public void addNotify ( ) {
+ super . addNotify ( ) ;
+ Disposer . register ( myOnRemoveDisposable , myRowResizeAnimator ) ;
+ }
+
+ @ override
public void removeNotify ( ) {
super . removeNotify ( ) ;
Disposer . dispose ( myOnRemoveDisposa... | prevent a memory leak |
<nb> public class PgpDecryptionService {
this . pendingNotifications . removeAll ( discards ) ;
}
+ public synchronized void discard ( Message message ) {
+ this . messages . remove ( message ) ;
+ this . pendingNotifications . remove ( message ) ;
+ }
+
protected synchronized void decryptNext ( ) {
... | replace corrected messages in decryption queue |
<nb> public class AccountSetupNames extends K9Activity implements OnClickListener
}
mAccount . setName ( mName . getText ( ) . toString ( ) ) ;
mAccount . save ( Preferences . getPreferences ( this ) ) ;
- FolderList . actionHandleAccount ( this , mAccount , K9 . INBOX ) ;
finish ( ) ;
} | Fix a force quit by going to the Accounts page after creating an account |
<nb> public class ChatAtmosphereHandler implements AtmosphereHandler {
if ( req . getMethod ( ) . equalsIgnoreCase ( STRING0 ) ) {
SINGLE
if ( req . getHeader ( STRING1 ) == null ) {
- SINGLE
r . suspend ( ) ;
} else {
r . getResponse ( ) . getWriter ( ) . write ( STRING2 ) ; | Remove wrong comments |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class Jt400DataQueueEndpoint extends DefaultPollingEndpoint {
try {
baseEndpoint = new Jt400Endpoint ( endpointUri , connectionPool ) ;
} catch ( URISyntaxException e )... | Santize the uri to mask password |
<nb> public class BufferUtils {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public static long getUnsafeByteBufferAddress ( ByteBuffer buffer ) {
- synchronized ( unsafeBuffers ) {
- if ( ! unsafeBuffers . contains ( buffer , true ) )
- return NUMBER0 ;
... | changed BufferUtils to getUnsafeBufferAddress of a Buffer not a ByteBuffer |
<nb> public class MaxWalkState extends State {
if ( backEdge != other . getBackEdge ( ) && ( ( backEdge instanceof PlainStreetEdge )
&& ( ! ( ( PlainStreetEdge ) backEdge ) . getTurnRestrictions ( ) . isEmpty ( ) ) ) )
return false ;
- return walkDistance <= other . getWalkDistance ( ) * FLOAT0
+ return walkD... | apply new epsilon to walk searches too big win |
<nb> public class EnterInLineCommentHandler extends EnterHandlerDelegateAdapter {
String prefix = commenter . getLineCommentPrefix ( ) ;
assert prefix != null : STRING0 ;
if ( ! StringUtil . startsWith ( text , offset , prefix ) ) {
- if ( text . charAt ( caretOffset ) != STRING1 ) {
+ if ( text . charAt ( ca... | don t add extra space to line comment prefix if it s there already |
<nb> public class ReactContext extends ContextWrapper {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public void startActivityForResult ( Intent intent , int code , Bundle bundle ) {
- Assertions . assertNotNull ( mCurrentActivity ) ;
+ public boolean startActivityForResult ( Intent inten... | Fix crash when double launching activity |
<nb> public class TopKPhaseJob extends Configured {
}
}
if ( ! isPassThreshold ) {
- LOGGER . info ( STRING0 ) ;
return ;
}
dimensionNameToValuesMap . get ( dimensionName ) . put ( dimensionValue , aggMetricValues ) ;
<nb> public class TopKPhaseJob extends Configured {
}
if ( topkDimensionValues .... | Create topk job in thirdeye hadoop library |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class EditorTextFieldCellRenderer implements TableCellRenderer ,
@ notnull
private static EditorEx createEditor ( Proj... | don t use use PLAIN_TEXT file type by default |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
if ( mHideybars == HIDEYBARS_SHOWING ) {
if ( ! hideybarsAllowed ) {
mHideybars = HIDEYBARS_NONE ;
+ if ( ( tmpVisibility & View . SYSTEM_UI_FLAG_FULLSCREEN ) != NUMBER0 ) {
+ SINGLE
+ int newVal = mResettingSystemUiFlags | View . SYSTEM_... | Hideybar gesture clears flags if SYSTEM_UI_FLAG_FULLSCREEN |
<nb> public final class OperatorDebounceWithTime < T > implements Operator < T , T > {
}
public void emit ( int index , Subscriber < T > onNextAndComplete , Subscriber < ? > onError ) {
T localValue ;
- boolean localHasValue ;
synchronized ( this ) {
if ( emitting || ! hasValue || index != this . index ) { ... | Remove unnecessary localHasValue check |
<nb> public class SimpleThreesideDiffViewer extends ThreesideTextDiffViewer {
}
myInvalidDiffChanges . clear ( ) ;
+ myFoldingModel . destroy ( ) ;
+
myContentPanel . repaintDividers ( ) ;
myStatusPanel . update ( ) ;
} | destroy folding model in three side viewer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Parser {
throw new HumanReadableException ( STRING0 ,
buildRuleType ,
UnflavoredBuildTarget . BUILD_TARGET_PREFIX ,
- u... | Fix error messages in Parser to use unix style paths |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GoBuildingRunner extends AsyncGenericProgramRunner {
if ( executionResult == null ) {
throw new ExecutionException ( STRING... | add usage trigger for dlv |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+... | added license text to those without it |
<nb> public final class InodeTree implements JournalSerializable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public List < Inode > createPath ( TachyonURI path , long blockSizeBytes , boolean recursiv... | Fix comments for createPath |
<nb> public class TestMathFunctions
public void testSign ( )
{
SINGLE
+ assertFunction ( STRING0 , TINYINT , null ) ;
+ assertFunction ( STRING1 , SMALLINT , null ) ;
assertFunction ( STRING2 , INTEGER , null ) ;
assertFunction ( STRING3 , BIGINT , null ) ;
assertFunction ( STRING4 , DOUBLE , null ) ;
... | Add tests for SMALLINT and TINYINT variants of sign function |
<nb> public class StandardProcessOperations implements ProcessOperations
localProperties . setProperty ( STRING0 + spec . getServerId ( ) , spec . getHostname ( ) + portSpec + spec . getServerType ( ) . getZookeeperConfigValue ( ) ) ;
}
- if ( usState . getUs ( ) . getServerType ( ) == ServerType . OBSERVER )
... | usState getUs might return null |
<nb> public class RefCountingStorage extends AbstractStorage {
private BufferExposingByteArrayOutputStream internalReadStream ( int record ) throws IOException {
waitForPendingWriteForRecord ( record ) ;
+ byte [ ] result ;
synchronized ( myLock ) {
+ result = super . readBytes ( record ) ;
+ }
- by... | inflate zipped contents out of the lock |
<nb> public class JDBCConfigurationSourceTest {
assertEquals ( STRING0 , defaultProp . get ( ) ) ;
DynamicStringProperty prop1 = DynamicPropertyFactory . getInstance ( ) . getStringProperty (
- STRING1 , STRING2 ) ;
+ STRING1 , STRING0 ) ;
assertEquals ( STRING2 , prop1 . get ( ) ) ;
} | Fix test to avoid false positive from default value of dynamic property |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;... | don t removeWidget from dispose |
<nb> import static NAMESPACE ;
@ runwith ( SpringJUnit4ClassRunner . class )
@ springapplicationconfiguration ( classes = SampleWsApplication . class )
@ webappconfiguration
- @ integrationtest
+ @ integrationtest ( STRING0 )
public class SampleWsApplicationTests {
@ rule | Fix WS sample to use a random port |
<nb> public class SubsamplingLayer extends BaseLayer {
case AVG :
SINGLE
retE = epsilon . get (
- NDArrayIndex . point ( NUMBER0 )
- , NDArrayIndex . all ( )
- , NDArrayIndex . all ( )
+ NDArrayIndex . all ( ) ,
+ NDArrayIndex . all ( )
, NDArrayIndex . newAxis ( )
, NDArrayIndex . newAxis ( ) ) ;
... | add subsampling changes minor |
<nb> public class PostgresDatabase extends AbstractDatabase {
return STRING0 ;
}
- public String getDatabaseChangeLogTableName ( ) {
- return super . getDatabaseChangeLogTableName ( ) . toLowerCase ( ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
- public String getDatabaseChangeLogLockTableName ( ) {
- ret... | Postgres should use upper case table names |
<nb> public class GateExpansionRecipe extends IntegrationRecipeBC {
return true ;
}
for ( ItemStack s : recipes . values ( ) ) {
+ System . out . println ( s . toString ( ) ) ;
if ( StackHelper . isMatchingItem ( s , expansion , true , true ) ) {
- IGateExpansion exp = recipes . inverse ( ) . get ( expansio... | actually fix previous issue gah |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class ActionBarTransition {
private static final boolean TRANSITIONS_ENABLED = false ;
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class StandaloneActionMode extends Act... | Hide internal appcompat classes which are being added to the javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatsDetailsActivity extends ActionBarActivity {
mSwipeToRefreshHelper . unregisterReceiver ( this ) ;
}
+ @ override
... | Stats day detail no longer ignores back arrow icon |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class SqlBrite implements Closeable {
return rows ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | Added yieldIfContendedSafely support |
<nb> public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed invalid code tag in javadoc |
<nb> public abstract class DatabaseHolder {
COMMENT
COMMENT
COMMENT
- void putDatabaseForTable ( Class < ? extends Model > table , BaseDatabaseDefinition baseDatabaseDefinition ) {
+ public void putDatabaseForTable ( Class < ? extends Model > table , BaseDatabaseDefinition baseDatabaseDefinition ) {
manager... | made put method public |
<nb> public class BatchChunkOptionalProcessorTest {
SINGLE
assertEquals ( NUMBER0 , metricsMap . get ( Metric . MetricType . READ_COUNT ) . longValue ( ) ) ;
- SINGLE
+ SINGLE
assertEquals ( NUMBER0 , metricsMap . get ( Metric . MetricType . WRITE_COUNT ) . longValue ( ) ) ;
SINGLE
assertEquals ( NUMBER... | Fixed documentation of chunk optional processor project |
<nb> public class ViewPager extends ViewGroup {
}
}
+ @ override
+ public void removeView ( View view ) {
+ if ( mInLayout ) {
+ removeViewInLayout ( view ) ;
+ } else {
+ super . removeView ( view ) ;
+ }
+ }
+
ItemInfo infoForChild ( View child ) {
for ( int i = NUMBER0 ; i < mItems . size... | Fix use of removeView during layout |
<nb> public class RiverMongoDropCollectionTest extends RiverMongoDBTestAsbtract {
assertThat ( mongoDB . collectionExists ( collectionName ) , equalTo ( false ) ) ;
Thread . sleep ( wait ) ;
refreshIndex ( ) ;
- assertThat (
- getNode ( ) . client ( ) . admin ( ) . indices ( )
- . prepareTypesExists ( getIn... | Fix condition from drop collection unit test |
<nb> public class TemporalMesh extends Geometry {
COMMENT
public List < Face > getAdjacentFaces ( Edge edge ) {
List < Face > result = new ArrayList < Face > ( indexToFaceMapping . get ( edge . getFirstIndex ( ) ) ) ;
- result . retainAll ( indexToFaceMapping . get ( edge . getSecondIndex ( ) ) ) ;
+ List < F... | fixed a bug that caused NPE to be raised when Subsurface |
<nb> import NAMESPACE ;
public class ClusterHealthCheckThread extends Periodical {
private static final Logger LOG = LoggerFactory . getLogger ( ClusterHealthCheckThread . class ) ;
- public static final int INITIAL_DELAY = NUMBER0 ;
- public static final int PERIOD = NUMBER1 ;
-
@ override
public void ... | remove unused code |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in documentation |
<nb> public class Config {
private SigningIdentity iosSignIdentity ;
private ProvisioningProfile iosProvisioningProfile ;
- private Boolean iosSkipSigning = null ;
+ private boolean iosSkipSigning = false ;
private Target target = null ;
private Properties properties = new Properties ( ) ;
<nb> public... | Changed type of Config iosSkipSigning from Boolean to boolean |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix import org apache http protocol HttpContext |
<nb> public class CommonsHttpClientBackedRepository extends AbstractRepository {
return method . invoke ( delegate , args ) ;
}
- private Resource init ( ) throws IOException {
+ private Resource init ( ) {
LOGGER . info ( STRING0 , source ) ;
- int result = executeMethod ( method ) ;
+ int result ;
+... | Don t throw an IOException from the generated proxy |
<nb> public class NewDirectoryPage extends NewProjectWizardPage
}
SINGLE
- addSpacer ( ) ;
chkPackratInit_ = new CheckBox ( STRING0 ) ;
- addWidget ( chkPackratInit_ ) ;
+ if ( sessionInfo . getPackratAvailable ( ) )
+ {
+ addSpacer ( ) ;
+ addWidget ( chkPackratInit_ ) ;
+ }
}
protected voi... | hide packrat project init when packrat isn t available |
<nb> public class StatementGenerator extends ErrorReportingASTVisitor {
SINGLE
SINGLE
buffer . append ( buildStringFromChars ( ( ( StringLiteral ) arg ) . getLiteralValue ( ) ) ) ;
+ } else if ( arg instanceof MethodInvocation ) {
+ IMethodBinding methodBinding = Types . getMethodBinding ( arg ) ;
+ if ( me... | Cast the result of hash to int in string concatenation |
<nb> public class FileDownloadFragment extends SherlockFragment implements OnClickLis
FileDownloaderBinder downloaderBinder = mContainerActivity . getFileDownloaderBinder ( ) ;
if ( downloaderBinder != null && downloaderBinder . isDownloading ( mAccount , mFile ) ) {
downloaderBinder . cancel ( mAccount , mFile )... | Cancelling a download in gallery finishes the gallery |
<nb> public final class FileDataManager {
LOG . info ( STRING0 , fileId , dstPath ) ;
String parentPath = PathUtils . concatPath ( ufsRoot , uri . getParent ( ) . getPath ( ) ) ;
SINGLE
- if ( ! mUfs . exists ( parentPath ) && ! mUfs . mkdirs ( parentPath , true ) ) {
- SINGLE
- if ( ! mUfs . exists ( paren... | Fix the bug again |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StoreMigration
public void run ( final FileSystemAbstraction fs , final File storeDirectory , Config config ,
LogProvider u... | Properly shuts down log service in StoreMigration |
<nb> public class MongoDbProducer extends DefaultProducer {
protected void doCount ( Exchange exchange ) throws Exception {
DBCollection dbCol = calculateCollection ( exchange ) ;
- Long answer = Long . valueOf ( dbCol . count ( ) ) ;
+ DBObject query = exchange . getIn ( ) . getBody ( DBObject . class ) ;
... | Specifying criteria for count operation |
<nb> import NAMESPACE ;
public abstract class Event
{
public enum Type {
- TOPOLOGY_CHANGE ( Server . VERSION_2 ) ,
- STATUS_CHANGE ( Server . VERSION_2 ) ,
- SCHEMA_CHANGE ( Server . VERSION_2 ) ,
+ TOPOLOGY_CHANGE ( Server . VERSION_1 ) ,
+ STATUS_CHANGE ( Server . VERSION_1 ) ,
+ SCHEMA_CHANGE ( Se... | Fix min protocol version for SCHEMA TOPOLOGY STATUS events |
<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 ;
<nb> public class MySiteFragment exten... | reset comment filter when switching blogs |
<nb> public class Document extends JavaScriptObject
public native final Position indexToPosition ( int index , int startRow ) COMMENT
COMMENT
COMMENT ;
+
+ public native final int positionToIndex ( Position pos , int startRow ) COMMENT
+ COMMENT
+ COMMENT ;
public final String getDocumentDump ( )
{ | expose position to index mapping in Ace document JSNI |
<nb> public abstract class LibrariesUtil {
if ( realFile . exists ( ) ) {
File parentFile = realFile . getParentFile ( ) ;
if ( parentFile != null ) {
- if ( parentFile . isDirectory ( ) && ! STRING0 . equals ( parentFile . getName ( ) ) COMMENT ) {
+ if ( parentFile . isDirectory ( ) && ! ( STRING0 . equals ... | recognize embeddable groovy all |
<nb> public class SpringApplication {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static void main ( String [ ] args ) {
run ( new Class < ? > [ ] { AutoMain . class } , args ) ;
} | Add java docs to SpringApplication main |
<nb> public final class Ascii {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class MediaType {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMEN... | Move p tags to the beginning of the line |
<nb> public class ResStringValue extends ResScalarValue
private final String mValue ;
public ResStringValue ( String value ) {
- super ( STRING0 ) ;
+ this ( value , STRING0 ) ;
+ }
+
+ public ResStringValue ( String value , String type ) {
+ super ( type ) ;
this . mValue = value ;
}
<nb> pac... | added possibility to set type name |
<nb> public abstract class Decision implements ToXContent {
break ;
case THROTTLE :
out . writeVInt ( NUMBER0 ) ;
+ break ;
default :
throw new ElasticsearchIllegalArgumentException ( STRING0 + type + STRING1 ) ;
} | Fix missing break statement causing reroute serialization failure |
<nb> import NAMESPACE ;
@ supportedoptions ( { TRACE_OPTION , ANDROID_MANIFEST_FILE_OPTION } )
public class AndroidAnnotationProcessor extends AbstractProcessor {
+ SINGLE
+ public static final String ANDROIDANNOTATION_VERSION = STRING0 ;
+
private final TimeStats timeStats = new TimeStats ( ) ;
private... | Add AA version |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class Person
{ | Updated the graph algo component to match the changes to Uniqueness in the traversal framework |
<nb> public class ZWaveThermostatSetpointConverter extends
int scale = NUMBER0 ;
if ( scaleString != null ) scale = Integer . parseInt ( scaleString ) ;
- logger . debug ( STRING0 , node . getNodeId ( ) , command . toString ( ) ) ;
+ logger . debug ( STRING1 , node . getNodeId ( ) , command . toString ( ) ) ;... | Remove temporary debug logging |
<nb> public class CallPeerMediaHandler
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
private MediaDirection videoDirectionUserPreference
- = MediaDirection . INACTIVE ;
+ = MediaDirection . RECVONLY ;
COMMENT
COMMENT
<nb> public class CallPeerMediaHandler
MediaDevice dev = getDefau... | Reverts default local user preference to RECVONLY as INACTIVE was breaking incoming video offers |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
}
final AttachInfo ai = mAttachInfo ;
final ViewParent p = mParent ;
- if ( ai != null && ai . mHardwareAccelerated ) {
+ if ( p != null && ai != null && ai . mHardwareAccelerated ) {
SINGLE
SINGLE
p . invalidate... | Fixed null deref when view parent null during invalidation |
<nb> public class SecureNio2Channel extends Nio2Channel {
handshakeComplete = false ;
closed = false ;
closing = false ;
+ netInBuffer . clear ( ) ;
}
@ override | Correctly reset secure channel before it is re used |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Person {
this . role = role ;
}
+ @ nullable
public static Person fromJSON ( JSONObject json , int localTableBlogId ) {
if ( json == null ) {
return null ; | Adds Nullable to fromJSON method in Person |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
public class ConvertUsagesUtil {
private static final char GROUP_SEPARATOR = STRING0 ;
private static final char GROUPS_SEPARATOR = STRING1 ;
<nb> public class Co... | don t use null contract annotations in ConvertUsagesUtil |
<nb> public class Task < TResult > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in javadoc for whenAllResult |
<nb> public class TransportService extends AbstractLifecycleComponent < TransportServic
SINGLE
SINGLE
final SendRequestTransportException sendRequestException = new SendRequestTransportException ( node , action , e ) ;
- threadPool . executor ( ThreadPool . Names . GENERIC ) . execute ( new Runnable ( ) {
+ t... | Handle RejectedExecution gracefully in TransportService |
<nb> public interface ServletContainer {
DeploymentManager getDeployment ( String deploymentName ) ;
- void removeDeployment ( String deploymentName ) ;
+ void removeDeployment ( DeploymentInfo deploymentInfo ) ;
DeploymentManager getDeploymentByPath ( String uripath ) ;
<nb> public class ServletConta... | Fix memory leak by removing also deploymentsByPath reference |
<nb> public class GoLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSettin
indentOptions . TAB_SIZE = NUMBER0 ;
indentOptions . USE_TAB_CHARACTER = true ;
+ defaultSettings . BLOCK_COMMENT_AT_FIRST_COLUMN = false ;
defaultSettings . KEEP_LINE_BREAKS = false ;
defaultSettings . KEEP_BLANK_LINES_IN... | Insert comment with indentation |
<nb> import NAMESPACE ;
COMMENT
public class NumberProgressBar extends View {
- private Context mContext ;
-
COMMENT
COMMENT
COMMENT
<nb> public class NumberProgressBar extends View {
public NumberProgressBar ( Context context , AttributeSet attrs , int defStyleAttr ) {
super ( context , attrs , d... | remove unused field |
<nb> public class SubscriptionInfo implements Parcelable {
private CharSequence mDisplayName ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
private CharSequence mCarrierName ; | Changing usage of carrier name field of SubInfoRecord |
<nb> public final class TupleComparator < T extends Tuple > extends TypeComparator < T > im
public int hash ( T value ) {
int i = NUMBER0 ;
try {
- int code = NUMBER0 ;
- for ( ; i < this . keyPositions . length ; i ++ ) {
- code += this . comparators [ i ] . hash ( value . getField ( keyPositions [ i ] ) )... | Fix hashing incompatibility between TupleLeadingFieldComparator and TupleComparator |
<nb> public class JedisTest extends JedisCommandTestBase {
jedis = new Jedis ( STRING0 , NUMBER0 , NUMBER1 ) ;
jedis . auth ( STRING1 ) ;
jedis . configSet ( STRING2 , STRING3 ) ;
- SINGLE
- SINGLE
- Thread . sleep ( NUMBER2 ) ;
+ Thread . sleep ( NUMBER3 ) ;
jedis . hmget ( STRING4 , STRING5 ) ;
} | make JedisTest fast |
<nb> public final class BuildTreeFn extends OryxReduceDoFn < Integer , Iterable < String > ,
log . info ( STRING0 , treeID ) ;
ExampleSet cvSet = new ExampleSet ( cvExamples ) ;
double [ ] weightEval = Evaluation . evaluateToWeight ( tree , cvSet ) ;
+ progress ( ) ;
double weight = weightEval [ NUMBER0 ] ;
... | Add more progress as tree building steps can be long running |
<nb> public final class MasterWorkerInfo {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public synchronized void updateLastUpdatedTimeMs ( long timeMillis ) {
+ mLastUpdatedTimeMs = timeMillis ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Enable setting last updated time for workers for tests |
<nb> public abstract class PGL {
public abstract void vertexAttrib1fv ( int index , FloatBuffer values ) ;
public abstract void vertexAttrib2fv ( int index , FloatBuffer values ) ;
public abstract void vertexAttrib3fv ( int index , FloatBuffer values ) ;
- public abstract void vertexAttri4fv ( int index , Float... | Fix typo in PGL |
<nb> public class StandardSession
public void endAccess ( ) {
isNew = false ;
- this . thisAccessedTime = System . currentTimeMillis ( ) ;
- this . lastAccessedTime = this . thisAccessedTime ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ if ( Globals . STRICT_SERVLET_COMPLIANCE ) {
+ this . lastA... | Ignore request handling time in session lastAccessedTime |
<nb> public class XMPPConnection {
SINGLE
SINGLE
- if ( DEBUG_ENABLED ) {
+ SINGLE
+ SINGLE
+ if ( DEBUG_ENABLED && debugger != null ) {
debugger . userHasLogged ( user ) ;
}
}
<nb> public class XMPPConnection {
SINGLE
SINGLE
- if ( DEBUG_ENABLED ) {
+ SINGLE
+ SINGLE
+ if ( DEBUG_EN... | Prevents a NPE if DEBUG_ENABLED was set to true AFTER the connection was created |
<nb>
package 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 NAMESPACE ;
import NAMESPACE ;
<... | Remove some unneeded interfaces |
<nb> public class SpecializedModelMapProjection < P , E > implements ModelProjection {
ChildNodeInitializerStrategy < ? super E > creatorStrategy = creatorStrategyAccessor . getStrategy ( modelNode ) ;
DefaultModelViewState state = new DefaultModelViewState ( publicType , ruleDescriptor , mutable , true ) ;
Strin... | Remove NodeBackedModelMap eager some more |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.