diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class NodeUtil { return isValidDefineValue ( val . getFirstChild ( ) , defines ) && isValidDefineValue ( val . getLastChild ( ) , defines ) ; + case Token . HOOK : + return isValidDefineValue ( val . getFirstChild ( ) , defines ) + && isValidDefineValue ( val . getSecondChild ( ) , defines...
Add support for ternary operations in goog define values
<nb> public class CommitChangeListDialog extends DialogWrapper implements CheckinProj } private void updateComment ( ) { - final String currentComment = myCommitMessageArea . getComment ( ) ; - if ( myLastSelectedList != null ) { - myLastSelectedList . setComment ( currentComment ) ; - } - final Local...
Do not remember message from commit dialog in changelist description
<nb> public class ScanResult implements Parcelable { dest . writeInt ( untrusted ? NUMBER0 : NUMBER1 ) ; dest . writeInt ( numConnection ) ; dest . writeInt ( numUsage ) ; + dest . writeInt ( numIpConfigFailures ) ; if ( passpoint != null ) { dest . writeInt ( NUMBER0 ) ; passpoint . writeToParcel ( dest ...
Fix the Fix broken merge of handle bssid blacklist in case of dhcp failures
<nb> public abstract class AttributeDefinition { } if ( flags == null || flags . length == NUMBER0 ) { this . flags = EnumSet . noneOf ( AttributeAccess . Flag . class ) ; - } else if ( flags . length == NUMBER0 ) { + } else if ( flags . length == NUMBER1 ) { this . flags = EnumSet . of ( flags [ NUMBER0 ] ...
Fix AttributeDefinition flags parsing
<nb> class NettyClientTransport implements ManagedClientTransport { @ override public void operationComplete ( ChannelFuture future ) throws Exception { if ( ! future . isSuccess ( ) ) { - ChannelHandlerContext ctx = channel . pipeline ( ) . context ( handler ) ; + ChannelHandlerContext ctx = future . channel...
Fix sporadic NullPointerException
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GeoDistanceFacetBuilder extends AbstractFacetBuilder { return this ; } + public GeoDistanceFacetBuilder global ( boolean global ) { + th...
add filter and global support
<nb> public final class Request { return bytesRead ; } - public void setBytesRead ( int bytesRead ) { - this . bytesRead = bytesRead ; - } - public boolean isProcessing ( ) { return reqProcessorMX . getStage ( ) == org . apache . coyote . Constants . STAGE_SERVICE ; }
Remove unused code
<nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF @ nullable private StubTree derefStub ( ) { + if ( myStub == null ) return null ; + synchronized ( myStubLock ) { return myStub != null ? myStub . get ( ) : null ; }
Reducing contention on stub lock
<nb> public class DrawHandler extends Handler { break ; } case PAUSE : + removeMessages ( UPDATE ) ; case QUIT : - removeCallbacksAndMessages ( null ) ; + if ( what == QUIT ) { + removeCallbacksAndMessages ( null ) ; + } quitFlag = true ; syncTimerIfNeeded ( ) ; mSkipFrames = NUMBER0 ;
Fix possible ANR while call DanmakuView release immediately after pause
<nb> public class HistoryGuruTest { if ( instance . hasHistory ( f ) ) { Reader r = instance . getHistoryReader ( f ) ; assertNotNull ( r ) ; - try { - r . close ( ) ; - } catch ( IOException e ) { - } + r . close ( ) ; } } }
Don t hide exceptions in test
<nb> public class MavenUtil { } public static void runWhenInitialized ( final Project project , final Runnable r ) { + if ( project . isDisposed ( ) ) return ; + if ( isNoBackgroundMode ( ) ) { r . run ( ) ; return ;
do not register startup activity when project is disposed
<nb> public abstract class ConnectionManagementTestCase extends BaseNonConfigCoreFunc public final void testManualDisconnectWithOpenResources ( ) throws Throwable { prepare ( ) ; Session sessionUnderTest = getSessionUnderTest ( ) ; - sessionUnderTest . beginTransaction ( ) ; Silly silly = new Silly ( STRING...
Fix SuppliedConnectionTest failure
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class DefaultCompilerDaemon implements Action < WorkerProcessContext > , CompilerDaemon { + import NAMESPACE ; + + public class DefaultCompilerDaemon implements Action < WorkerProcessContext > , CompilerDaemon , Serializable { public...
made DefaultCompilerDaemon serializable
<nb> import NAMESPACE ; public class FormEncodedDataDefinition implements FormParserFactory . ParserDefinition { public static final String APPLICATION_X_WWW_FORM_URLENCODED = STRING0 ; - private String defaultEncoding = STRING1 ; + private String defaultEncoding = STRING2 ; public FormEncodedDataDefiniti...
Use correct default charset in form data parser
<nb> public class Solo { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT
Updated javadoc of pressSpinnerItem
<nb> public class AndroidBinary AndroidPackageableCollection packageableCollection = enhancementResult . getPackageableCollection ( ) ; - SINGLE + ImmutableSet < Path > classpathEntriesToDex = FluentIterable . from ( enhancementResult . getClasspathEntriesToDex ( ) ) . transform ( getResolver ( ) . de...
Move a comment a bit
<nb> public class NewSparkConnectionDialog extends ModalDialog < ConnectionOptions > if ( dbConnection . equals ( ConnectionOptions . DB_CONNECTION_DPLYR ) ) builder . append ( STRING0 ) ; - builder . append ( STRING1 ) ; + builder . append ( STRING2 ) ; builder . append ( master_ . getSelection ( ) ) ; ...
include master argument name in generated connection code
<nb> public class ServletFormAuthenticationMechanism extends FormAuthenticationMechan protected void storeInitialLocation ( final HttpServerExchange exchange ) { HttpServletRequest req = ( HttpServletRequest ) exchange . getAttachment ( HttpServletRequestImpl . ATTACHMENT_KEY ) ; HttpServletResponse resp = ( Http...
Fix bug in servlet form auth
<nb> import NAMESPACE ; import NAMESPACE ; - public class JSonBuilderTest extends TestCase { + public class JSonBuilderTests extends TestCase { private HttpServletResponse getResponse ( Writer writer ) { final PrintWriter printer = new PrintWriter ( writer ) ;
Cruise Control didn t noticed JSonBuilder tests
<nb> public class SystemUtil { public static final String SUN_BOOT_CLASS_PATH = STRING0 ; private static int javaVersionNumber ; + private static final String WORKING_FOLDER ; static { <nb> public class SystemUtil { javaVersionNumber ++ ; } catch ( Throwable ignore ) { } + + SINGLE + + Fil...
Fixed information about the current working folder
<nb> public class SchemaMetadataV3 extends SchemaV3 < SchemaMetadata , SchemaMetadataV3 > public SchemaMetadataV3 fillFromImpl ( SchemaMetadata impl ) { PojoUtils . copyProperties ( this , impl , PojoUtils . FieldNaming . CONSISTENT , new String [ ] { STRING0 } ) ; this . fields = new FieldMetadataV3 [ impl . fie...
Don t forget the label in SchemaMetadataV3
<nb> import NAMESPACE ; COMMENT COMMENT public class Type { + private static final Field [ ] EMPTY_FIELDS = new Field [ NUMBER0 ] ; + private static final Method [ ] EMPTY_METHODS = new Method [ NUMBER0 ] ; + private static final Constructor [ ] EMPTY_CONSTRUCTORS = new Constructor [ NUMBER0 ] ; + Strin...
Set Type s fields methods and constructors to empty arrays as default value
<nb> public class SecurityTests extends ElasticsearchTestCase { Path linkExists = p . resolve ( STRING0 ) ; try { Files . createSymbolicLink ( linkExists , exists ) ; - } catch ( UnsupportedOperationException e ) { + } catch ( UnsupportedOperationException | IOException e ) { assumeNoException ( STRING1 , e...
Properly handle the case where symlinks are supported but
<nb> public class RedirectStdOutAndErr implements MethodRule { try { System . setOut ( stdOutPrintStream ) ; System . setErr ( stdErrPrintStream ) ; - base . evaluate ( ) ; + try { + base . evaluate ( ) ; + } catch ( Throwable throwable ) { + SINGLE + originalStdOut . write ( stdoutContent . toByteArr...
Changed test rule to write out captured System out and System err to the original destinations when the test fails
<nb> public class InitialAccountRegistrationFrame this . initAccountWizards ( ) ; SINGLE - String groupName = Resources . getString ( STRING0 ) ; + String groupName = Resources . getApplicationProperty ( STRING0 ) ; if ( groupName != null && groupName . length ( ) > NUMBER0 ) {
Fix getting of application properties
<nb> + SINGLE + package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT class PropertiesToProps { - PropertiesToProps ( ) { - } - COMMENT COMMENT COMMENT
added missing copyright
<nb> public class WebView extends AbsoluteLayout mListBoxDialog . dismiss ( ) ; mListBoxDialog = null ; } + if ( mNativeClass != NUMBER0 ) nativeStopGL ( ) ; if ( mWebViewCore != null ) { SINGLE SINGLE <nb> public class WebView extends AbsoluteLayout private native void nativeSetSelectionPointer ( boo...
stop GL drawing thread before killing WebCore
<nb> public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa if ( t . acceptTransportStop ( n ) ) { List < String > l ; if ( ! useName ) { - l = reps . get ( NUMBER0 ) . getRouteDescriptionsForStop ( n , STRING0 ) ; SINGLE + l = t . getRouteDescriptionsForStop ( n , STRING0 ) ; SINGLE...
Fix transport layer
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SlopPusherTest extends TestCase { private StorageEngine < ByteArray , Slop > slopStore ; private Map < Integer , Store < ByteArray , by...
Remove random field as it s never used
<nb> public abstract class AbstractService implements Service { this ( internalState , false , null ) ; } - StateSnapshot ( State internalState , boolean shutdownWhenStartupFinishes , Throwable failure ) { + StateSnapshot ( + State internalState , boolean shutdownWhenStartupFinishes , @ nullable Throwable f...
Fix Findbugs warnings
<nb> import NAMESPACE ; COMMENT @ threadsafe public final class PermissionStatus { - private String mUserName ; - private String mGroupName ; - private FileSystemPermission mPermission ; + private final String mUserName ; + private final String mGroupName ; + private final FileSystemPermission mPermis...
Modify the member of PermissionStatus to final
<nb> public class Array < T > implements Iterable < T > { removeIndex ( j ) ; j -- ; modified = true ; - break ; + break ; } } }
Fixed tab indent
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; public class BigTableScanner implements ISSTableScanner { + private AtomicBoolean isClosed = new AtomicBoolean ( false ) ; protected final Ra...
make scanner close idempotent
<nb> public final class GuavaCallAdapterFactory implements CallAdapter . Factory { return responseType ; } - @ override public < R > ListenableFuture < ? > adapt ( final Call < R > call ) { + @ override public < R > ListenableFuture < R > adapt ( final Call < R > call ) { return new AbstractFuture < R > ( )...
Add missing generic
<nb> public class ViewDragHelper { if ( mDragState != state ) { mDragState = state ; mCallback . onViewDragStateChanged ( state ) ; - if ( state == STATE_IDLE ) { + if ( mDragState == STATE_IDLE ) { mCapturedView = null ; } }
Keep ViewDragHelper internal state consistent
<nb> public class CoordinatorProxyService extends AbstractRestService implements } private synchronized void deleteFatClient ( String storeName ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT if ( this . fatClientMap . containsKey ( storeName ) ) {...
Adding comments to CoordinatorProxyService
<nb> public final class ActionBarSherlock { COMMENT public void setContentView ( int layoutResId ) { if ( DEBUG ) Log . d ( TAG , STRING0 + layoutResId ) ; - try { throw new RuntimeException ( ) ; } catch ( RuntimeException e ) { e . printStackTrace ( ) ; } if ( mContentParent == null ) { installDecor ( )...
Remove super advanced logging of current stacktrace
<nb> public final class Links { String url = urlForResourcePage ( pageId , resourceIdOrKey , query ) ; Window . Location . assign ( url ) ; } + + public static void openRulePopup ( final String ruleIdOrKey ) { + openRulePopup ( ruleIdOrKey , DEFAULT_POPUP_HTML_FEATURES ) ; + } + + public static void o...
add the method Links openRulePopup
<nb> public class CassandraServer implements Cassandra . Iface COMMENT COMMENT COMMENT - private void schedule ( long timeoutMS ) throws TimeoutException + private void schedule ( long timeoutMS ) throws UnavailableException { - requestScheduler . queue ( Thread . currentThread ( ) , state ( ) . getSchedu...
CS schedule throws UE instead of TOE
<nb> public class DrawerLayout extends ViewGroup implements DrawerLayoutImpl { final int gravity = ( ( LayoutParams ) child . getLayoutParams ( ) ) . gravity ; final int absGravity = GravityCompat . getAbsoluteGravity ( gravity , ViewCompat . getLayoutDirection ( child ) ) ; - if ( ( absGravity | Gravity . LEFT...
Fix regressed bitwise logic in DrawerLayout
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr parseIndexSearchResult ( entries ) ; } else { final O...
Fixed bug on type conversion on index lookup
<nb> public class SipStackSharing = STRING0 + eventClass . getName ( ) ; - logger . error ( message ) ; - logger . debug ( message , exc ) ; + logger . error ( message , exc ) ; + if ( logger . isDebugEnabled ( ) ) + logger . debug ( message , exc ) ; } COMMENT
Prints the very exception in SipStackSharing when it s being logged as an error
<nb> public class ToolbarButton extends FocusWidget public void onPopupMenu ( final ToolbarPopupMenu menu ) { if ( menuShowing [ NUMBER0 ] ) + { + removeStyleName ( styles_ . toolbarButtonPushed ( ) ) ; menu . hide ( ) ; + } else { if ( rightAlign )
ensure double clicking on a toolbar button removes pushed state
<nb> public class OContextConfiguration { public < T > T getValue ( final String iName , final T iDefaultValue ) { if ( config != null && config . containsKey ( iName ) ) return ( T ) config . get ( iName ) ; + + final String sysProperty = System . getProperty ( STRING0 ) ; + if ( sysProperty != null ) + ...
Fixed bug on server configuration with WWW path
<nb> public class ChooseRunConfigurationAction extends AnAction { if ( alternateExecutor != null ) { popup . setAdText ( String . format ( STRING0 , alternateExecutor . getActionName ( ) ) ) ; } - + popup . showCenteredInCurrentWindow ( project ) ; } <nb> public class ChooseRunConfigurationAction exte...
disable autoselection for Run Debug
<nb> public class PersistentBTreeEnumerator < Data > extends PersistentEnumeratorBase < Da private boolean myExternalKeysNoMapping ; private static final int DIRTY_MAGIC = NUMBER0 ; - private static final int VERSION = NUMBER1 + IntToIntBtree . version ( ) ; + private static final int VERSION = NUMBER2 + IntT...
increased version due to PersistentHashMap value storage compression
<nb> public class DefaultInterceptorFactoryTest { @ before public void setUp ( ) { reset ( instrumentor , traceContext , aClass , aMethod ) ; + when ( pluginContext . getTraceContext ( ) ) . thenReturn ( traceContext ) ; when ( aMethod . getDescriptor ( ) ) . thenReturn ( descriptor ) ; }
Fixed test failure
<nb> public class SimpleResourceManagementStrategy implements ResourceManagementStrat final int maxWorkerCount = workerSetupData . getMaxNumWorkers ( ) ; if ( minWorkerCount > maxWorkerCount ) { - log . info ( STRING0 , minWorkerCount , maxWorkerCount ) ; + log . error ( STRING0 , minWorkerCount , maxWorkerCo...
Fix log return
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class NotificationSettingsFragment extends PreferenceFragment { + public class NotificationsSettingsFragment extends PreferenceFragment { public static final String TAG = STRING0 ; private ArrayList < StringMap < Double > > mMutedBlogs...
Renamed NotificationSettingsFragment to NotificationsSettingsFragment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
removed wrong import
<nb> public class HtmlStaplerBundlesManager { } else { localFile += FileNameUtil . getPath ( actionPath ) + STRING0 + src ; } + + SINGLE + int qmndx = localFile . indexOf ( STRING1 ) ; + if ( qmndx != - NUMBER0 ) { + localFile = localFile . substring ( NUMBER1 , qmndx ) ; + } + content = FileUtil ...
fixing bug when local resource file has parameters
<nb> public class FileTransferProxy extends BasicModule } public boolean hasInfo ( String name , String node , JID senderJID ) { - Log . info ( STRING0 + name ) ; return true ; }
Removed debug line
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT @ configuration + @ autoconfigureafter ( CacheAutoCon...
Add explicit dependency to CacheAutoConfiguration
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - public class FileLanguageRenamer implements FileRenamer { + public class FileExpressionRenamer implements FileRenamer { private static final boolean ON_WINDOWS = System . getProperty ...
Renamed class to better name
<nb> package NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface HiveCluster { COMMENT - COMMENT + COMMENT COMMENT HiveMetastoreClient createMetastoreClient ( ) ; } <nb> import NAME...
Fix comment about HiveCluster
<nb> public class EnvironmentFilter { SINGLE private static final ImmutableSet < String > ENV_TO_REMOVE = ImmutableSet . of ( - STRING0 , SINGLE - STRING1 , SINGLE - STRING2 , SINGLE - STRING3 , SINGLE - STRING4 SINGLE + STRING5 , SINGLE + STRING6 , SINGLE + STRING0 , SINGLE + STRING1 , SINGLE ...
Prevent standard tools control variables from nuking the parser cache
<nb> public class ScriptScoreFunction extends ScoreFunction { exp = ( ( ExplainableSearchScript ) leafScript ) . explain ( subQueryScore ) ; } else { double score = score ( docId , subQueryScore . getValue ( ) ) ; - String explanation = STRING0 + sScript ; + String explanation = STRING0 + sScript + STRING1 ; ...
Fix the quotes in the explain message for a script score function without parameters
<nb> public class PagesIndex for ( int i = NUMBER0 ; i < channels . length ; i ++ ) { Block block = page . getBlock ( i ) ; channels [ i ] . add ( block ) ; - pagesMemorySize += block . getSizeInBytes ( ) ; + pagesMemorySize += block . getRetainedSizeInBytes ( ) ; } for ( int position = NUMBER0 ; positi...
Improve memory accounting in PagesIndex
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix grammatical error in StickyListHeadersListView documentation
<nb> public final class ConfigurationRuleTest { Assert . assertEquals ( STRING0 , Configuration . get ( PropertyKey . SECURITY_LOGIN_USERNAME ) ) ; } } ; + Assert . assertFalse ( Configuration . containsKey ( PropertyKey . SECURITY_LOGIN_USERNAME ) ) ; new ConfigurationRule ( ImmutableMap . of ( PropertyKey ....
Addressing review commenets
<nb> public final class SqlStageExecution } } + SINGLE + SINGLE + public boolean hasTasks ( ) + { + return ! tasks . isEmpty ( ) ; + } + public synchronized List < RemoteTask > getAllTasks ( ) { return tasks . values ( ) . stream ( ) <nb> public class SqlQueryScheduler } else if ( queryS...
Reduce contention in query state transitions
<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 NAMESPAC...
testOldIndexes should disable merging
<nb> public final class Geofence implements Parcelable { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
clarify Geofence createCircle param ranges
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; public class GrailsResourceHolder { public static Pattern GRAILS_RESOURCE_PATTERN = Pattern . compile ( STRING0 ) ; + static { + if ( File . separator ....
integrated fix that prevented class reloading working in unix
<nb> public abstract class Jsr199Javac implements Javac { close ( fileManager , compilationUnits ) ; } + for ( Diagnostic < ? extends JavaFileObject > diagnostic : diagnostics . getDiagnostics ( ) ) { + LOG . debug ( STRING0 , DiagnosticPrettyPrinter . format ( diagnostic ) ) ; + } + if ( isSuccess ) { ...
Log messages from javac
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IssuesTest extends HazelcastTestSupport { } @ test + @ ignore public void testIssue1067GlobalSerializer ( ) { TestH...
Ignore Global serializer test
<nb> public class TestClient extends TestClientBase { tu . azzert ( peer1 . getReceiveBufferSize ( ) != NUMBER0 ) ; peer1 . setReceiveBufferSize ( NUMBER0 ) ; - tu . azzert ( peer1 . getReceiveBufferSize ( ) == NUMBER0 ) ; tu . azzert ( peer1 . getSendBufferSize ( ) != NUMBER0 ) ; peer1 . setSendBufferSiz...
Seems like linux does not respect this while it works on osx so not azzert
<nb> public class Client } else if ( eventFunc . equals ( STRING0 ) || eventFunc . equals ( STRING1 ) ) { listener . conferenceEventUnMute ( uniqueId , confName , confSize , event ) ; return ; - SINGLE } else if ( eventFunc . equals ( STRING2 ) ) { System . out . println ( STRING3 ) ; listener . conferenc...
Remove comment from block where it doesn t belong
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix documentation error in ByteBuf
<nb> public class MatcherImpl { visitor . matchContext ( matchedNodes ) ; } finally { matchedNodes . reset ( ) ; + matchContext . getOptions ( ) . setScope ( null ) ; } }
don t hold psi in local search scope of SSBasedInspection
<nb> public class XQueryTest extends Assert { Document doc = ( Document ) result ; assertEquals ( STRING0 , STRING1 , doc . getDocumentElement ( ) . getLocalName ( ) ) ; + + result = xquery ( STRING2 ) . evaluate ( exchange , String . class ) ; + assertEquals ( STRING3 , STRING4 , result ) ; } }
Added an unit test based on a stackoverflow question
<nb> public class PixmapPacker implements Disposable { } int rectX = ( int ) rect . x , rectY = ( int ) rect . y , rectWidth = ( int ) rect . width , rectHeight = ( int ) rect . height ; - if ( packToTexture && current . texture != null && ! duplicateBorder ) { + if ( packToTexture && ! duplicateBorder && cur...
Don t use glTexSubImage2D when texture needs to be reloaded anyway
<nb> public class G3dModelLoader extends ModelLoader < AssetLoaderParameters < Model > > { String fileName = texture . getString ( STRING0 , null ) ; if ( fileName == null ) throw new GdxRuntimeException ( STRING1 ) ; - jsonTexture . fileName = materialDir + STRING2 + fileName ; + jsonTexture . fileName = mat...
Fix double slash
<nb> public interface MapInterceptor extends Serializable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface MapInterceptor extends Serializable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT void afterGet ( Object value ) ;
Clarify MapInteceptor behaviour for get
<nb> public class Main { } public static void main ( final String [ ] args ) { + installPatch ( ) ; + isHeadless = isHeadless ( args ) ; if ( isHeadless ) { System . setProperty ( STRING0 , Boolean . TRUE . toString ( ) ) ; <nb> public class Main { throw new HeadlessException ( STRING1 ) ; } -...
installing patch before any class is loaded
<nb> public class SwipeLayout extends FrameLayout { protected void processHandRelease ( float xvel , float yvel , boolean isCloseBeforeDragged ) { float minVelocity = mDragHelper . getMinVelocity ( ) ; View surfaceView = getSurfaceView ( ) ; - DragEdge currentDragEdge = null ; - try { - currentDragEdge = mC...
remove a useless try catch
<nb> public class XmlProductivityFeatureProvider extends ProductivityFeaturesProvider public FeatureDescriptor [ ] getFeatureDescriptors ( ) { return new FeatureDescriptor [ ] { new FeatureDescriptor ( XmlCompletionContributor . TAG_NAME_COMPLETION_FEATURE , - null , + STRING0 , STRING1 , XmlBundle . mess...
added to completion group
<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 ; import NAMESPACE ; <nb> public class XmlRpcS...
Lowered debug level
<nb> public class PluginManager { executor . scheduleWithFixedDelay ( new PluginMonitor ( ) , NUMBER0 , NUMBER1 , TimeUnit . SECONDS ) ; } else { - executor . scheduleWithFixedDelay ( new PluginMonitor ( ) , NUMBER0 , NUMBER2 , TimeUnit . SECONDS ) ; + executor . scheduleWithFixedDelay ( new PluginMonitor ( )...
Check for new plugins a little bit faster
<nb> class Util { } + static boolean isControl ( byte opCode ) { + return ( opCode & NUMBER0 ) > NUMBER1 ; + } + + + static boolean isText ( byte opCode ) { + return opCode == Constants . OPCODE_TEXT ; + } + + static CloseCode getCloseCode ( int code ) { if ( code > NUMBER2 && code < NUMBE...
Add a couple of utility methods
<nb> public class Runner implements MessageConsumer { if ( presenting ) { params . add ( PApplet . ARGS_PRESENT ) ; + if ( Preferences . getBoolean ( STRING0 ) ) { + params . add ( PApplet . ARGS_EXCLUSIVE ) ; + } params . add ( PApplet . ARGS_STOP_COLOR + STRING1 + Preferences . get ( STRING2 ) ) ; p...
add param for exclusive mode so that present takes over the screen on the mac
<nb> public final class OnSubscribeCombineLatest < T , R > implements OnSubscribe < R > { public OnSubscribeCombineLatest ( List < ? extends Observable < ? extends T > > sources , FuncN < ? extends R > combinator ) { this . sources = sources ; this . combinator = combinator ; - if ( sources . size ( ) > NUMBER0...
Fixed Observable combineLatest overflow bug on Android
<nb> public interface HumanEntity extends LivingEntity , AnimalTamer , Permissible , Inv COMMENT COMMENT public boolean isBlocking ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public int getExpToLevel ( ) ; } <nb> public class TestPlayer implements Player { public boolean isVali...
Add API to get a players experience to level getExpToLevel
<nb> public final class VcsConfiguration implements PersistentStateComponent < Element > public boolean LIMIT_HISTORY = true ; public int MAXIMUM_HISTORY_ROWS = NUMBER0 ; public String UPDATE_FILTER_SCOPE_NAME ; - public boolean USE_COMMIT_MESSAGE_MARGIN = true ; + public boolean USE_COMMIT_MESSAGE_MARGIN = f...
Default commit message right margin to off
<nb> public class GpsLocationProvider implements LocationProviderInterface { } if ( info != null ) { - boolean dataEnabled = TelephonyManager . getDefault ( ) . getDataEnabled ( ) ; + boolean dataEnabled = TelephonyManager . getIntWithSubId ( mContext . getContentResolver ( ) , + Settings . Global . MOBILE_...
Read data enabled status from TelephonyManager
<nb> public class MapActivityActions implements DialogProvider { builder . setPositiveButton ( R . string . default_buttons_yes , new DialogInterface . OnClickListener ( ) { @ override public void onClick ( DialogInterface dialog , int which ) { + if ( getMyApplication ( ) . getLocationProvider ( ) . getLocatio...
Fix small issue
<nb> public class PsiImplUtil { } else { if ( oldQualifier == null ) { if ( refNameElement != null ) { - ref . addBefore ( newQualifier , refNameElement ) ; node . addLeaf ( GroovyTokenTypes . mDOT , STRING0 , refNameElement . getNode ( ) ) ; + ref . addBefore ( newQualifier , refNameElement . getPrevSiblin...
when adding qualifier to groovy reference insert point first
<nb> public class Join { for ( int i = NUMBER0 ; i < criterions . length ; i ++ ) { sb . append ( criterions [ i ] ) ; if ( i < criterions . length - NUMBER1 ) - sb . append ( SPACE ) . append ( AND ) ; + sb . append ( SPACE ) . append ( AND ) . append ( SPACE ) ; } sb . append ( STRING0 ) ; return sb ....
Fixed a bug in the join string
<nb> package NAMESPACE ; - import NAMESPACE ; - COMMENT - public final class HttpException extends IOException { + public final class HttpException extends Exception { private final int code ; private final String message ; private final transient Response < ? > response ;
Switch HttpException to not be an IOException
<nb> public class BsonReader implements DumpReader { BSONObject obj ; while ( ( obj = decoder . readObject ( fileBytes ) ) != null ) { - System . out . println ( STRING0 + obj . getClass ( ) ) ; final DBObject mongoDocument = new BasicDBObject ( obj . toMap ( ) ) ; dataset . add ( mongoDocument ) ; }
Removing debug output
<nb> public abstract class DialogWrapper { } private void resizeWithAnimation ( final Dimension size ) { + SINGLE + if ( SystemInfo . isMac ) { + setSize ( size . width , size . height ) ; + return ; + } + new Thread ( STRING0 ) { int time = NUMBER0 ; int steps = NUMBER1 ;
disable animation on mac
<nb> public class AccentuationCheckRule extends CatalanRule { throw new IOException ( STRING0 + fileName + STRING1 + line + STRING2 + STRING3 + parts . length ) ; } - final AnalyzedToken analyzedToken = new AnalyzedToken ( parts [ NUMBER0 ] , parts [ NUMBER1 ] , STRING4 ) ; + final AnalyzedToken analyzedToken...
ca use null instead of lemma for unknown baseforms
<nb> public class HashingTest extends TestCase { assertEquals ( STRING0 , Hashing . murmur3_128 ( ) . toString ( ) ) ; } + @ androidincompatible SINGLE public void testMurmur3_32 ( ) { HashTestUtils . check2BitAvalanche ( Hashing . murmur3_32 ( ) , NUMBER0 , FLOAT0 ) ; HashTestUtils . checkAvalanche ( Has...
Suppress another flaky test
<nb> public final class ParseDataset extends Job { assert progress != null ; new TAtomic < Progress > ( ) { @ override public Progress atomic ( Progress old ) { - if ( old == null ) old = new Progress ( ) ; + if ( old == null ) return null ; Value val = DKV . get ( chunk ) ; if ( val == null ) return null...
ditch my fix for cyprien s
<nb> public class MetadataTest { @ test public void invalidKeyName ( ) { try { - Key < Integer > k = Key . of ( STRING0 , Metadata . INTEGER_MARSHALLER ) ; + Key . of ( STRING0 , Metadata . INTEGER_MARSHALLER ) ; fail ( STRING1 ) ; } catch ( IllegalArgumentException e ) { assertEquals ( STRING2 , e . ge...
Remove unused variable
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpsConnectorFactory extends HttpConnectorFactory { protected SslContextFactory buildSslContextFactory ( ) { final SslCont...
Add code to use the windows key store if the key store type is set to Windows MY
<nb> XLinguServiceEventBroadcaster { COMMENT private boolean recheck ; - private List < RuleMatch > prevRuleMatches ; - COMMENT COMMENT COMMENT <nb> XLinguServiceEventBroadcaster { SINGLE paRes . nStartOfNextSentencePosition = paRes . nBehindEndOfSentencePosition + NUMBER0 ; if ( ! sentences . i...
remove dead variable
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT + @ deprecated public abstract class AndroidApplication extends Application implements DialogInterface...
Deprecated AndroidApplication in favor of AndroidHarness
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ReactHorizontalScrollViewManager return new ReactHorizontalScrollView ( context ) ; } + @ reactprop ( name = STRING0 ) + public void setShowsHorizontalScr...
Fix showsHorizontalScrollIndicator for ScrollView
<nb> public class JmsReconnectTest { String echo ( String st ) ; } - private final static class EchoServiceImpl implements MyService { + private static final class EchoServiceImpl implements MyService { public String echo ( String st ) { return st ;
Fix checkstyle error