diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class EsOpenFilesNotification implements NotificationType {
STRING0 +
STRING1 +
STRING2 +
- NotificationHelper . linkToKnowledgeBase ( STRING3 , STRING4 ) ;
+ NotificationHelper . linkToKnowledgeBase ( STRING5 , STRING6 ) ;
private final Notification notification ; | Fix documentation link for EsOpenFilesNotification |
<nb> public class ProducteevSyncProvider extends SyncProvider < ProducteevTaskContainer
SINGLE
if ( idDashboard == ProducteevUtilities . DASHBOARD_NO_SYNC ) {
- if ( idTask != NUMBER0 )
- invoker . tasksDelete ( idTask ) ;
return ;
} | Don t delete tasks that are existing but marked do not sync |
<nb> public class HpackEncoder extends Hpack {
this . headersIterator = it ;
return State . UNDERFLOW ;
}
- boolean canIndex = indexFunction . shouldUseIndexing ( headerName , val ) ;
+ boolean canIndex = indexFunction . shouldUseIndexing ( headerName , val ) && ( headerName . length ( ) + val . length ( ) + ... | Don t add a value to the table if it is too big |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import static NAMESPACE ; | Added missing license header |
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
}
public void changeStatus ( Account account , Presence . Status status , String statusMessage ) {
- databaseBackend . insertPresenceTemplate ( new PresenceTemplate ( status , statusMessage ) ) ;
+ if ( ! statusMessage . isE... | don t create templates for empty status messages |
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMM... | Fix documentation for ACTION_SET_PROFILE_OWNER |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface ComponentModuleMetadataDetails extends ComponentModuleMetadata
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Component replacements improved the javadoc in one of the classes |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ActionBarPolicy {
}
public boolean showsOverflowMenuButton ( ) {
- return true ;
+ if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . KITKAT ) {
... | Revert overflow policy pre K |
<nb> public class StringUtil extends StringUtilRt {
}
COMMENT
+ COMMENT
+ COMMENT
+ public static boolean isBetween ( @ notnull String string , @ notnull String smallPart , @ notnull String bigPart ) {
+ final String s = string . toLowerCase ( ) ;
+ return s . startsWith ( smallPart . toLowerCase ( ) ) ... | add isBetween method |
<nb> public class SwitchUserProcessingFilter implements Filter , InitializingBean ,
SecurityContextHolder . getContext ( ) . setAuthentication ( targetUser ) ;
SINGLE
- httpResponse . sendRedirect ( httpResponse . encodeRedirectURL ( targetUrl ) ) ;
+ httpResponse . sendRedirect ( httpResponse . encodeRedirec... | added context path to redirect |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ SINGLE
+ @ timeoutsuite ( millis = NUMBER0 * TimeUnits . MINUTE )
public class Netty4RestIT extends ESClientY... | Temporarily increase Netty4RestIT timeout |
<nb> public class PluginClassloaderFactory {
SINGLE
. addInclusion ( STRING0 )
- SINGLE
+ SINGLE
. addInclusion ( STRING1 )
+ . addInclusion ( STRING2 )
+ . addInclusion ( STRING3 )
SINGLE
. addExclusion ( STRING4 ) ; | Fix compatibility of plugin classloader with some SonarSource internal libs |
<nb> public class AUC extends Func {
COMMENT
public AUC ( hex . ConfusionMatrix [ ] cms , float [ ] thresh , String [ ] domain ) {
aucdata = new AUCData ( ) . compute ( cms , thresh , domain , threshold_criterion ) ;
- computeGainsLift ( ) ;
}
private void computeGainsLift ( ) { | Don t compute Gains Lift table from AUC constructor that was given the CMs |
<nb> public abstract class WebSocket extends AtmosphereInterceptorWriter {
} else {
String data = null ;
if ( transform ) {
- data = new String ( transform ( b , NUMBER0 , length ) , r . getCharacterEncoding ( ) ) ;
+ data = new String ( transform ( b , offset , length ) , r . getCharacterEncoding ( ) ) ;
}... | Fix another bad typo |
<nb> public class ApplicationInfo extends PackageItemInfo implements Parcelable {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- public static final int FLAG_FORWARD_LOCK = NUMBER0 < < NUMBER1 ;
+ public static final int FLAG_FORWARD_LOCK = NUMBER0 < < NUMBER2 ;
COMMENT
COMMENT
... | Change FLAG_FORWARD_LOCK back to its original value to not break things |
<nb> public class AuthProcedures
}
@ deprecated
- @ procedure ( name = STRING0 , mode = DBMS )
+ @ procedure ( name = STRING0 , mode = DBMS , deprecatedBy = STRING1 )
public void changePasswordDeprecated ( @ name ( STRING2 ) String password ) throws InvalidArgumentsException , IOException
{
authSubject ... | Make use of new deprecatedBy in changePassword procedure |
<nb> public class InternalNioOutputBuffer extends AbstractOutputBuffer < NioChannel > {
if ( selector != null ) pool . put ( selector ) ;
}
if ( block ) bytebuffer . clear ( ) ; SINGLE
- this . total = NUMBER0 ;
return written ;
}
<nb> public class InternalNioOutputBuffer extends AbstractOutputBuffer < ... | Remove unused code |
<nb> public class GoModuleLibrariesInitializer implements ModuleComponent {
@ override
public Result visitFileEx ( @ notnull VirtualFile file ) {
for ( VirtualFile contentRoot : contentRoots ) {
- if ( file . equals ( contentRoot ) ) {
- LOG . info ( STRING0 + file . getPath ( ) ) ;
+ if ( VfsUtilCore . isA... | Do not add library for project root child |
<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
@ override
public void close ( boolean noSuspisiousCodeFound ) {
- if ( ! noSuspisiousCodeFound && ( myView == null || myView . isRerun ( ) ) ) return ;
+ if ( ! noSuspisiousCodeFound ) {
+ if ( myView . isRerun ( ) ) {
... | GlobalInspectionContextImpl must to reset view state |
<nb> class ProfilingHelper {
public void startProfiling ( ) {
try {
- final Method startMethod = myControllerClass . getDeclaredMethod ( STRING0 , long . class , String . class ) ;
+ final Method startMethod = myControllerClass . getDeclaredMethod ( STRING1 , String . class ) ;
if ( startMethod != null ) { ... | reflecting changes in profiling API |
<nb> public class OnBoardDepartPatternHop extends Edge implements OnboardEdge {
TripTimes tripTimes , ServiceDay serviceDay , int stopIndex , double positionInHop ) {
super ( from , to ) ;
this . stopIndex = stopIndex ;
+ this . serviceDay = serviceDay ;
this . tripTimes = tripTimes ;
this . positionInHop =... | Fix OnBoardDepartPatternHop constructor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class Holders {
public static ApplicationContext getApplicationContext ( ) {
for ( GrailsApplicationDiscoveryStrategy strategy : applicationDiscoveryStrategies... | fix failing test |
<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU
padLength = b [ NUMBER0 ] & NUMBER1 ;
}
+ SINGLE
Stream stream = getStream ( streamId ) ;
ByteBuffer dest = stream . getInputByteBuffer ( ) ;
synchronized ( dest ) { | Add a reminder |
<nb> public abstract class WebViewMapFragment extends Fragment implements AirMapInter
webViewSettings . setBuiltInZoomControls ( false ) ;
webViewSettings . setJavaScriptEnabled ( true ) ;
webViewSettings . setGeolocationEnabled ( true ) ;
-
- webView . getSettings ( ) . setAllowFileAccess ( false ) ;
+ web... | Also prevent content access |
<nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
for ( String s : execute ) {
bld . append ( s ) . append ( STRING0 ) ;
}
+ sendAlertToPebble ( bld . toString ( ) ) ;
if ( mTts != null && ! vrt . isMute ( ) ) {
if ( ttsRequests ++ == NUMBER0 )
requestAudioFocus ( ) ;
<nb> pub... | revert debug FC when route is finished |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
else {
final Dimension d = c . getPreferredSize ( ) ;
final MyScrollBar scrollBar = getVerticalScrollBar ( ) ;
- c . setBounds ( r . width - d . width - scrollBar . getWidth ( ) - NUMBER0 , NUMBER1 , d . width , d . height ) ... | Separate Use soft wraps option for the preview panel another cosmetic improvement |
<nb> public class PacketListener {
switch ( packet . getType ( ) ) {
case CONNECT : {
+ Namespace namespace = namespacesHub . get ( packet . getEndpoint ( ) ) ;
+ namespace . onConnect ( client ) ;
+ SINGLE
client . send ( packet ) ;
break ;
} | missed OnConnect namespace scope listener invocation fixed |
<nb> public class DOMBuilderTagVisitor implements TagVisitor {
COMMENT
COMMENT
protected void removeLastChildNodeIfEmptyText ( Node parentNode , boolean closedTag ) {
+ if ( parentNode == null ) {
+ return ;
+ }
+
Node lastChild = parentNode . getLastChild ( ) ;
if ( lastChild == null ) {
return ; | fixed issue when parent node is null |
<nb> public class EnglishGrammaticalRelations {
NounCompoundModifierGRAnnotation . class , MODIFIER , STRING0 , tregexCompiler ,
new String [ ] {
SINGLE
- STRING1 ,
+ SINGLE
+ STRING2 ,
STRING3 ,
STRING4 , SINGLE
} ) ;
<nb> public class EnglishGrammaticalRelations {
SINGLE
SINGLE
STRING5 ,
-... | Fix some conflicts between nn and poss |
<nb> public class LowMemoryDaemonExpirationStrategy implements DaemonExpirationStrate
public DaemonExpirationResult checkExpiration ( Daemon daemon ) {
long freeMem = memoryInfo . getFreePhysicalMemory ( ) ;
if ( freeMem < minFreeMemoryBytes ) {
- return new DaemonExpirationResult ( true , String . format ( STR... | Eliminate String format in LowMemoryDaemonExpirationStrategy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProxyAuthITest extends WithJetty {
}
SINGLE
- @ test public void
+ @ test @ ignore public void
can_use_external_pro... | Added external test to ignored |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class AsmBackedClassGenerator extends AbstractClassGenerator {
- private static final JavaMethod < ClassLoader , Class > DEFINE_CLASS_METHOD = JavaMethod . create ( ClassLoader . class , Class . class , STRING0 , String . class , byte [ ] . class , Integer . TYP... | Fixed checkstyle complaint |
<nb> public enum CompilationLevel {
options . collapseObjectLiterals = true ;
options . protectHiddenSideEffects = true ;
- SINGLE
+ SINGLE
options . removeClosureAsserts = true ;
- options . aliasKeywords = true ;
options . reserveRawExports = true ;
options . setRenamingPolicy (
VariableRenamingPo... | Turn off aliasing of keywords by default |
<nb> public class ClassInheritorsSearch extends ExtensibleQueryFactory < PsiClass , Clas
}
@ notnull
+ @ deprecated SINGLE
+ COMMENT
+ COMMENT
+ COMMENT
public static Query < PsiClass > search ( @ notnull final PsiClass aClass , @ notnull SearchScope scope , final boolean checkDeep , final boolean check... | deprecate dangerous and useless search checkInheritance method |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PathMappingSettings implements Cloneable {
}
public List < String > convertToRemote ( Collection < String > paths ) {
- List < String > result = Lists . newArrayList (... | remove unnecessary dependency |
<nb> class GraphDbInstance
registerLuceneDataSource ( STRING0 , clazz . getName ( ) ,
config . getTxModule ( ) , storeDir + STRING1 ,
config . getLockManager ( ) , luceneId , params ) ;
- clazz = Class . forName ( Config . LUCENE_FULLTEXT_DS_CLASS ) ;
+ }
+ catch ( ClassNotFoundException e )
+ { SINGLE
... | Separated LuceneDataSource and LuceneFulltextDataSource registration |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CommandLineRunner extends
ZipInputStream zip = new ZipInputStream ( input ) ;
Map < String , JSSourceFile > externsMap = Maps . newHashMap ( )... | Improve the parsing speed of the default externs |
<nb> public class DownloadService extends Service {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
private void updateReport ( ) {
SINGLE
<nb> public class DownloadService extends Service {
}
successfulDownloads ++ ;
} else {
- createReport = true ;
+ if ( status... | Exclude failed image downloads from download report |
<nb> public class XaLogicalLog
throws IOException
{
String name = fileName + STRING0 + txId ;
- File txFile = new File ( name ) ;
+ File txFile = new File ( storeDir , name ) ;
List < LogEntry > logEntryList = extractLogEntryList ( txId ) ;
writeOutLogEntryList ( logEntryList , txFile , true ) ;
Readabl... | Fixed a path issue with extracted transactions |
<nb> public class HttpConnection extends AbstractConnection implements Runnable , Http
if ( info == null )
{
if ( ! lastContent && BufferUtil . isEmpty ( content ) )
+ {
callback . succeeded ( ) ;
+ return ;
+ }
}
else
{ | Fixed INACTIVE race in IteratingCallback |
<nb> public final class ProxyManager {
return ListenerUtil . stopListening ( clientContext , request , id ) ;
}
- private class ClientProxyFuture {
+ private static class ClientProxyFuture {
volatile ClientProxy proxy ; | changed the inner class to static |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class MessageHeaders implements Map < String , Object > , Serializable {
+ public class MessageHeaders implements Map < String , Object > , Serializable {
private static final long serialVersionUID = NUMBER0 ; | Make MessageHeaders non final |
<nb> public class NeoStore extends AbstractStore
}
setRecord ( NUMBER0 , txId ) ;
SINGLE
- if ( lastCommittedTxIdSetter != null )
+ if ( lastCommittedTxIdSetter != null && ! isInRecoveryMode ( ) && txId ==
+ getLastCommittedTx ( ) + NUMBER1 )
{
lastCommittedTxIdSetter . setLastCommittedTxId ( txId ) ;
... | Fixed a problem with setting last committed tx id in recovery mode |
<nb> public abstract class FluidRegistry
{
if ( fluidBlocks == null )
{
- fluidBlocks = new BiMap < Block , Fluid > ( ) ;
+ fluidBlocks = HashBiMap . create ( ) ;
for ( Fluid fluid : fluids . values ( ) )
{
if ( fluid . canBePlacedInWorld ( ) && Block . blocksList [ fluid . getBlockID ( ) ] != null ) | Fix broken PR from vilml |
<nb> class Setter {
if ( datePicker != null ) {
Activity activity = activityUtils . getCurrentActivity ( false ) ;
if ( activity != null ) {
- activityUtils . getCurrentActivity ( false ) . runOnUiThread ( new Runnable ( )
+ activity . runOnUiThread ( new Runnable ( )
{
public void run ( )
{ | Use the existing activity |
<nb> public class AlfrescoContentUtil {
while ( m . find ( ) ) {
String imagePath = m . group ( NUMBER0 ) ;
- m . appendReplacement ( sb , STRING0 + getEndpointAddress ( )
- + imagePath + STRING1 + STRING0 ) ;
+ m . appendReplacement ( sb , STRING0 + getEndpointAddress ( ) +
+ STRING2 + imagePath + STRING... | remove leading alfresco from regex |
<nb> public class TextEditingTarget implements
}
}
+ @ suppresswarnings ( STRING0 ) SINGLE
private void doCommentUncomment ( String commentStart ,
String commentEnd )
{ | suppress isSpace deprecation warnings |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class PhantomJSDriver extends RemoteWebDriver implements TakesScreenshot {
COMMENT
+ COMMENT
+ COMMENT
... | add zero parameter constructor to java binding |
<nb> public class UTFEncoderDecoderTest extends HazelcastTestSupport {
}
@ test
- public void testIssue2674 ( ) throws Exception {
+ public void testIssue2674_multibyte_char_at_position_that_even_multiple_of_buffer_size ( ) throws Exception {
SerializationService serializationService = new SerializationServ... | test contain description in its name |
<nb> public class ConstructorExpression < T > extends ExpressionBase < T > implements Facto
break ;
}
}
- SINGLE
- if ( constructor . isVarArgs ( ) ) {
- providerChain = new VarArgsConstructorProvider ( providerChain ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
provided = true ;
}
return prov... | commented the call to varargsconstructorprovider |
<nb> public class DynamicServerListLoadBalancer < T extends Server > extends
COMMENT
protected void updateAllServerList ( List < T > ls ) {
SINGLE
- if ( serverListUpdateInProgress . compareAndSet ( false , true ) {
+ if ( serverListUpdateInProgress . compareAndSet ( false , true ) ) {
for ( T s : ls ) {
... | Fixing missing parenthesis |
<nb> public class CircleAnimatedCheckBox extends CheckBox {
private int pressedRingWidth = Screen . dp ( NUMBER0 ) ;
private int baseRingColor = Color . WHITE ;
private int baseBackColor = NUMBER1 ;
- private int selectedRingColor = NUMBER2 ;
+ private int selectedRingColor = NUMBER3 ;
private int selectedB... | recover circle checkbox selected stroke color |
<nb> public class ExpressionFormatter
@ override
protected String visitExpression ( Expression node , Void context )
{
- throw new UnsupportedOperationException ( STRING0 + node . getClass ( ) . getName ( ) ) ;
+ throw new UnsupportedOperationException ( String . format ( STRING1 , getClass ( ) . getName ( ) ... | Improve exception message |
<nb> public class KMeans extends ModelBuilder < KMeansModel , KMeansModel . KMeansParameter
while ( ncats != len ) {
while ( ncats < len && vecs [ ncats ] . isEnum ( ) ) ncats ++ ;
while ( len > NUMBER0 && ! vecs [ len - NUMBER1 ] . isEnum ( ) ) len -- ;
- if ( ncats < len - NUMBER1 ) { _train . swap ( ncats , ... | Remove validation frame from KMeans not meaningful |
<nb> public final class Bridge extends com . android . ide . common . rendering . api . Bridge {
COMMENT
COMMENT
COMMENT
- public static void prepareThread ( ) {
+ public synchronized static void prepareThread ( ) {
SINGLE
SINGLE
if ( Looper . myLooper ( ) == null ) {
<nb> public final class Bridge ex... | Synchronize access to the main looper |
<nb> public class LegacyBatchIndexApplier implements BatchTransactionApplier
}
catch ( InterruptedException e )
{
+ Thread . currentThread ( ) . interrupt ( ) ;
throw new IOException ( STRING0 + activeTransactionId +
STRING1 , e ) ;
} | Set interrupted flag on Thread when catching error |
<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 ;
+ imp... | handling exception during task execution |
<nb> public class TransportNetworkCache {
return null ;
}
+ CACHE_DIR . mkdirs ( ) ;
+
SINGLE
FileOutputStream fos = new FileOutputStream ( cacheLocation ) ;
InputStream is = tn . getObjectContent ( ) ;
<nb> public class TransportNetworkCache {
SINGLE
String filename = networkId + STRING0 + MavenV... | create directory when download cached graphs the intent of the last commit |
<nb> public class SystemEnvironment implements Serializable , ConfigDirProvider {
public static GoSystemProperty < String > GO_UPDATE_SERVER_URL = new GoStringSystemProperty ( STRING0 , STRING1 ) ;
public static GoSystemProperty < Boolean > GO_CHECK_UPDATES = new GoBooleanSystemProperty ( STRING2 , true ) ;
- p... | Turning off websocket based communication for this release |
<nb> public class ReaderPostDetailFragment extends Fragment
COMMENT
COMMENT
COMMENT
- private ReaderCommentAdapter mAdapter ;
+ private ReaderCommentAdapter mCommentAdapter ;
private ReaderCommentAdapter getCommentAdapter ( ) {
- if ( mAdapter == null ) {
+ if ( mCommentAdapter == null ) {
ReaderAct... | Renamed mAdapter to mCommentAdapter |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fix incorrect import |
<nb> public class Replacer {
. commitDocument ( FileDocumentManager . getInstance ( ) . getDocument ( containingFile . getVirtualFile ( ) ) ) ;
}
- final int parentOffset = elementParent . getTextOffset ( ) ;
+ final int parentOffset = elementParent . getTextRange ( ) . getStartOffset ( ) ;
CodeStyleManager... | SSR fix replace test |
<nb> public class YarnInstaller {
final String version =
new YarnExecutor ( executorConfig , Arrays . asList ( STRING0 ) , null ) . executeAndGetResult ( ) ;
- if ( version . equals ( yarnVersion ) ) {
+ if ( version . equals ( yarnVersion . replaceFirst ( STRING1 , STRING2 ) ) ) {
logger . info ( STRING3 ,... | Fix Yarn version comparison |
<nb> public final class ByteUtil {
}
public static long combineToLong ( int x , int y ) {
- return ( ( long ) x < < NUMBER0 ) | ( ( long ) y & NUMBER1 ) ;
+ return ( ( long ) x < < NUMBER0 ) | ( ( long ) y & NUMBER2 ) ;
}
public static int extractInt ( long value , boolean lowerBits ) { | Fixed ByteUtil combineToLong |
<nb> public class DownloadService extends Service {
COMMENT
private void cleanup ( ) {
- if ( new File ( feed . getFile_url ( ) ) . delete ( ) )
- if ( AppConfig . DEBUG )
- Log . d ( TAG , STRING0 ) ;
- else
- Log . e ( TAG , STRING1 ) ;
- feed . setFile_url ( null ) ;
+ if ( feed . getFile_url ( )... | Fixed potential nullpointer exception |
<nb> public interface Seq < T > extends Traversable < T > , Function1 < Integer , T > {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- static < T > Seq < T > tabulate ( int n , Function < ? super Integer , ? extends T > f ) {
- Objects .... | Remove tabulate and fill from Seq |
<nb> public class Planner {
geometry = null ;
}
+ COMMENT
leg = new Leg ( ) ;
itinerary . addLeg ( leg ) ;
<nb> public class Planner {
} else {
startWalk = - NUMBER0 ;
}
- leg . distance = edge . getDistance ( ) ;
+ leg . distance = FLOAT0 ;
Vertex fromv = graphEdge . getFromVertex ( ) ;
C... | make leg distances work |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DelayedRenewableTimeoutServiceTest
}
@ test
+ @ ignore ( STRING0 )
public void shouldNotTimeOutWhenStopped ( ) throws Throwable
{
SINGLE | Muting flaky test while fixing |
<nb> public class CursorLoader extends AsyncTaskLoader < Cursor > {
public void stopLoading ( ) {
if ( mCursor != null && ! mCursor . isClosed ( ) ) {
mCursor . close ( ) ;
- mCursor = null ;
}
+ mCursor = null ;
SINGLE
cancelLoad ( ) ; | Removing closed cursor on stop |
<nb> public class TraversalPath implements Path
SINGLE
SINGLE
SINGLE
- nodes = new LinkedList < Node > ( ) ;
- relationships = new LinkedList < Relationship > ( ) ;
+ LinkedList < Node > nodesList = new LinkedList < Node > ( ) ;
+ LinkedList < Relationship > relationshipsList = new LinkedList < Relationsh... | Fixed a potential bug regarding collecting the nodes relationships |
<nb> public abstract class AbstractInvokable {
COMMENT
COMMENT
COMMENT
- public final Environment getEnvironment ( ) {
+ SINGLE
+ public Environment getEnvironment ( ) {
return this . environment ;
} | Removed final identifier from AbstractInvokable getEnvironment |
<nb> public final class SimplePluginManager implements PluginManager {
Plugin plugin = registration . getPlugin ( ) ;
if ( plugin . isNaggable ( ) ) {
plugin . setNaggable ( false ) ;
+
+ String author = STRING0 ;
+ if ( plugin . getDescription ( ) . getAuthors ( ) . size ( ) > NUMBER0 ) {
+ author = plug... | Fix IIOB error when dealing with an incomplete YAML Nagging |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RosterUtil {
roster . removeRosterListener ( rosterListener ) ;
}
}
+
+ public static void askForSubscriptionIfRequired ( Roster ros... | Add RosterUtil askForSubscriptionIfRequired Roster BareJid |
<nb> public interface Message {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
boolean removeHeaders ( String pattern ) ; | Added removeHeaders DSL |
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec
private final int maxChunkSize ;
protected volatile HttpMessage message ;
private volatile ChannelBuffer content ;
- private volatile int headerSize ;
private volatile long chunkSize ;
+ private int headerSize ;
COMM... | Fixed incorrect state management for HTTP header size |
<nb> public final class VpTreeNode < T extends VpTreePoint < T > > {
node . leftRadius = medianDistance ;
node . left = buildTreeNode ( points . subList ( NUMBER0 , leftPoints . size ( ) ) ) ;
- node . right = buildTreeNode ( points . subList ( leftPoints . size ( ) , points . size ( ) ) ) ;
+ node . right = ... | fix barnes hut infinite loop |
<nb> public class JSONReader implements Closeable {
}
}
+ public int peek ( ) {
+ if ( context == null ) {
+ throw new JSONException ( STRING0 ) ;
+ }
+
+ return parser . getLexer ( ) . token ( ) ;
+ }
+
public void close ( ) {
IOUtils . close ( parser ) ;
} | Expose peek method to handle reading object fields that may be null similar to GSON |
<nb> public class LocalFolder extends Folder < LocalMessage > implements Serializable {
db . update ( STRING0 , cv , STRING1 , new String [ ] { Long . toString ( oldMessageId ) } ) ;
}
} catch ( Exception e ) {
- throw new MessagingException ( STRING2 , e ) ;
+ throw new MessagingException ( STRING3 + message... | Add the subject of the email to the debug when failing to sync |
<nb> public abstract class BaseStatusBar extends SystemUI implements
dismissKeyguardThenExecute ( new OnDismissAction ( ) {
public boolean onDismiss ( ) {
if ( mIsHeadsUp ) {
- mHeadsUpNotificationView . clear ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ mHeadsUpNotificationView . releaseAndClose ( ) ;... | Don t drop HUN notification when clicked |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class LargestLimitedMemoryCache extends LimitedMemoryCache < String , Bitmap > {
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
private final ... | Correct some comment of LargestLimitedMemoryCache |
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add DGM indexed methods javadoc typo |
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run
SINGLE
if ( intentsToRemove != null ) {
for ( PendingIntent i : intentsToRemove ) {
- ProximityAlert alert = mProximityAlerts . remove ( i ) ;
+ ProximityAlert alert = mProximityAlerts . get ( i ) ;
mProximitiesEntered .... | Remove ProximityAlerts Receiver when last ProximityAlert expires |
<nb> import NAMESPACE ;
public class TimeBoundaryQuery extends BaseQuery < Result < TimeBoundaryResultValue > >
{
public static final Interval MY_Y2K_INTERVAL = new Interval (
- new DateTime ( Integer . MIN_VALUE ) ,
- new DateTime ( Integer . MAX_VALUE )
+ new DateTime ( Long . MIN_VALUE ) ,
+ new DateTi... | revert last commit |
<nb> import static NAMESPACE ;
public abstract class TokenSets {
public static final TokenSet COMMENTS_TOKEN_SET = TokenSet . create (
+ mSH_COMMENT ,
mSL_COMMENT ,
mML_COMMENT ,
GROOVY_DOC_COMMENT | add mSH_COMMENT to comments set |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a javadoc to ResourceFilter |
<nb> public class WindowManagerService extends IWindowManager . Stub
+ STRING0 + finished + STRING1 + gotFirstWindow
+ STRING2 + eventDispatching + STRING3 + timeToSwitch
+ STRING4 + wasFrozen + STRING5 + focusPaused
- + STRING6 + mCurrentFocus + STRING7 ;
+ + STRING6 + curFocus + STRING7 ;
}
} ;
privat... | Print the snapshot focus rather than the Window Manager s actual current focus |
<nb> public class CommandLineClient extends Client {
out . println ( STRING0 ) ;
out . println ( STRING1 ) ;
out . println ( ) ;
+ out . println ( STRING2 ) ;
+ out . println ( STRING3 ) ;
+ out . println ( STRING4 ) ;
+ out . println ( STRING5 ) ;
+ out . println ( ) ;
out . close ( ) ;
System . ... | add a minimal documentation for the log command in the usage message |
<nb> public abstract class MixinNetHandlerPlayServer {
+ STRING0
+ STRING1
+ STRING2
- + STRING3 ) )
+ + STRING3 ) , remap = false )
public PlayerInteractEvent onFirePlayerInteractEvent ( EntityPlayer player , PlayerInteractEvent . Action action , World world , BlockPos pos , EnumFacing face ) {
PlayerInt... | Fix mixin remap error during build |
<nb> public class ConsoleService {
public void moveConsoleArtifacts ( LocatableEntity locatableEntity ) {
try {
File from = chooser . temporaryConsoleFile ( locatableEntity ) ;
+ from . createNewFile ( ) ; SINGLE
File to = chooser . findArtifact ( locatableEntity , getConsoleOutputFolderAndFileName ( ) ) ;
... | Cancelled jobs do not initialize the temporary console file |
<nb> public class SpringBase64DataFormatDefaultsTest extends SpringBase64DataFormatTe
@ override
protected AbstractApplicationContext createApplicationContext ( ) {
return new ClassPathXmlApplicationContext (
- STRING0 ) ;
+ STRING1 ) ;
}
@ test
<nb> public class SpringBase64DataFormatLineEndingsTest ... | Fixed test with problems with upper lower case name on path |
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
try {
initalOpenStreamSend . checkIfSuccessOrWait ( ) ;
int eventType = parser . getEventType ( ) ;
- while ( ! done ) {
+ outerloop: while ( ! done ) {
switch ( eventType ) {
case XmlPullParser . START_TAG :
final String name = parser... | Fix END_DOCUMENT handling in XMPPTCPConnection |
<nb> public class MultifieldAttachmentMapperTests extends AttachmentUnitTestCase {
String forcedContentType = randomAsciiOfLength ( NUMBER0 ) ;
String bytes = Base64 . encodeBytes ( originalText . getBytes ( StandardCharsets . ISO_8859_1 ) ) ;
- threadPool = new ThreadPool ( STRING0 ) ;
MapperService mapper... | Fix test in mapper attachments plugin |
<nb> public class FaviconPage extends BasePage {
. getResponse ( ) ;
response . setLastModifiedTime ( Time . millis ( starupBean
. getStartupTime ( ) ) ) ;
-
+ response . setContentType ( STRING0 ) ;
long expiresAfter = TimeUnit . DAYS . toMillis ( NUMBER0 ) ;
response . setHeader (
HttpHeaders . EXPIRE... | set content type of favicon |
<nb> class ItemManaged {
}
void cancelAllRequests ( ) {
- mItemManager . cancelAllRequests ( ) ;
+ if ( mItemManager != null ) {
+ mItemManager . cancelAllRequests ( ) ;
+ }
}
ListAdapter getWrappedAdapter ( ) { | library Account for null ItemManager case in ItemManaged |
<nb> public class ServerStoredContactListIcqImpl
ContactGroupIcqImpl newParent )
{
List contactsToMove = new ArrayList ( ) ;
- contactsToMove . add ( contact ) ;
+
+ contactsToMove . add ( contact . getJoustSimBuddy ( ) ) ;
buddyList . moveBuddies ( contactsToMove ,
newParent . getJoustSimSourceGroup ... | Added set nickname even if null from server |
<nb> public abstract class SystemTestBase {
log . error ( STRING0 , e ) ;
}
- zk . close ( ) ;
+ if ( zk != null ) {
+ zk . close ( ) ;
+ }
listThreads ( ) ;
} | do not assume setup succeeded |
<nb> public class FreeMarkerAutoConfiguration {
}
@ configuration
- @ conditionalonclass ( Servlet . class )
@ conditionalonnotwebapplication
public static class FreeMarkerConfiguration implements EnvironmentAware {
<nb> public class FreeMarkerAutoConfiguration {
}
@ bean
- @ conditionalonbean (... | Fix test in FreeMarker support |
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
mStatusBarWindow . setSystemUiVisibility ( NUMBER0 ) ;
mKeyguardStatusView . setVisibility ( View . GONE ) ;
mNotificationPanelHeader . setVisibility ( View . VISIBLE ) ;
- mKeyguardSettingsFlipButton . setVisibility ( View . GONE ) ; ... | Fix NPE if showKeyguard is not called before hideKeyguard |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Added license header |
<nb> public class IdeEventQueue extends EventQueue {
component - > component instanceof JTable || component instanceof JTree ) ;
if ( owner instanceof JTable && ( ( JTable ) owner ) . isEditing ( ) ) {
- SINGLE
- SwingUtilities . invokeLater ( ( ) - > { ( ( JTable ) owner ) . editingCanceled ( null ) ; } ) ; ... | Fix write action allowed assertion |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.