diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class HostAndPort implements Serializable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public String getHostText ( ) { | Add a method to Uri that allows us to get the port via HostAndPort |
<nb> public abstract class OStringSerializerHelper {
else if ( insideLinkPart == NUMBER0 && c == ORID . SEPARATOR )
SINGLE
insideLinkPart = NUMBER1 ;
- else if ( insideLinkPart == NUMBER1 && c != STRING0 && Character . isDigit ( c ) )
+
+ if ( insideLinkPart > NUMBER2 && c != STRING0 && ! Character . isDigi... | Fixed issue on LINKMAP |
<nb> public class ReplacementServiceDirectImageImpl
COMMENT
COMMENT
public static final String URL_PATTERN =
- STRING0 ;
+ STRING1 ;
COMMENT
COMMENT | Fix the replacement for direct image links |
<nb> public class ScriptTemplateView extends AbstractUrlBasedView {
private static final String DEFAULT_RESOURCE_LOADER_PATH = STRING0 ;
+ private static final ThreadLocal < ScriptEngine > engineHolder =
+ new NamedThreadLocal < ScriptEngine > ( STRING1 ) ;
- private final ThreadLocal < ScriptEngine > eng... | Limit the number of ScriptEngine instances to the number of threads |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ gwtcompatible
+ @ gwtcompatible ( emulated = true )
public class ImmutableMultimapTest extends TestCase {
public void testBuilder_withImmutableEntry ( ) {
<nb> public class LinkedHashMultimapTest extends AbstractSetMultimapTest {
}
} . test ( ) ;... | Add Google internal memory consumption tests for all top level Multimap implementation types |
<nb> public class SitemapResource {
if ( mapping . getCmd ( ) . startsWith ( STRING0 ) && mapping . getCmd ( ) . endsWith ( STRING0 ) ) {
mappingBean . command = mapping . getCmd ( ) . substring ( NUMBER0 , mapping . getCmd ( ) . length ( ) - NUMBER0 ) ;
}
- }
+ else {
+ mappingBean . command = mapping . ge... | Add mappingBean command if not surrounded by quotes |
<nb> public class GenericConversionService implements ConversionService , ConverterReg
SINGLE
private GenericConverter . ConvertiblePair getRequiredTypeInfo ( Object converter , Class < ? > genericIfc ) {
- Class [ ] args = GenericTypeResolver . resolveTypeArguments ( converter . getClass ( ) , genericIfc ) ;
... | removed generic warning |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class InProcessCompilerDaemonFactory implements CompilerDaemonFactory {
FilteringClassLoader loggingClassLoader = classLoaderFactory . createFilteringClassLoader ... | Allow Logger and LogLevel through in logging class loader of InProcessCompilerDaemonFactory to fix some casting errors |
<nb> public class DatePickerDialog extends DialogFragment implements
private void setToNearestDate ( Calendar calendar ) {
if ( selectableDays != null ) {
- int distance = Integer . MAX_VALUE ;
+ long distance = Long . MAX_VALUE ;
+ Calendar currentBest = calendar ;
for ( Calendar c : selectableDays ) {
... | Fixed a bug where a date would not be properly rounded to the nearest acceptable value |
<nb> public class ActionBarContainer extends FrameLayout {
final int childCount = getChildCount ( ) ;
for ( int i = NUMBER0 ; i < childCount ; i ++ ) {
final View child = getChildAt ( i ) ;
+ if ( child == mTabContainer ) {
+ continue ;
+ }
final LayoutParams lp = ( LayoutParams ) child . getLayoutParams ... | Add a missing condition when checking measurement for ActionBarContainer |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
@ eventlistener
<nb> public @ interface TransactionalEventListener {
COMMENT
COMMENT
COMMENT
- @ aliasfor ( STRING0 )
+ @ aliasfor ( annotation = ... | Use implicit aliases in TransactionalEventListener |
<nb> public class OrbitStage implements Startable
try
{
SINGLE
- Class . forName ( STRING0 ) . newInstance ( ) ;
+ Class . forName ( STRING0 ) ;
}
catch ( Exception ex )
{
<nb> public class OrbitContainer
try
{
SINGLE
- Class . forName ( STRING0 ) . newInstance ( ) ;
+ Class . forName ( STRI... | Correcting the await initialization |
<nb> public class WindowManagerService extends IWindowManager . Stub
SINGLE
SINGLE
- boolean assignLayers = false ;
-
- if ( imMayMove ) {
- if ( moveInputMethodWindowsIfNeededLocked ( false ) || toBeDisplayed ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- assignLayers = true ;
- }
+ i... | Call assignLayersLocked when InputMethod is moved |
<nb> public class DefaultGroovyMethods {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static void eachFileRecurse ( File self , Closure closure ) {
+ File [ ] files = self . listFiles ( ) ;
+ for ( int i = NUMBER0 ; i < files . length ; i ++ ) {
+ if ( files [... | added File eachFileRecurse |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
String [ ] suggestions = suggestionInfo . suggestionSpan . getSuggestions ( ) ;
suggestions [ suggestionInfo . suggestionIndex ] = originalText ;
+ SINGLE
+ if ( ! TextUtils . isEmpty (
+ suggestionInfo . suggestionSpan ... | EditText notifies the IME when a suggestion is picked |
<nb> public class ODocumentHelper {
return null ;
final ODocument doc = ( ( ODocument ) iCurrent . getRecord ( ) ) ;
+ if ( doc == null ) { SINGLE
+ return null ;
+ }
doc . checkForFields ( iFieldName ) ;
ODocumentEntry entry = doc . _fields . get ( iFieldName ) ;
return entry != null ? entry . value ... | Fix null pointer in case of broken link |
<nb> final class RollupStats extends Iced {
SINGLE
volatile long _naCnt ; SINGLE
- double _mean , _sigma ; SINGLE
+ double _mean , _sigma ; SINGLE
long _rows , SINGLE
_nzCnt , SINGLE
_size , SINGLE | Fix description of rollupstats numbers |
<nb> public abstract class Recognizer < Symbol , ATNInterpreter extends ATNSimulator > {
public abstract ATN getATN ( ) ;
- public ATNInterpreter getInterpreter ( ) { return _interp ; }
+ public ATNInterpreter getInterpreter ( ) {
+ return _interp ;
+ }
+
+ public void setInterpreter ( ATNInterpreter ... | Add Recognizer setInterpreter |
<nb> public class ExternalDiffSettingsPanel {
updateEnabledEffect ( ) ;
}
} ) ;
+ myMergeEnabled . getModel ( ) . addActionListener ( new ActionListener ( ) {
+ @ override
+ public void actionPerformed ( ActionEvent e ) {
+ updateEnabledEffect ( ) ;
+ }
+ } ) ;
}
@ notnull | update buttons state on toggling enable merge checkbox |
<nb> public class VoldemortAdminTool {
+ STRING0 + MetadataStore . REBALANCING_SOURCE_CLUSTER_XML + STRING0
+ MetadataStore . REBALANCING_STEAL_INFO + STRING1 ) ;
stream . println ( STRING2 ) ;
+ stream . println ( STRING3 ) ;
+ stream . println ( STRING4 ) ;
stream . println ( ) ;
stream . println ( STRI... | Adding help message for show routing plan |
<nb> public class SqlTaskExecution
checkQueryResults ( results ) ;
}
-
- taskOutput . finish ( ) ;
}
catch ( InterruptedException e ) {
Thread . currentThread ( ) . interrupt ( ) ;
<nb> public class SqlTaskExecution
taskOutput . queryFailed ( e ) ;
throw Throwables . propagate ( e ) ;
}
+ fina... | Move finish to finally block |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
@ singleton
public class OrbitStage implements Startable
{
- @ config ( STRING0 )
+ @ config ( STRING0 )
private String clusterName ;
@ config ( STRING1 )
<nb> public class OrbitStage implem... | Adding OrbitStage runtimeIdentity |
<nb> public class Conversation extends AbstractEntity {
private transient String otrFingerprint = null ;
- private int nextMessageEncryption = Message . ENCRYPTION_NONE ;
+ private int nextMessageEncryption = - NUMBER0 ;
private String nextMessage ;
private transient MucOptions mucOptions = null ;
<nb... | improved next encryption selection |
<nb> public class ProgressDownload extends View {
mBubbleAngle = - NUMBER0 ;
}
if ( Math . abs ( speed ) < NUMBER1 ) {
- SINGLE
-
mSpeedAngle -= mBubbleAngle / NUMBER0 ;
mSpeedAngle *= FLOAT0 ;
}
<nb> public class ProgressDownload extends View {
ObjectAnimator anim = ObjectAnimator . ofFloat ( thi... | adjust speed for single animation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SingleUDPNettyServerBootstrapFactory extends ServiceSupport impleme
datagramChannel = ( DatagramChannel ) connectionlessBootstrap . bind ( hostA... | Avoid the potential NPE |
<nb> public class SuppressWarningsHolder
COMMENT
COMMENT
COMMENT
- private static final ThreadLocal < List < Entry > > ENTRIES = new ThreadLocal < > ( ) ;
+ private static final ThreadLocal < List < Entry > > ENTRIES = new ThreadLocal < List < Entry > > ( ) {
+ @ override
+ protected List < Entry > initia... | Move initialization of suppressions list in SuppressWarningsHolder |
<nb> public class Parse {
private Context context ;
private String applicationId ;
private String clientKey ;
- private String server = STRING0 ;
+ private String server = STRING1 ;
private boolean localDataStoreEnabled ;
private List < ParseNetworkInterceptor > interceptors ;
<nb> public class ParseR... | Fix default parse server url |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class MySqlPerfMain {
public static void main ( String [ ] args ) throws Exception {
+ System . out . println ( System . getProperty ( STRING0 ) + STRING1 + System . getProp... | improve benchmark test |
<nb> public class GrizzlyServer {
COMMENT
COMMENT
HttpHandler handler = ContainerFactory . createContainer ( HttpHandler . class , rc , iocFactory ) ;
- httpServer . getServerConfiguration ( ) . addHttpHandler ( handler , STRING0 ) ;
+ httpServer . getServerConfiguration ( ) . addHttpHandler ( handler , STRIN... | deploy otp api to otp |
<nb> public class FeedParser {
fetchedFeed . setTopic ( findSelf ( rss ) ) ;
feed . setUrl ( feedUrl ) ;
feed . setLink ( rss . getLink ( ) ) ;
- feed . setLastPublishedDate ( rss . getPublishedDate ( ) ) ;
+ feed . setLastPublishedDate ( validateDate ( rss . getPublishedDate ( ) ) ) ;
List < SyndEntry > it... | validate the date |
<nb> public class PhoneStateChangedReceiver extends BroadcastReceiver {
Calls . DATE + STRING0
) ;
try {
+ if ( calls == null )
+ return ;
if ( calls . moveToFirst ( ) ) {
int numberIndex = calls . getColumnIndex ( Calls . NUMBER ) ;
String number = calls . getString ( numberIndex ) ;
<nb> public clas... | Resolve a null pointer in PhoneStateChangedReceiver |
<nb> public class AndroidDebugRunner extends DefaultProgramRunner {
devices . get ( NUMBER0 ) != oldDevices [ NUMBER0 ] ) {
return null ;
}
+ oldProcessHandler . detachIsDefault ( ) ;
state . setTargetDevices ( devices . toArray ( new IDevice [ devices . size ( ) ] ) ) ;
state . setConsole ( oldConsole ) ; ... | reset tab for tests detach old process |
<nb> public class XBinder extends XHook {
SINGLE
SINGLE
public static List < String > cBlackClassName = Arrays . asList ( new String [ ] {
+ STRING0 , SINGLE
STRING1 , SINGLE
STRING2 ,
STRING3 , SINGLE | Updated IPC exceptions |
<nb>
+ COMMENT
+ COMMENT
+ 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... | Add missing Apache license header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
public class BytecodeToolwindow extends JPanel {
private static final int UPDATE_DELAY = NUMBER0 ;
<nb> public class BytecodeToolwindow extends JPanel {
AnalyzingUtils . checkForSyntacticErrors ( ... | making code window to show full stacktrace in case of error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | organized imports in framework method |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FieldCriteria extends AbstractCriteria {
}
SINGLE
- if ( op == FilterOperator . ELEMENT_MATCH && mappedValue instanceof DBObject ) {
+ if ( op == FilterOperator . ELEMENT_MA... | Don t remove a field from a list |
<nb> public class OracleQuery extends AbstractSQLQuery < OracleQuery > {
public OracleQuery ( Connection conn , SQLTemplates templates ) {
this ( conn , templates , new DefaultQueryMetadata ( ) ) ;
}
+
+ public OracleQuery ( Connection conn , Configuration configuration ) {
+ super ( conn , configuration , ... | added additional OracleQuery constructors |
<nb> public class DefaultExecController implements ExecController {
} . run ( ) ;
} catch ( Throwable e ) {
onExecFinish . get ( ) . clear ( ) ;
- contextSupplierThreadLocal . remove ( ) ;
ExecException . wrapAndForward ( getContext ( ) , e ) ;
+ contextSupplierThreadLocal . remove ( ) ;
}
try { | Unbind the context supplier after handling the exception |
<nb> public class FileProducerChmodOptionTest extends ContextTestSupport {
fail ( STRING0 ) ;
} catch ( Exception e ) {
assertTrue ( STRING1 + e . getClass ( ) . getCanonicalName ( ) , e instanceof FailedToCreateRouteException ) ;
- assertTrue ( STRING2 + e . getMessage ( ) + STRING3 , e . getMessage ( ) . ends... | Fixing a unit test that expects a certain failure message for invalid chmod strings |
<nb> public class MultiModel implements IModel
@ override
public Pair < IBakedModel , Matrix4f > handlePerspective ( TransformType cameraTransformType )
{
- if ( transforms . isEmpty ( ) ) return Pair . of ( this , null ) ;
+ if ( transforms . isEmpty ( ) ) return Pair . < IBakedModel , Matrix4f > of ( this ,... | Fixed another generic issue in MultiModel |
<nb> public class JwtAccessTokenConverter implements TokenEnhancer , AccessTokenConver
OAuth2RefreshToken refreshToken = result . getRefreshToken ( ) ;
if ( refreshToken != null ) {
DefaultOAuth2AccessToken encodedRefreshToken = new DefaultOAuth2AccessToken ( accessToken ) ;
+ encodedRefreshToken . setValue ( r... | Copy refresh token value correctly in JwtAccessTokenConverter |
<nb> public class HttpMessageConvertersAutoConfiguration {
@ bean
@ conditionalonmissingbean
public StringHttpMessageConverter stringHttpMessageConverter ( ) {
- return new StringHttpMessageConverter ( this . encodingProperties . getCharset ( ) ) ;
+ StringHttpMessageConverter converter = new StringHttpMessag... | Disable Accept Charset Header in String converter |
<nb> final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
String name = parseName ( rawName [ NUMBER0 ] ) ;
String pronunciation = matchSingleDoCoMoPrefixedField ( STRING0 , rawText , true ) ;
String [ ] phoneNumbers = matchDoCoMoPrefixedField ( STRING1 , rawText , true ) ;
- String em... | Made a small change to allow discovery of multiple email addresses within a Docomo MECARD |
<nb> public class BottomBar extends LinearLayout implements View . OnClickListener , Vie
public void setDefaultTabPosition ( int defaultTabPosition ) {
if ( isComingFromRestoredState ) return ;
- int tabCount = getTabCount ( ) ;
-
- if ( tabCount == NUMBER0 || defaultTabPosition > tabCount - NUMBER1 || defa... | Reusing a function already defined instead of repeating ourselves |
<nb> public class Source implements InsertSourceHandler ,
@ override
public void onSuccess ( CodeBrowserEditingTarget target )
{
+ target . showFunction ( event . getFunction ( ) ) ;
if ( event . getDebugPosition ( ) != null )
{
- target . showFunction ( event . getFunction ( ) ) ;
highlightDebugBrowser... | improve source viewer tab behavior |
<nb> public class ModelMetricsClustering extends ModelMetricsUnsupervised {
@ override
public double [ ] perRow ( double [ ] preds , float [ ] dataRow , Model m ) {
assert m instanceof ClusteringModel ;
- if ( Double . isNaN ( preds [ NUMBER0 ] ) ) return preds ; SINGLE
- if ( Float . isNaN ( dataRow [ NUMBER... | Fix KMeans perRow logic no point in lookin at actuals vs predicted |
<nb> public class ProjectAssetManager extends DesktopAssetManager {
}
}
+ @ override
+ public void setAssetEventListener ( AssetEventListener listener ) {
+ throw new UnsupportedOperationException ( STRING0 ) ;
+ }
+
private void prepAssetEventListeners ( ) {
- setAssetEventListener ( new AssetEvent... | throw exception when trying to set AssetEventListener on ProjectAssetManager use addEventListener |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests
logger . info ( STRING0 ) ;
cluster ( ) . stopRandomNode... | Fix possible race condition in the restoreIndexWithMissingShards test |
<nb> public class JsonAsserterImpl implements JsonAsserter {
@ override
public < T > JsonAsserter assertEquals ( String path , T expected , String message ) {
- return null ; SINGLE
+ return assertThat ( path , equalTo ( expected ) , message ) ;
}
COMMENT | added implementation for assertEquals String path T expected String message |
<nb> public class FastAdapterDialog < Item extends IItem > extends AlertDialog {
public FastAdapterDialog < Item > withFastItemAdapter ( @ nonnull FastItemAdapter < Item > fastItemAdapter ) {
this . mFastItemAdapter = fastItemAdapter ;
- mFastItemAdapter . setHasStableIds ( false ) ;
return this ;
}
<nb... | FastAdapterDialog should use stable ids |
<nb> public class DiagnosticGroups {
+ STRING0
+ STRING1
+ STRING2
- + STRING3
+ + STRING4
+ STRING5
+ STRING6
+ STRING7
<nb> public class DiagnosticGroups {
DiagnosticGroups . registerGroup ( STRING8 ,
JsMessageVisitor . MESSAGE_DUPLICATE_KEY ) ;
+ public static final DiagnosticGroup MESSAGE_... | Add DiagnosticGroup for MESSAGE_HAS_NO_DESCRIPTION |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LazyClassMemberScope extends AbstractLazyMemberScope < LazyClassDescr
@ notnull
private static final Set < ClassKind > GENERATE_CONSTRUCTORS_FOR =
- EnumSet . of ( ClassKind .... | Profiling shows that ImmutableSet is faster than EnumSet in this case |
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
disconnect ( account , false ) ;
}
} ) . start ( ) ;
- cancelWakeUpCall ( account . getUuid ( ) . hashCode ( ) ) ;
}
}
Log . d ( Config . LOGTAG , STRING0 ) ; | removed unused call to cancel events |
<nb> public class ZygoteInit {
preloadClasses ( ) ;
preloadResources ( ) ;
preloadOpenGL ( ) ;
+ preloadSharedLibraries ( ) ;
SINGLE
SINGLE
WebViewFactory . prepareWebViewInZygote ( ) ;
Log . d ( TAG , STRING0 ) ;
}
+ private static void preloadSharedLibraries ( ) {
+ Log . i ( TAG , STRING1 ) ;... | Add zygote preloading of shared libraries |
<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... | we don t normally put icons onto buttons |
<nb> public class SSLHostConfig {
SINGLE
for ( String value : input . split ( STRING0 ) ) {
String trimmed = value . trim ( ) ;
- SINGLE
+ SINGLE
if ( trimmed . length ( ) > NUMBER0 ) {
if ( trimmed . charAt ( NUMBER1 ) == STRING1 ) {
trimmed = trimmed . substring ( NUMBER0 ) . trim ( ) ; | Fix another typo in comment |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
@ do... | Allow NonBlocking to be used to indicate that function arguments are allowed to be async |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class CodegenTestCase extends UsefulTestCase {
protected static void assertIsCurrentTime ( long returnValue ) {
long cu... | Increased tolerated time difference for codegen tests relying on current time |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class Buffer implements ReadableByteChannel , WritableByteChannel {
+ public class Buffer implements ReadableByteChannel , WritableByteChannel {
COMMENT
COMMENT | Removed final keyword from class Buffer to fix unit test |
<nb> public class LdapExtPasswordCachingTestCase {
checkPrincipal ( webAppURL , STRING0 ) ;
assertEquals ( STRING1 , NUMBER0 , passwordProvider . readFileCounter ( ) ) ;
-
- long WAIT_2 = NUMBER1 ;
- Thread . sleep ( WAIT_2 ) ;
-
checkPrincipal ( webAppURL , STRING0 ) ;
assertEquals ( STRING2 , NUMBER... | Fix intermittent failures in LdapExtPasswordCachingTestCase |
<nb> public final class Main implements ActionListener {
private static final String HTML_FONT_END = STRING0 ;
private static final Icon SYSTEM_TRAY_ICON = new ImageIcon ( STRING1 ) ;
+ private static final String SYSTEM_TRAY_TOOLTIP = STRING2 ;
private static final String WINDOW_ICON_URL = STRING1 ;
privat... | add tool tip for tray icon |
<nb> public class TvStreamConfig implements Parcelable {
@ override
public String toString ( ) {
- StringBuilder b = new StringBuilder ( NUMBER0 ) ;
- b . append ( STRING0 ) ;
- b . append ( STRING1 ) . append ( mStreamId ) . append ( STRING2 ) ;
- b . append ( STRING3 ) . append ( mType ) . append ( STRI... | Replace StringBuffer with String |
<nb> public final class Settings
Function < Function < String , String > , String > defaultLookup ;
if ( defaultValue != null )
{
+ SINGLE
+ SINGLE
+ SINGLE
SINGLE
- if ( defaultValue . equals ( MANDATORY ) )
+ if ( defaultValue == MANDATORY ) SINGLE
{
defaultLookup = mandatory ( valueLookup ) ;
... | Restore the ability to have mandatory as a config default value |
<nb> public class NotificationSettingsIconRow extends FrameLayout implements View . OnC
return ;
}
final boolean isRtl = mParent . isLayoutRtl ( ) ;
- final float left = isRtl ? - ( mParent . getWidth ( ) - mHorizSpaceForGear ) : NUMBER0 ;
- final float right = isRtl ? NUMBER0 : ( mParent . getWidth ( ) - mHo... | Fix gear not showing on left hand side of notification |
<nb> public class LocalDiffAwareness implements DiffAwareness {
} else if ( kind == StandardWatchEventKinds . ENTRY_DELETE ) {
createdFilesAndDirectories . remove ( path ) ;
deletedOrModifiedFilesAndDirectories . add ( path ) ;
- if ( watchKeyToDirBiMap . containsValue ( path ) ) {
+ WatchKey deletedDirectory... | Unregister previously registered directories when they are deleted |
<nb> public final class ByteChunk implements Cloneable , Serializable {
SINGLE
int srcEnd = srcOff + srcLen ;
+ mainLoop:
for ( int i = myOff + start ; i <= ( end - srcLen ) ; i ++ ) {
if ( buff [ i ] != first ) continue ;
SINGLE
int myPos = i + NUMBER0 ;
for ( int srcPos = srcOff + NUMBER0 ; srcPos <... | Fix a bug in ByteChunk indexOf String |
<nb> public class Boot extends ClassLoader {
public static void main ( String [ ] args ) throws Exception { _init . boot ( args ) ; }
SINGLE
public static void main ( Class main , String [ ] args ) throws Exception {
- weavePackage ( main . getPackage ( ) . getName ( ) ) ;
+ String [ ] packageNamesToWeave = {... | Add one more version of main that lets the user pass in packageNamesToWeave |
<nb> public class RequestManager implements LifecycleListener {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
+ @ deprecated
public DrawableTypeRequest < URL > load ( URL url ) {
return loadGeneric ( url ) ;
}
<nb> public class RequestManager implements LifecycleListene... | Deprecate load URL |
<nb> public class GLM2 extends Job . ModelJobWithoutClassificationField {
assert _xvals [ i ] . _lastResult . _glmt . _val != null : LogInfo ( STRING0 ) ;
}
_iter = _xvals [ NUMBER0 ] . _iter ;
+ thresholds = _xvals [ NUMBER0 ] . thresholds ;
_lastResult = ( IterationInfo ) pgs . _glms [ NUMBER0 ] . _lastResu... | make new auc computation work for cross validation |
<nb> public final class ArrayMap < K , V > implements Map < K , V > {
}
private ArrayMap ( boolean immutable ) {
- mHashes = EmptyArray . INT ;
+ SINGLE
+ SINGLE
+ SINGLE
+ mHashes = immutable ? EMPTY_IMMUTABLE_INTS : EmptyArray . INT ;
mArray = EmptyArray . OBJECT ;
mSize = NUMBER0 ;
} | Make ArrayMap EMPTY immutable |
<nb> public class Node extends ClusterEntity {
private BufferClasses bufferClasses ;
private JournalInfo journalInfo ;
- COMMENT
- COMMENT
- this ( null , null , null , r ) ;
- COMMENT
-
@ assistedinject
public Node ( ApiClient api ,
Input . Factory inputFactory , | Remove commented out constructor in Node class |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class MainController implements Choreographer . FrameCallback {
@ suppresswarnings ( STRING0 )
@ subscribe
public void onStateChangedEvent ( DRM . StateChangedEvent eve... | Reload tabs when DRM state changes |
<nb> public class MediaActionSound {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING2
+ STRING3
} ;
private static final String TAG = STRING4 ; | Fix video stop sound |
<nb> import NAMESPACE ;
import NAMESPACE ;
-
+ COMMENT
+ COMMENT
+ COMMENT
public class BasicNetworkUtils {
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static boolean checkNetwork ( Context context ) {
ConnectivityManager conn = ( ConnectivityManager ) context . getSystemS... | Change some network utils |
<nb> class ZygoteConnection {
if ( args . niceName != null ) {
String property = STRING0 + args . niceName ;
if ( property . length ( ) > NUMBER0 ) {
- SINGLE
+ SINGLE
if ( property . charAt ( NUMBER1 ) != STRING1 ) {
property = property . substring ( NUMBER2 , NUMBER0 ) ;
} else { | Fix comment according to review |
<nb> public abstract class AbstractByteBufferedOutputChannel < T extends Record > extend
private boolean closeRequested = false ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
private boolean closeAcknowledgementReceived = false ;
<nb> public abstract class AbstractByteBufferedOutputChannel < T extends ... | Fixed close bug for broadcast channels |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class BailErrorStrategy extends DefaultErrorStrategy {
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ override
public void recover ( Parser recognizer , Recognit... | Updated documentation in BailErrorStrategy |
<nb> public abstract class ActionBarSherlock {
COMMENT
public static ActionBarSherlock wrap ( Activity activity , boolean asDelegate ) {
if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . ICE_CREAM_SANDWICH ) {
- return new ActionBarSherlockNative ( activity , asDelegate ) ;
- } else {
return new Acti... | Choose the correct impl on the correct platform |
<nb> public class NamespaceCodegen {
return JvmClassName . byInternalName ( JvmAbi . PACKAGE_CLASS ) ;
}
- String name = fqName . getFqName ( ) . replace ( STRING0 , STRING1 ) ;
- if ( name . startsWith ( JavaDescriptorResolver . JAVA_ROOT ) ) {
- name = name . substring ( JavaDescriptorResolver . JAVA_ROOT... | remove obsolete code |
<nb> public class Mesh implements Savable , Cloneable {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public void setPatchVertexCount ( int patchVertexCount ) {
this . patchVertexCount = patchVertexCount ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public int getPatchVertexCount ( ) {
... | Added getter for patchVertexCount |
<nb> public class Views {
public static void noOp ( Object finder , Object target , Object source ) { }
COMMENT
- private static final Method NO_OP = Views . class . getMethod ( STRING0 , Object . class , Object . class , Object . class ) ;
+ private static final Method NO_OP ;
static {
try {
NO_OP = Vi... | Remove forgotten leftover |
<nb> public final class URLUtil {
String retVal = inUrl ;
WebAddress webAddress ;
- Log . v ( LOGTAG , STRING0 + inUrl ) ;
+ if ( DebugFlags . URL_UTIL ) Log . v ( LOGTAG , STRING0 + inUrl ) ;
if ( inUrl . length ( ) == NUMBER0 ) return inUrl ;
if ( inUrl . startsWith ( STRING1 ) ) return inUrl ; | Hide this log behind the debug flag |
<nb> public interface OperationTransformer {
OperationTransformer DEFAULT = new OperationTransformer ( ) {
@ override
public TransformedOperation transformOperation ( TransformationContext context , PathAddress address , ModelNode original ) throws OperationFailedException {
- SINGLE
+ SINGLE
+ original . g... | transform address by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MetaDataExporter {
private String schemaPattern , tableNamePattern ;
- private Serializer serializer = GeneralProcessor . DOMAIN_OUTER... | renamed Serializer FreeMarker to FreeMarkerSerializer |
<nb> public final class NetworkOs {
}
SINGLE
- struct sockaddr_storage address = * ( struct sockaddr_storage * ) ai - > ai_addr ;
- JavaNetInetAddress * inetAddress = sockaddrToInetAddress ( & address , NULL ) ;
+ struct sockaddr_storage * address = ( struct sockaddr_storage * ) ai - > ai_addr ;
+ JavaNet... | Fixed network buffer overrun caught by address sanitizer |
<nb> public abstract class OStorageAbstract extends OSharedContainerImpl implements O
protected volatile long version = NUMBER0 ;
protected OLevel2RecordCache level2Cache ;
- protected boolean open = false ;
+ protected volatile boolean open = false ;
protected OSharedResourceAdaptiveExternal lock = new OSh... | Made open property volatile |
<nb> public class K2JvmCliTest extends CliBaseTest {
public void script ( ) throws Exception {
executeCompilerCompareOutputJVM ( ) ;
}
+
+ @ test
+ public void classpath ( ) throws Exception {
+ executeCompilerCompareOutputJVM ( ) ;
+ }
} | Added test case to K2JvmCliTest |
<nb> public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene
try {
myDevelopers [ NUMBER0 ] = DevelopersLoader . fetchDevelopers ( ) ;
} catch ( IOException e ) {
- Notifications . Bus . register ( STRING0 , NotificationDisplayType . BALLOON ) ;
- Notifications . Bus . notify ( new No... | don t report communication errors |
<nb> public class JavaGenerator implements CodeGenerator
try ( final Writer out = outputManager . createOutput ( enumName ) )
{
- out . append ( generateFileHeader ( ir . applicableNamespace ( ) ) ) ;
+ out . append ( generateEnumFileHeader ( ir . applicableNamespace ( ) ) ) ;
out . append ( generateEnumDec... | Avoid unused import for enum |
<nb> public class Jaxb2Marshaller
}
}
- protected JAXBContext getJaxbContext ( ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ public JAXBContext getJaxbContext ( ) {
if ( this . jaxbContext != null ) {
return this . jaxbContext ;
}
<nb> public class Jaxb2Marshaller
public boolean supports ( Class < ?... | Made getJaxbContext method public |
<nb> public class InspectionGadgetsPlugin implements ApplicationComponent ,
private static final String DESCRIPTION_DIRECTORY_NAME =
STRING0 ;
private final InspectionGadgetsTelemetry telemetry = new InspectionGadgetsTelemetry ( ) ;
- private static final boolean TELEMETRY_ENABLED = true ;
+ private static fi... | Turning off the telemetry display |
<nb> public class SavePersistentMethod extends AbstractDynamicPersistentMethod {
validator . validate ( target , errors ) ;
if ( errors . hasErrors ( ) ) {
- DelegatingMetaClass metaClass = ( DelegatingMetaClass ) InvokerHelper . getInstance ( ) . getMetaRegistry ( ) . getMetaClass ( target . getClass ( ) ) ;
... | fixed bug still referencing old hasErrors property and causing a runtime exception when validation occurs |
<nb> public class EmptyProcessTest extends SpringActivitiTestCase {
assertProcessEnded ( instanceId ) ;
HistoricVariableInstance var = processEngine . getHistoryService ( ) . createHistoricVariableInstanceQuery ( ) . variableName ( STRING0 ) . singleResult ( ) ;
assertNotNull ( var ) ;
- assertEquals ( expected... | Fixing failing assertion in EmptyProcessTest |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add patch http method to the available verbs in the javadoc |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ marshalers ( {
- @ marshaler ( type = String . class , value = NSString . StringMarshaler . class )
+ @ marshaler ( type = String . class , value = NSString . AsStringMarshaler . class )
} )
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT... | Renamed the Marshaler for NSString String to NSString AsStringMarshaler |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class A... | Added license and author |
<nb> public abstract class HazelcastProperties {
COMMENT
COMMENT
public < E extends Enum > E getEnum ( GroupProperty property , Class < E > enumClazz ) {
- return getEnum ( property , enumClazz ) ;
+ throw new UnsupportedOperationException ( ) ;
}
COMMENT | Resolves findbugs problems group properties need to be checked for incomaptibilities |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchCityByNameActivity extends SearchByNameAbstractActivity < City >
protected void reset ( ) {
SINGLE
SINGLE
+
+ SINGLE
+ new Async... | Try fix again with subsequent re init |
<nb> public class BazelAnalysisMock extends AnalysisMock {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
- STRING4 ) ;
+ STRING5 ,
+ STRING4 ,
+ STRING6 ,
+ STRING7 ) ;
config . create ( STRING8 , STRING9 ) ;
}
<nb> public class BazelAnalysisMock extends AnalysisMock {
}
androidBuildContents
... | Fix another test with precompiled jars in srcs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.