diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class CalendarContract { GUESTS_CAN_INVITE_OTHERS ) ; DatabaseUtils . cursorIntToContentValuesIfPresent ( cursor , cv , GUESTS_CAN_MODIFY ) ; DatabaseUtils . cursorIntToContentValuesIfPresent ( cursor , cv , GUESTS_CAN_SEE_GUESTS ) ; + DatabaseUtils . cursorStringToContentValuesIfPresent ( cur...
Add support for custom app and uri in events
<nb> public class CliUserHelp { { { put ( ColumnFamilyArgument . COLUMN_TYPE , STRING0 ) ; put ( ColumnFamilyArgument . COMMENT , STRING1 ) ; - put ( ColumnFamilyArgument . COMPARATOR , STRING2 ) ; + put ( ColumnFamilyArgument . COMPARATOR , STRING3 ) ; put ( ColumnFamilyArgument . SUBCOMPARATOR , STRING4 )...
add IntegerType to CliUserHelp
<nb> import NAMESPACE ; public class ExamplesApplication extends Application { - static enum Category { + enum Category { SINGLE GENERAL ( STRING0 ) <nb> public class ExamplesApplication extends Application { public static final Map < Category , ExampleItem [ ] > ITEMS = new HashMap < > ( ) ; pu...
Updated examples base URL
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ checkreturnvalue @ gwtcompatible public abstract class ComparisonChain { private ComparisonChain ( ) { }
Add CheckReturnValue to ComparisonChain
<nb> public class BlockOutStream extends OutStream { } MappedByteBuffer out = mLocalFileChannel . map ( MapMode . READ_WRITE , mInFileBytes , length ) ; - out . put ( buf , NUMBER0 , length ) ; + out . put ( buf , offset , length ) ; mInFileBytes += length ; }
Fix buffer usage which results in data corruption in BlockOutStream
<nb> public interface Processor { default void setConfigDirectory ( Path configDirectory ) { } - @ override default void close ( ) throws IOException { } - } - }
remove unnecessary line breaks
<nb> public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC private void setUpLibraries ( ) { String libDir = PathManagerEx . getCommunityHomePath ( ) + STRING0 ; PsiTestUtil . addLibrary ( myModule , STRING1 , libDir , new String [ ] { STRING2 } , ArrayUtil . EMPTY_STRING_ARRAY ) ; - ...
Cleanup forgotten comment
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - SINGLE - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DateTimeFieldProperty exten...
Add getDateTime method
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { return ; } Intent intent = new Intent ( DeviceAdminReceiver . ACTION_DEVICE_ADMIN_DISABLE_REQUESTED ) ; + intent . setFlags ( Intent . FLAG_RECEIVER_FOREGROUND ) ; intent . setComponent ( admin . info . getComponent ( ) ) ; m...
Use foreground broadcast to get device admin msg
<nb> public class Loader public void preinitializeMods ( ) { - ObjectHolderRegistry . INSTANCE . findObjectHolders ( discoverer . getASMTable ( ) ) ; if ( ! modController . isInState ( LoaderState . PREINITIALIZATION ) ) { FMLLog . warning ( STRING0 ) ; return ; } + ObjectHolderRegistry . INSTANCE ....
Don t scan ObjectHolders if there was an error already derpitude will ensure
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CodeSearch @ override public void execute ( ) { + display_ . getSearchDisplay ( ) . clear ( ) ; + display_ . getSearchOracle ( ) . clear ( ) ; + if ( observer_ != null ) ...
don t clear the search display onBlur interferes with selection handler event
<nb> public class JaspicAuthenticator extends AuthenticatorBase { @ override public boolean authenticate ( Request request , HttpServletResponse response ) throws IOException { + if ( checkForCachedAuthentication ( request , response , true ) ) { + return true ; + } + MessageInfo messageInfo = new Messa...
Fixed authentication caching within the session for JASPIC authenticator
<nb> public class MapActivityActions implements DialogProvider { SINGLE OsmandPlugin . registerOptionsMenu ( mapActivity , optionsMenuHelper ) ; - optionsMenuHelper . item ( R . string . shared_string_exit ) . iconColor ( R . drawable . ic_action_quit_dark ) - . listen ( new OnContextMenuClick ( ) { - @ ove...
Delete exit button
<nb> public class Editor { @ override public void updatePosition ( float x , float y ) { - positionAtCursorOffset ( mTextView . getOffsetForPosition ( x , y ) , false ) ; + Layout layout = mTextView . getLayout ( ) ; + int offset ; + if ( layout != null ) { + int currLine = getCurrentLineAdjustedForSlop...
add some slop for moving between lines
<nb> public class BasicMapTest extends HazelcastTestSupport { } , true ) ; map . put ( STRING0 , value1 , NUMBER0 , TimeUnit . SECONDS ) ; - assertTrue ( latch1 . await ( NUMBER1 , TimeUnit . SECONDS ) ) ; + assertOpenEventually ( latch1 ) ; map . put ( STRING0 , value2 , NUMBER0 , TimeUnit . SECONDS ) ; ...
added assertOpenEventually to testMapEvictAndListener
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAM...
Fixing checkstyle errors
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class GroovyPage extends Script { public Object resolveVariable ( GrailsTag tag , String attr , String expr ) throws GroovyRuntimeException , IOException ,...
changed variable resolution to be more similar to JSP expressions
<nb> public final class Request { } this . listener = listener ; + setBlocking ( false ) ; } protected volatile boolean blocking = true ;
Restore accidentally removed call
<nb> public final class ViewRoot extends Handler implements ViewParent , SINGLE newSurface = true ; fullRedrawNeeded = true ; + mPreviousTransparentRegion . setEmpty ( ) ; if ( mGlWanted && ! mUseGL ) { initializeGL ( ) ;
Prevent transparent region from getting out of sync with Surface Flinger
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused import
<nb> public class DBApiLayer extends DB { full . put ( k , options . get ( k ) ) ; full . put ( STRING0 , keys ) ; - MyCollection idxs = DBApiLayer . this . doGetCollection ( STRING1 ) ; - SINGLE - if ( idxs . findOne ( full ) == null ) - idxs . insert ( Arrays . asList ( full ) , false , WriteConcern . S...
Remove findOne check for index existence in createIndex method
<nb> public class ModTextureStatic extends FMLTextureFX if ( tWidth != tileSizeBase || tHeight != tileSizeBase ) { - log . warning ( String . format ( STRING0 , target , tWidth , tHeight , tileSizeBase ) ) ; + log . warning ( String . format ( STRING1 , target , tWidth , tHeight , tileSizeBase ) ) ; errored...
Fix derp in MTS
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CachingHiveMetastore catch ( AlreadyExistsException e ) { throw new TableAlreadyExistsException ( new SchemaTableName ( tab...
Categorize Hive create and rename table errors
<nb> public final class MediaControllerCompat { } public void post ( int what , Object obj , Bundle data ) { - obtainMessage ( what , obj ) . sendToTarget ( ) ; + Message msg = obtainMessage ( what , obj ) ; + msg . setData ( data ) ; + msg . sendToTarget ( ) ; } } }
Send a message with data in MediaControllerCompat MessageHandler post
<nb> import NAMESPACE ; public class QueryTimeoutInterceptor extends AbstractCreateStatementInterceptor { private static Log log = LogFactory . getLog ( QueryTimeoutInterceptor . class ) ; - int timeout ; + int timeout = NUMBER0 ; @ override public void setProperties ( Map < String , InterceptorProperty...
Fix potential NPE in QueryTimeoutInterceptor
<nb> public class BookReader { stack [ myKindStackSize ++ ] = kind ; } - public final void popKind ( ) { + public final boolean popKind ( ) { if ( myKindStackSize != NUMBER0 ) { -- myKindStackSize ; + return true ; } + return false ; } public final void beginParagraph ( byte kind ) {
add only first version of plucker format
<nb> public abstract class AbstractByteBuf implements ByteBuf { } protected void adjustMarkers ( int decrement ) { - markedReaderIndex = Math . max ( markedReaderIndex - decrement , NUMBER0 ) ; - markedWriterIndex = Math . max ( markedWriterIndex - decrement , NUMBER0 ) ; + int markedReaderIndex = this . ma...
Optimize AbstractByteBuf adjustMarkers
<nb> public class HackerNewsClient implements ItemManager , UserManager { } ) ; } - @ nonnull private HackerNewsItem [ ] toItems ( int [ ] ids ) { - HackerNewsItem [ ] items = new HackerNewsItem [ ids == null ? NUMBER0 : ids . length ] ; + if ( ids == null ) { + return null ; + } + HackerNewsItem [ ...
Fix error message on error response
<nb> public class DataSourceFactory implements ObjectFactory { dataSource . getPoolProperties ( ) . setUseEquals ( Boolean . parseBoolean ( value ) ) ; } - + SINGLE + dataSource . createPool ( ) ; SINGLE return dataSource ; }
Initialize connection pool upon data source creation instead of request for first connection
<nb> public class BottomBar extends RelativeLayout implements View . OnClickListener , V } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setFixedInactiveIconColor ( int iconColor ) { + mInActiveColor = iconColor ; + + if ( mItems != null && mItems . length >...
Expose customizable icon colors
<nb> public class MavenModuleBuilder extends ModuleBuilder implements SourcePathsBuil getPsiFile ( project , myAggregatorProject . getFile ( ) ) ) { protected void run ( ) throws Throwable { MavenModel model = MavenUtil . getMavenModel ( project , myAggregatorProject . getFile ( ) ) ; + model . getPackaging ( )...
setting pom packaging in Create Module Wizard
<nb> public class TypeUtils { if ( type . isNullable ( ) == nullable ) { return type ; } - if ( type . isError ( ) ) { - return type ; - } SINGLE SINGLE
Do not check isError when making type nullable not null
<nb> public class SurfaceResource extends RoutingResource { z0 . d = NUMBER0 ; SINGLE IsochroneData isochrone = new IsochroneData ( seconds , isolineBuilder . computeIsoline ( z0 ) ) ; isochrones . add ( isochrone ) ; - if ( ++ n >= nMax ) { - break ; - } } long t1 = System . currentTimeMillis ( ) ;
don t increment twice
<nb> public final class LocalhostZooKeeperCluster public synchronized void shutdown ( ) { - new Exception ( ) . printStackTrace ( ) ; - System . out . println ( STRING0 ) ; if ( keeper . length > NUMBER0 && keeper [ NUMBER0 ] == null ) return ; for ( ZooKeeper zk : keeper ) {
Removed a nice System out and printStackTrace which of course shouldn t be there
<nb> COMMENT 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 ; import NAMESPACE ...
format the imports
<nb> public class X implements Runnable { } public String toString ( ) { - return super . toString ( ) ; SINGLE + return super . toString ( ) ; SINGLE } public void run ( ) { SINGLE } + + private void method ( ) { + SINGLE + } + private int geti ( ) { + return NUMBER0 ; + } + private...
break the test
<nb> public class VideoView extends SurfaceView implements MediaPlayerControl { Log . w ( TAG , STRING0 + mUri , ex ) ; mCurrentState = STATE_ERROR ; mTargetState = STATE_ERROR ; + mErrorListener . onError ( mMediaPlayer , MediaPlayer . MEDIA_ERROR_UNKNOWN , NUMBER0 ) ; return ; } catch ( IllegalArgumentExc...
Invoke the OnErrorListener callback when MediaPlayer setDataSource throws
<nb> public class RenderScript { } void validateSurface ( ) { - if ( mSurface == null ) { - throw new IllegalStateException ( STRING0 ) ; - } + SINGLE + SINGLE + SINGLE } public void contextSetPriority ( Priority p ) {
Remove check for surface valid that is no longer valid
<nb> public class CommitLogSegmentManager SINGLE SINGLE - Set < Keyspace > keyspaces = new HashSet < > ( ) ; - for ( UUID cfId : last . getDirtyCFIDs ( ) ) - { - ColumnFamilyStore cfs = Schema . instance . getColumnFamilyStoreInstance ( cfId ) ; - if ( cfs != null ) - keyspaces . add ( cfs . keyspace ...
remove leftover code from refactor
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CliLauncher { bindingsName = STRING0 ; } - Class...
resolved conflicts with Darran s work
<nb> public class TestReport extends DefaultTask { return new BinaryResultBackedTestResultsProvider ( dir ) ; } } ) ) ; - } finally { + } catch ( RuntimeException e ) { stoppable ( resultsProviders ) . stop ( ) ; + throw e ; } } }
Fix absolutely braindead mistake mine which caused file to be closed before it was used
<nb> public class SimpleValueTests extends Assert { List < String > columns = Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ; List < String > row1 = Arrays . asList ( STRING5 , STRING6 , STRING7 , STRING8 , null ) ; List < String > row2 = Arrays . asList ( STRING5 , STRING6 , STRING9 , STRIN...
Fix accidental space in test
<nb> public class OperationMenu extends JPopupMenu { for ( ModelNode name : opNames . get ( STRING0 ) . asList ( ) ) { String strName = name . asString ( ) ; + + SINGLE if ( node . isGeneric ( ) && ! genericOpList . contains ( strName ) ) continue ; if ( node . isLeaf ( ) && ! leafOpList . contains ( strN...
Remove add operation from resource nodes
<nb> public class RecentsTvActivity extends Activity implements OnPreDrawListener { private final static boolean DEBUG = false ; public final static int EVENT_BUS_PRIORITY = Recents . EVENT_BUS_PRIORITY + NUMBER0 ; + private final static String RECENTS_HOME_INTENT_EXTRA = + STRING0 ; private boolean mFini...
Add an extra to HOME intent to indicate it comes form recents
<nb> import NAMESPACE ; COMMENT public class MavenResolveToWorkspaceTest extends MavenImportingTestCase { - public void testIgnoredProject ( ) throws Exception { + public void _testIgnoredProject ( ) throws Exception { createProjectPom ( STRING0 + STRING1 + STRING2 +
Fix maven tests
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MinaVMFileTcpTest extends ContextTestSupport { public void testMinaRoute ( ) throws Exception { MockEndpoint endpoint = getMockEndpoint ( STRING0 ) ; - ...
Fixed the an unit test error in camel mina
<nb> public class TwoPhaseCommitInterceptor extends ChannelInterceptorBase { for ( int i = NUMBER0 ; i < entries . length ; i ++ ) { MapEntry entry = ( MapEntry ) entries [ i ] . getValue ( ) ; if ( entry . expired ( now , expire ) ) { - log . info ( STRING0 + entry . id + STRING1 ) ; + if ( log . isInfoEnabl...
Add Missing isInfoEnabled checks
<nb> public class AppEngineSupportProvider extends FacetBasedFrameworkSupportProvider final Library apiJar = addProjectLibrary ( module , STRING0 , sdk . getLibUserDirectoryPath ( ) , VirtualFile . EMPTY_ARRAY ) ; rootModel . addLibraryEntry ( apiJar ) ; + if ( artifact != null ) { + WebArtifactUtil . getInst...
create correct artifact for new app engine project
<nb> public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters , sb . p ( STRING0 ) . nl ( ) . di ( NUMBER0 ) ; sb . p ( fileContext ) . nl ( ) ; SINGLE if ( preview ) { - String [ ] first100k = sb . _sb . toString ( ) . substring ( NUMBER1 , NUMBER2 ) . split ( STRING1 ) ; + ...
Fix POJO Preview exception
<nb> public class TransactionalBoltExecutor implements IRichBolt , FinishedCallback { TransactionAttempt attempt = ( TransactionAttempt ) input . getValue ( NUMBER0 ) ; String stream = input . getSourceStreamId ( ) ; ITransactionalBolt bolt = _openTransactions . get ( attempt ) ; + SINGLE + SINGLE + SINGLE ...
fix bug in TransactionalBoltExecutor comments on validity of commit condition
<nb> public class DeepLinkProcessor extends AbstractProcessor { jw . emitStatement ( STRING0 ) ; jw . emitEmptyLine ( ) ; - jw . emitStatement ( STRING1 ) ; - jw . emitStatement ( STRING2 ) ; - jw . beginControlFlow ( STRING3 ) ; jw . beginControlFlow ( STRING4 ) ; jw . emitStatement ( <nb> public c...
Pass Uri in Intent remove host path from parameters
<nb> public class ClientCalls { Thread . interrupted ( ) ; throw new RuntimeException ( ie ) ; } - if ( last instanceof Throwable ) { - throw Throwables . propagate ( ( Throwable ) last ) ; + if ( last instanceof Status ) { + throw ( ( Status ) last ) . asRuntimeException ( ) ; } return last != this ;...
Improve Exception backtrace for blocked streaming
<nb> import static NAMESPACE ; COMMENT COMMENT @ xmlaccessortype ( XmlAccessType . PROPERTY ) - public abstract class ProcessorDefinition < Type extends ProcessorDefinition > extends OptionalIdentifiedDefinition < Type > implements Block { + public abstract class ProcessorDefinition < Type extends ProcessorDe...
Fixed compiler issue
<nb> public class UriBeaconDiscoveryService extends Service implements MetadataResolv COMMENT private void updateSummaryNotification ( ) { int numNearbyBeacons = mSortedDevices . size ( ) ; - String contentTitle = String . valueOf ( numNearbyBeacons ) + STRING0 ; + String contentTitle = String . valueOf ( num...
Removed double spaces in notifications
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class DBDAttributeBinding imple...
Attribute full name generation fix
<nb> public class RRD4jChartServlet implements Servlet { try { RrdGraph graph = new RrdGraph ( graphDef ) ; BufferedImage bi = new BufferedImage ( graph . getRrdGraphInfo ( ) . getWidth ( ) , graph . getRrdGraphInfo ( ) . getHeight ( ) , BufferedImage . TYPE_INT_RGB ) ; - graph . render ( bi . getGraphics ( ) )...
added Content Type to chart servlet response
<nb> public abstract class AsArraySerializerBase < T > serializeContents ( value , jgen , provider ) ; jgen . writeEndArray ( ) ; } - + + SINGLE @ override - public final void serializeWithType ( T value , JsonGenerator jgen , SerializerProvider provider , + public void serializeWithType ( T value , J...
remove final from AsArraySerializerBase serializeWithType
<nb> public class SubclassTest extends TestCase { assertEquals ( NUMBER0 , StatCounter . counter ) ; list . add ( new Integer ( NUMBER0 ) ) ; - assertEquals ( NUMBER1 , StatCounter . counter ) ; + assertTrue ( StatCounter . counter == NUMBER1 || StatCounter . counter == NUMBER2 ) ; System . out . println ...
fixed test to work from command line
<nb> public class ListListenerTest extends HazelcastTestSupport { @ override public void itemAdded ( ItemEvent item ) { - System . out . println ( STRING0 + item ) ; latchAdd . countDown ( ) ; } @ override public void itemRemoved ( ItemEvent item ) { - System . out . println ( STRING1 + item ) ; l...
remove printed lines to system out
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT public interface TabbedContent extends Content { + String SPLIT_PROPERTY_PREFIX = STRING0 ; + void addContent ( @ notnull JComponent content , @ notnull String name , boolean selectTab ) ; void r...
add property to remember tabs state merge or split
<nb> import NAMESPACE ; COMMENT public class NioSelectorPool { - protected int maxSelectors = NUMBER0 ; + protected int maxSelectors = NUMBER1 ; protected int maxSpareSelectors = - NUMBER2 ; protected boolean enabled = true ; protected AtomicInteger active = new AtomicInteger ( NUMBER3 ) ; <nb> public...
adjust default properties
<nb> public class FragmentActivity extends BaseFragmentActivityJB implements COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT final public MediaControllerCompat getSupportMediaController ( ) {
fix broken link in FragmentActivity
<nb> public final class CommandResult { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public int getExitStatus ( ) { - return terminationStatus . getRawResult ( ) ; - } - - COMMENT COMMENT COMMENT public TerminationStatus getTerminationStatus ( ) { <nb>...
Drop deprecated CommandResult getExitStatus
<nb> public class MarkdownPanel extends IpnbEditablePanel < JPanel , MarkdownCell > { @ override protected String getRawCellText ( ) { - return myCell . getSourceAsString ( ) ; + final String string = myCell . getSourceAsString ( ) ; + if ( isStyleOrScript ( string ) ) { + return STRING0 ; + } + retur...
do not add source and style cells
<nb> public class SearchService extends AbstractLifecycleComponent < SearchService > { throw new SearchParseException ( context , STRING0 + sSource + STRING1 , location , e ) ; } } - SINGLE if ( source . version ( ) != null ) { context . version ( source . version ( ) ) ; }
removed obselete NOCOMMIT
<nb> public abstract class RepositoryConnectorConfiguration { private String name = this . getClass ( ) . getSimpleName ( ) . replace ( STRING0 , STRING1 ) ; - SINGLE - SINGLE - SINGLE - COMMENT - SINGLE - SINGLE - private String description ; - + + COMMENT + COMMENT + COMMENT + privat...
added login help to repo configuration
<nb> public class HttpResponseHeader extends HttpHeader { private static final String _CONTENT_TYPE_IMAGE = STRING0 ; private static final String _CONTENT_TYPE_TEXT = STRING1 ; private static final String _CONTENT_TYPE_HTML = STRING2 ; - private static final String _CONTENT_TYPE_JAVASCRIPT = STRING3 ; + priva...
Correct the javascript content type
<nb> public class TelescopeLayout extends FrameLayout { final int width = displayMetrics . widthPixels ; final int height = displayMetrics . heightPixels ; - ImageReader imageReader = - ImageReader . newInstance ( width , height , PixelFormat . RGBA_8888 , NUMBER0 ) ; + ImageReader imageReader = ImageReader...
Change the expected pixel format to RGBX
<nb> public class DinnerPermsResolver implements PermissionsResolver { } public boolean inGroup ( OfflinePlayer player , String group ) { - Permissible perms = getPermissible ( player ) ; + final Permissible perms = getPermissible ( player ) ; if ( perms == null ) { return false ; } - return perms . h...
Fixed inGroup always returning true for ops
<nb> public class TfsShellUtils { private static final Pattern SPECIAL_REGEX_CHARS = Pattern . compile ( STRING0 ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class TfsShellUtils { } COMMENT - COMMENT + COMMENT COMMENT private static String replaceWildcards ( String...
Incorporated PR comments
<nb> public class Benchmarks extends TestCase { } private static class GetDateBenchmarkTest extends BenchmarkTest { - private long currentMillis = NUMBER0 ; + private volatile long currentMillis = NUMBER0 ; private Date currentDate = null ; private ThreadLocal < Long > currentMillisLocal = new ThreadLoc...
Add volatiles as suggested by Tim to align code with AccessLogValve
<nb> public class GrImplicitVariableImpl extends LightVariableBase implements GrImpli } public String toString ( ) { - return STRING0 ; + return STRING1 + getName ( ) ; } public void setInitializer ( @ nullable PsiExpression initializer ) throws IncorrectOperationException {
Improve toString method
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MailEngine { msg . setContent ( body , _TEXT_PLAIN ) ; } + msg . setSentDate ( new Date ( ) ) ; + _send ( session , msg ) ; } catch ( SendFailedE...
Set sent date
<nb> public class DiscreteSeekBar extends View { int separation = a . getDimensionPixelSize ( R . styleable . DiscreteSeekBar_dsb_indicatorSeparation , ( int ) ( SEPARATION_DP * density ) ) ; - SINGLE - int touchBounds = ( int ) ( density * NUMBER0 ) ; + SINGLE + int touchBounds = ( int ) ( density * NUMB...
Revert minimun touch area so it doesn t break current user s layouts
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + SINGLE public class PermanentlyFailingSecurityRule implements SecurityRule { - public static final String REALM = STRING0 ; SINGLE + public static final String REALM = STRING0 ; SINGLE @ o...
Removing typo from test code used to generate docs
<nb> public class DevicePolicyManager { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ systemapi + public String getProfileOwnerNameAsUser ( UserHandle user ) throws IllegalArgumentException { + if ( mService != null ) { + try { + return mService . getProfileOwnerN...
Add a hidden method to query profile owner name for a user
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractCommonUpdateAction extends AbstractVcsAction { final int s = group . getFiles ( ) . size ( ) ; if ( s > NU...
pluralize the word Files only when needed
<nb> import NAMESPACE ; COMMENT COMMENT public class ArrayEqualsPositiveCases { - - SINGLE - public void genericTest ( ) { - ArrayList < Object > l1 = new ArrayList < Object > ( ) ; - if ( l1 . equals ( l2 ) ) { - System . out . println ( STRING0 ) ; - } - } - + public void intArray ( ) { ...
Removed debug code that was causing a test to fail
<nb> public class LocalFunctionDeclarationInstruction extends InstructionWithNext { private final Pseudocode body ; private Instruction sink ; - public LocalFunctionDeclarationInstruction ( @ notnull JetElement element , Pseudocode body ) { + public LocalFunctionDeclarationInstruction ( @ notnull JetElement e...
added NotNull annotation
<nb> public class LocalMergeTask extends JobTask { try { shouldContinue = mergeOperation . addRows ( rows . rows ( ) ) ; + + if ( countdown . decrementAndGet ( ) == NUMBER0 || ! shouldContinue ) { + mergeOperation . finished ( ) ; + } } catch ( Throwable ex ) { - ramAccountingContext . close ( ) ; -...
catch exceptions frmo mergeOperation finished in LocalMergeTask
<nb> public final class NfcAdapter { return null ; } } + + COMMENT + COMMENT + COMMENT + COMMENT + public void changeNfcSecureElementCardEmulationState ( boolean state ) + { + int seId = NUMBER0 ; + if ( state ) { + COMMENT + try { + sService . selectSecureElement ( seId ) ; + } catch ( ...
New API added in NfcAdapter to enable disable SE card emulation
<nb> import NAMESPACE ; public abstract class CommonNearCacheTestSupport extends HazelcastTestSupport { + @ after + public final void shutdownExecutorServices ( ) { + for ( ScheduledExecutorService scheduledExecutorService : scheduledExecutorServices ) { + scheduledExecutorService . shutdown ( ) ; + } ...
Protected CommonNearCacheTestSupport from accidental overwrite of After method
<nb> public final class Normalization { SINGLE private static final Pattern FULL_OPERATION = Pattern . compile ( - STRING0 + STRING1 + + STRING2 + STRING1 + STRING3 + NUMBER + WS + STRING4 + WS + STRING5 + NUMBER + WS + - STRING6 ) ; + STRING7 ) ; private static final Pattern [ ] OPERATIONS = { Pa...
Further improve Normalization
<nb> public class ConsoleExecuteAction extends DumbAwareAction { myExecuteActionHandler . addToCommandHistoryAndExecute ( myConsole , myConsoleView , text ) ; } - static abstract class ConsoleExecuteActionHandler { + public static abstract class ConsoleExecuteActionHandler { private final ConsoleHistoryMode...
make ConsoleExecuteActionHandler public
<nb> public abstract class BaseStatusBar extends SystemUI implements private static final boolean NOTIFICATION_CLICK_DEBUG = true ; public static final boolean ENABLE_REMOTE_INPUT = - Build . IS_DEBUGGABLE && SystemProperties . getBoolean ( STRING0 , false ) ; + SystemProperties . getBoolean ( STRING0 , true ...
Ok Droid enable inline reply
<nb> public final class PduCache extends AbstractCache < Uri , PduCacheEntry > { } private void removeFromMessageBoxes ( Uri key , PduCacheEntry entry ) { - HashSet < Uri > msgBox = mThreads . get ( entry . getMessageBox ( ) ) ; + HashSet < Uri > msgBox = mThreads . get ( Long . valueOf ( entry . getMessageBo...
Fixing improper boxing to Integer instead of Long
<nb> public class XmppConnectionService extends Service { String nick = conversation . getMucOptions ( ) . getProposedNick ( ) ; conversation . getMucOptions ( ) . setJoinNick ( nick ) ; PresencePacket packet = new PresencePacket ( ) ; + String joinJid = conversation . getMucOptions ( ) . getJoinJid ( ) ; pac...
save login nick for mucs during join
<nb> public class LockReleaser lockElement . resource + STRING0 ) ; } } - System . out . println ( STRING1 + tx ) ; } }
Removed a System out
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - -...
fixed cs issues
<nb> public class RestrictionEntry implements Parcelable { if ( o == this ) return true ; if ( ! ( o instanceof RestrictionEntry ) ) return false ; final RestrictionEntry other = ( RestrictionEntry ) o ; - if ( mType != other . mType || mKey . equals ( other . mKey ) ) { + if ( mType != other . mType || ! mKe...
Fixed key comparison in equals method
<nb> public class IOUtil { } } + if ( in == null ) { + throw new OpenUriException ( false , STRING0 + uri , null ) ; + } + return in ; } <nb> public class IOUtil { public static void readFullyWriteToOutputStream ( InputStream in , OutputStream out ) throws IOException { + if ( in == null )...
trap some NPEs
<nb> public class ZyEdgeLabel extends EdgeLabel { public ZyEdgeLabel ( final ZyLabelContent content ) { - m_content = Preconditions . checkNotNull ( content , STRING0 ) ; + m_content = Preconditions . checkNotNull ( content ) ; setVisible ( true ) ; setText ( STRING1 ) ; SINGLE
Remove Internal error message
<nb> public class SetRandomVariablesTaskListener implements TaskListener { case NUMBER0 : return STRING0 ; default : - return STRING1 . getBytes ( ) ; + return new Random ( ) . nextBoolean ( ) ; + SINGLE } }
Not using byte array table for concurrency test
<nb> public class ComputationGraph implements Serializable , Model { boolean hasMaskArrays = next . hasMaskArrays ( ) ; if ( hasMaskArrays ) { - INDArray [ ] lMask = ( next . getFeaturesMaskArray ( ) != null ? new INDArray [ ] { next . getFeaturesMaskArray ( ) } : null ) ; - INDArray [ ] fMask = ( next . getL...
Fix wrong assignment of mask array in ComputationGraph fit DataSetIterator
<nb> public class TestResponsePerformance { doHomebrew ( resp ) ; doUri ( ) ; - final int bestOf = NUMBER0 ; - final int winTarget = ( bestOf + NUMBER1 ) / NUMBER2 ; - int homebrewWin = NUMBER3 ; + SINGLE + SINGLE + SINGLE + + final int attempts = NUMBER0 ; + boolean homebrewWin = false ; int ...
Try a different way to convince the CI system to pass this
<nb> class ASTCBind extends ASTPrim { for ( int i = NUMBER0 ; i < asts . length ; i ++ ) { switch ( vals [ i ] . type ( ) ) { case Val . FRM : - fr . add ( vals [ i ] . getFrame ( ) ) ; + fr . add ( fr . makeCompatible ( vals [ i ] . getFrame ( ) ) ) ; break ; case Val . FUN : throw H2O . unimpl ( ) ; c...
bug with cbind not making vecs compatible before joining
<nb> public final class TestTSQuery { @ test public void validateNullEnd ( ) { + PowerMockito . mockStatic ( System . class ) ; + when ( System . currentTimeMillis ( ) ) . thenReturn ( NUMBER0 ) ; TSQuery q = this . getMetricForValidate ( ) ; q . setEnd ( null ) ; q . validateAndSetQuery ( ) ; - asser...
Fix errant unit test in TestTSQuery java
<nb> public final class ActFmSyncService { params . add ( userEmail ) ; actFmDataService . addUserByEmail ( userEmail ) ; + sharing = true ; } } catch ( JSONException e ) { Log . e ( STRING0 , task . getValue ( Task . USER ) , e ) ; <nb> public final class ActFmSyncService { else params . add ( task...
Only report ab test info when sharing task via email
<nb> public class DistributedQueryRunner this . servers = servers . build ( ) ; } catch ( Exception e ) { - close ( ) ; - throw e ; + throw closer . rethrow ( e , Exception . class ) ; + } + finally { + closer . close ( ) ; } this . prestoClient = closer . register ( new TestingPrestoClient ( co...
Preserve construction exception in DistributedQueryRunner
<nb> public final class LeakCanary { DebuggerControl debuggerControl = new AndroidDebuggerControl ( ) ; AndroidHeapDumper heapDumper = new AndroidHeapDumper ( ) ; heapDumper . cleanup ( ) ; - ExcludedRefs excludedRefs = AndroidExcludedRefs . createAndroidDefaults ( ) . build ( ) ; + ExcludedRefs excludedRefs ...
Fix excludedrefs creation